rootly.EscalationPolicy
Explore with Pulumi AI
Create EscalationPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EscalationPolicy(name: string, args?: EscalationPolicyArgs, opts?: CustomResourceOptions);
@overload
def EscalationPolicy(resource_name: str,
args: Optional[EscalationPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def EscalationPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
created_by_user_id: Optional[int] = None,
description: Optional[str] = None,
escalation_levels: Optional[Sequence[EscalationPolicyEscalationLevelArgs]] = None,
groups: Optional[Sequence[EscalationPolicyGroupArgs]] = None,
last_updated_by_user_id: Optional[int] = None,
name: Optional[str] = None,
repeat_count: Optional[int] = None,
services: Optional[Sequence[EscalationPolicyServiceArgs]] = None)
func NewEscalationPolicy(ctx *Context, name string, args *EscalationPolicyArgs, opts ...ResourceOption) (*EscalationPolicy, error)
public EscalationPolicy(string name, EscalationPolicyArgs? args = null, CustomResourceOptions? opts = null)
public EscalationPolicy(String name, EscalationPolicyArgs args)
public EscalationPolicy(String name, EscalationPolicyArgs args, CustomResourceOptions options)
type: rootly:EscalationPolicy
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 EscalationPolicyArgs
- 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 EscalationPolicyArgs
- 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 EscalationPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EscalationPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EscalationPolicyArgs
- 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 escalationPolicyResource = new Rootly.EscalationPolicy("escalationPolicyResource", new()
{
CreatedByUserId = 0,
Description = "string",
EscalationLevels = new[]
{
new Rootly.Inputs.EscalationPolicyEscalationLevelArgs
{
Id = "string",
Name = "string",
},
},
Groups = new[]
{
new Rootly.Inputs.EscalationPolicyGroupArgs
{
Id = "string",
Name = "string",
},
},
LastUpdatedByUserId = 0,
Name = "string",
RepeatCount = 0,
Services = new[]
{
new Rootly.Inputs.EscalationPolicyServiceArgs
{
Id = "string",
Name = "string",
},
},
});
example, err := rootly.NewEscalationPolicy(ctx, "escalationPolicyResource", &rootly.EscalationPolicyArgs{
CreatedByUserId: pulumi.Int(0),
Description: pulumi.String("string"),
EscalationLevels: rootly.EscalationPolicyEscalationLevelArray{
&rootly.EscalationPolicyEscalationLevelArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Groups: rootly.EscalationPolicyGroupArray{
&rootly.EscalationPolicyGroupArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
LastUpdatedByUserId: pulumi.Int(0),
Name: pulumi.String("string"),
RepeatCount: pulumi.Int(0),
Services: rootly.EscalationPolicyServiceArray{
&rootly.EscalationPolicyServiceArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
})
var escalationPolicyResource = new EscalationPolicy("escalationPolicyResource", EscalationPolicyArgs.builder()
.createdByUserId(0)
.description("string")
.escalationLevels(EscalationPolicyEscalationLevelArgs.builder()
.id("string")
.name("string")
.build())
.groups(EscalationPolicyGroupArgs.builder()
.id("string")
.name("string")
.build())
.lastUpdatedByUserId(0)
.name("string")
.repeatCount(0)
.services(EscalationPolicyServiceArgs.builder()
.id("string")
.name("string")
.build())
.build());
escalation_policy_resource = rootly.EscalationPolicy("escalationPolicyResource",
created_by_user_id=0,
description="string",
escalation_levels=[{
"id": "string",
"name": "string",
}],
groups=[{
"id": "string",
"name": "string",
}],
last_updated_by_user_id=0,
name="string",
repeat_count=0,
services=[{
"id": "string",
"name": "string",
}])
const escalationPolicyResource = new rootly.EscalationPolicy("escalationPolicyResource", {
createdByUserId: 0,
description: "string",
escalationLevels: [{
id: "string",
name: "string",
}],
groups: [{
id: "string",
name: "string",
}],
lastUpdatedByUserId: 0,
name: "string",
repeatCount: 0,
services: [{
id: "string",
name: "string",
}],
});
type: rootly:EscalationPolicy
properties:
createdByUserId: 0
description: string
escalationLevels:
- id: string
name: string
groups:
- id: string
name: string
lastUpdatedByUserId: 0
name: string
repeatCount: 0
services:
- id: string
name: string
EscalationPolicy 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 EscalationPolicy resource accepts the following input properties:
- Created
By intUser Id - User who created the escalation policy
- Description string
- The description of the escalation policy
- Escalation
Levels List<EscalationPolicy Escalation Level> - Levels of the escalation policy
- Groups
List<Escalation
Policy Group> - Teams of to the escalation policy
- Last
Updated intBy User Id - User who updated the escalation policy
- Name string
- The name of the escalation policy
- Repeat
Count int - The number of times this policy will be executed until someone acknowledges the alert
- Services
List<Escalation
Policy Service> - Services of the escalation policy
- Created
By intUser Id - User who created the escalation policy
- Description string
- The description of the escalation policy
- Escalation
Levels []EscalationPolicy Escalation Level Args - Levels of the escalation policy
- Groups
[]Escalation
Policy Group Args - Teams of to the escalation policy
- Last
Updated intBy User Id - User who updated the escalation policy
- Name string
- The name of the escalation policy
- Repeat
Count int - The number of times this policy will be executed until someone acknowledges the alert
- Services
[]Escalation
Policy Service Args - Services of the escalation policy
- created
By IntegerUser Id - User who created the escalation policy
- description String
- The description of the escalation policy
- escalation
Levels List<EscalationPolicy Escalation Level> - Levels of the escalation policy
- groups
List<Escalation
Policy Group> - Teams of to the escalation policy
- last
Updated IntegerBy User Id - User who updated the escalation policy
- name String
- The name of the escalation policy
- repeat
Count Integer - The number of times this policy will be executed until someone acknowledges the alert
- services
List<Escalation
Policy Service> - Services of the escalation policy
- created
By numberUser Id - User who created the escalation policy
- description string
- The description of the escalation policy
- escalation
Levels EscalationPolicy Escalation Level[] - Levels of the escalation policy
- groups
Escalation
Policy Group[] - Teams of to the escalation policy
- last
Updated numberBy User Id - User who updated the escalation policy
- name string
- The name of the escalation policy
- repeat
Count number - The number of times this policy will be executed until someone acknowledges the alert
- services
Escalation
Policy Service[] - Services of the escalation policy
- created_
by_ intuser_ id - User who created the escalation policy
- description str
- The description of the escalation policy
- escalation_
levels Sequence[EscalationPolicy Escalation Level Args] - Levels of the escalation policy
- groups
Sequence[Escalation
Policy Group Args] - Teams of to the escalation policy
- last_
updated_ intby_ user_ id - User who updated the escalation policy
- name str
- The name of the escalation policy
- repeat_
count int - The number of times this policy will be executed until someone acknowledges the alert
- services
Sequence[Escalation
Policy Service Args] - Services of the escalation policy
- created
By NumberUser Id - User who created the escalation policy
- description String
- The description of the escalation policy
- escalation
Levels List<Property Map> - Levels of the escalation policy
- groups List<Property Map>
- Teams of to the escalation policy
- last
Updated NumberBy User Id - User who updated the escalation policy
- name String
- The name of the escalation policy
- repeat
Count Number - The number of times this policy will be executed until someone acknowledges the alert
- services List<Property Map>
- Services of the escalation policy
Outputs
All input properties are implicitly available as output properties. Additionally, the EscalationPolicy 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 EscalationPolicy Resource
Get an existing EscalationPolicy 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?: EscalationPolicyState, opts?: CustomResourceOptions): EscalationPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_by_user_id: Optional[int] = None,
description: Optional[str] = None,
escalation_levels: Optional[Sequence[EscalationPolicyEscalationLevelArgs]] = None,
groups: Optional[Sequence[EscalationPolicyGroupArgs]] = None,
last_updated_by_user_id: Optional[int] = None,
name: Optional[str] = None,
repeat_count: Optional[int] = None,
services: Optional[Sequence[EscalationPolicyServiceArgs]] = None) -> EscalationPolicy
func GetEscalationPolicy(ctx *Context, name string, id IDInput, state *EscalationPolicyState, opts ...ResourceOption) (*EscalationPolicy, error)
public static EscalationPolicy Get(string name, Input<string> id, EscalationPolicyState? state, CustomResourceOptions? opts = null)
public static EscalationPolicy get(String name, Output<String> id, EscalationPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Created
By intUser Id - User who created the escalation policy
- Description string
- The description of the escalation policy
- Escalation
Levels List<EscalationPolicy Escalation Level> - Levels of the escalation policy
- Groups
List<Escalation
Policy Group> - Teams of to the escalation policy
- Last
Updated intBy User Id - User who updated the escalation policy
- Name string
- The name of the escalation policy
- Repeat
Count int - The number of times this policy will be executed until someone acknowledges the alert
- Services
List<Escalation
Policy Service> - Services of the escalation policy
- Created
By intUser Id - User who created the escalation policy
- Description string
- The description of the escalation policy
- Escalation
Levels []EscalationPolicy Escalation Level Args - Levels of the escalation policy
- Groups
[]Escalation
Policy Group Args - Teams of to the escalation policy
- Last
Updated intBy User Id - User who updated the escalation policy
- Name string
- The name of the escalation policy
- Repeat
Count int - The number of times this policy will be executed until someone acknowledges the alert
- Services
[]Escalation
Policy Service Args - Services of the escalation policy
- created
By IntegerUser Id - User who created the escalation policy
- description String
- The description of the escalation policy
- escalation
Levels List<EscalationPolicy Escalation Level> - Levels of the escalation policy
- groups
List<Escalation
Policy Group> - Teams of to the escalation policy
- last
Updated IntegerBy User Id - User who updated the escalation policy
- name String
- The name of the escalation policy
- repeat
Count Integer - The number of times this policy will be executed until someone acknowledges the alert
- services
List<Escalation
Policy Service> - Services of the escalation policy
- created
By numberUser Id - User who created the escalation policy
- description string
- The description of the escalation policy
- escalation
Levels EscalationPolicy Escalation Level[] - Levels of the escalation policy
- groups
Escalation
Policy Group[] - Teams of to the escalation policy
- last
Updated numberBy User Id - User who updated the escalation policy
- name string
- The name of the escalation policy
- repeat
Count number - The number of times this policy will be executed until someone acknowledges the alert
- services
Escalation
Policy Service[] - Services of the escalation policy
- created_
by_ intuser_ id - User who created the escalation policy
- description str
- The description of the escalation policy
- escalation_
levels Sequence[EscalationPolicy Escalation Level Args] - Levels of the escalation policy
- groups
Sequence[Escalation
Policy Group Args] - Teams of to the escalation policy
- last_
updated_ intby_ user_ id - User who updated the escalation policy
- name str
- The name of the escalation policy
- repeat_
count int - The number of times this policy will be executed until someone acknowledges the alert
- services
Sequence[Escalation
Policy Service Args] - Services of the escalation policy
- created
By NumberUser Id - User who created the escalation policy
- description String
- The description of the escalation policy
- escalation
Levels List<Property Map> - Levels of the escalation policy
- groups List<Property Map>
- Teams of to the escalation policy
- last
Updated NumberBy User Id - User who updated the escalation policy
- name String
- The name of the escalation policy
- repeat
Count Number - The number of times this policy will be executed until someone acknowledges the alert
- services List<Property Map>
- Services of the escalation policy
Supporting Types
EscalationPolicyEscalationLevel, EscalationPolicyEscalationLevelArgs
EscalationPolicyGroup, EscalationPolicyGroupArgs
EscalationPolicyService, EscalationPolicyServiceArgs
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.