1. Packages
  2. Castai Provider
  3. API Docs
  4. RoleBindings
castai 7.44.0 published on Friday, Mar 21, 2025 by castai

castai.RoleBindings

Explore with Pulumi AI

castai logo
castai 7.44.0 published on Friday, Mar 21, 2025 by castai

    CAST AI organization group resource to manage organization groups

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as castai from "@pulumi/castai";
    
    const test = castai.getOrganization({
        name: "My test organization name",
    });
    const ownerTest = new castai.RoleBindings("ownerTest", {
        organizationId: test.then(test => test.id),
        description: "Owner access for whole organization.",
        roleId: "3e1050c7-6593-4298-94bb-154637911d78",
        scope: {
            kind: "organization",
            resourceId: test.then(test => test.id),
        },
        subjects: [{
            subjects: [
                {
                    kind: "user",
                    userId: "21c133e2-a899-4f51-b297-830bc62e51d6",
                },
                {
                    kind: "user",
                    userId: "0d1efe35-7ecb-4821-a52d-fd56c9710a64",
                },
                {
                    kind: "group",
                    groupId: "651734a7-0d0c-49f3-9654-dd92175febaa",
                },
                {
                    kind: "service_account",
                    serviceAccountId: "3bf49513-3e9c-4a12-962c-af3bb1a85074",
                },
            ],
        }],
    });
    const viewerTest = new castai.RoleBindings("viewerTest", {
        organizationId: test.then(test => test.id),
        description: "Viewer access for on of the clusters.",
        roleId: "6fc95bd7-6049-4735-80b0-ce5ccde71cb1",
        scope: {
            kind: "cluster",
            resourceId: "7063d31c-897e-48ef-a322-bdfda6fdbcfb",
        },
        subjects: [{
            subjects: [{
                kind: "user",
                userId: "21c133e2-a899-4f51-b297-830bc62e51d6",
            }],
        }],
    });
    
    import pulumi
    import pulumi_castai as castai
    
    test = castai.get_organization(name="My test organization name")
    owner_test = castai.RoleBindings("ownerTest",
        organization_id=test.id,
        description="Owner access for whole organization.",
        role_id="3e1050c7-6593-4298-94bb-154637911d78",
        scope={
            "kind": "organization",
            "resource_id": test.id,
        },
        subjects=[{
            "subjects": [
                {
                    "kind": "user",
                    "user_id": "21c133e2-a899-4f51-b297-830bc62e51d6",
                },
                {
                    "kind": "user",
                    "user_id": "0d1efe35-7ecb-4821-a52d-fd56c9710a64",
                },
                {
                    "kind": "group",
                    "group_id": "651734a7-0d0c-49f3-9654-dd92175febaa",
                },
                {
                    "kind": "service_account",
                    "service_account_id": "3bf49513-3e9c-4a12-962c-af3bb1a85074",
                },
            ],
        }])
    viewer_test = castai.RoleBindings("viewerTest",
        organization_id=test.id,
        description="Viewer access for on of the clusters.",
        role_id="6fc95bd7-6049-4735-80b0-ce5ccde71cb1",
        scope={
            "kind": "cluster",
            "resource_id": "7063d31c-897e-48ef-a322-bdfda6fdbcfb",
        },
        subjects=[{
            "subjects": [{
                "kind": "user",
                "user_id": "21c133e2-a899-4f51-b297-830bc62e51d6",
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/castai/v7/castai"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := castai.GetOrganization(ctx, &castai.GetOrganizationArgs{
    			Name: "My test organization name",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = castai.NewRoleBindings(ctx, "ownerTest", &castai.RoleBindingsArgs{
    			OrganizationId: pulumi.String(test.Id),
    			Description:    pulumi.String("Owner access for whole organization."),
    			RoleId:         pulumi.String("3e1050c7-6593-4298-94bb-154637911d78"),
    			Scope: &castai.RoleBindingsScopeArgs{
    				Kind:       pulumi.String("organization"),
    				ResourceId: pulumi.String(test.Id),
    			},
    			Subjects: castai.RoleBindingsSubjectArray{
    				&castai.RoleBindingsSubjectArgs{
    					Subjects: castai.RoleBindingsSubjectSubjectArray{
    						&castai.RoleBindingsSubjectSubjectArgs{
    							Kind:   pulumi.String("user"),
    							UserId: pulumi.String("21c133e2-a899-4f51-b297-830bc62e51d6"),
    						},
    						&castai.RoleBindingsSubjectSubjectArgs{
    							Kind:   pulumi.String("user"),
    							UserId: pulumi.String("0d1efe35-7ecb-4821-a52d-fd56c9710a64"),
    						},
    						&castai.RoleBindingsSubjectSubjectArgs{
    							Kind:    pulumi.String("group"),
    							GroupId: pulumi.String("651734a7-0d0c-49f3-9654-dd92175febaa"),
    						},
    						&castai.RoleBindingsSubjectSubjectArgs{
    							Kind:             pulumi.String("service_account"),
    							ServiceAccountId: pulumi.String("3bf49513-3e9c-4a12-962c-af3bb1a85074"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = castai.NewRoleBindings(ctx, "viewerTest", &castai.RoleBindingsArgs{
    			OrganizationId: pulumi.String(test.Id),
    			Description:    pulumi.String("Viewer access for on of the clusters."),
    			RoleId:         pulumi.String("6fc95bd7-6049-4735-80b0-ce5ccde71cb1"),
    			Scope: &castai.RoleBindingsScopeArgs{
    				Kind:       pulumi.String("cluster"),
    				ResourceId: pulumi.String("7063d31c-897e-48ef-a322-bdfda6fdbcfb"),
    			},
    			Subjects: castai.RoleBindingsSubjectArray{
    				&castai.RoleBindingsSubjectArgs{
    					Subjects: castai.RoleBindingsSubjectSubjectArray{
    						&castai.RoleBindingsSubjectSubjectArgs{
    							Kind:   pulumi.String("user"),
    							UserId: pulumi.String("21c133e2-a899-4f51-b297-830bc62e51d6"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Castai = Pulumi.Castai;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Castai.GetOrganization.Invoke(new()
        {
            Name = "My test organization name",
        });
    
        var ownerTest = new Castai.RoleBindings("ownerTest", new()
        {
            OrganizationId = test.Apply(getOrganizationResult => getOrganizationResult.Id),
            Description = "Owner access for whole organization.",
            RoleId = "3e1050c7-6593-4298-94bb-154637911d78",
            Scope = new Castai.Inputs.RoleBindingsScopeArgs
            {
                Kind = "organization",
                ResourceId = test.Apply(getOrganizationResult => getOrganizationResult.Id),
            },
            Subjects = new[]
            {
                new Castai.Inputs.RoleBindingsSubjectArgs
                {
                    Subjects = new[]
                    {
                        new Castai.Inputs.RoleBindingsSubjectSubjectArgs
                        {
                            Kind = "user",
                            UserId = "21c133e2-a899-4f51-b297-830bc62e51d6",
                        },
                        new Castai.Inputs.RoleBindingsSubjectSubjectArgs
                        {
                            Kind = "user",
                            UserId = "0d1efe35-7ecb-4821-a52d-fd56c9710a64",
                        },
                        new Castai.Inputs.RoleBindingsSubjectSubjectArgs
                        {
                            Kind = "group",
                            GroupId = "651734a7-0d0c-49f3-9654-dd92175febaa",
                        },
                        new Castai.Inputs.RoleBindingsSubjectSubjectArgs
                        {
                            Kind = "service_account",
                            ServiceAccountId = "3bf49513-3e9c-4a12-962c-af3bb1a85074",
                        },
                    },
                },
            },
        });
    
        var viewerTest = new Castai.RoleBindings("viewerTest", new()
        {
            OrganizationId = test.Apply(getOrganizationResult => getOrganizationResult.Id),
            Description = "Viewer access for on of the clusters.",
            RoleId = "6fc95bd7-6049-4735-80b0-ce5ccde71cb1",
            Scope = new Castai.Inputs.RoleBindingsScopeArgs
            {
                Kind = "cluster",
                ResourceId = "7063d31c-897e-48ef-a322-bdfda6fdbcfb",
            },
            Subjects = new[]
            {
                new Castai.Inputs.RoleBindingsSubjectArgs
                {
                    Subjects = new[]
                    {
                        new Castai.Inputs.RoleBindingsSubjectSubjectArgs
                        {
                            Kind = "user",
                            UserId = "21c133e2-a899-4f51-b297-830bc62e51d6",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.castai.CastaiFunctions;
    import com.pulumi.castai.inputs.GetOrganizationArgs;
    import com.pulumi.castai.RoleBindings;
    import com.pulumi.castai.RoleBindingsArgs;
    import com.pulumi.castai.inputs.RoleBindingsScopeArgs;
    import com.pulumi.castai.inputs.RoleBindingsSubjectArgs;
    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) {
            final var test = CastaiFunctions.getOrganization(GetOrganizationArgs.builder()
                .name("My test organization name")
                .build());
    
            var ownerTest = new RoleBindings("ownerTest", RoleBindingsArgs.builder()
                .organizationId(test.applyValue(getOrganizationResult -> getOrganizationResult.id()))
                .description("Owner access for whole organization.")
                .roleId("3e1050c7-6593-4298-94bb-154637911d78")
                .scope(RoleBindingsScopeArgs.builder()
                    .kind("organization")
                    .resourceId(test.applyValue(getOrganizationResult -> getOrganizationResult.id()))
                    .build())
                .subjects(RoleBindingsSubjectArgs.builder()
                    .subjects(                
                        RoleBindingsSubjectSubjectArgs.builder()
                            .kind("user")
                            .userId("21c133e2-a899-4f51-b297-830bc62e51d6")
                            .build(),
                        RoleBindingsSubjectSubjectArgs.builder()
                            .kind("user")
                            .userId("0d1efe35-7ecb-4821-a52d-fd56c9710a64")
                            .build(),
                        RoleBindingsSubjectSubjectArgs.builder()
                            .kind("group")
                            .groupId("651734a7-0d0c-49f3-9654-dd92175febaa")
                            .build(),
                        RoleBindingsSubjectSubjectArgs.builder()
                            .kind("service_account")
                            .serviceAccountId("3bf49513-3e9c-4a12-962c-af3bb1a85074")
                            .build())
                    .build())
                .build());
    
            var viewerTest = new RoleBindings("viewerTest", RoleBindingsArgs.builder()
                .organizationId(test.applyValue(getOrganizationResult -> getOrganizationResult.id()))
                .description("Viewer access for on of the clusters.")
                .roleId("6fc95bd7-6049-4735-80b0-ce5ccde71cb1")
                .scope(RoleBindingsScopeArgs.builder()
                    .kind("cluster")
                    .resourceId("7063d31c-897e-48ef-a322-bdfda6fdbcfb")
                    .build())
                .subjects(RoleBindingsSubjectArgs.builder()
                    .subjects(RoleBindingsSubjectSubjectArgs.builder()
                        .kind("user")
                        .userId("21c133e2-a899-4f51-b297-830bc62e51d6")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ownerTest:
        type: castai:RoleBindings
        properties:
          organizationId: ${test.id}
          description: Owner access for whole organization.
          roleId: 3e1050c7-6593-4298-94bb-154637911d78
          scope:
            kind: organization
            resourceId: ${test.id}
          subjects:
            - subjects:
                - kind: user
                  userId: 21c133e2-a899-4f51-b297-830bc62e51d6
                - kind: user
                  userId: 0d1efe35-7ecb-4821-a52d-fd56c9710a64
                - kind: group
                  groupId: 651734a7-0d0c-49f3-9654-dd92175febaa
                - kind: service_account
                  serviceAccountId: 3bf49513-3e9c-4a12-962c-af3bb1a85074
      viewerTest:
        type: castai:RoleBindings
        properties:
          organizationId: ${test.id}
          description: Viewer access for on of the clusters.
          roleId: 6fc95bd7-6049-4735-80b0-ce5ccde71cb1
          scope:
            kind: cluster
            resourceId: 7063d31c-897e-48ef-a322-bdfda6fdbcfb
          subjects:
            - subjects:
                - kind: user
                  userId: 21c133e2-a899-4f51-b297-830bc62e51d6
    variables:
      test:
        fn::invoke:
          function: castai:getOrganization
          arguments:
            name: My test organization name
    

    Create RoleBindings Resource

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

    Constructor syntax

    new RoleBindings(name: string, args: RoleBindingsArgs, opts?: CustomResourceOptions);
    @overload
    def RoleBindings(resource_name: str,
                     args: RoleBindingsArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def RoleBindings(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     organization_id: Optional[str] = None,
                     role_id: Optional[str] = None,
                     scope: Optional[RoleBindingsScopeArgs] = None,
                     subjects: Optional[Sequence[RoleBindingsSubjectArgs]] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     role_bindings_id: Optional[str] = None,
                     timeouts: Optional[RoleBindingsTimeoutsArgs] = None)
    func NewRoleBindings(ctx *Context, name string, args RoleBindingsArgs, opts ...ResourceOption) (*RoleBindings, error)
    public RoleBindings(string name, RoleBindingsArgs args, CustomResourceOptions? opts = null)
    public RoleBindings(String name, RoleBindingsArgs args)
    public RoleBindings(String name, RoleBindingsArgs args, CustomResourceOptions options)
    
    type: castai:RoleBindings
    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 RoleBindingsArgs
    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 RoleBindingsArgs
    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 RoleBindingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RoleBindingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RoleBindingsArgs
    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 roleBindingsResource = new Castai.RoleBindings("roleBindingsResource", new()
    {
        OrganizationId = "string",
        RoleId = "string",
        Scope = new Castai.Inputs.RoleBindingsScopeArgs
        {
            Kind = "string",
            ResourceId = "string",
        },
        Subjects = new[]
        {
            new Castai.Inputs.RoleBindingsSubjectArgs
            {
                Subjects = new[]
                {
                    new Castai.Inputs.RoleBindingsSubjectSubjectArgs
                    {
                        Kind = "string",
                        GroupId = "string",
                        ServiceAccountId = "string",
                        UserId = "string",
                    },
                },
            },
        },
        Description = "string",
        Name = "string",
        RoleBindingsId = "string",
        Timeouts = new Castai.Inputs.RoleBindingsTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := castai.NewRoleBindings(ctx, "roleBindingsResource", &castai.RoleBindingsArgs{
    OrganizationId: pulumi.String("string"),
    RoleId: pulumi.String("string"),
    Scope: &.RoleBindingsScopeArgs{
    Kind: pulumi.String("string"),
    ResourceId: pulumi.String("string"),
    },
    Subjects: .RoleBindingsSubjectArray{
    &.RoleBindingsSubjectArgs{
    Subjects: .RoleBindingsSubjectSubjectArray{
    &.RoleBindingsSubjectSubjectArgs{
    Kind: pulumi.String("string"),
    GroupId: pulumi.String("string"),
    ServiceAccountId: pulumi.String("string"),
    UserId: pulumi.String("string"),
    },
    },
    },
    },
    Description: pulumi.String("string"),
    Name: pulumi.String("string"),
    RoleBindingsId: pulumi.String("string"),
    Timeouts: &.RoleBindingsTimeoutsArgs{
    Create: pulumi.String("string"),
    Delete: pulumi.String("string"),
    Update: pulumi.String("string"),
    },
    })
    
    var roleBindingsResource = new RoleBindings("roleBindingsResource", RoleBindingsArgs.builder()
        .organizationId("string")
        .roleId("string")
        .scope(RoleBindingsScopeArgs.builder()
            .kind("string")
            .resourceId("string")
            .build())
        .subjects(RoleBindingsSubjectArgs.builder()
            .subjects(RoleBindingsSubjectSubjectArgs.builder()
                .kind("string")
                .groupId("string")
                .serviceAccountId("string")
                .userId("string")
                .build())
            .build())
        .description("string")
        .name("string")
        .roleBindingsId("string")
        .timeouts(RoleBindingsTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    role_bindings_resource = castai.RoleBindings("roleBindingsResource",
        organization_id="string",
        role_id="string",
        scope={
            "kind": "string",
            "resource_id": "string",
        },
        subjects=[{
            "subjects": [{
                "kind": "string",
                "group_id": "string",
                "service_account_id": "string",
                "user_id": "string",
            }],
        }],
        description="string",
        name="string",
        role_bindings_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const roleBindingsResource = new castai.RoleBindings("roleBindingsResource", {
        organizationId: "string",
        roleId: "string",
        scope: {
            kind: "string",
            resourceId: "string",
        },
        subjects: [{
            subjects: [{
                kind: "string",
                groupId: "string",
                serviceAccountId: "string",
                userId: "string",
            }],
        }],
        description: "string",
        name: "string",
        roleBindingsId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: castai:RoleBindings
    properties:
        description: string
        name: string
        organizationId: string
        roleBindingsId: string
        roleId: string
        scope:
            kind: string
            resourceId: string
        subjects:
            - subjects:
                - groupId: string
                  kind: string
                  serviceAccountId: string
                  userId: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    OrganizationId string
    CAST AI organization ID.
    RoleId string
    ID of role from role binding.
    Scope RoleBindingsScope
    Scope of the role binding.
    Subjects List<RoleBindingsSubject>
    Description string
    Description of the role binding.
    Name string
    Name of role binding.
    RoleBindingsId string
    The ID of this resource.
    Timeouts RoleBindingsTimeouts
    OrganizationId string
    CAST AI organization ID.
    RoleId string
    ID of role from role binding.
    Scope RoleBindingsScopeArgs
    Scope of the role binding.
    Subjects []RoleBindingsSubjectArgs
    Description string
    Description of the role binding.
    Name string
    Name of role binding.
    RoleBindingsId string
    The ID of this resource.
    Timeouts RoleBindingsTimeoutsArgs
    organizationId String
    CAST AI organization ID.
    roleId String
    ID of role from role binding.
    scope RoleBindingsScope
    Scope of the role binding.
    subjects List<RoleBindingsSubject>
    description String
    Description of the role binding.
    name String
    Name of role binding.
    roleBindingsId String
    The ID of this resource.
    timeouts RoleBindingsTimeouts
    organizationId string
    CAST AI organization ID.
    roleId string
    ID of role from role binding.
    scope RoleBindingsScope
    Scope of the role binding.
    subjects RoleBindingsSubject[]
    description string
    Description of the role binding.
    name string
    Name of role binding.
    roleBindingsId string
    The ID of this resource.
    timeouts RoleBindingsTimeouts
    organization_id str
    CAST AI organization ID.
    role_id str
    ID of role from role binding.
    scope RoleBindingsScopeArgs
    Scope of the role binding.
    subjects Sequence[RoleBindingsSubjectArgs]
    description str
    Description of the role binding.
    name str
    Name of role binding.
    role_bindings_id str
    The ID of this resource.
    timeouts RoleBindingsTimeoutsArgs
    organizationId String
    CAST AI organization ID.
    roleId String
    ID of role from role binding.
    scope Property Map
    Scope of the role binding.
    subjects List<Property Map>
    description String
    Description of the role binding.
    name String
    Name of role binding.
    roleBindingsId String
    The ID of this resource.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RoleBindings Resource

    Get an existing RoleBindings 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?: RoleBindingsState, opts?: CustomResourceOptions): RoleBindings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            role_bindings_id: Optional[str] = None,
            role_id: Optional[str] = None,
            scope: Optional[RoleBindingsScopeArgs] = None,
            subjects: Optional[Sequence[RoleBindingsSubjectArgs]] = None,
            timeouts: Optional[RoleBindingsTimeoutsArgs] = None) -> RoleBindings
    func GetRoleBindings(ctx *Context, name string, id IDInput, state *RoleBindingsState, opts ...ResourceOption) (*RoleBindings, error)
    public static RoleBindings Get(string name, Input<string> id, RoleBindingsState? state, CustomResourceOptions? opts = null)
    public static RoleBindings get(String name, Output<String> id, RoleBindingsState state, CustomResourceOptions options)
    resources:  _:    type: castai:RoleBindings    get:      id: ${id}
    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:
    Description string
    Description of the role binding.
    Name string
    Name of role binding.
    OrganizationId string
    CAST AI organization ID.
    RoleBindingsId string
    The ID of this resource.
    RoleId string
    ID of role from role binding.
    Scope RoleBindingsScope
    Scope of the role binding.
    Subjects List<RoleBindingsSubject>
    Timeouts RoleBindingsTimeouts
    Description string
    Description of the role binding.
    Name string
    Name of role binding.
    OrganizationId string
    CAST AI organization ID.
    RoleBindingsId string
    The ID of this resource.
    RoleId string
    ID of role from role binding.
    Scope RoleBindingsScopeArgs
    Scope of the role binding.
    Subjects []RoleBindingsSubjectArgs
    Timeouts RoleBindingsTimeoutsArgs
    description String
    Description of the role binding.
    name String
    Name of role binding.
    organizationId String
    CAST AI organization ID.
    roleBindingsId String
    The ID of this resource.
    roleId String
    ID of role from role binding.
    scope RoleBindingsScope
    Scope of the role binding.
    subjects List<RoleBindingsSubject>
    timeouts RoleBindingsTimeouts
    description string
    Description of the role binding.
    name string
    Name of role binding.
    organizationId string
    CAST AI organization ID.
    roleBindingsId string
    The ID of this resource.
    roleId string
    ID of role from role binding.
    scope RoleBindingsScope
    Scope of the role binding.
    subjects RoleBindingsSubject[]
    timeouts RoleBindingsTimeouts
    description str
    Description of the role binding.
    name str
    Name of role binding.
    organization_id str
    CAST AI organization ID.
    role_bindings_id str
    The ID of this resource.
    role_id str
    ID of role from role binding.
    scope RoleBindingsScopeArgs
    Scope of the role binding.
    subjects Sequence[RoleBindingsSubjectArgs]
    timeouts RoleBindingsTimeoutsArgs
    description String
    Description of the role binding.
    name String
    Name of role binding.
    organizationId String
    CAST AI organization ID.
    roleBindingsId String
    The ID of this resource.
    roleId String
    ID of role from role binding.
    scope Property Map
    Scope of the role binding.
    subjects List<Property Map>
    timeouts Property Map

    Supporting Types

    RoleBindingsScope, RoleBindingsScopeArgs

    Kind string
    Scope of the role binding Supported values include: organization, cluster.
    ResourceId string
    ID of the scope resource.
    Kind string
    Scope of the role binding Supported values include: organization, cluster.
    ResourceId string
    ID of the scope resource.
    kind String
    Scope of the role binding Supported values include: organization, cluster.
    resourceId String
    ID of the scope resource.
    kind string
    Scope of the role binding Supported values include: organization, cluster.
    resourceId string
    ID of the scope resource.
    kind str
    Scope of the role binding Supported values include: organization, cluster.
    resource_id str
    ID of the scope resource.
    kind String
    Scope of the role binding Supported values include: organization, cluster.
    resourceId String
    ID of the scope resource.

    RoleBindingsSubject, RoleBindingsSubjectArgs

    RoleBindingsSubjectSubject, RoleBindingsSubjectSubjectArgs

    Kind string
    Kind of the subject. Supported values include: user, service_account, group.
    GroupId string
    Optional, required only if kind is group.
    ServiceAccountId string
    Optional, required only if kind is service_account.
    UserId string
    Optional, required only if kind is user.
    Kind string
    Kind of the subject. Supported values include: user, service_account, group.
    GroupId string
    Optional, required only if kind is group.
    ServiceAccountId string
    Optional, required only if kind is service_account.
    UserId string
    Optional, required only if kind is user.
    kind String
    Kind of the subject. Supported values include: user, service_account, group.
    groupId String
    Optional, required only if kind is group.
    serviceAccountId String
    Optional, required only if kind is service_account.
    userId String
    Optional, required only if kind is user.
    kind string
    Kind of the subject. Supported values include: user, service_account, group.
    groupId string
    Optional, required only if kind is group.
    serviceAccountId string
    Optional, required only if kind is service_account.
    userId string
    Optional, required only if kind is user.
    kind str
    Kind of the subject. Supported values include: user, service_account, group.
    group_id str
    Optional, required only if kind is group.
    service_account_id str
    Optional, required only if kind is service_account.
    user_id str
    Optional, required only if kind is user.
    kind String
    Kind of the subject. Supported values include: user, service_account, group.
    groupId String
    Optional, required only if kind is group.
    serviceAccountId String
    Optional, required only if kind is service_account.
    userId String
    Optional, required only if kind is user.

    RoleBindingsTimeouts, RoleBindingsTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    castai castai/terraform-provider-castai
    License
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    castai 7.44.0 published on Friday, Mar 21, 2025 by castai