gcp.gkehub.ScopeRbacRoleBinding
Explore with Pulumi AI
RBACRoleBinding represents a rbacrolebinding across the Fleet.
To get more information about ScopeRBACRoleBinding, see:
- API documentation
- How-to Guides
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_22375"});
const scopeRbacRoleBinding = new gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding", {
scopeRbacRoleBindingId: "tf-test-scope-rbac-role-binding_29439",
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_22375")
scope_rbac_role_binding = gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding",
scope_rbac_role_binding_id="tf-test-scope-rbac-role-binding_29439",
scope_id=scope.scope_id,
user="test-email@gmail.com",
role={
"predefined_role": "ADMIN",
},
labels={
"key": "value",
},
opts = pulumi.ResourceOptions(depends_on=[scope]))
package main
import (
"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 {
scope, err := gkehub.NewScope(ctx, "scope", &gkehub.ScopeArgs{
ScopeId: pulumi.String("tf-test-scope_22375"),
})
if err != nil {
return err
}
_, err = gkehub.NewScopeRbacRoleBinding(ctx, "scope_rbac_role_binding", &gkehub.ScopeRbacRoleBindingArgs{
ScopeRbacRoleBindingId: pulumi.String("tf-test-scope-rbac-role-binding_29439"),
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_22375",
});
var scopeRbacRoleBinding = new Gcp.GkeHub.ScopeRbacRoleBinding("scope_rbac_role_binding", new()
{
ScopeRbacRoleBindingId = "tf-test-scope-rbac-role-binding_29439",
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_22375")
.build());
var scopeRbacRoleBinding = new ScopeRbacRoleBinding("scopeRbacRoleBinding", ScopeRbacRoleBindingArgs.builder()
.scopeRbacRoleBindingId("tf-test-scope-rbac-role-binding_29439")
.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_22375
scopeRbacRoleBinding:
type: gcp:gkehub:ScopeRbacRoleBinding
name: scope_rbac_role_binding
properties:
scopeRbacRoleBindingId: tf-test-scope-rbac-role-binding_29439
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={
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ScopeRbacRoleBinding resource accepts the following input properties:
- Role
Scope
Rbac Role Binding Role - Role to bind to the principal. Structure is documented below.
- Scope
Id string - Id of the scope
- Scope
Rbac stringRole Binding Id - 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
Scope
Rbac Role Binding Role Args - Role to bind to the principal. Structure is documented below.
- Scope
Id string - Id of the scope
- Scope
Rbac stringRole Binding Id - 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
Scope
Rbac Role Binding Role - Role to bind to the principal. Structure is documented below.
- scope
Id String - Id of the scope
- scope
Rbac StringRole Binding Id - 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
Scope
Rbac Role Binding Role - Role to bind to the principal. Structure is documented below.
- scope
Id string - Id of the scope
- scope
Rbac stringRole Binding Id - 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
Scope
Rbac Role Binding Role Args - Role to bind to the principal. Structure is documented below.
- scope_
id str - Id of the scope
- scope_
rbac_ strrole_ binding_ id - 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.
- scope
Id String - Id of the scope
- scope
Rbac StringRole Binding Id - 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:
- Create
Time string - Time the RBAC Role Binding was created in UTC.
- Delete
Time string - Time the RBAC Role Binding 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 RBAC Role Binding
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- States
List<Scope
Rbac Role Binding State> - State of the RBAC Role Binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time string - Time the RBAC Role Binding was updated in UTC.
- Create
Time string - Time the RBAC Role Binding was created in UTC.
- Delete
Time string - Time the RBAC Role Binding 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 RBAC Role Binding
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- States
[]Scope
Rbac Role Binding State Type - State of the RBAC Role Binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time string - Time the RBAC Role Binding was updated in UTC.
- create
Time String - Time the RBAC Role Binding was created in UTC.
- delete
Time String - Time the RBAC Role Binding 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 RBAC Role Binding
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- states
List<Scope
Rbac Role Binding State> - State of the RBAC Role Binding resource. Structure is documented below.
- uid String
- Google-generated UUID for this resource.
- update
Time String - Time the RBAC Role Binding was updated in UTC.
- create
Time string - Time the RBAC Role Binding was created in UTC.
- delete
Time string - Time the RBAC Role Binding 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 RBAC Role Binding
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- states
Scope
Rbac Role Binding State[] - State of the RBAC Role Binding resource. Structure is documented below.
- uid string
- Google-generated UUID for this resource.
- update
Time 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[Scope
Rbac Role Binding State] - 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.
- create
Time String - Time the RBAC Role Binding was created in UTC.
- delete
Time String - Time the RBAC Role Binding 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 RBAC Role Binding
- 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 RBAC Role Binding resource. Structure is documented below.
- uid String
- Google-generated UUID for this resource.
- update
Time 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.
- Create
Time string - Time the RBAC Role Binding was created in UTC.
- Delete
Time string - Time the RBAC Role Binding 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.
- 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
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Role
Scope
Rbac Role Binding Role - Role to bind to the principal. Structure is documented below.
- Scope
Id string - Id of the scope
- Scope
Rbac stringRole Binding Id - The client-provided identifier of the RBAC Role Binding.
- States
List<Scope
Rbac Role Binding State> - State of the RBAC Role Binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time 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 string - Time the RBAC Role Binding was created in UTC.
- Delete
Time string - Time the RBAC Role Binding 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.
- 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
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Role
Scope
Rbac Role Binding Role Args - Role to bind to the principal. Structure is documented below.
- Scope
Id string - Id of the scope
- Scope
Rbac stringRole Binding Id - The client-provided identifier of the RBAC Role Binding.
- States
[]Scope
Rbac Role Binding State Type Args - State of the RBAC Role Binding resource. Structure is documented below.
- Uid string
- Google-generated UUID for this resource.
- Update
Time 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 String - Time the RBAC Role Binding was created in UTC.
- delete
Time String - Time the RBAC Role Binding 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.
- 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
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- role
Scope
Rbac Role Binding Role - Role to bind to the principal. Structure is documented below.
- scope
Id String - Id of the scope
- scope
Rbac StringRole Binding Id - The client-provided identifier of the RBAC Role Binding.
- states
List<Scope
Rbac Role Binding State> - State of the RBAC Role Binding resource. Structure is documented below.
- uid String
- Google-generated UUID for this resource.
- update
Time 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 string - Time the RBAC Role Binding was created in UTC.
- delete
Time string - Time the RBAC Role Binding 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.
- 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
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- role
Scope
Rbac Role Binding Role - Role to bind to the principal. Structure is documented below.
- scope
Id string - Id of the scope
- scope
Rbac stringRole Binding Id - The client-provided identifier of the RBAC Role Binding.
- states
Scope
Rbac Role Binding State[] - State of the RBAC Role Binding resource. Structure is documented below.
- uid string
- Google-generated UUID for this resource.
- update
Time 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
Scope
Rbac Role Binding Role Args - Role to bind to the principal. Structure is documented below.
- scope_
id str - Id of the scope
- scope_
rbac_ strrole_ binding_ id - The client-provided identifier of the RBAC Role Binding.
- states
Sequence[Scope
Rbac Role Binding State Args] - 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"
- create
Time String - Time the RBAC Role Binding was created in UTC.
- delete
Time String - Time the RBAC Role Binding 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.
- 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
- pulumi
Labels 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.
- scope
Id String - Id of the scope
- scope
Rbac StringRole Binding Id - 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.
- update
Time 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
- Predefined
Role string - PredefinedRole is an ENUM representation of the default Kubernetes Roles
Possible values are:
UNKNOWN
,ADMIN
,EDIT
,VIEW
.
- Predefined
Role string - PredefinedRole is an ENUM representation of the default Kubernetes Roles
Possible values are:
UNKNOWN
,ADMIN
,EDIT
,VIEW
.
- predefined
Role String - PredefinedRole is an ENUM representation of the default Kubernetes Roles
Possible values are:
UNKNOWN
,ADMIN
,EDIT
,VIEW
.
- predefined
Role 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
.
- predefined
Role 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.