gcp.gkehub.MembershipBinding
Explore with Pulumi AI
MembershipBinding is a subresource of a Membership, representing what Fleet Scopes (or other, future Fleet resources) a Membership is bound to.
To get more information about MembershipBinding, see:
- API documentation
- How-to Guides
Example Usage
Gkehub Membership Binding Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const primary = new gcp.container.Cluster("primary", {
name: "basic-cluster",
location: "us-central1-a",
initialNodeCount: 1,
deletionProtection: true,
network: "default",
subnetwork: "default",
});
const membership = new gcp.gkehub.Membership("membership", {
membershipId: "tf-test-membership_9106",
endpoint: {
gkeCluster: {
resourceLink: pulumi.interpolate`//container.googleapis.com/${primary.id}`,
},
},
}, {
dependsOn: [primary],
});
const scope = new gcp.gkehub.Scope("scope", {scopeId: "tf-test-scope_27169"});
const membershipBinding = new gcp.gkehub.MembershipBinding("membership_binding", {
membershipBindingId: "tf-test-membership-binding_75223",
scope: scope.name,
membershipId: membership.membershipId,
location: "global",
labels: {
keyb: "valueb",
keya: "valuea",
keyc: "valuec",
},
}, {
dependsOn: [
membership,
scope,
],
});
import pulumi
import pulumi_gcp as gcp
primary = gcp.container.Cluster("primary",
name="basic-cluster",
location="us-central1-a",
initial_node_count=1,
deletion_protection=True,
network="default",
subnetwork="default")
membership = gcp.gkehub.Membership("membership",
membership_id="tf-test-membership_9106",
endpoint={
"gke_cluster": {
"resource_link": primary.id.apply(lambda id: f"//container.googleapis.com/{id}"),
},
},
opts = pulumi.ResourceOptions(depends_on=[primary]))
scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_27169")
membership_binding = gcp.gkehub.MembershipBinding("membership_binding",
membership_binding_id="tf-test-membership-binding_75223",
scope=scope.name,
membership_id=membership.membership_id,
location="global",
labels={
"keyb": "valueb",
"keya": "valuea",
"keyc": "valuec",
},
opts = pulumi.ResourceOptions(depends_on=[
membership,
scope,
]))
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/container"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/gkehub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
primary, err := container.NewCluster(ctx, "primary", &container.ClusterArgs{
Name: pulumi.String("basic-cluster"),
Location: pulumi.String("us-central1-a"),
InitialNodeCount: pulumi.Int(1),
DeletionProtection: pulumi.Bool(true),
Network: pulumi.String("default"),
Subnetwork: pulumi.String("default"),
})
if err != nil {
return err
}
membership, err := gkehub.NewMembership(ctx, "membership", &gkehub.MembershipArgs{
MembershipId: pulumi.String("tf-test-membership_9106"),
Endpoint: &gkehub.MembershipEndpointArgs{
GkeCluster: &gkehub.MembershipEndpointGkeClusterArgs{
ResourceLink: primary.ID().ApplyT(func(id string) (string, error) {
return fmt.Sprintf("//container.googleapis.com/%v", id), nil
}).(pulumi.StringOutput),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
primary,
}))
if err != nil {
return err
}
scope, err := gkehub.NewScope(ctx, "scope", &gkehub.ScopeArgs{
ScopeId: pulumi.String("tf-test-scope_27169"),
})
if err != nil {
return err
}
_, err = gkehub.NewMembershipBinding(ctx, "membership_binding", &gkehub.MembershipBindingArgs{
MembershipBindingId: pulumi.String("tf-test-membership-binding_75223"),
Scope: scope.Name,
MembershipId: membership.MembershipId,
Location: pulumi.String("global"),
Labels: pulumi.StringMap{
"keyb": pulumi.String("valueb"),
"keya": pulumi.String("valuea"),
"keyc": pulumi.String("valuec"),
},
}, pulumi.DependsOn([]pulumi.Resource{
membership,
scope,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var primary = new Gcp.Container.Cluster("primary", new()
{
Name = "basic-cluster",
Location = "us-central1-a",
InitialNodeCount = 1,
DeletionProtection = true,
Network = "default",
Subnetwork = "default",
});
var membership = new Gcp.GkeHub.Membership("membership", new()
{
MembershipId = "tf-test-membership_9106",
Endpoint = new Gcp.GkeHub.Inputs.MembershipEndpointArgs
{
GkeCluster = new Gcp.GkeHub.Inputs.MembershipEndpointGkeClusterArgs
{
ResourceLink = primary.Id.Apply(id => $"//container.googleapis.com/{id}"),
},
},
}, new CustomResourceOptions
{
DependsOn =
{
primary,
},
});
var scope = new Gcp.GkeHub.Scope("scope", new()
{
ScopeId = "tf-test-scope_27169",
});
var membershipBinding = new Gcp.GkeHub.MembershipBinding("membership_binding", new()
{
MembershipBindingId = "tf-test-membership-binding_75223",
Scope = scope.Name,
MembershipId = membership.MembershipId,
Location = "global",
Labels =
{
{ "keyb", "valueb" },
{ "keya", "valuea" },
{ "keyc", "valuec" },
},
}, new CustomResourceOptions
{
DependsOn =
{
membership,
scope,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.container.Cluster;
import com.pulumi.gcp.container.ClusterArgs;
import com.pulumi.gcp.gkehub.Membership;
import com.pulumi.gcp.gkehub.MembershipArgs;
import com.pulumi.gcp.gkehub.inputs.MembershipEndpointArgs;
import com.pulumi.gcp.gkehub.inputs.MembershipEndpointGkeClusterArgs;
import com.pulumi.gcp.gkehub.Scope;
import com.pulumi.gcp.gkehub.ScopeArgs;
import com.pulumi.gcp.gkehub.MembershipBinding;
import com.pulumi.gcp.gkehub.MembershipBindingArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var primary = new Cluster("primary", ClusterArgs.builder()
.name("basic-cluster")
.location("us-central1-a")
.initialNodeCount(1)
.deletionProtection(true)
.network("default")
.subnetwork("default")
.build());
var membership = new Membership("membership", MembershipArgs.builder()
.membershipId("tf-test-membership_9106")
.endpoint(MembershipEndpointArgs.builder()
.gkeCluster(MembershipEndpointGkeClusterArgs.builder()
.resourceLink(primary.id().applyValue(id -> String.format("//container.googleapis.com/%s", id)))
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(primary)
.build());
var scope = new Scope("scope", ScopeArgs.builder()
.scopeId("tf-test-scope_27169")
.build());
var membershipBinding = new MembershipBinding("membershipBinding", MembershipBindingArgs.builder()
.membershipBindingId("tf-test-membership-binding_75223")
.scope(scope.name())
.membershipId(membership.membershipId())
.location("global")
.labels(Map.ofEntries(
Map.entry("keyb", "valueb"),
Map.entry("keya", "valuea"),
Map.entry("keyc", "valuec")
))
.build(), CustomResourceOptions.builder()
.dependsOn(
membership,
scope)
.build());
}
}
resources:
primary:
type: gcp:container:Cluster
properties:
name: basic-cluster
location: us-central1-a
initialNodeCount: 1
deletionProtection: true
network: default
subnetwork: default
membership:
type: gcp:gkehub:Membership
properties:
membershipId: tf-test-membership_9106
endpoint:
gkeCluster:
resourceLink: //container.googleapis.com/${primary.id}
options:
dependson:
- ${primary}
scope:
type: gcp:gkehub:Scope
properties:
scopeId: tf-test-scope_27169
membershipBinding:
type: gcp:gkehub:MembershipBinding
name: membership_binding
properties:
membershipBindingId: tf-test-membership-binding_75223
scope: ${scope.name}
membershipId: ${membership.membershipId}
location: global
labels:
keyb: valueb
keya: valuea
keyc: valuec
options:
dependson:
- ${membership}
- ${scope}
Create MembershipBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MembershipBinding(name: string, args: MembershipBindingArgs, opts?: CustomResourceOptions);
@overload
def MembershipBinding(resource_name: str,
args: MembershipBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MembershipBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
membership_binding_id: Optional[str] = None,
membership_id: Optional[str] = None,
scope: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
project: Optional[str] = None)
func NewMembershipBinding(ctx *Context, name string, args MembershipBindingArgs, opts ...ResourceOption) (*MembershipBinding, error)
public MembershipBinding(string name, MembershipBindingArgs args, CustomResourceOptions? opts = null)
public MembershipBinding(String name, MembershipBindingArgs args)
public MembershipBinding(String name, MembershipBindingArgs args, CustomResourceOptions options)
type: gcp:gkehub:MembershipBinding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MembershipBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MembershipBindingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MembershipBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MembershipBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MembershipBindingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var membershipBindingResource = new Gcp.GkeHub.MembershipBinding("membershipBindingResource", new()
{
Location = "string",
MembershipBindingId = "string",
MembershipId = "string",
Scope = "string",
Labels =
{
{ "string", "string" },
},
Project = "string",
});
example, err := gkehub.NewMembershipBinding(ctx, "membershipBindingResource", &gkehub.MembershipBindingArgs{
Location: pulumi.String("string"),
MembershipBindingId: pulumi.String("string"),
MembershipId: pulumi.String("string"),
Scope: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
})
var membershipBindingResource = new MembershipBinding("membershipBindingResource", MembershipBindingArgs.builder()
.location("string")
.membershipBindingId("string")
.membershipId("string")
.scope("string")
.labels(Map.of("string", "string"))
.project("string")
.build());
membership_binding_resource = gcp.gkehub.MembershipBinding("membershipBindingResource",
location="string",
membership_binding_id="string",
membership_id="string",
scope="string",
labels={
"string": "string",
},
project="string")
const membershipBindingResource = new gcp.gkehub.MembershipBinding("membershipBindingResource", {
location: "string",
membershipBindingId: "string",
membershipId: "string",
scope: "string",
labels: {
string: "string",
},
project: "string",
});
type: gcp:gkehub:MembershipBinding
properties:
labels:
string: string
location: string
membershipBindingId: string
membershipId: string
project: string
scope: string
MembershipBinding Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MembershipBinding resource accepts the following input properties:
- Location string
- Location of the membership
- Membership
Binding stringId - The client-provided identifier of the membership binding.
- Membership
Id string - Id of the membership
- Scope string
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - Labels Dictionary<string, string>
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- Location of the membership
- Membership
Binding stringId - The client-provided identifier of the membership binding.
- Membership
Id string - Id of the membership
- Scope string
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - Labels map[string]string
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Location of the membership
- membership
Binding StringId - The client-provided identifier of the membership binding.
- membership
Id String - Id of the membership
- scope String
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - labels Map<String,String>
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- Location of the membership
- membership
Binding stringId - The client-provided identifier of the membership binding.
- membership
Id string - Id of the membership
- scope string
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - labels {[key: string]: string}
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- Location of the membership
- membership_
binding_ strid - The client-provided identifier of the membership binding.
- membership_
id str - Id of the membership
- scope str
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - labels Mapping[str, str]
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Location of the membership
- membership
Binding StringId - The client-provided identifier of the membership binding.
- membership
Id String - Id of the membership
- scope String
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - labels Map<String>
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the MembershipBinding resource produces the following output properties:
- Create
Time string - Time the MembershipBinding was created in UTC.
- Delete
Time string - Time the MembershipBinding was deleted in UTC.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name for the membershipbinding itself
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- States
List<Membership
Binding State> - State of the membership binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time string - Time the MembershipBinding was updated in UTC.
- Create
Time string - Time the MembershipBinding was created in UTC.
- Delete
Time string - Time the MembershipBinding was deleted in UTC.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name for the membershipbinding itself
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- States
[]Membership
Binding State Type - State of the membership binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time string - Time the MembershipBinding was updated in UTC.
- create
Time String - Time the MembershipBinding was created in UTC.
- delete
Time String - Time the MembershipBinding was deleted in UTC.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name for the membershipbinding itself
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- states
List<Membership
Binding State> - State of the membership binding resource. Structure is documented below.
- uid String
- Google-generated UUID for this resource.
- update
Time String - Time the MembershipBinding was updated in UTC.
- create
Time string - Time the MembershipBinding was created in UTC.
- delete
Time string - Time the MembershipBinding was deleted in UTC.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name for the membershipbinding itself
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- states
Membership
Binding State[] - State of the membership binding resource. Structure is documented below.
- uid string
- Google-generated UUID for this resource.
- update
Time string - Time the MembershipBinding was updated in UTC.
- create_
time str - Time the MembershipBinding was created in UTC.
- delete_
time str - Time the MembershipBinding was deleted in UTC.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name for the membershipbinding itself
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- states
Sequence[Membership
Binding State] - State of the membership binding resource. Structure is documented below.
- uid str
- Google-generated UUID for this resource.
- update_
time str - Time the MembershipBinding was updated in UTC.
- create
Time String - Time the MembershipBinding was created in UTC.
- delete
Time String - Time the MembershipBinding was deleted in UTC.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name for the membershipbinding itself
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- states List<Property Map>
- State of the membership binding resource. Structure is documented below.
- uid String
- Google-generated UUID for this resource.
- update
Time String - Time the MembershipBinding was updated in UTC.
Look up Existing MembershipBinding Resource
Get an existing MembershipBinding resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MembershipBindingState, opts?: CustomResourceOptions): MembershipBinding
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
delete_time: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
membership_binding_id: Optional[str] = None,
membership_id: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
scope: Optional[str] = None,
states: Optional[Sequence[MembershipBindingStateArgs]] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> MembershipBinding
func GetMembershipBinding(ctx *Context, name string, id IDInput, state *MembershipBindingState, opts ...ResourceOption) (*MembershipBinding, error)
public static MembershipBinding Get(string name, Input<string> id, MembershipBindingState? state, CustomResourceOptions? opts = null)
public static MembershipBinding get(String name, Output<String> id, MembershipBindingState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - Time the MembershipBinding was created in UTC.
- Delete
Time string - Time the MembershipBinding was deleted in UTC.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<string, string>
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- Location of the membership
- Membership
Binding stringId - The client-provided identifier of the membership binding.
- Membership
Id string - Id of the membership
- Name string
- The resource name for the membershipbinding itself
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Scope string
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - States
List<Membership
Binding State> - State of the membership binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time string - Time the MembershipBinding was updated in UTC.
- Create
Time string - Time the MembershipBinding was created in UTC.
- Delete
Time string - Time the MembershipBinding was deleted in UTC.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels map[string]string
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- Location of the membership
- Membership
Binding stringId - The client-provided identifier of the membership binding.
- Membership
Id string - Id of the membership
- Name string
- The resource name for the membershipbinding itself
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Scope string
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - States
[]Membership
Binding State Type Args - State of the membership binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time string - Time the MembershipBinding was updated in UTC.
- create
Time String - Time the MembershipBinding was created in UTC.
- delete
Time String - Time the MembershipBinding was deleted in UTC.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String,String>
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- Location of the membership
- membership
Binding StringId - The client-provided identifier of the membership binding.
- membership
Id String - Id of the membership
- name String
- The resource name for the membershipbinding itself
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- scope String
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - states
List<Membership
Binding State> - State of the membership binding resource. Structure is documented below.
- uid String
- Google-generated UUID for this resource.
- update
Time String - Time the MembershipBinding was updated in UTC.
- create
Time string - Time the MembershipBinding was created in UTC.
- delete
Time string - Time the MembershipBinding was deleted in UTC.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: string]: string}
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location string
- Location of the membership
- membership
Binding stringId - The client-provided identifier of the membership binding.
- membership
Id string - Id of the membership
- name string
- The resource name for the membershipbinding itself
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- scope string
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - states
Membership
Binding State[] - State of the membership binding resource. Structure is documented below.
- uid string
- Google-generated UUID for this resource.
- update
Time string - Time the MembershipBinding was updated in UTC.
- create_
time str - Time the MembershipBinding was created in UTC.
- delete_
time str - Time the MembershipBinding was deleted in UTC.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location str
- Location of the membership
- membership_
binding_ strid - The client-provided identifier of the membership binding.
- membership_
id str - Id of the membership
- name str
- The resource name for the membershipbinding itself
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- scope str
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - states
Sequence[Membership
Binding State Args] - State of the membership binding resource. Structure is documented below.
- uid str
- Google-generated UUID for this resource.
- update_
time str - Time the MembershipBinding was updated in UTC.
- create
Time String - Time the MembershipBinding was created in UTC.
- delete
Time String - Time the MembershipBinding was deleted in UTC.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String>
Labels for this Membership binding.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- Location of the membership
- membership
Binding StringId - The client-provided identifier of the membership binding.
- membership
Id String - Id of the membership
- name String
- The resource name for the membershipbinding itself
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- scope String
- A Workspace resource name in the format
projects/*/locations/*/scopes/*
. - states List<Property Map>
- State of the membership binding resource. Structure is documented below.
- uid String
- Google-generated UUID for this resource.
- update
Time String - Time the MembershipBinding was updated in UTC.
Supporting Types
MembershipBindingState, MembershipBindingStateArgs
- Code string
- (Output) Code describes the state of a MembershipBinding resource.
- Code string
- (Output) Code describes the state of a MembershipBinding resource.
- code String
- (Output) Code describes the state of a MembershipBinding resource.
- code string
- (Output) Code describes the state of a MembershipBinding resource.
- code str
- (Output) Code describes the state of a MembershipBinding resource.
- code String
- (Output) Code describes the state of a MembershipBinding resource.
Import
MembershipBinding can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/memberships/{{membership_id}}/bindings/{{membership_binding_id}}
{{project}}/{{location}}/{{membership_id}}/{{membership_binding_id}}
{{location}}/{{membership_id}}/{{membership_binding_id}}
When using the pulumi import
command, MembershipBinding can be imported using one of the formats above. For example:
$ pulumi import gcp:gkehub/membershipBinding:MembershipBinding default projects/{{project}}/locations/{{location}}/memberships/{{membership_id}}/bindings/{{membership_binding_id}}
$ pulumi import gcp:gkehub/membershipBinding:MembershipBinding default {{project}}/{{location}}/{{membership_id}}/{{membership_binding_id}}
$ pulumi import gcp:gkehub/membershipBinding:MembershipBinding default {{location}}/{{membership_id}}/{{membership_binding_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.