published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
Custom Role resource schema.
Example Usage
resource "stackit_resourcemanager_project" "example" {
name = "example_project"
owner_email = "foo.bar@stackit.cloud"
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_authorization_project_custom_role" "example" {
resource_id = stackit_resourcemanager_project.example.project_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_project_custom_role.import-example
id = "${var.project_id},${var.custom_role_id}"
}
Create AuthorizationProjectCustomRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthorizationProjectCustomRole(name: string, args: AuthorizationProjectCustomRoleArgs, opts?: CustomResourceOptions);@overload
def AuthorizationProjectCustomRole(resource_name: str,
args: AuthorizationProjectCustomRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuthorizationProjectCustomRole(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 NewAuthorizationProjectCustomRole(ctx *Context, name string, args AuthorizationProjectCustomRoleArgs, opts ...ResourceOption) (*AuthorizationProjectCustomRole, error)public AuthorizationProjectCustomRole(string name, AuthorizationProjectCustomRoleArgs args, CustomResourceOptions? opts = null)
public AuthorizationProjectCustomRole(String name, AuthorizationProjectCustomRoleArgs args)
public AuthorizationProjectCustomRole(String name, AuthorizationProjectCustomRoleArgs args, CustomResourceOptions options)
type: stackit:AuthorizationProjectCustomRole
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 AuthorizationProjectCustomRoleArgs
- 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 AuthorizationProjectCustomRoleArgs
- 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 AuthorizationProjectCustomRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthorizationProjectCustomRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthorizationProjectCustomRoleArgs
- 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 authorizationProjectCustomRoleResource = new Stackit.AuthorizationProjectCustomRole("authorizationProjectCustomRoleResource", new()
{
Description = "string",
Permissions = new[]
{
"string",
},
ResourceId = "string",
Name = "string",
});
example, err := stackit.NewAuthorizationProjectCustomRole(ctx, "authorizationProjectCustomRoleResource", &stackit.AuthorizationProjectCustomRoleArgs{
Description: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
ResourceId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var authorizationProjectCustomRoleResource = new AuthorizationProjectCustomRole("authorizationProjectCustomRoleResource", AuthorizationProjectCustomRoleArgs.builder()
.description("string")
.permissions("string")
.resourceId("string")
.name("string")
.build());
authorization_project_custom_role_resource = stackit.AuthorizationProjectCustomRole("authorizationProjectCustomRoleResource",
description="string",
permissions=["string"],
resource_id="string",
name="string")
const authorizationProjectCustomRoleResource = new stackit.AuthorizationProjectCustomRole("authorizationProjectCustomRoleResource", {
description: "string",
permissions: ["string"],
resourceId: "string",
name: "string",
});
type: stackit:AuthorizationProjectCustomRole
properties:
description: string
name: string
permissions:
- string
resourceId: string
AuthorizationProjectCustomRole 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 AuthorizationProjectCustomRole 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 AuthorizationProjectCustomRole resource produces the following output properties:
Look up Existing AuthorizationProjectCustomRole Resource
Get an existing AuthorizationProjectCustomRole 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?: AuthorizationProjectCustomRoleState, opts?: CustomResourceOptions): AuthorizationProjectCustomRole@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) -> AuthorizationProjectCustomRolefunc GetAuthorizationProjectCustomRole(ctx *Context, name string, id IDInput, state *AuthorizationProjectCustomRoleState, opts ...ResourceOption) (*AuthorizationProjectCustomRole, error)public static AuthorizationProjectCustomRole Get(string name, Input<string> id, AuthorizationProjectCustomRoleState? state, CustomResourceOptions? opts = null)public static AuthorizationProjectCustomRole get(String name, Output<String> id, AuthorizationProjectCustomRoleState state, CustomResourceOptions options)resources: _: type: stackit:AuthorizationProjectCustomRole 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 Friday, Feb 20, 2026 by stackitcloud
