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

rootly logo
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

    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 string
    The unique name of the resource.
    args EscalationLevelArgs
    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 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 string
    The unique name of the resource.
    args EscalationLevelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EscalationLevelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    var escalationLevelResource = new EscalationLevel("escalationLevelResource", EscalationLevelArgs.builder()
        .notificationTargetParams(EscalationLevelNotificationTargetParamArgs.builder()
            .id("string")
            .name("string")
            .build())
        .position(0)
        .delay(0)
        .escalationPolicyId("string")
        .build());
    
    escalation_level_resource = rootly.EscalationLevel("escalationLevelResource",
        notification_target_params=[rootly.EscalationLevelNotificationTargetParamArgs(
            id="string",
            name="string",
        )],
        position=0,
        delay=0,
        escalation_policy_id="string")
    
    const escalationLevelResource = new rootly.EscalationLevel("escalationLevelResource", {
        notificationTargetParams: [{
            id: "string",
            name: "string",
        }],
        position: 0,
        delay: 0,
        escalationPolicyId: "string",
    });
    
    type: rootly:EscalationLevel
    properties:
        delay: 0
        escalationPolicyId: string
        notificationTargetParams:
            - id: string
              name: string
        position: 0
    

    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

    The EscalationLevel resource accepts the following input properties:

    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 string
    The ID of the escalation policy
    NotificationTargetParams []EscalationLevelNotificationTargetParamArgs
    Escalation level's notification targets
    Position int
    Position of the escalation policy level
    Delay int
    Delay before notification targets will be alerted.
    EscalationPolicyId string
    The ID of the escalation policy
    notificationTargetParams List<EscalationLevelNotificationTargetParam>
    Escalation level's notification targets
    position Integer
    Position of the escalation policy level
    delay Integer
    Delay before notification targets will be alerted.
    escalationPolicyId String
    The ID of the escalation policy
    notificationTargetParams EscalationLevelNotificationTargetParam[]
    Escalation level's notification targets
    position number
    Position of the escalation policy level
    delay number
    Delay before notification targets will be alerted.
    escalationPolicyId string
    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 int
    Delay before notification targets will be alerted.
    escalation_policy_id str
    The ID of the escalation policy
    notificationTargetParams List<Property Map>
    Escalation level's notification targets
    position Number
    Position of the escalation policy level
    delay Number
    Delay before notification targets will be alerted.
    escalationPolicyId 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)
    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.
    The following state arguments are supported:
    Delay int
    Delay before notification targets will be alerted.
    EscalationPolicyId 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 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 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 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 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 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 string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly