@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
119 lines • 3.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves the details of a specific GKE Hub Membership Binding. Use this data source to retrieve the membership binding's configuration and state.
*
* A membership binding associates a GKE Hub membership with a scope, enabling the membership to participate in fleet-wide configurations and policies defined by the scope.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const example = gcp.gkehub.getMembershipBinding({
* location: "global",
* membershipId: "my-membership-id",
* membershipBindingId: "my-membership-binding-id",
* project: "my-project-id",
* });
* ```
*/
export declare function getMembershipBinding(args: GetMembershipBindingArgs, opts?: pulumi.InvokeOptions): Promise<GetMembershipBindingResult>;
/**
* A collection of arguments for invoking getMembershipBinding.
*/
export interface GetMembershipBindingArgs {
/**
* The location for the GKE Hub Membership Binding.
* Currently only `global` is supported.
*/
location: string;
/**
* The ID of the membership binding.
*/
membershipBindingId: string;
/**
* The ID of the membership that this binding applies to.
*/
membershipId: 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 getMembershipBinding.
*/
export interface GetMembershipBindingResult {
readonly createTime: string;
readonly deleteTime: string;
readonly deletionPolicy: string;
readonly effectiveLabels: {
[key: string]: string;
};
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: {
[key: string]: string;
};
readonly location: string;
readonly membershipBindingId: string;
readonly membershipId: string;
readonly name: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly scope: string;
readonly states: outputs.gkehub.GetMembershipBindingState[];
readonly uid: string;
readonly updateTime: string;
}
/**
* Retrieves the details of a specific GKE Hub Membership Binding. Use this data source to retrieve the membership binding's configuration and state.
*
* A membership binding associates a GKE Hub membership with a scope, enabling the membership to participate in fleet-wide configurations and policies defined by the scope.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const example = gcp.gkehub.getMembershipBinding({
* location: "global",
* membershipId: "my-membership-id",
* membershipBindingId: "my-membership-binding-id",
* project: "my-project-id",
* });
* ```
*/
export declare function getMembershipBindingOutput(args: GetMembershipBindingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMembershipBindingResult>;
/**
* A collection of arguments for invoking getMembershipBinding.
*/
export interface GetMembershipBindingOutputArgs {
/**
* The location for the GKE Hub Membership Binding.
* Currently only `global` is supported.
*/
location: pulumi.Input<string>;
/**
* The ID of the membership binding.
*/
membershipBindingId: pulumi.Input<string>;
/**
* The ID of the membership that this binding applies to.
*/
membershipId: 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=getMembershipBinding.d.ts.map