published on Wednesday, May 6, 2026 by stackitcloud
published on Wednesday, May 6, 2026 by stackitcloud
Custom Role resource schema.
Example Usage
resource "stackit_resourcemanager_folder" "example" {
name = "example_folder"
owner_email = "foo.bar@stackit.cloud"
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_authorization_folder_custom_role" "example" {
resource_id = stackit_resourcemanager_folder.example.folder_id
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_folder_custom_role.import-example
id = "${var.folder_id},${var.custom_role_id}"
}
Create AuthorizationFolderCustomRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthorizationFolderCustomRole(name: string, args: AuthorizationFolderCustomRoleArgs, opts?: CustomResourceOptions);@overload
def AuthorizationFolderCustomRole(resource_name: str,
args: AuthorizationFolderCustomRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuthorizationFolderCustomRole(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 NewAuthorizationFolderCustomRole(ctx *Context, name string, args AuthorizationFolderCustomRoleArgs, opts ...ResourceOption) (*AuthorizationFolderCustomRole, error)public AuthorizationFolderCustomRole(string name, AuthorizationFolderCustomRoleArgs args, CustomResourceOptions? opts = null)
public AuthorizationFolderCustomRole(String name, AuthorizationFolderCustomRoleArgs args)
public AuthorizationFolderCustomRole(String name, AuthorizationFolderCustomRoleArgs args, CustomResourceOptions options)
type: stackit:AuthorizationFolderCustomRole
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 AuthorizationFolderCustomRoleArgs
- 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 AuthorizationFolderCustomRoleArgs
- 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 AuthorizationFolderCustomRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthorizationFolderCustomRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthorizationFolderCustomRoleArgs
- 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 authorizationFolderCustomRoleResource = new Stackit.AuthorizationFolderCustomRole("authorizationFolderCustomRoleResource", new()
{
Description = "string",
Permissions = new[]
{
"string",
},
ResourceId = "string",
Name = "string",
});
example, err := stackit.NewAuthorizationFolderCustomRole(ctx, "authorizationFolderCustomRoleResource", &stackit.AuthorizationFolderCustomRoleArgs{
Description: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
ResourceId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var authorizationFolderCustomRoleResource = new AuthorizationFolderCustomRole("authorizationFolderCustomRoleResource", AuthorizationFolderCustomRoleArgs.builder()
.description("string")
.permissions("string")
.resourceId("string")
.name("string")
.build());
authorization_folder_custom_role_resource = stackit.AuthorizationFolderCustomRole("authorizationFolderCustomRoleResource",
description="string",
permissions=["string"],
resource_id="string",
name="string")
const authorizationFolderCustomRoleResource = new stackit.AuthorizationFolderCustomRole("authorizationFolderCustomRoleResource", {
description: "string",
permissions: ["string"],
resourceId: "string",
name: "string",
});
type: stackit:AuthorizationFolderCustomRole
properties:
description: string
name: string
permissions:
- string
resourceId: string
AuthorizationFolderCustomRole 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 AuthorizationFolderCustomRole resource accepts the following input properties:
- Description string
- A human readable description of the role.
- Permissions List<string>
- Permissions for the role
- Resource
Id 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
- Resource
Id 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
- resource
Id 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
- resource
Id 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
- resource
Id 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 AuthorizationFolderCustomRole resource produces the following output properties:
Look up Existing AuthorizationFolderCustomRole Resource
Get an existing AuthorizationFolderCustomRole 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?: AuthorizationFolderCustomRoleState, opts?: CustomResourceOptions): AuthorizationFolderCustomRole@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) -> AuthorizationFolderCustomRolefunc GetAuthorizationFolderCustomRole(ctx *Context, name string, id IDInput, state *AuthorizationFolderCustomRoleState, opts ...ResourceOption) (*AuthorizationFolderCustomRole, error)public static AuthorizationFolderCustomRole Get(string name, Input<string> id, AuthorizationFolderCustomRoleState? state, CustomResourceOptions? opts = null)public static AuthorizationFolderCustomRole get(String name, Output<String> id, AuthorizationFolderCustomRoleState state, CustomResourceOptions options)resources: _: type: stackit:AuthorizationFolderCustomRole 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.
- Description string
- A human readable description of the role.
- Name string
- Name of the role
- Permissions List<string>
- Permissions for the role
- Resource
Id string - Resource to add the custom role to.
- Role
Id 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
- Resource
Id string - Resource to add the custom role to.
- Role
Id 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
- resource
Id String - Resource to add the custom role to.
- role
Id 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
- resource
Id string - Resource to add the custom role to.
- role
Id 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
- resource
Id String - Resource to add the custom role to.
- role
Id 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
stackitTerraform Provider.
published on Wednesday, May 6, 2026 by stackitcloud
