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:
- CreatedBy intUser Id 
- User who created the escalation policy
- Description string
- The description of the escalation policy
- EscalationLevels List<EscalationPolicy Escalation Level> 
- Levels of the escalation policy
- Groups
List<EscalationPolicy Group> 
- Teams of to the escalation policy
- LastUpdated intBy User Id 
- User who updated the escalation policy
- Name string
- The name of the escalation policy
- RepeatCount int
- The number of times this policy will be executed until someone acknowledges the alert
- Services
List<EscalationPolicy Service> 
- Services of the escalation policy
- CreatedBy intUser Id 
- User who created the escalation policy
- Description string
- The description of the escalation policy
- EscalationLevels []EscalationPolicy Escalation Level Args 
- Levels of the escalation policy
- Groups
[]EscalationPolicy Group Args 
- Teams of to the escalation policy
- LastUpdated intBy User Id 
- User who updated the escalation policy
- Name string
- The name of the escalation policy
- RepeatCount int
- The number of times this policy will be executed until someone acknowledges the alert
- Services
[]EscalationPolicy Service Args 
- Services of the escalation policy
- createdBy IntegerUser Id 
- User who created the escalation policy
- description String
- The description of the escalation policy
- escalationLevels List<EscalationPolicy Escalation Level> 
- Levels of the escalation policy
- groups
List<EscalationPolicy Group> 
- Teams of to the escalation policy
- lastUpdated IntegerBy User Id 
- User who updated the escalation policy
- name String
- The name of the escalation policy
- repeatCount Integer
- The number of times this policy will be executed until someone acknowledges the alert
- services
List<EscalationPolicy Service> 
- Services of the escalation policy
- createdBy numberUser Id 
- User who created the escalation policy
- description string
- The description of the escalation policy
- escalationLevels EscalationPolicy Escalation Level[] 
- Levels of the escalation policy
- groups
EscalationPolicy Group[] 
- Teams of to the escalation policy
- lastUpdated numberBy User Id 
- User who updated the escalation policy
- name string
- The name of the escalation policy
- repeatCount number
- The number of times this policy will be executed until someone acknowledges the alert
- services
EscalationPolicy 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[EscalationPolicy 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[EscalationPolicy Service Args] 
- Services of the escalation policy
- createdBy NumberUser Id 
- User who created the escalation policy
- description String
- The description of the escalation policy
- escalationLevels List<Property Map>
- Levels of the escalation policy
- groups List<Property Map>
- Teams of to the escalation policy
- lastUpdated NumberBy User Id 
- User who updated the escalation policy
- name String
- The name of the escalation policy
- repeatCount 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) -> EscalationPolicyfunc 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)resources:  _:    type: rootly:EscalationPolicy    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.
- CreatedBy intUser Id 
- User who created the escalation policy
- Description string
- The description of the escalation policy
- EscalationLevels List<EscalationPolicy Escalation Level> 
- Levels of the escalation policy
- Groups
List<EscalationPolicy Group> 
- Teams of to the escalation policy
- LastUpdated intBy User Id 
- User who updated the escalation policy
- Name string
- The name of the escalation policy
- RepeatCount int
- The number of times this policy will be executed until someone acknowledges the alert
- Services
List<EscalationPolicy Service> 
- Services of the escalation policy
- CreatedBy intUser Id 
- User who created the escalation policy
- Description string
- The description of the escalation policy
- EscalationLevels []EscalationPolicy Escalation Level Args 
- Levels of the escalation policy
- Groups
[]EscalationPolicy Group Args 
- Teams of to the escalation policy
- LastUpdated intBy User Id 
- User who updated the escalation policy
- Name string
- The name of the escalation policy
- RepeatCount int
- The number of times this policy will be executed until someone acknowledges the alert
- Services
[]EscalationPolicy Service Args 
- Services of the escalation policy
- createdBy IntegerUser Id 
- User who created the escalation policy
- description String
- The description of the escalation policy
- escalationLevels List<EscalationPolicy Escalation Level> 
- Levels of the escalation policy
- groups
List<EscalationPolicy Group> 
- Teams of to the escalation policy
- lastUpdated IntegerBy User Id 
- User who updated the escalation policy
- name String
- The name of the escalation policy
- repeatCount Integer
- The number of times this policy will be executed until someone acknowledges the alert
- services
List<EscalationPolicy Service> 
- Services of the escalation policy
- createdBy numberUser Id 
- User who created the escalation policy
- description string
- The description of the escalation policy
- escalationLevels EscalationPolicy Escalation Level[] 
- Levels of the escalation policy
- groups
EscalationPolicy Group[] 
- Teams of to the escalation policy
- lastUpdated numberBy User Id 
- User who updated the escalation policy
- name string
- The name of the escalation policy
- repeatCount number
- The number of times this policy will be executed until someone acknowledges the alert
- services
EscalationPolicy 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[EscalationPolicy 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[EscalationPolicy Service Args] 
- Services of the escalation policy
- createdBy NumberUser Id 
- User who created the escalation policy
- description String
- The description of the escalation policy
- escalationLevels List<Property Map>
- Levels of the escalation policy
- groups List<Property Map>
- Teams of to the escalation policy
- lastUpdated NumberBy User Id 
- User who updated the escalation policy
- name String
- The name of the escalation policy
- repeatCount 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 rootlyTerraform Provider.