1. Packages
  2. CAST AI
  3. API Docs
  4. RoleBindings
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

castai.RoleBindings

Get Started
castai logo
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

    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,
                     subjects: Optional[Sequence[_iam.RoleBindingsSubjectArgs]] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     scopes: Optional[Sequence[_iam.RoleBindingsScopeArgs]] = 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:iam: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.

    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.
    Subjects List<Pulumi.CastAI.Iam.Inputs.RoleBindingsSubject>
    Description string
    Description of the role binding.
    Name string
    Name of role binding.
    Scopes List<Pulumi.CastAI.Iam.Inputs.RoleBindingsScope>
    Scopes of the role binding.
    OrganizationId string
    CAST AI organization ID.
    RoleId string
    ID of role from role binding.
    Subjects RoleBindingsSubjectArgs
    Description string
    Description of the role binding.
    Name string
    Name of role binding.
    Scopes RoleBindingsScopeArgs
    Scopes of the role binding.
    organizationId String
    CAST AI organization ID.
    roleId String
    ID of role from role binding.
    subjects List<RoleBindingsSubject>
    description String
    Description of the role binding.
    name String
    Name of role binding.
    scopes List<RoleBindingsScope>
    Scopes of the role binding.
    organizationId string
    CAST AI organization ID.
    roleId string
    ID of role from role binding.
    subjects iamRoleBindingsSubject[]
    description string
    Description of the role binding.
    name string
    Name of role binding.
    scopes iamRoleBindingsScope[]
    Scopes of the role binding.
    organization_id str
    CAST AI organization ID.
    role_id str
    ID of role from role binding.
    subjects Sequence[iam.RoleBindingsSubjectArgs]
    description str
    Description of the role binding.
    name str
    Name of role binding.
    scopes Sequence[iam.RoleBindingsScopeArgs]
    Scopes of the role binding.
    organizationId String
    CAST AI organization ID.
    roleId String
    ID of role from role binding.
    subjects List<Property Map>
    description String
    Description of the role binding.
    name String
    Name of role binding.
    scopes List<Property Map>
    Scopes of the role binding.

    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_id: Optional[str] = None,
            scopes: Optional[Sequence[_iam.RoleBindingsScopeArgs]] = None,
            subjects: Optional[Sequence[_iam.RoleBindingsSubjectArgs]] = 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:iam: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.
    RoleId string
    ID of role from role binding.
    Scopes List<Pulumi.CastAI.Iam.Inputs.RoleBindingsScope>
    Scopes of the role binding.
    Subjects List<Pulumi.CastAI.Iam.Inputs.RoleBindingsSubject>
    Description string
    Description of the role binding.
    Name string
    Name of role binding.
    OrganizationId string
    CAST AI organization ID.
    RoleId string
    ID of role from role binding.
    Scopes RoleBindingsScopeArgs
    Scopes of the role binding.
    Subjects RoleBindingsSubjectArgs
    description String
    Description of the role binding.
    name String
    Name of role binding.
    organizationId String
    CAST AI organization ID.
    roleId String
    ID of role from role binding.
    scopes List<RoleBindingsScope>
    Scopes of the role binding.
    subjects List<RoleBindingsSubject>
    description string
    Description of the role binding.
    name string
    Name of role binding.
    organizationId string
    CAST AI organization ID.
    roleId string
    ID of role from role binding.
    scopes iamRoleBindingsScope[]
    Scopes of the role binding.
    subjects iamRoleBindingsSubject[]
    description str
    Description of the role binding.
    name str
    Name of role binding.
    organization_id str
    CAST AI organization ID.
    role_id str
    ID of role from role binding.
    scopes Sequence[iam.RoleBindingsScopeArgs]
    Scopes of the role binding.
    subjects Sequence[iam.RoleBindingsSubjectArgs]
    description String
    Description of the role binding.
    name String
    Name of role binding.
    organizationId String
    CAST AI organization ID.
    roleId String
    ID of role from role binding.
    scopes List<Property Map>
    Scopes of the role binding.
    subjects List<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.

    Package Details

    Repository
    castai castai/pulumi-castai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI
      Meet Neo: Your AI Platform Teammate