1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. Service
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

pagerduty.Service

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

    A service represents something you monitor (like a web service, email service, or database service). It is a container for related incidents that associates them with escalation policies.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    
    const example = new pagerduty.User("example", {
        name: "Earline Greenholt",
        email: "125.greenholt.earline@graham.name",
    });
    const foo = new pagerduty.EscalationPolicy("foo", {
        name: "Engineering Escalation Policy",
        numLoops: 2,
        rules: [{
            escalationDelayInMinutes: 10,
            targets: [{
                type: "user_reference",
                id: example.id,
            }],
        }],
    });
    const exampleService = new pagerduty.Service("example", {
        name: "My Web App",
        autoResolveTimeout: "14400",
        acknowledgementTimeout: "600",
        escalationPolicy: foo.id,
        alertCreation: "create_alerts_and_incidents",
        autoPauseNotificationsParameters: {
            enabled: true,
            timeout: 300,
        },
    });
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    example = pagerduty.User("example",
        name="Earline Greenholt",
        email="125.greenholt.earline@graham.name")
    foo = pagerduty.EscalationPolicy("foo",
        name="Engineering Escalation Policy",
        num_loops=2,
        rules=[{
            "escalation_delay_in_minutes": 10,
            "targets": [{
                "type": "user_reference",
                "id": example.id,
            }],
        }])
    example_service = pagerduty.Service("example",
        name="My Web App",
        auto_resolve_timeout="14400",
        acknowledgement_timeout="600",
        escalation_policy=foo.id,
        alert_creation="create_alerts_and_incidents",
        auto_pause_notifications_parameters={
            "enabled": True,
            "timeout": 300,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := pagerduty.NewUser(ctx, "example", &pagerduty.UserArgs{
    			Name:  pulumi.String("Earline Greenholt"),
    			Email: pulumi.String("125.greenholt.earline@graham.name"),
    		})
    		if err != nil {
    			return err
    		}
    		foo, err := pagerduty.NewEscalationPolicy(ctx, "foo", &pagerduty.EscalationPolicyArgs{
    			Name:     pulumi.String("Engineering Escalation Policy"),
    			NumLoops: pulumi.Int(2),
    			Rules: pagerduty.EscalationPolicyRuleArray{
    				&pagerduty.EscalationPolicyRuleArgs{
    					EscalationDelayInMinutes: pulumi.Int(10),
    					Targets: pagerduty.EscalationPolicyRuleTargetArray{
    						&pagerduty.EscalationPolicyRuleTargetArgs{
    							Type: pulumi.String("user_reference"),
    							Id:   example.ID(),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.NewService(ctx, "example", &pagerduty.ServiceArgs{
    			Name:                   pulumi.String("My Web App"),
    			AutoResolveTimeout:     pulumi.String("14400"),
    			AcknowledgementTimeout: pulumi.String("600"),
    			EscalationPolicy:       foo.ID(),
    			AlertCreation:          pulumi.String("create_alerts_and_incidents"),
    			AutoPauseNotificationsParameters: &pagerduty.ServiceAutoPauseNotificationsParametersArgs{
    				Enabled: pulumi.Bool(true),
    				Timeout: pulumi.Int(300),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Pagerduty.User("example", new()
        {
            Name = "Earline Greenholt",
            Email = "125.greenholt.earline@graham.name",
        });
    
        var foo = new Pagerduty.EscalationPolicy("foo", new()
        {
            Name = "Engineering Escalation Policy",
            NumLoops = 2,
            Rules = new[]
            {
                new Pagerduty.Inputs.EscalationPolicyRuleArgs
                {
                    EscalationDelayInMinutes = 10,
                    Targets = new[]
                    {
                        new Pagerduty.Inputs.EscalationPolicyRuleTargetArgs
                        {
                            Type = "user_reference",
                            Id = example.Id,
                        },
                    },
                },
            },
        });
    
        var exampleService = new Pagerduty.Service("example", new()
        {
            Name = "My Web App",
            AutoResolveTimeout = "14400",
            AcknowledgementTimeout = "600",
            EscalationPolicy = foo.Id,
            AlertCreation = "create_alerts_and_incidents",
            AutoPauseNotificationsParameters = new Pagerduty.Inputs.ServiceAutoPauseNotificationsParametersArgs
            {
                Enabled = true,
                Timeout = 300,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.User;
    import com.pulumi.pagerduty.UserArgs;
    import com.pulumi.pagerduty.EscalationPolicy;
    import com.pulumi.pagerduty.EscalationPolicyArgs;
    import com.pulumi.pagerduty.inputs.EscalationPolicyRuleArgs;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.inputs.ServiceAutoPauseNotificationsParametersArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new User("example", UserArgs.builder()
                .name("Earline Greenholt")
                .email("125.greenholt.earline@graham.name")
                .build());
    
            var foo = new EscalationPolicy("foo", EscalationPolicyArgs.builder()
                .name("Engineering Escalation Policy")
                .numLoops(2)
                .rules(EscalationPolicyRuleArgs.builder()
                    .escalationDelayInMinutes(10)
                    .targets(EscalationPolicyRuleTargetArgs.builder()
                        .type("user_reference")
                        .id(example.id())
                        .build())
                    .build())
                .build());
    
            var exampleService = new Service("exampleService", ServiceArgs.builder()
                .name("My Web App")
                .autoResolveTimeout(14400)
                .acknowledgementTimeout(600)
                .escalationPolicy(foo.id())
                .alertCreation("create_alerts_and_incidents")
                .autoPauseNotificationsParameters(ServiceAutoPauseNotificationsParametersArgs.builder()
                    .enabled(true)
                    .timeout(300)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: pagerduty:User
        properties:
          name: Earline Greenholt
          email: 125.greenholt.earline@graham.name
      foo:
        type: pagerduty:EscalationPolicy
        properties:
          name: Engineering Escalation Policy
          numLoops: 2
          rules:
            - escalationDelayInMinutes: 10
              targets:
                - type: user_reference
                  id: ${example.id}
      exampleService:
        type: pagerduty:Service
        name: example
        properties:
          name: My Web App
          autoResolveTimeout: 14400
          acknowledgementTimeout: 600
          escalationPolicy: ${foo.id}
          alertCreation: create_alerts_and_incidents
          autoPauseNotificationsParameters:
            enabled: true
            timeout: 300
    

    Create Service Resource

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

    Constructor syntax

    new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: ServiceArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                escalation_policy: Optional[str] = None,
                auto_resolve_timeout: Optional[str] = None,
                alert_grouping: Optional[str] = None,
                alert_grouping_parameters: Optional[ServiceAlertGroupingParametersArgs] = None,
                alert_grouping_timeout: Optional[str] = None,
                auto_pause_notifications_parameters: Optional[ServiceAutoPauseNotificationsParametersArgs] = None,
                acknowledgement_timeout: Optional[str] = None,
                description: Optional[str] = None,
                alert_creation: Optional[str] = None,
                incident_urgency_rule: Optional[ServiceIncidentUrgencyRuleArgs] = None,
                name: Optional[str] = None,
                response_play: Optional[str] = None,
                scheduled_actions: Optional[Sequence[ServiceScheduledActionArgs]] = None,
                support_hours: Optional[ServiceSupportHoursArgs] = None)
    func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: pagerduty:Service
    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 ServiceArgs
    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 ServiceArgs
    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 ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    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 serviceResource = new Pagerduty.Service("serviceResource", new()
    {
        EscalationPolicy = "string",
        AutoResolveTimeout = "string",
        AutoPauseNotificationsParameters = new Pagerduty.Inputs.ServiceAutoPauseNotificationsParametersArgs
        {
            Enabled = false,
            Timeout = 0,
        },
        AcknowledgementTimeout = "string",
        Description = "string",
        AlertCreation = "string",
        IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
        {
            Type = "string",
            DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
            {
                Type = "string",
                Urgency = "string",
            },
            OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
            {
                Type = "string",
                Urgency = "string",
            },
            Urgency = "string",
        },
        Name = "string",
        ResponsePlay = "string",
        ScheduledActions = new[]
        {
            new Pagerduty.Inputs.ServiceScheduledActionArgs
            {
                Ats = new[]
                {
                    new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                    {
                        Name = "string",
                        Type = "string",
                    },
                },
                ToUrgency = "string",
                Type = "string",
            },
        },
        SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
        {
            DaysOfWeeks = new[]
            {
                0,
            },
            EndTime = "string",
            StartTime = "string",
            TimeZone = "string",
            Type = "string",
        },
    });
    
    example, err := pagerduty.NewService(ctx, "serviceResource", &pagerduty.ServiceArgs{
    	EscalationPolicy:   pulumi.String("string"),
    	AutoResolveTimeout: pulumi.String("string"),
    	AutoPauseNotificationsParameters: &pagerduty.ServiceAutoPauseNotificationsParametersArgs{
    		Enabled: pulumi.Bool(false),
    		Timeout: pulumi.Int(0),
    	},
    	AcknowledgementTimeout: pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	AlertCreation:          pulumi.String("string"),
    	IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    		Type: pulumi.String("string"),
    		DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    			Type:    pulumi.String("string"),
    			Urgency: pulumi.String("string"),
    		},
    		OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    			Type:    pulumi.String("string"),
    			Urgency: pulumi.String("string"),
    		},
    		Urgency: pulumi.String("string"),
    	},
    	Name:         pulumi.String("string"),
    	ResponsePlay: pulumi.String("string"),
    	ScheduledActions: pagerduty.ServiceScheduledActionArray{
    		&pagerduty.ServiceScheduledActionArgs{
    			Ats: pagerduty.ServiceScheduledActionAtArray{
    				&pagerduty.ServiceScheduledActionAtArgs{
    					Name: pulumi.String("string"),
    					Type: pulumi.String("string"),
    				},
    			},
    			ToUrgency: pulumi.String("string"),
    			Type:      pulumi.String("string"),
    		},
    	},
    	SupportHours: &pagerduty.ServiceSupportHoursArgs{
    		DaysOfWeeks: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		EndTime:   pulumi.String("string"),
    		StartTime: pulumi.String("string"),
    		TimeZone:  pulumi.String("string"),
    		Type:      pulumi.String("string"),
    	},
    })
    
    var serviceResource = new Service("serviceResource", ServiceArgs.builder()
        .escalationPolicy("string")
        .autoResolveTimeout("string")
        .autoPauseNotificationsParameters(ServiceAutoPauseNotificationsParametersArgs.builder()
            .enabled(false)
            .timeout(0)
            .build())
        .acknowledgementTimeout("string")
        .description("string")
        .alertCreation("string")
        .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
            .type("string")
            .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                .type("string")
                .urgency("string")
                .build())
            .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                .type("string")
                .urgency("string")
                .build())
            .urgency("string")
            .build())
        .name("string")
        .responsePlay("string")
        .scheduledActions(ServiceScheduledActionArgs.builder()
            .ats(ServiceScheduledActionAtArgs.builder()
                .name("string")
                .type("string")
                .build())
            .toUrgency("string")
            .type("string")
            .build())
        .supportHours(ServiceSupportHoursArgs.builder()
            .daysOfWeeks(0)
            .endTime("string")
            .startTime("string")
            .timeZone("string")
            .type("string")
            .build())
        .build());
    
    service_resource = pagerduty.Service("serviceResource",
        escalation_policy="string",
        auto_resolve_timeout="string",
        auto_pause_notifications_parameters={
            "enabled": False,
            "timeout": 0,
        },
        acknowledgement_timeout="string",
        description="string",
        alert_creation="string",
        incident_urgency_rule={
            "type": "string",
            "during_support_hours": {
                "type": "string",
                "urgency": "string",
            },
            "outside_support_hours": {
                "type": "string",
                "urgency": "string",
            },
            "urgency": "string",
        },
        name="string",
        response_play="string",
        scheduled_actions=[{
            "ats": [{
                "name": "string",
                "type": "string",
            }],
            "to_urgency": "string",
            "type": "string",
        }],
        support_hours={
            "days_of_weeks": [0],
            "end_time": "string",
            "start_time": "string",
            "time_zone": "string",
            "type": "string",
        })
    
    const serviceResource = new pagerduty.Service("serviceResource", {
        escalationPolicy: "string",
        autoResolveTimeout: "string",
        autoPauseNotificationsParameters: {
            enabled: false,
            timeout: 0,
        },
        acknowledgementTimeout: "string",
        description: "string",
        alertCreation: "string",
        incidentUrgencyRule: {
            type: "string",
            duringSupportHours: {
                type: "string",
                urgency: "string",
            },
            outsideSupportHours: {
                type: "string",
                urgency: "string",
            },
            urgency: "string",
        },
        name: "string",
        responsePlay: "string",
        scheduledActions: [{
            ats: [{
                name: "string",
                type: "string",
            }],
            toUrgency: "string",
            type: "string",
        }],
        supportHours: {
            daysOfWeeks: [0],
            endTime: "string",
            startTime: "string",
            timeZone: "string",
            type: "string",
        },
    });
    
    type: pagerduty:Service
    properties:
        acknowledgementTimeout: string
        alertCreation: string
        autoPauseNotificationsParameters:
            enabled: false
            timeout: 0
        autoResolveTimeout: string
        description: string
        escalationPolicy: string
        incidentUrgencyRule:
            duringSupportHours:
                type: string
                urgency: string
            outsideSupportHours:
                type: string
                urgency: string
            type: string
            urgency: string
        name: string
        responsePlay: string
        scheduledActions:
            - ats:
                - name: string
                  type: string
              toUrgency: string
              type: string
        supportHours:
            daysOfWeeks:
                - 0
            endTime: string
            startTime: string
            timeZone: string
            type: string
    

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

    EscalationPolicy string
    The escalation policy used by this service.
    AcknowledgementTimeout string
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    AlertCreation string
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    AlertGrouping string
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    AlertGroupingParameters ServiceAlertGroupingParameters
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    AlertGroupingTimeout string
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    AutoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    AutoResolveTimeout string
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    Description string
    IncidentUrgencyRule ServiceIncidentUrgencyRule
    Name string
    The name of the service.
    ResponsePlay string
    (Deprecated) The response play used by this service.
    ScheduledActions List<ServiceScheduledAction>
    SupportHours ServiceSupportHours
    EscalationPolicy string
    The escalation policy used by this service.
    AcknowledgementTimeout string
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    AlertCreation string
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    AlertGrouping string
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    AlertGroupingParameters ServiceAlertGroupingParametersArgs
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    AlertGroupingTimeout string
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    AutoPauseNotificationsParameters ServiceAutoPauseNotificationsParametersArgs
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    AutoResolveTimeout string
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    Description string
    IncidentUrgencyRule ServiceIncidentUrgencyRuleArgs
    Name string
    The name of the service.
    ResponsePlay string
    (Deprecated) The response play used by this service.
    ScheduledActions []ServiceScheduledActionArgs
    SupportHours ServiceSupportHoursArgs
    escalationPolicy String
    The escalation policy used by this service.
    acknowledgementTimeout String
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alertCreation String
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alertGrouping String
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters ServiceAlertGroupingParameters
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alertGroupingTimeout String
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    autoResolveTimeout String
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    description String
    incidentUrgencyRule ServiceIncidentUrgencyRule
    name String
    The name of the service.
    responsePlay String
    (Deprecated) The response play used by this service.
    scheduledActions List<ServiceScheduledAction>
    supportHours ServiceSupportHours
    escalationPolicy string
    The escalation policy used by this service.
    acknowledgementTimeout string
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alertCreation string
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alertGrouping string
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters ServiceAlertGroupingParameters
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alertGroupingTimeout string
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    autoResolveTimeout string
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    description string
    incidentUrgencyRule ServiceIncidentUrgencyRule
    name string
    The name of the service.
    responsePlay string
    (Deprecated) The response play used by this service.
    scheduledActions ServiceScheduledAction[]
    supportHours ServiceSupportHours
    escalation_policy str
    The escalation policy used by this service.
    acknowledgement_timeout str
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alert_creation str
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alert_grouping str
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alert_grouping_parameters ServiceAlertGroupingParametersArgs
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alert_grouping_timeout str
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    auto_pause_notifications_parameters ServiceAutoPauseNotificationsParametersArgs
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    auto_resolve_timeout str
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    description str
    incident_urgency_rule ServiceIncidentUrgencyRuleArgs
    name str
    The name of the service.
    response_play str
    (Deprecated) The response play used by this service.
    scheduled_actions Sequence[ServiceScheduledActionArgs]
    support_hours ServiceSupportHoursArgs
    escalationPolicy String
    The escalation policy used by this service.
    acknowledgementTimeout String
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alertCreation String
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alertGrouping String
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters Property Map
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alertGroupingTimeout String
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters Property Map
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    autoResolveTimeout String
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    description String
    incidentUrgencyRule Property Map
    name String
    The name of the service.
    responsePlay String
    (Deprecated) The response play used by this service.
    scheduledActions List<Property Map>
    supportHours Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

    CreatedAt string
    Creation timestamp of the service.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastIncidentTimestamp string
    Last incident timestamp of the service.
    Status string
    The status of the service.
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    CreatedAt string
    Creation timestamp of the service.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastIncidentTimestamp string
    Last incident timestamp of the service.
    Status string
    The status of the service.
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    createdAt String
    Creation timestamp of the service.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    id String
    The provider-assigned unique ID for this managed resource.
    lastIncidentTimestamp String
    Last incident timestamp of the service.
    status String
    The status of the service.
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    createdAt string
    Creation timestamp of the service.
    htmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    id string
    The provider-assigned unique ID for this managed resource.
    lastIncidentTimestamp string
    Last incident timestamp of the service.
    status string
    The status of the service.
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    created_at str
    Creation timestamp of the service.
    html_url str
    URL at which the entity is uniquely displayed in the Web app.
    id str
    The provider-assigned unique ID for this managed resource.
    last_incident_timestamp str
    Last incident timestamp of the service.
    status str
    The status of the service.
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    createdAt String
    Creation timestamp of the service.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    id String
    The provider-assigned unique ID for this managed resource.
    lastIncidentTimestamp String
    Last incident timestamp of the service.
    status String
    The status of the service.
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.

    Look up Existing Service Resource

    Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acknowledgement_timeout: Optional[str] = None,
            alert_creation: Optional[str] = None,
            alert_grouping: Optional[str] = None,
            alert_grouping_parameters: Optional[ServiceAlertGroupingParametersArgs] = None,
            alert_grouping_timeout: Optional[str] = None,
            auto_pause_notifications_parameters: Optional[ServiceAutoPauseNotificationsParametersArgs] = None,
            auto_resolve_timeout: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            escalation_policy: Optional[str] = None,
            html_url: Optional[str] = None,
            incident_urgency_rule: Optional[ServiceIncidentUrgencyRuleArgs] = None,
            last_incident_timestamp: Optional[str] = None,
            name: Optional[str] = None,
            response_play: Optional[str] = None,
            scheduled_actions: Optional[Sequence[ServiceScheduledActionArgs]] = None,
            status: Optional[str] = None,
            support_hours: Optional[ServiceSupportHoursArgs] = None,
            type: Optional[str] = None) -> Service
    func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
    public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
    public static Service get(String name, Output<String> id, ServiceState 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:
    AcknowledgementTimeout string
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    AlertCreation string
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    AlertGrouping string
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    AlertGroupingParameters ServiceAlertGroupingParameters
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    AlertGroupingTimeout string
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    AutoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    AutoResolveTimeout string
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    CreatedAt string
    Creation timestamp of the service.
    Description string
    EscalationPolicy string
    The escalation policy used by this service.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    IncidentUrgencyRule ServiceIncidentUrgencyRule
    LastIncidentTimestamp string
    Last incident timestamp of the service.
    Name string
    The name of the service.
    ResponsePlay string
    (Deprecated) The response play used by this service.
    ScheduledActions List<ServiceScheduledAction>
    Status string
    The status of the service.
    SupportHours ServiceSupportHours
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    AcknowledgementTimeout string
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    AlertCreation string
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    AlertGrouping string
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    AlertGroupingParameters ServiceAlertGroupingParametersArgs
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    AlertGroupingTimeout string
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    AutoPauseNotificationsParameters ServiceAutoPauseNotificationsParametersArgs
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    AutoResolveTimeout string
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    CreatedAt string
    Creation timestamp of the service.
    Description string
    EscalationPolicy string
    The escalation policy used by this service.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    IncidentUrgencyRule ServiceIncidentUrgencyRuleArgs
    LastIncidentTimestamp string
    Last incident timestamp of the service.
    Name string
    The name of the service.
    ResponsePlay string
    (Deprecated) The response play used by this service.
    ScheduledActions []ServiceScheduledActionArgs
    Status string
    The status of the service.
    SupportHours ServiceSupportHoursArgs
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgementTimeout String
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alertCreation String
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alertGrouping String
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters ServiceAlertGroupingParameters
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alertGroupingTimeout String
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    autoResolveTimeout String
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    createdAt String
    Creation timestamp of the service.
    description String
    escalationPolicy String
    The escalation policy used by this service.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    incidentUrgencyRule ServiceIncidentUrgencyRule
    lastIncidentTimestamp String
    Last incident timestamp of the service.
    name String
    The name of the service.
    responsePlay String
    (Deprecated) The response play used by this service.
    scheduledActions List<ServiceScheduledAction>
    status String
    The status of the service.
    supportHours ServiceSupportHours
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgementTimeout string
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alertCreation string
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alertGrouping string
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters ServiceAlertGroupingParameters
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alertGroupingTimeout string
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    autoResolveTimeout string
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    createdAt string
    Creation timestamp of the service.
    description string
    escalationPolicy string
    The escalation policy used by this service.
    htmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    incidentUrgencyRule ServiceIncidentUrgencyRule
    lastIncidentTimestamp string
    Last incident timestamp of the service.
    name string
    The name of the service.
    responsePlay string
    (Deprecated) The response play used by this service.
    scheduledActions ServiceScheduledAction[]
    status string
    The status of the service.
    supportHours ServiceSupportHours
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgement_timeout str
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alert_creation str
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alert_grouping str
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alert_grouping_parameters ServiceAlertGroupingParametersArgs
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alert_grouping_timeout str
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    auto_pause_notifications_parameters ServiceAutoPauseNotificationsParametersArgs
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    auto_resolve_timeout str
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    created_at str
    Creation timestamp of the service.
    description str
    escalation_policy str
    The escalation policy used by this service.
    html_url str
    URL at which the entity is uniquely displayed in the Web app.
    incident_urgency_rule ServiceIncidentUrgencyRuleArgs
    last_incident_timestamp str
    Last incident timestamp of the service.
    name str
    The name of the service.
    response_play str
    (Deprecated) The response play used by this service.
    scheduled_actions Sequence[ServiceScheduledActionArgs]
    status str
    The status of the service.
    support_hours ServiceSupportHoursArgs
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgementTimeout String
    Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string. If not passed in, will default to '"1800"'.
    alertCreation String
    (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
    alertGrouping String
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to time: All alerts within a specified duration will be grouped into the same incident. This duration is set in the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, use alert_grouping_parameters.type instead,

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters Property Map
    (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident. Instructions on how to migrate this configuration to pagerduty.AlertGroupingSetting resource can be found here.

    Deprecated: Use a resource pagerduty.AlertGroupingSetting instead. Follow the migration guide at https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/alert_grouping_setting#migration-from-alert_grouping_parameters

    alertGroupingTimeout String
    (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0. This field is deprecated, use alert_grouping_parameters.config.timeout instead,

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters Property Map
    Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
    autoResolveTimeout String
    Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
    createdAt String
    Creation timestamp of the service.
    description String
    escalationPolicy String
    The escalation policy used by this service.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    incidentUrgencyRule Property Map
    lastIncidentTimestamp String
    Last incident timestamp of the service.
    name String
    The name of the service.
    responsePlay String
    (Deprecated) The response play used by this service.
    scheduledActions List<Property Map>
    status String
    The status of the service.
    supportHours Property Map
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.

    Supporting Types

    ServiceAlertGroupingParameters, ServiceAlertGroupingParametersArgs

    Config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    Type string
    The type of alert grouping; one of intelligent, time or content_based.
    Config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    Type string
    The type of alert grouping; one of intelligent, time or content_based.
    config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type String
    The type of alert grouping; one of intelligent, time or content_based.
    config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type string
    The type of alert grouping; one of intelligent, time or content_based.
    config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type str
    The type of alert grouping; one of intelligent, time or content_based.
    config Property Map
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type String
    The type of alert grouping; one of intelligent, time or content_based.

    ServiceAlertGroupingParametersConfig, ServiceAlertGroupingParametersConfigArgs

    Aggregate string
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    Fields List<string>
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    TimeWindow int
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600 or exactly 86400 (86400 is supported only for content_based alert grouping). Any Alerts arriving greater than time_window seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours.
    Timeout int
    The duration in minutes within which to automatically group incoming alerts. This setting applies only when type is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    Aggregate string
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    Fields []string
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    TimeWindow int
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600 or exactly 86400 (86400 is supported only for content_based alert grouping). Any Alerts arriving greater than time_window seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours.
    Timeout int
    The duration in minutes within which to automatically group incoming alerts. This setting applies only when type is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate String
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    fields List<String>
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    timeWindow Integer
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600 or exactly 86400 (86400 is supported only for content_based alert grouping). Any Alerts arriving greater than time_window seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours.
    timeout Integer
    The duration in minutes within which to automatically group incoming alerts. This setting applies only when type is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate string
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    fields string[]
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    timeWindow number
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600 or exactly 86400 (86400 is supported only for content_based alert grouping). Any Alerts arriving greater than time_window seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours.
    timeout number
    The duration in minutes within which to automatically group incoming alerts. This setting applies only when type is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate str
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    fields Sequence[str]
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    time_window int
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600 or exactly 86400 (86400 is supported only for content_based alert grouping). Any Alerts arriving greater than time_window seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours.
    timeout int
    The duration in minutes within which to automatically group incoming alerts. This setting applies only when type is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate String
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    fields List<String>
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    timeWindow Number
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600 or exactly 86400 (86400 is supported only for content_based alert grouping). Any Alerts arriving greater than time_window seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours.
    timeout Number
    The duration in minutes within which to automatically group incoming alerts. This setting applies only when type is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.

    ServiceAutoPauseNotificationsParameters, ServiceAutoPauseNotificationsParametersArgs

    Enabled bool
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    Timeout int
    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.
    Enabled bool
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    Timeout int
    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.
    enabled Boolean
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout Integer
    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.
    enabled boolean
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout number
    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.
    enabled bool
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout int
    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.
    enabled Boolean
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout Number
    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.

    ServiceIncidentUrgencyRule, ServiceIncidentUrgencyRuleArgs

    Type string
    The type of incident urgency: constant or use_support_hours (when depending on specific support hours; see support_hours).
    DuringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    Incidents' urgency during support hours.
    OutsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    Incidents' urgency outside support hours.
    Urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    Type string
    The type of incident urgency: constant or use_support_hours (when depending on specific support hours; see support_hours).
    DuringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    Incidents' urgency during support hours.
    OutsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    Incidents' urgency outside support hours.
    Urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type String
    The type of incident urgency: constant or use_support_hours (when depending on specific support hours; see support_hours).
    duringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    Incidents' urgency during support hours.
    outsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    Incidents' urgency outside support hours.
    urgency String
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type string
    The type of incident urgency: constant or use_support_hours (when depending on specific support hours; see support_hours).
    duringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    Incidents' urgency during support hours.
    outsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    Incidents' urgency outside support hours.
    urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type str
    The type of incident urgency: constant or use_support_hours (when depending on specific support hours; see support_hours).
    during_support_hours ServiceIncidentUrgencyRuleDuringSupportHours
    Incidents' urgency during support hours.
    outside_support_hours ServiceIncidentUrgencyRuleOutsideSupportHours
    Incidents' urgency outside support hours.
    urgency str
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type String
    The type of incident urgency: constant or use_support_hours (when depending on specific support hours; see support_hours).
    duringSupportHours Property Map
    Incidents' urgency during support hours.
    outsideSupportHours Property Map
    Incidents' urgency outside support hours.
    urgency String
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.

    ServiceIncidentUrgencyRuleDuringSupportHours, ServiceIncidentUrgencyRuleDuringSupportHoursArgs

    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency str
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.

    ServiceIncidentUrgencyRuleOutsideSupportHours, ServiceIncidentUrgencyRuleOutsideSupportHoursArgs

    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency string
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency str
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String
    The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set's the urgency of the incident based on the severity set by the triggering monitoring tool.

    ServiceScheduledAction, ServiceScheduledActionArgs

    Ats List<ServiceScheduledActionAt>
    A block representing when the scheduled action will occur.
    ToUrgency string
    The urgency to change to: low (does not escalate), or high (follows escalation rules).
    Type string
    The type of scheduled action. Currently, this must be set to urgency_change.
    Ats []ServiceScheduledActionAt
    A block representing when the scheduled action will occur.
    ToUrgency string
    The urgency to change to: low (does not escalate), or high (follows escalation rules).
    Type string
    The type of scheduled action. Currently, this must be set to urgency_change.
    ats List<ServiceScheduledActionAt>
    A block representing when the scheduled action will occur.
    toUrgency String
    The urgency to change to: low (does not escalate), or high (follows escalation rules).
    type String
    The type of scheduled action. Currently, this must be set to urgency_change.
    ats ServiceScheduledActionAt[]
    A block representing when the scheduled action will occur.
    toUrgency string
    The urgency to change to: low (does not escalate), or high (follows escalation rules).
    type string
    The type of scheduled action. Currently, this must be set to urgency_change.
    ats Sequence[ServiceScheduledActionAt]
    A block representing when the scheduled action will occur.
    to_urgency str
    The urgency to change to: low (does not escalate), or high (follows escalation rules).
    type str
    The type of scheduled action. Currently, this must be set to urgency_change.
    ats List<Property Map>
    A block representing when the scheduled action will occur.
    toUrgency String
    The urgency to change to: low (does not escalate), or high (follows escalation rules).
    type String
    The type of scheduled action. Currently, this must be set to urgency_change.

    ServiceScheduledActionAt, ServiceScheduledActionAtArgs

    Name string

    Designates either the start or the end of the scheduled action. Can be support_hours_start or support_hours_end.

    Note that it is currently only possible to define the scheduled action when urgency is set to high for during_support_hours and to low for outside_support_hours in incident_urgency_rule.

    Below is an example for a pagerduty.Service resource with incident_urgency_rules with type = "use_support_hours", support_hours and a default scheduled_action as well.

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    

    const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });

    import pulumi
    import pulumi_pagerduty as pagerduty
    
    foo = pagerduty.Service("foo",
        name="bar",
        description="bar bar bar",
        auto_resolve_timeout="3600",
        acknowledgement_timeout="3600",
        escalation_policy=foo_pagerduty_escalation_policy["id"],
        incident_urgency_rule={
            "type": "use_support_hours",
            "during_support_hours": {
                "type": "constant",
                "urgency": "high",
            },
            "outside_support_hours": {
                "type": "constant",
                "urgency": "low",
            },
        },
        support_hours={
            "type": "fixed_time_per_day",
            "time_zone": "America/Lima",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "days_of_weeks": [
                1,
                2,
                3,
                4,
                5,
            ],
        },
        scheduled_actions=[{
            "type": "urgency_change",
            "to_urgency": "high",
            "ats": [{
                "type": "named_time",
                "name": "support_hours_start",
            }],
        }])
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Pagerduty.Service("foo", new()
        {
            Name = "bar",
            Description = "bar bar bar",
            AutoResolveTimeout = "3600",
            AcknowledgementTimeout = "3600",
            EscalationPolicy = fooPagerdutyEscalationPolicy.Id,
            IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
            {
                Type = "use_support_hours",
                DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "high",
                },
                OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "low",
                },
            },
            SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
            {
                Type = "fixed_time_per_day",
                TimeZone = "America/Lima",
                StartTime = "09:00:00",
                EndTime = "17:00:00",
                DaysOfWeeks = new[]
                {
                    1,
                    2,
                    3,
                    4,
                    5,
                },
            },
            ScheduledActions = new[]
            {
                new Pagerduty.Inputs.ServiceScheduledActionArgs
                {
                    Type = "urgency_change",
                    ToUrgency = "high",
                    Ats = new[]
                    {
                        new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                        {
                            Type = "named_time",
                            Name = "support_hours_start",
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{
    			Name:                   pulumi.String("bar"),
    			Description:            pulumi.String("bar bar bar"),
    			AutoResolveTimeout:     pulumi.String("3600"),
    			AcknowledgementTimeout: pulumi.String("3600"),
    			EscalationPolicy:       pulumi.Any(fooPagerdutyEscalationPolicy.Id),
    			IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    				Type: pulumi.String("use_support_hours"),
    				DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("high"),
    				},
    				OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("low"),
    				},
    			},
    			SupportHours: &pagerduty.ServiceSupportHoursArgs{
    				Type:      pulumi.String("fixed_time_per_day"),
    				TimeZone:  pulumi.String("America/Lima"),
    				StartTime: pulumi.String("09:00:00"),
    				EndTime:   pulumi.String("17:00:00"),
    				DaysOfWeeks: pulumi.IntArray{
    					pulumi.Int(1),
    					pulumi.Int(2),
    					pulumi.Int(3),
    					pulumi.Int(4),
    					pulumi.Int(5),
    				},
    			},
    			ScheduledActions: pagerduty.ServiceScheduledActionArray{
    				&pagerduty.ServiceScheduledActionArgs{
    					Type:      pulumi.String("urgency_change"),
    					ToUrgency: pulumi.String("high"),
    					Ats: pagerduty.ServiceScheduledActionAtArray{
    						&pagerduty.ServiceScheduledActionAtArgs{
    							Type: pulumi.String("named_time"),
    							Name: pulumi.String("support_hours_start"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new Service("foo", ServiceArgs.builder()
                .name("bar")
                .description("bar bar bar")
                .autoResolveTimeout(3600)
                .acknowledgementTimeout(3600)
                .escalationPolicy(fooPagerdutyEscalationPolicy.id())
                .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
                    .type("use_support_hours")
                    .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("high")
                        .build())
                    .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("low")
                        .build())
                    .build())
                .supportHours(ServiceSupportHoursArgs.builder()
                    .type("fixed_time_per_day")
                    .timeZone("America/Lima")
                    .startTime("09:00:00")
                    .endTime("17:00:00")
                    .daysOfWeeks(                
                        1,
                        2,
                        3,
                        4,
                        5)
                    .build())
                .scheduledActions(ServiceScheduledActionArgs.builder()
                    .type("urgency_change")
                    .toUrgency("high")
                    .ats(ServiceScheduledActionAtArgs.builder()
                        .type("named_time")
                        .name("support_hours_start")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: pagerduty:Service
        properties:
          name: bar
          description: bar bar bar
          autoResolveTimeout: 3600
          acknowledgementTimeout: 3600
          escalationPolicy: ${fooPagerdutyEscalationPolicy.id}
          incidentUrgencyRule:
            type: use_support_hours
            duringSupportHours:
              type: constant
              urgency: high
            outsideSupportHours:
              type: constant
              urgency: low
          supportHours:
            type: fixed_time_per_day
            timeZone: America/Lima
            startTime: 09:00:00
            endTime: 17:00:00
            daysOfWeeks:
              - 1
              - 2
              - 3
              - 4
              - 5
          scheduledActions:
            - type: urgency_change
              toUrgency: high
              ats:
                - type: named_time
                  name: support_hours_start
    
    Type string
    The type of time specification. Currently, this must be set to named_time.
    Name string

    Designates either the start or the end of the scheduled action. Can be support_hours_start or support_hours_end.

    Note that it is currently only possible to define the scheduled action when urgency is set to high for during_support_hours and to low for outside_support_hours in incident_urgency_rule.

    Below is an example for a pagerduty.Service resource with incident_urgency_rules with type = "use_support_hours", support_hours and a default scheduled_action as well.

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    

    const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });

    import pulumi
    import pulumi_pagerduty as pagerduty
    
    foo = pagerduty.Service("foo",
        name="bar",
        description="bar bar bar",
        auto_resolve_timeout="3600",
        acknowledgement_timeout="3600",
        escalation_policy=foo_pagerduty_escalation_policy["id"],
        incident_urgency_rule={
            "type": "use_support_hours",
            "during_support_hours": {
                "type": "constant",
                "urgency": "high",
            },
            "outside_support_hours": {
                "type": "constant",
                "urgency": "low",
            },
        },
        support_hours={
            "type": "fixed_time_per_day",
            "time_zone": "America/Lima",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "days_of_weeks": [
                1,
                2,
                3,
                4,
                5,
            ],
        },
        scheduled_actions=[{
            "type": "urgency_change",
            "to_urgency": "high",
            "ats": [{
                "type": "named_time",
                "name": "support_hours_start",
            }],
        }])
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Pagerduty.Service("foo", new()
        {
            Name = "bar",
            Description = "bar bar bar",
            AutoResolveTimeout = "3600",
            AcknowledgementTimeout = "3600",
            EscalationPolicy = fooPagerdutyEscalationPolicy.Id,
            IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
            {
                Type = "use_support_hours",
                DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "high",
                },
                OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "low",
                },
            },
            SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
            {
                Type = "fixed_time_per_day",
                TimeZone = "America/Lima",
                StartTime = "09:00:00",
                EndTime = "17:00:00",
                DaysOfWeeks = new[]
                {
                    1,
                    2,
                    3,
                    4,
                    5,
                },
            },
            ScheduledActions = new[]
            {
                new Pagerduty.Inputs.ServiceScheduledActionArgs
                {
                    Type = "urgency_change",
                    ToUrgency = "high",
                    Ats = new[]
                    {
                        new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                        {
                            Type = "named_time",
                            Name = "support_hours_start",
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{
    			Name:                   pulumi.String("bar"),
    			Description:            pulumi.String("bar bar bar"),
    			AutoResolveTimeout:     pulumi.String("3600"),
    			AcknowledgementTimeout: pulumi.String("3600"),
    			EscalationPolicy:       pulumi.Any(fooPagerdutyEscalationPolicy.Id),
    			IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    				Type: pulumi.String("use_support_hours"),
    				DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("high"),
    				},
    				OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("low"),
    				},
    			},
    			SupportHours: &pagerduty.ServiceSupportHoursArgs{
    				Type:      pulumi.String("fixed_time_per_day"),
    				TimeZone:  pulumi.String("America/Lima"),
    				StartTime: pulumi.String("09:00:00"),
    				EndTime:   pulumi.String("17:00:00"),
    				DaysOfWeeks: pulumi.IntArray{
    					pulumi.Int(1),
    					pulumi.Int(2),
    					pulumi.Int(3),
    					pulumi.Int(4),
    					pulumi.Int(5),
    				},
    			},
    			ScheduledActions: pagerduty.ServiceScheduledActionArray{
    				&pagerduty.ServiceScheduledActionArgs{
    					Type:      pulumi.String("urgency_change"),
    					ToUrgency: pulumi.String("high"),
    					Ats: pagerduty.ServiceScheduledActionAtArray{
    						&pagerduty.ServiceScheduledActionAtArgs{
    							Type: pulumi.String("named_time"),
    							Name: pulumi.String("support_hours_start"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new Service("foo", ServiceArgs.builder()
                .name("bar")
                .description("bar bar bar")
                .autoResolveTimeout(3600)
                .acknowledgementTimeout(3600)
                .escalationPolicy(fooPagerdutyEscalationPolicy.id())
                .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
                    .type("use_support_hours")
                    .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("high")
                        .build())
                    .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("low")
                        .build())
                    .build())
                .supportHours(ServiceSupportHoursArgs.builder()
                    .type("fixed_time_per_day")
                    .timeZone("America/Lima")
                    .startTime("09:00:00")
                    .endTime("17:00:00")
                    .daysOfWeeks(                
                        1,
                        2,
                        3,
                        4,
                        5)
                    .build())
                .scheduledActions(ServiceScheduledActionArgs.builder()
                    .type("urgency_change")
                    .toUrgency("high")
                    .ats(ServiceScheduledActionAtArgs.builder()
                        .type("named_time")
                        .name("support_hours_start")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: pagerduty:Service
        properties:
          name: bar
          description: bar bar bar
          autoResolveTimeout: 3600
          acknowledgementTimeout: 3600
          escalationPolicy: ${fooPagerdutyEscalationPolicy.id}
          incidentUrgencyRule:
            type: use_support_hours
            duringSupportHours:
              type: constant
              urgency: high
            outsideSupportHours:
              type: constant
              urgency: low
          supportHours:
            type: fixed_time_per_day
            timeZone: America/Lima
            startTime: 09:00:00
            endTime: 17:00:00
            daysOfWeeks:
              - 1
              - 2
              - 3
              - 4
              - 5
          scheduledActions:
            - type: urgency_change
              toUrgency: high
              ats:
                - type: named_time
                  name: support_hours_start
    
    Type string
    The type of time specification. Currently, this must be set to named_time.
    name String

    Designates either the start or the end of the scheduled action. Can be support_hours_start or support_hours_end.

    Note that it is currently only possible to define the scheduled action when urgency is set to high for during_support_hours and to low for outside_support_hours in incident_urgency_rule.

    Below is an example for a pagerduty.Service resource with incident_urgency_rules with type = "use_support_hours", support_hours and a default scheduled_action as well.

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    

    const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });

    import pulumi
    import pulumi_pagerduty as pagerduty
    
    foo = pagerduty.Service("foo",
        name="bar",
        description="bar bar bar",
        auto_resolve_timeout="3600",
        acknowledgement_timeout="3600",
        escalation_policy=foo_pagerduty_escalation_policy["id"],
        incident_urgency_rule={
            "type": "use_support_hours",
            "during_support_hours": {
                "type": "constant",
                "urgency": "high",
            },
            "outside_support_hours": {
                "type": "constant",
                "urgency": "low",
            },
        },
        support_hours={
            "type": "fixed_time_per_day",
            "time_zone": "America/Lima",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "days_of_weeks": [
                1,
                2,
                3,
                4,
                5,
            ],
        },
        scheduled_actions=[{
            "type": "urgency_change",
            "to_urgency": "high",
            "ats": [{
                "type": "named_time",
                "name": "support_hours_start",
            }],
        }])
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Pagerduty.Service("foo", new()
        {
            Name = "bar",
            Description = "bar bar bar",
            AutoResolveTimeout = "3600",
            AcknowledgementTimeout = "3600",
            EscalationPolicy = fooPagerdutyEscalationPolicy.Id,
            IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
            {
                Type = "use_support_hours",
                DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "high",
                },
                OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "low",
                },
            },
            SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
            {
                Type = "fixed_time_per_day",
                TimeZone = "America/Lima",
                StartTime = "09:00:00",
                EndTime = "17:00:00",
                DaysOfWeeks = new[]
                {
                    1,
                    2,
                    3,
                    4,
                    5,
                },
            },
            ScheduledActions = new[]
            {
                new Pagerduty.Inputs.ServiceScheduledActionArgs
                {
                    Type = "urgency_change",
                    ToUrgency = "high",
                    Ats = new[]
                    {
                        new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                        {
                            Type = "named_time",
                            Name = "support_hours_start",
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{
    			Name:                   pulumi.String("bar"),
    			Description:            pulumi.String("bar bar bar"),
    			AutoResolveTimeout:     pulumi.String("3600"),
    			AcknowledgementTimeout: pulumi.String("3600"),
    			EscalationPolicy:       pulumi.Any(fooPagerdutyEscalationPolicy.Id),
    			IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    				Type: pulumi.String("use_support_hours"),
    				DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("high"),
    				},
    				OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("low"),
    				},
    			},
    			SupportHours: &pagerduty.ServiceSupportHoursArgs{
    				Type:      pulumi.String("fixed_time_per_day"),
    				TimeZone:  pulumi.String("America/Lima"),
    				StartTime: pulumi.String("09:00:00"),
    				EndTime:   pulumi.String("17:00:00"),
    				DaysOfWeeks: pulumi.IntArray{
    					pulumi.Int(1),
    					pulumi.Int(2),
    					pulumi.Int(3),
    					pulumi.Int(4),
    					pulumi.Int(5),
    				},
    			},
    			ScheduledActions: pagerduty.ServiceScheduledActionArray{
    				&pagerduty.ServiceScheduledActionArgs{
    					Type:      pulumi.String("urgency_change"),
    					ToUrgency: pulumi.String("high"),
    					Ats: pagerduty.ServiceScheduledActionAtArray{
    						&pagerduty.ServiceScheduledActionAtArgs{
    							Type: pulumi.String("named_time"),
    							Name: pulumi.String("support_hours_start"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new Service("foo", ServiceArgs.builder()
                .name("bar")
                .description("bar bar bar")
                .autoResolveTimeout(3600)
                .acknowledgementTimeout(3600)
                .escalationPolicy(fooPagerdutyEscalationPolicy.id())
                .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
                    .type("use_support_hours")
                    .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("high")
                        .build())
                    .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("low")
                        .build())
                    .build())
                .supportHours(ServiceSupportHoursArgs.builder()
                    .type("fixed_time_per_day")
                    .timeZone("America/Lima")
                    .startTime("09:00:00")
                    .endTime("17:00:00")
                    .daysOfWeeks(                
                        1,
                        2,
                        3,
                        4,
                        5)
                    .build())
                .scheduledActions(ServiceScheduledActionArgs.builder()
                    .type("urgency_change")
                    .toUrgency("high")
                    .ats(ServiceScheduledActionAtArgs.builder()
                        .type("named_time")
                        .name("support_hours_start")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: pagerduty:Service
        properties:
          name: bar
          description: bar bar bar
          autoResolveTimeout: 3600
          acknowledgementTimeout: 3600
          escalationPolicy: ${fooPagerdutyEscalationPolicy.id}
          incidentUrgencyRule:
            type: use_support_hours
            duringSupportHours:
              type: constant
              urgency: high
            outsideSupportHours:
              type: constant
              urgency: low
          supportHours:
            type: fixed_time_per_day
            timeZone: America/Lima
            startTime: 09:00:00
            endTime: 17:00:00
            daysOfWeeks:
              - 1
              - 2
              - 3
              - 4
              - 5
          scheduledActions:
            - type: urgency_change
              toUrgency: high
              ats:
                - type: named_time
                  name: support_hours_start
    
    type String
    The type of time specification. Currently, this must be set to named_time.
    name string

    Designates either the start or the end of the scheduled action. Can be support_hours_start or support_hours_end.

    Note that it is currently only possible to define the scheduled action when urgency is set to high for during_support_hours and to low for outside_support_hours in incident_urgency_rule.

    Below is an example for a pagerduty.Service resource with incident_urgency_rules with type = "use_support_hours", support_hours and a default scheduled_action as well.

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    

    const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });

    import pulumi
    import pulumi_pagerduty as pagerduty
    
    foo = pagerduty.Service("foo",
        name="bar",
        description="bar bar bar",
        auto_resolve_timeout="3600",
        acknowledgement_timeout="3600",
        escalation_policy=foo_pagerduty_escalation_policy["id"],
        incident_urgency_rule={
            "type": "use_support_hours",
            "during_support_hours": {
                "type": "constant",
                "urgency": "high",
            },
            "outside_support_hours": {
                "type": "constant",
                "urgency": "low",
            },
        },
        support_hours={
            "type": "fixed_time_per_day",
            "time_zone": "America/Lima",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "days_of_weeks": [
                1,
                2,
                3,
                4,
                5,
            ],
        },
        scheduled_actions=[{
            "type": "urgency_change",
            "to_urgency": "high",
            "ats": [{
                "type": "named_time",
                "name": "support_hours_start",
            }],
        }])
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Pagerduty.Service("foo", new()
        {
            Name = "bar",
            Description = "bar bar bar",
            AutoResolveTimeout = "3600",
            AcknowledgementTimeout = "3600",
            EscalationPolicy = fooPagerdutyEscalationPolicy.Id,
            IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
            {
                Type = "use_support_hours",
                DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "high",
                },
                OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "low",
                },
            },
            SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
            {
                Type = "fixed_time_per_day",
                TimeZone = "America/Lima",
                StartTime = "09:00:00",
                EndTime = "17:00:00",
                DaysOfWeeks = new[]
                {
                    1,
                    2,
                    3,
                    4,
                    5,
                },
            },
            ScheduledActions = new[]
            {
                new Pagerduty.Inputs.ServiceScheduledActionArgs
                {
                    Type = "urgency_change",
                    ToUrgency = "high",
                    Ats = new[]
                    {
                        new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                        {
                            Type = "named_time",
                            Name = "support_hours_start",
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{
    			Name:                   pulumi.String("bar"),
    			Description:            pulumi.String("bar bar bar"),
    			AutoResolveTimeout:     pulumi.String("3600"),
    			AcknowledgementTimeout: pulumi.String("3600"),
    			EscalationPolicy:       pulumi.Any(fooPagerdutyEscalationPolicy.Id),
    			IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    				Type: pulumi.String("use_support_hours"),
    				DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("high"),
    				},
    				OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("low"),
    				},
    			},
    			SupportHours: &pagerduty.ServiceSupportHoursArgs{
    				Type:      pulumi.String("fixed_time_per_day"),
    				TimeZone:  pulumi.String("America/Lima"),
    				StartTime: pulumi.String("09:00:00"),
    				EndTime:   pulumi.String("17:00:00"),
    				DaysOfWeeks: pulumi.IntArray{
    					pulumi.Int(1),
    					pulumi.Int(2),
    					pulumi.Int(3),
    					pulumi.Int(4),
    					pulumi.Int(5),
    				},
    			},
    			ScheduledActions: pagerduty.ServiceScheduledActionArray{
    				&pagerduty.ServiceScheduledActionArgs{
    					Type:      pulumi.String("urgency_change"),
    					ToUrgency: pulumi.String("high"),
    					Ats: pagerduty.ServiceScheduledActionAtArray{
    						&pagerduty.ServiceScheduledActionAtArgs{
    							Type: pulumi.String("named_time"),
    							Name: pulumi.String("support_hours_start"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new Service("foo", ServiceArgs.builder()
                .name("bar")
                .description("bar bar bar")
                .autoResolveTimeout(3600)
                .acknowledgementTimeout(3600)
                .escalationPolicy(fooPagerdutyEscalationPolicy.id())
                .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
                    .type("use_support_hours")
                    .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("high")
                        .build())
                    .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("low")
                        .build())
                    .build())
                .supportHours(ServiceSupportHoursArgs.builder()
                    .type("fixed_time_per_day")
                    .timeZone("America/Lima")
                    .startTime("09:00:00")
                    .endTime("17:00:00")
                    .daysOfWeeks(                
                        1,
                        2,
                        3,
                        4,
                        5)
                    .build())
                .scheduledActions(ServiceScheduledActionArgs.builder()
                    .type("urgency_change")
                    .toUrgency("high")
                    .ats(ServiceScheduledActionAtArgs.builder()
                        .type("named_time")
                        .name("support_hours_start")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: pagerduty:Service
        properties:
          name: bar
          description: bar bar bar
          autoResolveTimeout: 3600
          acknowledgementTimeout: 3600
          escalationPolicy: ${fooPagerdutyEscalationPolicy.id}
          incidentUrgencyRule:
            type: use_support_hours
            duringSupportHours:
              type: constant
              urgency: high
            outsideSupportHours:
              type: constant
              urgency: low
          supportHours:
            type: fixed_time_per_day
            timeZone: America/Lima
            startTime: 09:00:00
            endTime: 17:00:00
            daysOfWeeks:
              - 1
              - 2
              - 3
              - 4
              - 5
          scheduledActions:
            - type: urgency_change
              toUrgency: high
              ats:
                - type: named_time
                  name: support_hours_start
    
    type string
    The type of time specification. Currently, this must be set to named_time.
    name str

    Designates either the start or the end of the scheduled action. Can be support_hours_start or support_hours_end.

    Note that it is currently only possible to define the scheduled action when urgency is set to high for during_support_hours and to low for outside_support_hours in incident_urgency_rule.

    Below is an example for a pagerduty.Service resource with incident_urgency_rules with type = "use_support_hours", support_hours and a default scheduled_action as well.

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    

    const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });

    import pulumi
    import pulumi_pagerduty as pagerduty
    
    foo = pagerduty.Service("foo",
        name="bar",
        description="bar bar bar",
        auto_resolve_timeout="3600",
        acknowledgement_timeout="3600",
        escalation_policy=foo_pagerduty_escalation_policy["id"],
        incident_urgency_rule={
            "type": "use_support_hours",
            "during_support_hours": {
                "type": "constant",
                "urgency": "high",
            },
            "outside_support_hours": {
                "type": "constant",
                "urgency": "low",
            },
        },
        support_hours={
            "type": "fixed_time_per_day",
            "time_zone": "America/Lima",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "days_of_weeks": [
                1,
                2,
                3,
                4,
                5,
            ],
        },
        scheduled_actions=[{
            "type": "urgency_change",
            "to_urgency": "high",
            "ats": [{
                "type": "named_time",
                "name": "support_hours_start",
            }],
        }])
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Pagerduty.Service("foo", new()
        {
            Name = "bar",
            Description = "bar bar bar",
            AutoResolveTimeout = "3600",
            AcknowledgementTimeout = "3600",
            EscalationPolicy = fooPagerdutyEscalationPolicy.Id,
            IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
            {
                Type = "use_support_hours",
                DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "high",
                },
                OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "low",
                },
            },
            SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
            {
                Type = "fixed_time_per_day",
                TimeZone = "America/Lima",
                StartTime = "09:00:00",
                EndTime = "17:00:00",
                DaysOfWeeks = new[]
                {
                    1,
                    2,
                    3,
                    4,
                    5,
                },
            },
            ScheduledActions = new[]
            {
                new Pagerduty.Inputs.ServiceScheduledActionArgs
                {
                    Type = "urgency_change",
                    ToUrgency = "high",
                    Ats = new[]
                    {
                        new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                        {
                            Type = "named_time",
                            Name = "support_hours_start",
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{
    			Name:                   pulumi.String("bar"),
    			Description:            pulumi.String("bar bar bar"),
    			AutoResolveTimeout:     pulumi.String("3600"),
    			AcknowledgementTimeout: pulumi.String("3600"),
    			EscalationPolicy:       pulumi.Any(fooPagerdutyEscalationPolicy.Id),
    			IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    				Type: pulumi.String("use_support_hours"),
    				DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("high"),
    				},
    				OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("low"),
    				},
    			},
    			SupportHours: &pagerduty.ServiceSupportHoursArgs{
    				Type:      pulumi.String("fixed_time_per_day"),
    				TimeZone:  pulumi.String("America/Lima"),
    				StartTime: pulumi.String("09:00:00"),
    				EndTime:   pulumi.String("17:00:00"),
    				DaysOfWeeks: pulumi.IntArray{
    					pulumi.Int(1),
    					pulumi.Int(2),
    					pulumi.Int(3),
    					pulumi.Int(4),
    					pulumi.Int(5),
    				},
    			},
    			ScheduledActions: pagerduty.ServiceScheduledActionArray{
    				&pagerduty.ServiceScheduledActionArgs{
    					Type:      pulumi.String("urgency_change"),
    					ToUrgency: pulumi.String("high"),
    					Ats: pagerduty.ServiceScheduledActionAtArray{
    						&pagerduty.ServiceScheduledActionAtArgs{
    							Type: pulumi.String("named_time"),
    							Name: pulumi.String("support_hours_start"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new Service("foo", ServiceArgs.builder()
                .name("bar")
                .description("bar bar bar")
                .autoResolveTimeout(3600)
                .acknowledgementTimeout(3600)
                .escalationPolicy(fooPagerdutyEscalationPolicy.id())
                .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
                    .type("use_support_hours")
                    .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("high")
                        .build())
                    .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("low")
                        .build())
                    .build())
                .supportHours(ServiceSupportHoursArgs.builder()
                    .type("fixed_time_per_day")
                    .timeZone("America/Lima")
                    .startTime("09:00:00")
                    .endTime("17:00:00")
                    .daysOfWeeks(                
                        1,
                        2,
                        3,
                        4,
                        5)
                    .build())
                .scheduledActions(ServiceScheduledActionArgs.builder()
                    .type("urgency_change")
                    .toUrgency("high")
                    .ats(ServiceScheduledActionAtArgs.builder()
                        .type("named_time")
                        .name("support_hours_start")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: pagerduty:Service
        properties:
          name: bar
          description: bar bar bar
          autoResolveTimeout: 3600
          acknowledgementTimeout: 3600
          escalationPolicy: ${fooPagerdutyEscalationPolicy.id}
          incidentUrgencyRule:
            type: use_support_hours
            duringSupportHours:
              type: constant
              urgency: high
            outsideSupportHours:
              type: constant
              urgency: low
          supportHours:
            type: fixed_time_per_day
            timeZone: America/Lima
            startTime: 09:00:00
            endTime: 17:00:00
            daysOfWeeks:
              - 1
              - 2
              - 3
              - 4
              - 5
          scheduledActions:
            - type: urgency_change
              toUrgency: high
              ats:
                - type: named_time
                  name: support_hours_start
    
    type str
    The type of time specification. Currently, this must be set to named_time.
    name String

    Designates either the start or the end of the scheduled action. Can be support_hours_start or support_hours_end.

    Note that it is currently only possible to define the scheduled action when urgency is set to high for during_support_hours and to low for outside_support_hours in incident_urgency_rule.

    Below is an example for a pagerduty.Service resource with incident_urgency_rules with type = "use_support_hours", support_hours and a default scheduled_action as well.

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    

    const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });

    import pulumi
    import pulumi_pagerduty as pagerduty
    
    foo = pagerduty.Service("foo",
        name="bar",
        description="bar bar bar",
        auto_resolve_timeout="3600",
        acknowledgement_timeout="3600",
        escalation_policy=foo_pagerduty_escalation_policy["id"],
        incident_urgency_rule={
            "type": "use_support_hours",
            "during_support_hours": {
                "type": "constant",
                "urgency": "high",
            },
            "outside_support_hours": {
                "type": "constant",
                "urgency": "low",
            },
        },
        support_hours={
            "type": "fixed_time_per_day",
            "time_zone": "America/Lima",
            "start_time": "09:00:00",
            "end_time": "17:00:00",
            "days_of_weeks": [
                1,
                2,
                3,
                4,
                5,
            ],
        },
        scheduled_actions=[{
            "type": "urgency_change",
            "to_urgency": "high",
            "ats": [{
                "type": "named_time",
                "name": "support_hours_start",
            }],
        }])
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Pagerduty.Service("foo", new()
        {
            Name = "bar",
            Description = "bar bar bar",
            AutoResolveTimeout = "3600",
            AcknowledgementTimeout = "3600",
            EscalationPolicy = fooPagerdutyEscalationPolicy.Id,
            IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
            {
                Type = "use_support_hours",
                DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "high",
                },
                OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
                {
                    Type = "constant",
                    Urgency = "low",
                },
            },
            SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
            {
                Type = "fixed_time_per_day",
                TimeZone = "America/Lima",
                StartTime = "09:00:00",
                EndTime = "17:00:00",
                DaysOfWeeks = new[]
                {
                    1,
                    2,
                    3,
                    4,
                    5,
                },
            },
            ScheduledActions = new[]
            {
                new Pagerduty.Inputs.ServiceScheduledActionArgs
                {
                    Type = "urgency_change",
                    ToUrgency = "high",
                    Ats = new[]
                    {
                        new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                        {
                            Type = "named_time",
                            Name = "support_hours_start",
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{
    			Name:                   pulumi.String("bar"),
    			Description:            pulumi.String("bar bar bar"),
    			AutoResolveTimeout:     pulumi.String("3600"),
    			AcknowledgementTimeout: pulumi.String("3600"),
    			EscalationPolicy:       pulumi.Any(fooPagerdutyEscalationPolicy.Id),
    			IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    				Type: pulumi.String("use_support_hours"),
    				DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("high"),
    				},
    				OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    					Type:    pulumi.String("constant"),
    					Urgency: pulumi.String("low"),
    				},
    			},
    			SupportHours: &pagerduty.ServiceSupportHoursArgs{
    				Type:      pulumi.String("fixed_time_per_day"),
    				TimeZone:  pulumi.String("America/Lima"),
    				StartTime: pulumi.String("09:00:00"),
    				EndTime:   pulumi.String("17:00:00"),
    				DaysOfWeeks: pulumi.IntArray{
    					pulumi.Int(1),
    					pulumi.Int(2),
    					pulumi.Int(3),
    					pulumi.Int(4),
    					pulumi.Int(5),
    				},
    			},
    			ScheduledActions: pagerduty.ServiceScheduledActionArray{
    				&pagerduty.ServiceScheduledActionArgs{
    					Type:      pulumi.String("urgency_change"),
    					ToUrgency: pulumi.String("high"),
    					Ats: pagerduty.ServiceScheduledActionAtArray{
    						&pagerduty.ServiceScheduledActionAtArgs{
    							Type: pulumi.String("named_time"),
    							Name: pulumi.String("support_hours_start"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs;
    import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new Service("foo", ServiceArgs.builder()
                .name("bar")
                .description("bar bar bar")
                .autoResolveTimeout(3600)
                .acknowledgementTimeout(3600)
                .escalationPolicy(fooPagerdutyEscalationPolicy.id())
                .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
                    .type("use_support_hours")
                    .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("high")
                        .build())
                    .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                        .type("constant")
                        .urgency("low")
                        .build())
                    .build())
                .supportHours(ServiceSupportHoursArgs.builder()
                    .type("fixed_time_per_day")
                    .timeZone("America/Lima")
                    .startTime("09:00:00")
                    .endTime("17:00:00")
                    .daysOfWeeks(                
                        1,
                        2,
                        3,
                        4,
                        5)
                    .build())
                .scheduledActions(ServiceScheduledActionArgs.builder()
                    .type("urgency_change")
                    .toUrgency("high")
                    .ats(ServiceScheduledActionAtArgs.builder()
                        .type("named_time")
                        .name("support_hours_start")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: pagerduty:Service
        properties:
          name: bar
          description: bar bar bar
          autoResolveTimeout: 3600
          acknowledgementTimeout: 3600
          escalationPolicy: ${fooPagerdutyEscalationPolicy.id}
          incidentUrgencyRule:
            type: use_support_hours
            duringSupportHours:
              type: constant
              urgency: high
            outsideSupportHours:
              type: constant
              urgency: low
          supportHours:
            type: fixed_time_per_day
            timeZone: America/Lima
            startTime: 09:00:00
            endTime: 17:00:00
            daysOfWeeks:
              - 1
              - 2
              - 3
              - 4
              - 5
          scheduledActions:
            - type: urgency_change
              toUrgency: high
              ats:
                - type: named_time
                  name: support_hours_start
    
    type String
    The type of time specification. Currently, this must be set to named_time.

    ServiceSupportHours, ServiceSupportHoursArgs

    DaysOfWeeks List<int>
    Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
    EndTime string
    The support hours' ending time of day.
    StartTime string
    The support hours' starting time of day.
    TimeZone string
    The time zone for the support hours.
    Type string
    The type of support hours. Can be fixed_time_per_day.
    DaysOfWeeks []int
    Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
    EndTime string
    The support hours' ending time of day.
    StartTime string
    The support hours' starting time of day.
    TimeZone string
    The time zone for the support hours.
    Type string
    The type of support hours. Can be fixed_time_per_day.
    daysOfWeeks List<Integer>
    Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
    endTime String
    The support hours' ending time of day.
    startTime String
    The support hours' starting time of day.
    timeZone String
    The time zone for the support hours.
    type String
    The type of support hours. Can be fixed_time_per_day.
    daysOfWeeks number[]
    Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
    endTime string
    The support hours' ending time of day.
    startTime string
    The support hours' starting time of day.
    timeZone string
    The time zone for the support hours.
    type string
    The type of support hours. Can be fixed_time_per_day.
    days_of_weeks Sequence[int]
    Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
    end_time str
    The support hours' ending time of day.
    start_time str
    The support hours' starting time of day.
    time_zone str
    The time zone for the support hours.
    type str
    The type of support hours. Can be fixed_time_per_day.
    daysOfWeeks List<Number>
    Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
    endTime String
    The support hours' ending time of day.
    startTime String
    The support hours' starting time of day.
    timeZone String
    The time zone for the support hours.
    type String
    The type of support hours. Can be fixed_time_per_day.

    Import

    Services can be imported using the id, e.g.

    $ pulumi import pagerduty:index/service:Service main PLBP09X
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    PagerDuty pulumi/pulumi-pagerduty
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the pagerduty Terraform Provider.
    pagerduty logo
    PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi