1. Packages
  2. Packages
  3. stackit
  4. API Docs
  5. AuthorizationOrganizationCustomRole
Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud

    Custom Role resource schema.

    Example Usage

    resource "stackit_authorization_organization_custom_role" "example" {
      resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name        = "my.custom.role"
      description = "Some description"
      permissions = [
        "iam.subject.get"
      ]
    }
    
    # Only use the import statement, if you want to import an existing custom role
    import {
      to = stackit_authorization_organization_custom_role.import-example
      id = "${var.organization_id},${var.custom_role_id}"
    }
    

    Create AuthorizationOrganizationCustomRole Resource

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

    Constructor syntax

    new AuthorizationOrganizationCustomRole(name: string, args: AuthorizationOrganizationCustomRoleArgs, opts?: CustomResourceOptions);
    @overload
    def AuthorizationOrganizationCustomRole(resource_name: str,
                                            args: AuthorizationOrganizationCustomRoleArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthorizationOrganizationCustomRole(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            description: Optional[str] = None,
                                            permissions: Optional[Sequence[str]] = None,
                                            resource_id: Optional[str] = None,
                                            name: Optional[str] = None)
    func NewAuthorizationOrganizationCustomRole(ctx *Context, name string, args AuthorizationOrganizationCustomRoleArgs, opts ...ResourceOption) (*AuthorizationOrganizationCustomRole, error)
    public AuthorizationOrganizationCustomRole(string name, AuthorizationOrganizationCustomRoleArgs args, CustomResourceOptions? opts = null)
    public AuthorizationOrganizationCustomRole(String name, AuthorizationOrganizationCustomRoleArgs args)
    public AuthorizationOrganizationCustomRole(String name, AuthorizationOrganizationCustomRoleArgs args, CustomResourceOptions options)
    
    type: stackit:AuthorizationOrganizationCustomRole
    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 AuthorizationOrganizationCustomRoleArgs
    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 AuthorizationOrganizationCustomRoleArgs
    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 AuthorizationOrganizationCustomRoleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthorizationOrganizationCustomRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthorizationOrganizationCustomRoleArgs
    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 authorizationOrganizationCustomRoleResource = new Stackit.AuthorizationOrganizationCustomRole("authorizationOrganizationCustomRoleResource", new()
    {
        Description = "string",
        Permissions = new[]
        {
            "string",
        },
        ResourceId = "string",
        Name = "string",
    });
    
    example, err := stackit.NewAuthorizationOrganizationCustomRole(ctx, "authorizationOrganizationCustomRoleResource", &stackit.AuthorizationOrganizationCustomRoleArgs{
    	Description: pulumi.String("string"),
    	Permissions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ResourceId: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    })
    
    var authorizationOrganizationCustomRoleResource = new AuthorizationOrganizationCustomRole("authorizationOrganizationCustomRoleResource", AuthorizationOrganizationCustomRoleArgs.builder()
        .description("string")
        .permissions("string")
        .resourceId("string")
        .name("string")
        .build());
    
    authorization_organization_custom_role_resource = stackit.AuthorizationOrganizationCustomRole("authorizationOrganizationCustomRoleResource",
        description="string",
        permissions=["string"],
        resource_id="string",
        name="string")
    
    const authorizationOrganizationCustomRoleResource = new stackit.AuthorizationOrganizationCustomRole("authorizationOrganizationCustomRoleResource", {
        description: "string",
        permissions: ["string"],
        resourceId: "string",
        name: "string",
    });
    
    type: stackit:AuthorizationOrganizationCustomRole
    properties:
        description: string
        name: string
        permissions:
            - string
        resourceId: string
    

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

    Description string
    A human readable description of the role.
    Permissions List<string>
    Permissions for the role
    ResourceId string
    Resource to add the custom role to.
    Name string
    Name of the role
    Description string
    A human readable description of the role.
    Permissions []string
    Permissions for the role
    ResourceId string
    Resource to add the custom role to.
    Name string
    Name of the role
    description String
    A human readable description of the role.
    permissions List<String>
    Permissions for the role
    resourceId String
    Resource to add the custom role to.
    name String
    Name of the role
    description string
    A human readable description of the role.
    permissions string[]
    Permissions for the role
    resourceId string
    Resource to add the custom role to.
    name string
    Name of the role
    description str
    A human readable description of the role.
    permissions Sequence[str]
    Permissions for the role
    resource_id str
    Resource to add the custom role to.
    name str
    Name of the role
    description String
    A human readable description of the role.
    permissions List<String>
    Permissions for the role
    resourceId String
    Resource to add the custom role to.
    name String
    Name of the role

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RoleId string
    The ID of the role.
    Id string
    The provider-assigned unique ID for this managed resource.
    RoleId string
    The ID of the role.
    id String
    The provider-assigned unique ID for this managed resource.
    roleId String
    The ID of the role.
    id string
    The provider-assigned unique ID for this managed resource.
    roleId string
    The ID of the role.
    id str
    The provider-assigned unique ID for this managed resource.
    role_id str
    The ID of the role.
    id String
    The provider-assigned unique ID for this managed resource.
    roleId String
    The ID of the role.

    Look up Existing AuthorizationOrganizationCustomRole Resource

    Get an existing AuthorizationOrganizationCustomRole 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?: AuthorizationOrganizationCustomRoleState, opts?: CustomResourceOptions): AuthorizationOrganizationCustomRole
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            permissions: Optional[Sequence[str]] = None,
            resource_id: Optional[str] = None,
            role_id: Optional[str] = None) -> AuthorizationOrganizationCustomRole
    func GetAuthorizationOrganizationCustomRole(ctx *Context, name string, id IDInput, state *AuthorizationOrganizationCustomRoleState, opts ...ResourceOption) (*AuthorizationOrganizationCustomRole, error)
    public static AuthorizationOrganizationCustomRole Get(string name, Input<string> id, AuthorizationOrganizationCustomRoleState? state, CustomResourceOptions? opts = null)
    public static AuthorizationOrganizationCustomRole get(String name, Output<String> id, AuthorizationOrganizationCustomRoleState state, CustomResourceOptions options)
    resources:  _:    type: stackit:AuthorizationOrganizationCustomRole    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
    A human readable description of the role.
    Name string
    Name of the role
    Permissions List<string>
    Permissions for the role
    ResourceId string
    Resource to add the custom role to.
    RoleId string
    The ID of the role.
    Description string
    A human readable description of the role.
    Name string
    Name of the role
    Permissions []string
    Permissions for the role
    ResourceId string
    Resource to add the custom role to.
    RoleId string
    The ID of the role.
    description String
    A human readable description of the role.
    name String
    Name of the role
    permissions List<String>
    Permissions for the role
    resourceId String
    Resource to add the custom role to.
    roleId String
    The ID of the role.
    description string
    A human readable description of the role.
    name string
    Name of the role
    permissions string[]
    Permissions for the role
    resourceId string
    Resource to add the custom role to.
    roleId string
    The ID of the role.
    description str
    A human readable description of the role.
    name str
    Name of the role
    permissions Sequence[str]
    Permissions for the role
    resource_id str
    Resource to add the custom role to.
    role_id str
    The ID of the role.
    description String
    A human readable description of the role.
    name String
    Name of the role
    permissions List<String>
    Permissions for the role
    resourceId String
    Resource to add the custom role to.
    roleId String
    The ID of the role.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.6
    published on Wednesday, May 6, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.