1. Packages
  2. Rootly
  3. API Docs
  4. IncidentRole
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

rootly.IncidentRole

Explore with Pulumi AI

Create IncidentRole Resource

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

Constructor syntax

new IncidentRole(name: string, args?: IncidentRoleArgs, opts?: CustomResourceOptions);
@overload
def IncidentRole(resource_name: str,
                 args: Optional[IncidentRoleArgs] = None,
                 opts: Optional[ResourceOptions] = None)

@overload
def IncidentRole(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 allow_multi_user_assignment: Optional[bool] = None,
                 description: Optional[str] = None,
                 enabled: Optional[bool] = None,
                 name: Optional[str] = None,
                 optional: Optional[bool] = None,
                 position: Optional[int] = None,
                 slug: Optional[str] = None,
                 summary: Optional[str] = None)
func NewIncidentRole(ctx *Context, name string, args *IncidentRoleArgs, opts ...ResourceOption) (*IncidentRole, error)
public IncidentRole(string name, IncidentRoleArgs? args = null, CustomResourceOptions? opts = null)
public IncidentRole(String name, IncidentRoleArgs args)
public IncidentRole(String name, IncidentRoleArgs args, CustomResourceOptions options)
type: rootly:IncidentRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args IncidentRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args IncidentRoleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args IncidentRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args IncidentRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IncidentRoleArgs
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 incidentRoleResource = new Rootly.IncidentRole("incidentRoleResource", new()
{
    AllowMultiUserAssignment = false,
    Description = "string",
    Enabled = false,
    Name = "string",
    Optional = false,
    Position = 0,
    Slug = "string",
    Summary = "string",
});
Copy
example, err := rootly.NewIncidentRole(ctx, "incidentRoleResource", &rootly.IncidentRoleArgs{
	AllowMultiUserAssignment: pulumi.Bool(false),
	Description:              pulumi.String("string"),
	Enabled:                  pulumi.Bool(false),
	Name:                     pulumi.String("string"),
	Optional:                 pulumi.Bool(false),
	Position:                 pulumi.Int(0),
	Slug:                     pulumi.String("string"),
	Summary:                  pulumi.String("string"),
})
Copy
var incidentRoleResource = new IncidentRole("incidentRoleResource", IncidentRoleArgs.builder()
    .allowMultiUserAssignment(false)
    .description("string")
    .enabled(false)
    .name("string")
    .optional(false)
    .position(0)
    .slug("string")
    .summary("string")
    .build());
Copy
incident_role_resource = rootly.IncidentRole("incidentRoleResource",
    allow_multi_user_assignment=False,
    description="string",
    enabled=False,
    name="string",
    optional=False,
    position=0,
    slug="string",
    summary="string")
Copy
const incidentRoleResource = new rootly.IncidentRole("incidentRoleResource", {
    allowMultiUserAssignment: false,
    description: "string",
    enabled: false,
    name: "string",
    optional: false,
    position: 0,
    slug: "string",
    summary: "string",
});
Copy
type: rootly:IncidentRole
properties:
    allowMultiUserAssignment: false
    description: string
    enabled: false
    name: string
    optional: false
    position: 0
    slug: string
    summary: string
Copy

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

AllowMultiUserAssignment bool
Value must be one of true or false
Description string
The description of the incident role
Enabled bool
Name string
The name of the incident role
Optional bool
Value must be one of true or false
Position int
Position of the incident role
Slug string
The slug of the incident role
Summary string
The summary of the incident role
AllowMultiUserAssignment bool
Value must be one of true or false
Description string
The description of the incident role
Enabled bool
Name string
The name of the incident role
Optional bool
Value must be one of true or false
Position int
Position of the incident role
Slug string
The slug of the incident role
Summary string
The summary of the incident role
allowMultiUserAssignment Boolean
Value must be one of true or false
description String
The description of the incident role
enabled Boolean
name String
The name of the incident role
optional Boolean
Value must be one of true or false
position Integer
Position of the incident role
slug String
The slug of the incident role
summary String
The summary of the incident role
allowMultiUserAssignment boolean
Value must be one of true or false
description string
The description of the incident role
enabled boolean
name string
The name of the incident role
optional boolean
Value must be one of true or false
position number
Position of the incident role
slug string
The slug of the incident role
summary string
The summary of the incident role
allow_multi_user_assignment bool
Value must be one of true or false
description str
The description of the incident role
enabled bool
name str
The name of the incident role
optional bool
Value must be one of true or false
position int
Position of the incident role
slug str
The slug of the incident role
summary str
The summary of the incident role
allowMultiUserAssignment Boolean
Value must be one of true or false
description String
The description of the incident role
enabled Boolean
name String
The name of the incident role
optional Boolean
Value must be one of true or false
position Number
Position of the incident role
slug String
The slug of the incident role
summary String
The summary of the incident role

Outputs

All input properties are implicitly available as output properties. Additionally, the IncidentRole 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 IncidentRole Resource

Get an existing IncidentRole 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?: IncidentRoleState, opts?: CustomResourceOptions): IncidentRole
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allow_multi_user_assignment: Optional[bool] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        name: Optional[str] = None,
        optional: Optional[bool] = None,
        position: Optional[int] = None,
        slug: Optional[str] = None,
        summary: Optional[str] = None) -> IncidentRole
func GetIncidentRole(ctx *Context, name string, id IDInput, state *IncidentRoleState, opts ...ResourceOption) (*IncidentRole, error)
public static IncidentRole Get(string name, Input<string> id, IncidentRoleState? state, CustomResourceOptions? opts = null)
public static IncidentRole get(String name, Output<String> id, IncidentRoleState state, CustomResourceOptions options)
resources:  _:    type: rootly:IncidentRole    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AllowMultiUserAssignment bool
Value must be one of true or false
Description string
The description of the incident role
Enabled bool
Name string
The name of the incident role
Optional bool
Value must be one of true or false
Position int
Position of the incident role
Slug string
The slug of the incident role
Summary string
The summary of the incident role
AllowMultiUserAssignment bool
Value must be one of true or false
Description string
The description of the incident role
Enabled bool
Name string
The name of the incident role
Optional bool
Value must be one of true or false
Position int
Position of the incident role
Slug string
The slug of the incident role
Summary string
The summary of the incident role
allowMultiUserAssignment Boolean
Value must be one of true or false
description String
The description of the incident role
enabled Boolean
name String
The name of the incident role
optional Boolean
Value must be one of true or false
position Integer
Position of the incident role
slug String
The slug of the incident role
summary String
The summary of the incident role
allowMultiUserAssignment boolean
Value must be one of true or false
description string
The description of the incident role
enabled boolean
name string
The name of the incident role
optional boolean
Value must be one of true or false
position number
Position of the incident role
slug string
The slug of the incident role
summary string
The summary of the incident role
allow_multi_user_assignment bool
Value must be one of true or false
description str
The description of the incident role
enabled bool
name str
The name of the incident role
optional bool
Value must be one of true or false
position int
Position of the incident role
slug str
The slug of the incident role
summary str
The summary of the incident role
allowMultiUserAssignment Boolean
Value must be one of true or false
description String
The description of the incident role
enabled Boolean
name String
The name of the incident role
optional Boolean
Value must be one of true or false
position Number
Position of the incident role
slug String
The slug of the incident role
summary String
The summary of the incident role

Package Details

Repository
rootly rootlyhq/pulumi-rootly
License
Apache-2.0
Notes
This Pulumi package is based on the rootly Terraform Provider.