@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
100 lines • 2.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves the details of a specific GKE Hub Feature. Use this data source to retrieve the feature's configuration and state.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const example = gcp.gkehub.getFeature({
* location: "global",
* name: "servicemesh",
* });
* ```
*/
export declare function getFeature(args: GetFeatureArgs, opts?: pulumi.InvokeOptions): Promise<GetFeatureResult>;
/**
* A collection of arguments for invoking getFeature.
*/
export interface GetFeatureArgs {
/**
* The location for the GKE Hub Feature.
*/
location: string;
/**
* The name of the feature you want to know the status of.
*/
name: string;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getFeature.
*/
export interface GetFeatureResult {
readonly createTime: string;
readonly deleteTime: string;
readonly deletionPolicy: string;
readonly effectiveLabels: {
[key: string]: string;
};
readonly fleetDefaultMemberConfigs: outputs.gkehub.GetFeatureFleetDefaultMemberConfig[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: {
[key: string]: string;
};
readonly location: string;
readonly name: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly resourceStates: outputs.gkehub.GetFeatureResourceState[];
readonly specs: outputs.gkehub.GetFeatureSpec[];
readonly states: outputs.gkehub.GetFeatureState[];
readonly updateTime: string;
}
/**
* Retrieves the details of a specific GKE Hub Feature. Use this data source to retrieve the feature's configuration and state.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const example = gcp.gkehub.getFeature({
* location: "global",
* name: "servicemesh",
* });
* ```
*/
export declare function getFeatureOutput(args: GetFeatureOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFeatureResult>;
/**
* A collection of arguments for invoking getFeature.
*/
export interface GetFeatureOutputArgs {
/**
* The location for the GKE Hub Feature.
*/
location: pulumi.Input<string>;
/**
* The name of the feature you want to know the status of.
*/
name: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getFeature.d.ts.map