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

rootly.EscalationLevel

Explore with Pulumi AI

Create EscalationLevel Resource

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

Constructor syntax

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

@overload
def EscalationLevel(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    notification_target_params: Optional[Sequence[EscalationLevelNotificationTargetParamArgs]] = None,
                    position: Optional[int] = None,
                    delay: Optional[int] = None,
                    escalation_policy_id: Optional[str] = None)
func NewEscalationLevel(ctx *Context, name string, args EscalationLevelArgs, opts ...ResourceOption) (*EscalationLevel, error)
public EscalationLevel(string name, EscalationLevelArgs args, CustomResourceOptions? opts = null)
public EscalationLevel(String name, EscalationLevelArgs args)
public EscalationLevel(String name, EscalationLevelArgs args, CustomResourceOptions options)
type: rootly:EscalationLevel
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 This property is required. EscalationLevelArgs
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 This property is required. EscalationLevelArgs
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 This property is required. EscalationLevelArgs
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 This property is required. EscalationLevelArgs
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. EscalationLevelArgs
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 escalationLevelResource = new Rootly.EscalationLevel("escalationLevelResource", new()
{
    NotificationTargetParams = new[]
    {
        new Rootly.Inputs.EscalationLevelNotificationTargetParamArgs
        {
            Id = "string",
            Name = "string",
        },
    },
    Position = 0,
    Delay = 0,
    EscalationPolicyId = "string",
});
Copy
example, err := rootly.NewEscalationLevel(ctx, "escalationLevelResource", &rootly.EscalationLevelArgs{
	NotificationTargetParams: rootly.EscalationLevelNotificationTargetParamArray{
		&rootly.EscalationLevelNotificationTargetParamArgs{
			Id:   pulumi.String("string"),
			Name: pulumi.String("string"),
		},
	},
	Position:           pulumi.Int(0),
	Delay:              pulumi.Int(0),
	EscalationPolicyId: pulumi.String("string"),
})
Copy
var escalationLevelResource = new EscalationLevel("escalationLevelResource", EscalationLevelArgs.builder()
    .notificationTargetParams(EscalationLevelNotificationTargetParamArgs.builder()
        .id("string")
        .name("string")
        .build())
    .position(0)
    .delay(0)
    .escalationPolicyId("string")
    .build());
Copy
escalation_level_resource = rootly.EscalationLevel("escalationLevelResource",
    notification_target_params=[{
        "id": "string",
        "name": "string",
    }],
    position=0,
    delay=0,
    escalation_policy_id="string")
Copy
const escalationLevelResource = new rootly.EscalationLevel("escalationLevelResource", {
    notificationTargetParams: [{
        id: "string",
        name: "string",
    }],
    position: 0,
    delay: 0,
    escalationPolicyId: "string",
});
Copy
type: rootly:EscalationLevel
properties:
    delay: 0
    escalationPolicyId: string
    notificationTargetParams:
        - id: string
          name: string
    position: 0
Copy

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

NotificationTargetParams This property is required. List<EscalationLevelNotificationTargetParam>
Escalation level's notification targets
Position This property is required. int
Position of the escalation policy level
Delay int
Delay before notification targets will be alerted.
EscalationPolicyId Changes to this property will trigger replacement. string
The ID of the escalation policy
NotificationTargetParams This property is required. []EscalationLevelNotificationTargetParamArgs
Escalation level's notification targets
Position This property is required. int
Position of the escalation policy level
Delay int
Delay before notification targets will be alerted.
EscalationPolicyId Changes to this property will trigger replacement. string
The ID of the escalation policy
notificationTargetParams This property is required. List<EscalationLevelNotificationTargetParam>
Escalation level's notification targets
position This property is required. Integer
Position of the escalation policy level
delay Integer
Delay before notification targets will be alerted.
escalationPolicyId Changes to this property will trigger replacement. String
The ID of the escalation policy
notificationTargetParams This property is required. EscalationLevelNotificationTargetParam[]
Escalation level's notification targets
position This property is required. number
Position of the escalation policy level
delay number
Delay before notification targets will be alerted.
escalationPolicyId Changes to this property will trigger replacement. string
The ID of the escalation policy
notification_target_params This property is required. Sequence[EscalationLevelNotificationTargetParamArgs]
Escalation level's notification targets
position This property is required. int
Position of the escalation policy level
delay int
Delay before notification targets will be alerted.
escalation_policy_id Changes to this property will trigger replacement. str
The ID of the escalation policy
notificationTargetParams This property is required. List<Property Map>
Escalation level's notification targets
position This property is required. Number
Position of the escalation policy level
delay Number
Delay before notification targets will be alerted.
escalationPolicyId Changes to this property will trigger replacement. String
The ID of the escalation policy

Outputs

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

Get an existing EscalationLevel 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?: EscalationLevelState, opts?: CustomResourceOptions): EscalationLevel
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        delay: Optional[int] = None,
        escalation_policy_id: Optional[str] = None,
        notification_target_params: Optional[Sequence[EscalationLevelNotificationTargetParamArgs]] = None,
        position: Optional[int] = None) -> EscalationLevel
func GetEscalationLevel(ctx *Context, name string, id IDInput, state *EscalationLevelState, opts ...ResourceOption) (*EscalationLevel, error)
public static EscalationLevel Get(string name, Input<string> id, EscalationLevelState? state, CustomResourceOptions? opts = null)
public static EscalationLevel get(String name, Output<String> id, EscalationLevelState state, CustomResourceOptions options)
resources:  _:    type: rootly:EscalationLevel    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:
Delay int
Delay before notification targets will be alerted.
EscalationPolicyId Changes to this property will trigger replacement. string
The ID of the escalation policy
NotificationTargetParams List<EscalationLevelNotificationTargetParam>
Escalation level's notification targets
Position int
Position of the escalation policy level
Delay int
Delay before notification targets will be alerted.
EscalationPolicyId Changes to this property will trigger replacement. string
The ID of the escalation policy
NotificationTargetParams []EscalationLevelNotificationTargetParamArgs
Escalation level's notification targets
Position int
Position of the escalation policy level
delay Integer
Delay before notification targets will be alerted.
escalationPolicyId Changes to this property will trigger replacement. String
The ID of the escalation policy
notificationTargetParams List<EscalationLevelNotificationTargetParam>
Escalation level's notification targets
position Integer
Position of the escalation policy level
delay number
Delay before notification targets will be alerted.
escalationPolicyId Changes to this property will trigger replacement. string
The ID of the escalation policy
notificationTargetParams EscalationLevelNotificationTargetParam[]
Escalation level's notification targets
position number
Position of the escalation policy level
delay int
Delay before notification targets will be alerted.
escalation_policy_id Changes to this property will trigger replacement. str
The ID of the escalation policy
notification_target_params Sequence[EscalationLevelNotificationTargetParamArgs]
Escalation level's notification targets
position int
Position of the escalation policy level
delay Number
Delay before notification targets will be alerted.
escalationPolicyId Changes to this property will trigger replacement. String
The ID of the escalation policy
notificationTargetParams List<Property Map>
Escalation level's notification targets
position Number
Position of the escalation policy level

Supporting Types

EscalationLevelNotificationTargetParam
, EscalationLevelNotificationTargetParamArgs

Id This property is required. string
Name This property is required. string
Id This property is required. string
Name This property is required. string
id This property is required. String
name This property is required. String
id This property is required. string
name This property is required. string
id This property is required. str
name This property is required. str
id This property is required. String
name This property is required. String

Package Details

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