1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. gkehub
  5. ScopeRbacRoleBinding
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.gkehub.ScopeRbacRoleBinding

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    RBACRoleBinding represents a rbacrolebinding across the Fleet.

    To get more information about ScopeRBACRoleBinding, see:

    Example Usage

    Gkehub Scope Rbac Role Binding Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const scope = new gcp.gkehub.Scope("scope", {scopeId: "tf-test-scope_41819"});
    const scopeRbacRoleBinding = new gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding", {
        scopeRbacRoleBindingId: "tf-test-scope-rbac-role-binding_75092",
        scopeId: scope.scopeId,
        user: "test-email@gmail.com",
        role: {
            predefinedRole: "ADMIN",
        },
        labels: {
            key: "value",
        },
    }, {
        dependsOn: [scope],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_41819")
    scope_rbac_role_binding = gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding",
        scope_rbac_role_binding_id="tf-test-scope-rbac-role-binding_75092",
        scope_id=scope.scope_id,
        user="test-email@gmail.com",
        role=gcp.gkehub.ScopeRbacRoleBindingRoleArgs(
            predefined_role="ADMIN",
        ),
        labels={
            "key": "value",
        },
        opts = pulumi.ResourceOptions(depends_on=[scope]))
    
    package main
    
    import (
    	"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 {
    		scope, err := gkehub.NewScope(ctx, "scope", &gkehub.ScopeArgs{
    			ScopeId: pulumi.String("tf-test-scope_41819"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gkehub.NewScopeRbacRoleBinding(ctx, "scope_rbac_role_binding", &gkehub.ScopeRbacRoleBindingArgs{
    			ScopeRbacRoleBindingId: pulumi.String("tf-test-scope-rbac-role-binding_75092"),
    			ScopeId:                scope.ScopeId,
    			User:                   pulumi.String("test-email@gmail.com"),
    			Role: &gkehub.ScopeRbacRoleBindingRoleArgs{
    				PredefinedRole: pulumi.String("ADMIN"),
    			},
    			Labels: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			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 scope = new Gcp.GkeHub.Scope("scope", new()
        {
            ScopeId = "tf-test-scope_41819",
        });
    
        var scopeRbacRoleBinding = new Gcp.GkeHub.ScopeRbacRoleBinding("scope_rbac_role_binding", new()
        {
            ScopeRbacRoleBindingId = "tf-test-scope-rbac-role-binding_75092",
            ScopeId = scope.ScopeId,
            User = "test-email@gmail.com",
            Role = new Gcp.GkeHub.Inputs.ScopeRbacRoleBindingRoleArgs
            {
                PredefinedRole = "ADMIN",
            },
            Labels = 
            {
                { "key", "value" },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                scope,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.gkehub.Scope;
    import com.pulumi.gcp.gkehub.ScopeArgs;
    import com.pulumi.gcp.gkehub.ScopeRbacRoleBinding;
    import com.pulumi.gcp.gkehub.ScopeRbacRoleBindingArgs;
    import com.pulumi.gcp.gkehub.inputs.ScopeRbacRoleBindingRoleArgs;
    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 scope = new Scope("scope", ScopeArgs.builder()
                .scopeId("tf-test-scope_41819")
                .build());
    
            var scopeRbacRoleBinding = new ScopeRbacRoleBinding("scopeRbacRoleBinding", ScopeRbacRoleBindingArgs.builder()
                .scopeRbacRoleBindingId("tf-test-scope-rbac-role-binding_75092")
                .scopeId(scope.scopeId())
                .user("test-email@gmail.com")
                .role(ScopeRbacRoleBindingRoleArgs.builder()
                    .predefinedRole("ADMIN")
                    .build())
                .labels(Map.of("key", "value"))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(scope)
                    .build());
    
        }
    }
    
    resources:
      scope:
        type: gcp:gkehub:Scope
        properties:
          scopeId: tf-test-scope_41819
      scopeRbacRoleBinding:
        type: gcp:gkehub:ScopeRbacRoleBinding
        name: scope_rbac_role_binding
        properties:
          scopeRbacRoleBindingId: tf-test-scope-rbac-role-binding_75092
          scopeId: ${scope.scopeId}
          user: test-email@gmail.com
          role:
            predefinedRole: ADMIN
          labels:
            key: value
        options:
          dependson:
            - ${scope}
    

    Create ScopeRbacRoleBinding Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ScopeRbacRoleBinding(name: string, args: ScopeRbacRoleBindingArgs, opts?: CustomResourceOptions);
    @overload
    def ScopeRbacRoleBinding(resource_name: str,
                             args: ScopeRbacRoleBindingArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScopeRbacRoleBinding(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             role: Optional[ScopeRbacRoleBindingRoleArgs] = None,
                             scope_id: Optional[str] = None,
                             scope_rbac_role_binding_id: Optional[str] = None,
                             group: Optional[str] = None,
                             labels: Optional[Mapping[str, str]] = None,
                             project: Optional[str] = None,
                             user: Optional[str] = None)
    func NewScopeRbacRoleBinding(ctx *Context, name string, args ScopeRbacRoleBindingArgs, opts ...ResourceOption) (*ScopeRbacRoleBinding, error)
    public ScopeRbacRoleBinding(string name, ScopeRbacRoleBindingArgs args, CustomResourceOptions? opts = null)
    public ScopeRbacRoleBinding(String name, ScopeRbacRoleBindingArgs args)
    public ScopeRbacRoleBinding(String name, ScopeRbacRoleBindingArgs args, CustomResourceOptions options)
    
    type: gcp:gkehub:ScopeRbacRoleBinding
    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 ScopeRbacRoleBindingArgs
    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 ScopeRbacRoleBindingArgs
    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 ScopeRbacRoleBindingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScopeRbacRoleBindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScopeRbacRoleBindingArgs
    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 scopeRbacRoleBindingResource = new Gcp.GkeHub.ScopeRbacRoleBinding("scopeRbacRoleBindingResource", new()
    {
        Role = new Gcp.GkeHub.Inputs.ScopeRbacRoleBindingRoleArgs
        {
            PredefinedRole = "string",
        },
        ScopeId = "string",
        ScopeRbacRoleBindingId = "string",
        Group = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
        User = "string",
    });
    
    example, err := gkehub.NewScopeRbacRoleBinding(ctx, "scopeRbacRoleBindingResource", &gkehub.ScopeRbacRoleBindingArgs{
    	Role: &gkehub.ScopeRbacRoleBindingRoleArgs{
    		PredefinedRole: pulumi.String("string"),
    	},
    	ScopeId:                pulumi.String("string"),
    	ScopeRbacRoleBindingId: pulumi.String("string"),
    	Group:                  pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    	User:    pulumi.String("string"),
    })
    
    var scopeRbacRoleBindingResource = new ScopeRbacRoleBinding("scopeRbacRoleBindingResource", ScopeRbacRoleBindingArgs.builder()
        .role(ScopeRbacRoleBindingRoleArgs.builder()
            .predefinedRole("string")
            .build())
        .scopeId("string")
        .scopeRbacRoleBindingId("string")
        .group("string")
        .labels(Map.of("string", "string"))
        .project("string")
        .user("string")
        .build());
    
    scope_rbac_role_binding_resource = gcp.gkehub.ScopeRbacRoleBinding("scopeRbacRoleBindingResource",
        role=gcp.gkehub.ScopeRbacRoleBindingRoleArgs(
            predefined_role="string",
        ),
        scope_id="string",
        scope_rbac_role_binding_id="string",
        group="string",
        labels={
            "string": "string",
        },
        project="string",
        user="string")
    
    const scopeRbacRoleBindingResource = new gcp.gkehub.ScopeRbacRoleBinding("scopeRbacRoleBindingResource", {
        role: {
            predefinedRole: "string",
        },
        scopeId: "string",
        scopeRbacRoleBindingId: "string",
        group: "string",
        labels: {
            string: "string",
        },
        project: "string",
        user: "string",
    });
    
    type: gcp:gkehub:ScopeRbacRoleBinding
    properties:
        group: string
        labels:
            string: string
        project: string
        role:
            predefinedRole: string
        scopeId: string
        scopeRbacRoleBindingId: string
        user: string
    

    ScopeRbacRoleBinding 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 ScopeRbacRoleBinding resource accepts the following input properties:

    Role ScopeRbacRoleBindingRole
    Role to bind to the principal. Structure is documented below.
    ScopeId string
    Id of the scope
    ScopeRbacRoleBindingId string
    The client-provided identifier of the RBAC Role Binding.
    Group string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    Labels Dictionary<string, string>
    Labels for this ScopeRBACRoleBinding. 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
    User string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    Role ScopeRbacRoleBindingRoleArgs
    Role to bind to the principal. Structure is documented below.
    ScopeId string
    Id of the scope
    ScopeRbacRoleBindingId string
    The client-provided identifier of the RBAC Role Binding.
    Group string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    Labels map[string]string
    Labels for this ScopeRBACRoleBinding. 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
    User string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    role ScopeRbacRoleBindingRole
    Role to bind to the principal. Structure is documented below.
    scopeId String
    Id of the scope
    scopeRbacRoleBindingId String
    The client-provided identifier of the RBAC Role Binding.
    group String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels Map<String,String>
    Labels for this ScopeRBACRoleBinding. 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
    user String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    role ScopeRbacRoleBindingRole
    Role to bind to the principal. Structure is documented below.
    scopeId string
    Id of the scope
    scopeRbacRoleBindingId string
    The client-provided identifier of the RBAC Role Binding.
    group string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels {[key: string]: string}
    Labels for this ScopeRBACRoleBinding. 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
    user string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    role ScopeRbacRoleBindingRoleArgs
    Role to bind to the principal. Structure is documented below.
    scope_id str
    Id of the scope
    scope_rbac_role_binding_id str
    The client-provided identifier of the RBAC Role Binding.
    group str
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels Mapping[str, str]
    Labels for this ScopeRBACRoleBinding. 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
    user str
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    role Property Map
    Role to bind to the principal. Structure is documented below.
    scopeId String
    Id of the scope
    scopeRbacRoleBindingId String
    The client-provided identifier of the RBAC Role Binding.
    group String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels Map<String>
    Labels for this ScopeRBACRoleBinding. 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
    user String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ScopeRbacRoleBinding resource produces the following output properties:

    CreateTime string
    Time the RBAC Role Binding was created in UTC.
    DeleteTime string
    Time the RBAC Role Binding 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 RBAC Role Binding
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    States List<ScopeRbacRoleBindingState>
    State of the RBAC Role Binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the RBAC Role Binding was updated in UTC.
    CreateTime string
    Time the RBAC Role Binding was created in UTC.
    DeleteTime string
    Time the RBAC Role Binding 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 RBAC Role Binding
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    States []ScopeRbacRoleBindingStateType
    State of the RBAC Role Binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the RBAC Role Binding was updated in UTC.
    createTime String
    Time the RBAC Role Binding was created in UTC.
    deleteTime String
    Time the RBAC Role Binding 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 RBAC Role Binding
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states List<ScopeRbacRoleBindingState>
    State of the RBAC Role Binding resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the RBAC Role Binding was updated in UTC.
    createTime string
    Time the RBAC Role Binding was created in UTC.
    deleteTime string
    Time the RBAC Role Binding 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 RBAC Role Binding
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states ScopeRbacRoleBindingState[]
    State of the RBAC Role Binding resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource.
    updateTime string
    Time the RBAC Role Binding was updated in UTC.
    create_time str
    Time the RBAC Role Binding was created in UTC.
    delete_time str
    Time the RBAC Role Binding 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 RBAC Role Binding
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    states Sequence[ScopeRbacRoleBindingState]
    State of the RBAC Role Binding resource. Structure is documented below.
    uid str
    Google-generated UUID for this resource.
    update_time str
    Time the RBAC Role Binding was updated in UTC.
    createTime String
    Time the RBAC Role Binding was created in UTC.
    deleteTime String
    Time the RBAC Role Binding 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 RBAC Role Binding
    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 RBAC Role Binding resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the RBAC Role Binding was updated in UTC.

    Look up Existing ScopeRbacRoleBinding Resource

    Get an existing ScopeRbacRoleBinding 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?: ScopeRbacRoleBindingState, opts?: CustomResourceOptions): ScopeRbacRoleBinding
    @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,
            group: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            role: Optional[ScopeRbacRoleBindingRoleArgs] = None,
            scope_id: Optional[str] = None,
            scope_rbac_role_binding_id: Optional[str] = None,
            states: Optional[Sequence[ScopeRbacRoleBindingStateArgs]] = None,
            uid: Optional[str] = None,
            update_time: Optional[str] = None,
            user: Optional[str] = None) -> ScopeRbacRoleBinding
    func GetScopeRbacRoleBinding(ctx *Context, name string, id IDInput, state *ScopeRbacRoleBindingState, opts ...ResourceOption) (*ScopeRbacRoleBinding, error)
    public static ScopeRbacRoleBinding Get(string name, Input<string> id, ScopeRbacRoleBindingState? state, CustomResourceOptions? opts = null)
    public static ScopeRbacRoleBinding get(String name, Output<String> id, ScopeRbacRoleBindingState 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 RBAC Role Binding was created in UTC.
    DeleteTime string
    Time the RBAC Role Binding 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.
    Group string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    Labels Dictionary<string, string>
    Labels for this ScopeRBACRoleBinding. 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.
    Name string
    The resource name for the RBAC Role Binding
    Project string
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Role ScopeRbacRoleBindingRole
    Role to bind to the principal. Structure is documented below.
    ScopeId string
    Id of the scope
    ScopeRbacRoleBindingId string
    The client-provided identifier of the RBAC Role Binding.
    States List<ScopeRbacRoleBindingState>
    State of the RBAC Role Binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the RBAC Role Binding was updated in UTC.
    User string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    CreateTime string
    Time the RBAC Role Binding was created in UTC.
    DeleteTime string
    Time the RBAC Role Binding 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.
    Group string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    Labels map[string]string
    Labels for this ScopeRBACRoleBinding. 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.
    Name string
    The resource name for the RBAC Role Binding
    Project string
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Role ScopeRbacRoleBindingRoleArgs
    Role to bind to the principal. Structure is documented below.
    ScopeId string
    Id of the scope
    ScopeRbacRoleBindingId string
    The client-provided identifier of the RBAC Role Binding.
    States []ScopeRbacRoleBindingStateTypeArgs
    State of the RBAC Role Binding resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource.
    UpdateTime string
    Time the RBAC Role Binding was updated in UTC.
    User string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    createTime String
    Time the RBAC Role Binding was created in UTC.
    deleteTime String
    Time the RBAC Role Binding 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.
    group String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels Map<String,String>
    Labels for this ScopeRBACRoleBinding. 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.
    name String
    The resource name for the RBAC Role Binding
    project String
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    role ScopeRbacRoleBindingRole
    Role to bind to the principal. Structure is documented below.
    scopeId String
    Id of the scope
    scopeRbacRoleBindingId String
    The client-provided identifier of the RBAC Role Binding.
    states List<ScopeRbacRoleBindingState>
    State of the RBAC Role Binding resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the RBAC Role Binding was updated in UTC.
    user String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    createTime string
    Time the RBAC Role Binding was created in UTC.
    deleteTime string
    Time the RBAC Role Binding 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.
    group string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels {[key: string]: string}
    Labels for this ScopeRBACRoleBinding. 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.
    name string
    The resource name for the RBAC Role Binding
    project string
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    role ScopeRbacRoleBindingRole
    Role to bind to the principal. Structure is documented below.
    scopeId string
    Id of the scope
    scopeRbacRoleBindingId string
    The client-provided identifier of the RBAC Role Binding.
    states ScopeRbacRoleBindingState[]
    State of the RBAC Role Binding resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource.
    updateTime string
    Time the RBAC Role Binding was updated in UTC.
    user string
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    create_time str
    Time the RBAC Role Binding was created in UTC.
    delete_time str
    Time the RBAC Role Binding 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.
    group str
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels Mapping[str, str]
    Labels for this ScopeRBACRoleBinding. 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.
    name str
    The resource name for the RBAC Role Binding
    project str
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    role ScopeRbacRoleBindingRoleArgs
    Role to bind to the principal. Structure is documented below.
    scope_id str
    Id of the scope
    scope_rbac_role_binding_id str
    The client-provided identifier of the RBAC Role Binding.
    states Sequence[ScopeRbacRoleBindingStateArgs]
    State of the RBAC Role Binding resource. Structure is documented below.
    uid str
    Google-generated UUID for this resource.
    update_time str
    Time the RBAC Role Binding was updated in UTC.
    user str
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"
    createTime String
    Time the RBAC Role Binding was created in UTC.
    deleteTime String
    Time the RBAC Role Binding 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.
    group String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. group is the group, as seen by the kubernetes cluster.
    labels Map<String>
    Labels for this ScopeRBACRoleBinding. 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.
    name String
    The resource name for the RBAC Role Binding
    project String
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    role Property Map
    Role to bind to the principal. Structure is documented below.
    scopeId String
    Id of the scope
    scopeRbacRoleBindingId String
    The client-provided identifier of the RBAC Role Binding.
    states List<Property Map>
    State of the RBAC Role Binding resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource.
    updateTime String
    Time the RBAC Role Binding was updated in UTC.
    user String
    Principal that is be authorized in the cluster (at least of one the oneof is required). Updating one will unset the other automatically. user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

    Supporting Types

    ScopeRbacRoleBindingRole, ScopeRbacRoleBindingRoleArgs

    PredefinedRole string
    PredefinedRole is an ENUM representation of the default Kubernetes Roles Possible values are: UNKNOWN, ADMIN, EDIT, VIEW.


    PredefinedRole string
    PredefinedRole is an ENUM representation of the default Kubernetes Roles Possible values are: UNKNOWN, ADMIN, EDIT, VIEW.


    predefinedRole String
    PredefinedRole is an ENUM representation of the default Kubernetes Roles Possible values are: UNKNOWN, ADMIN, EDIT, VIEW.


    predefinedRole string
    PredefinedRole is an ENUM representation of the default Kubernetes Roles Possible values are: UNKNOWN, ADMIN, EDIT, VIEW.


    predefined_role str
    PredefinedRole is an ENUM representation of the default Kubernetes Roles Possible values are: UNKNOWN, ADMIN, EDIT, VIEW.


    predefinedRole String
    PredefinedRole is an ENUM representation of the default Kubernetes Roles Possible values are: UNKNOWN, ADMIN, EDIT, VIEW.


    ScopeRbacRoleBindingState, ScopeRbacRoleBindingStateArgs

    Code string
    (Output) Code describes the state of a RBAC Role Binding resource.
    Code string
    (Output) Code describes the state of a RBAC Role Binding resource.
    code String
    (Output) Code describes the state of a RBAC Role Binding resource.
    code string
    (Output) Code describes the state of a RBAC Role Binding resource.
    code str
    (Output) Code describes the state of a RBAC Role Binding resource.
    code String
    (Output) Code describes the state of a RBAC Role Binding resource.

    Import

    ScopeRBACRoleBinding can be imported using any of these accepted formats:

    • projects/{{project}}/locations/global/scopes/{{scope_id}}/rbacrolebindings/{{scope_rbac_role_binding_id}}

    • {{project}}/{{scope_id}}/{{scope_rbac_role_binding_id}}

    • {{scope_id}}/{{scope_rbac_role_binding_id}}

    When using the pulumi import command, ScopeRBACRoleBinding can be imported using one of the formats above. For example:

    $ pulumi import gcp:gkehub/scopeRbacRoleBinding:ScopeRbacRoleBinding default projects/{{project}}/locations/global/scopes/{{scope_id}}/rbacrolebindings/{{scope_rbac_role_binding_id}}
    
    $ pulumi import gcp:gkehub/scopeRbacRoleBinding:ScopeRbacRoleBinding default {{project}}/{{scope_id}}/{{scope_rbac_role_binding_id}}
    
    $ pulumi import gcp:gkehub/scopeRbacRoleBinding:ScopeRbacRoleBinding default {{scope_id}}/{{scope_rbac_role_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.29.0 published on Wednesday, Jun 26, 2024 by Pulumi