1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. gkehub
  5. MembershipBinding
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

gcp.gkehub.MembershipBinding

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

    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:

    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_75125",
        endpoint: {
            gkeCluster: {
                resourceLink: pulumi.interpolate`//container.googleapis.com/${primary.id}`,
            },
        },
    });
    const scope = new gcp.gkehub.Scope("scope", {scopeId: "tf-test-scope_88722"});
    const membershipBinding = new gcp.gkehub.MembershipBinding("membership_binding", {
        membershipBindingId: "tf-test-membership-binding_39249",
        scope: scope.name,
        membershipId: membership.membershipId,
        location: "global",
        labels: {
            keyb: "valueb",
            keya: "valuea",
            keyc: "valuec",
        },
    });
    
    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_75125",
        endpoint=gcp.gkehub.MembershipEndpointArgs(
            gke_cluster=gcp.gkehub.MembershipEndpointGkeClusterArgs(
                resource_link=primary.id.apply(lambda id: f"//container.googleapis.com/{id}"),
            ),
        ))
    scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_88722")
    membership_binding = gcp.gkehub.MembershipBinding("membership_binding",
        membership_binding_id="tf-test-membership-binding_39249",
        scope=scope.name,
        membership_id=membership.membership_id,
        location="global",
        labels={
            "keyb": "valueb",
            "keya": "valuea",
            "keyc": "valuec",
        })
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/container"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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_75125"),
    			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),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		scope, err := gkehub.NewScope(ctx, "scope", &gkehub.ScopeArgs{
    			ScopeId: pulumi.String("tf-test-scope_88722"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gkehub.NewMembershipBinding(ctx, "membership_binding", &gkehub.MembershipBindingArgs{
    			MembershipBindingId: pulumi.String("tf-test-membership-binding_39249"),
    			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"),
    			},
    		})
    		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_75125",
            Endpoint = new Gcp.GkeHub.Inputs.MembershipEndpointArgs
            {
                GkeCluster = new Gcp.GkeHub.Inputs.MembershipEndpointGkeClusterArgs
                {
                    ResourceLink = primary.Id.Apply(id => $"//container.googleapis.com/{id}"),
                },
            },
        });
    
        var scope = new Gcp.GkeHub.Scope("scope", new()
        {
            ScopeId = "tf-test-scope_88722",
        });
    
        var membershipBinding = new Gcp.GkeHub.MembershipBinding("membership_binding", new()
        {
            MembershipBindingId = "tf-test-membership-binding_39249",
            Scope = scope.Name,
            MembershipId = membership.MembershipId,
            Location = "global",
            Labels = 
            {
                { "keyb", "valueb" },
                { "keya", "valuea" },
                { "keyc", "valuec" },
            },
        });
    
    });
    
    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 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_75125")
                .endpoint(MembershipEndpointArgs.builder()
                    .gkeCluster(MembershipEndpointGkeClusterArgs.builder()
                        .resourceLink(primary.id().applyValue(id -> String.format("//container.googleapis.com/%s", id)))
                        .build())
                    .build())
                .build());
    
            var scope = new Scope("scope", ScopeArgs.builder()        
                .scopeId("tf-test-scope_88722")
                .build());
    
            var membershipBinding = new MembershipBinding("membershipBinding", MembershipBindingArgs.builder()        
                .membershipBindingId("tf-test-membership-binding_39249")
                .scope(scope.name())
                .membershipId(membership.membershipId())
                .location("global")
                .labels(Map.ofEntries(
                    Map.entry("keyb", "valueb"),
                    Map.entry("keya", "valuea"),
                    Map.entry("keyc", "valuec")
                ))
                .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_75125
          endpoint:
            gkeCluster:
              resourceLink: //container.googleapis.com/${primary.id}
      scope:
        type: gcp:gkehub:Scope
        properties:
          scopeId: tf-test-scope_88722
      membershipBinding:
        type: gcp:gkehub:MembershipBinding
        name: membership_binding
        properties:
          membershipBindingId: tf-test-membership-binding_39249
          scope: ${scope.name}
          membershipId: ${membership.membershipId}
          location: global
          labels:
            keyb: valueb
            keya: valuea
            keyc: valuec
    

    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.

    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

    The MembershipBinding resource accepts the following input properties:

    Location string
    Location of the membership


    MembershipBindingId string
    The client-provided identifier of the membership binding.
    MembershipId 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


    MembershipBindingId string
    The client-provided identifier of the membership binding.
    MembershipId 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


    membershipBindingId String
    The client-provided identifier of the membership binding.
    membershipId 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


    membershipBindingId string
    The client-provided identifier of the membership binding.
    membershipId 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_id str
    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


    membershipBindingId String
    The client-provided identifier of the membership binding.
    membershipId 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:

    CreateTime string
    Time the MembershipBinding was created in UTC.
    DeleteTime string
    Time the MembershipBinding was deleted in UTC.
    EffectiveLabels 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
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    States List<MembershipBindingState>
    State of the membership binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the MembershipBinding was updated in UTC.
    CreateTime string
    Time the MembershipBinding was created in UTC.
    DeleteTime string
    Time the MembershipBinding was deleted in UTC.
    EffectiveLabels 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
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    States []MembershipBindingStateType
    State of the membership binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the MembershipBinding was updated in UTC.
    createTime String
    Time the MembershipBinding was created in UTC.
    deleteTime String
    Time the MembershipBinding was deleted in UTC.
    effectiveLabels 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
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states List<MembershipBindingState>
    State of the membership binding resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the MembershipBinding was updated in UTC.
    createTime string
    Time the MembershipBinding was created in UTC.
    deleteTime string
    Time the MembershipBinding was deleted in UTC.
    effectiveLabels {[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
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states MembershipBindingState[]
    State of the membership binding resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource.
    updateTime 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[MembershipBindingState]
    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.
    createTime String
    Time the MembershipBinding was created in UTC.
    deleteTime String
    Time the MembershipBinding was deleted in UTC.
    effectiveLabels 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
    pulumiLabels 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.
    updateTime 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.
    The following state arguments are supported:
    CreateTime string
    Time the MembershipBinding was created in UTC.
    DeleteTime string
    Time the MembershipBinding was deleted in UTC.
    EffectiveLabels 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


    MembershipBindingId string
    The client-provided identifier of the membership binding.
    MembershipId 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.
    PulumiLabels 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<MembershipBindingState>
    State of the membership binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the MembershipBinding was updated in UTC.
    CreateTime string
    Time the MembershipBinding was created in UTC.
    DeleteTime string
    Time the MembershipBinding was deleted in UTC.
    EffectiveLabels 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


    MembershipBindingId string
    The client-provided identifier of the membership binding.
    MembershipId 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.
    PulumiLabels 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 []MembershipBindingStateTypeArgs
    State of the membership binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the MembershipBinding was updated in UTC.
    createTime String
    Time the MembershipBinding was created in UTC.
    deleteTime String
    Time the MembershipBinding was deleted in UTC.
    effectiveLabels 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


    membershipBindingId String
    The client-provided identifier of the membership binding.
    membershipId 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.
    pulumiLabels 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<MembershipBindingState>
    State of the membership binding resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the MembershipBinding was updated in UTC.
    createTime string
    Time the MembershipBinding was created in UTC.
    deleteTime string
    Time the MembershipBinding was deleted in UTC.
    effectiveLabels {[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


    membershipBindingId string
    The client-provided identifier of the membership binding.
    membershipId 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.
    pulumiLabels {[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 MembershipBindingState[]
    State of the membership binding resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource.
    updateTime 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_id str
    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[MembershipBindingStateArgs]
    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.
    createTime String
    Time the MembershipBinding was created in UTC.
    deleteTime String
    Time the MembershipBinding was deleted in UTC.
    effectiveLabels 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


    membershipBindingId String
    The client-provided identifier of the membership binding.
    membershipId 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.
    pulumiLabels 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.
    updateTime 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.
    gcp logo
    Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi