1. Packages
  2. AWS
  3. API Docs
  4. ssm
  5. ContactsRotation
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.ssm.ContactsRotation

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ssm.ContactsRotation("example", {
        contactIds: [exampleAwsSsmcontactsContact.arn],
        name: "rotation",
        recurrence: {
            numberOfOnCalls: 1,
            recurrenceMultiplier: 1,
            dailySettings: [{
                hourOfDay: 9,
                minuteOfHour: 0,
            }],
        },
        timeZoneId: "Australia/Sydney",
    }, {
        dependsOn: [exampleAwsSsmincidentsReplicationSet],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ssm.ContactsRotation("example",
        contact_ids=[example_aws_ssmcontacts_contact["arn"]],
        name="rotation",
        recurrence={
            "number_of_on_calls": 1,
            "recurrence_multiplier": 1,
            "daily_settings": [{
                "hour_of_day": 9,
                "minute_of_hour": 0,
            }],
        },
        time_zone_id="Australia/Sydney",
        opts = pulumi.ResourceOptions(depends_on=[example_aws_ssmincidents_replication_set]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewContactsRotation(ctx, "example", &ssm.ContactsRotationArgs{
    			ContactIds: pulumi.StringArray{
    				exampleAwsSsmcontactsContact.Arn,
    			},
    			Name: pulumi.String("rotation"),
    			Recurrence: &ssm.ContactsRotationRecurrenceArgs{
    				NumberOfOnCalls:      pulumi.Int(1),
    				RecurrenceMultiplier: pulumi.Int(1),
    				DailySettings: ssm.ContactsRotationRecurrenceDailySettingArray{
    					&ssm.ContactsRotationRecurrenceDailySettingArgs{
    						HourOfDay:    pulumi.Int(9),
    						MinuteOfHour: pulumi.Int(0),
    					},
    				},
    			},
    			TimeZoneId: pulumi.String("Australia/Sydney"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleAwsSsmincidentsReplicationSet,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ssm.ContactsRotation("example", new()
        {
            ContactIds = new[]
            {
                exampleAwsSsmcontactsContact.Arn,
            },
            Name = "rotation",
            Recurrence = new Aws.Ssm.Inputs.ContactsRotationRecurrenceArgs
            {
                NumberOfOnCalls = 1,
                RecurrenceMultiplier = 1,
                DailySettings = new[]
                {
                    new Aws.Ssm.Inputs.ContactsRotationRecurrenceDailySettingArgs
                    {
                        HourOfDay = 9,
                        MinuteOfHour = 0,
                    },
                },
            },
            TimeZoneId = "Australia/Sydney",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleAwsSsmincidentsReplicationSet,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ssm.ContactsRotation;
    import com.pulumi.aws.ssm.ContactsRotationArgs;
    import com.pulumi.aws.ssm.inputs.ContactsRotationRecurrenceArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 ContactsRotation("example", ContactsRotationArgs.builder()
                .contactIds(exampleAwsSsmcontactsContact.arn())
                .name("rotation")
                .recurrence(ContactsRotationRecurrenceArgs.builder()
                    .numberOfOnCalls(1)
                    .recurrenceMultiplier(1)
                    .dailySettings(ContactsRotationRecurrenceDailySettingArgs.builder()
                        .hourOfDay(9)
                        .minuteOfHour(0)
                        .build())
                    .build())
                .timeZoneId("Australia/Sydney")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleAwsSsmincidentsReplicationSet)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ssm:ContactsRotation
        properties:
          contactIds:
            - ${exampleAwsSsmcontactsContact.arn}
          name: rotation
          recurrence:
            numberOfOnCalls: 1
            recurrenceMultiplier: 1
            dailySettings:
              - hourOfDay: 9
                minuteOfHour: 0
          timeZoneId: Australia/Sydney
        options:
          dependson:
            - ${exampleAwsSsmincidentsReplicationSet}
    

    Usage with Weekly Settings and Shift Coverages Fields

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ssm.ContactsRotation("example", {
        contactIds: [exampleAwsSsmcontactsContact.arn],
        name: "rotation",
        recurrence: {
            numberOfOnCalls: 1,
            recurrenceMultiplier: 1,
            weeklySettings: [
                {
                    dayOfWeek: "WED",
                    handOffTime: {
                        hourOfDay: 4,
                        minuteOfHour: 25,
                    },
                },
                {
                    dayOfWeek: "FRI",
                    handOffTime: {
                        hourOfDay: 15,
                        minuteOfHour: 57,
                    },
                },
            ],
            shiftCoverages: [{
                mapBlockKey: "MON",
                coverageTimes: [{
                    start: {
                        hourOfDay: 1,
                        minuteOfHour: 0,
                    },
                    end: {
                        hourOfDay: 23,
                        minuteOfHour: 0,
                    },
                }],
            }],
        },
        startTime: "2023-07-20T02:21:49+00:00",
        timeZoneId: "Australia/Sydney",
        tags: {
            key1: "tag1",
            key2: "tag2",
        },
    }, {
        dependsOn: [exampleAwsSsmincidentsReplicationSet],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ssm.ContactsRotation("example",
        contact_ids=[example_aws_ssmcontacts_contact["arn"]],
        name="rotation",
        recurrence={
            "number_of_on_calls": 1,
            "recurrence_multiplier": 1,
            "weekly_settings": [
                {
                    "day_of_week": "WED",
                    "hand_off_time": {
                        "hour_of_day": 4,
                        "minute_of_hour": 25,
                    },
                },
                {
                    "day_of_week": "FRI",
                    "hand_off_time": {
                        "hour_of_day": 15,
                        "minute_of_hour": 57,
                    },
                },
            ],
            "shift_coverages": [{
                "map_block_key": "MON",
                "coverage_times": [{
                    "start": {
                        "hour_of_day": 1,
                        "minute_of_hour": 0,
                    },
                    "end": {
                        "hour_of_day": 23,
                        "minute_of_hour": 0,
                    },
                }],
            }],
        },
        start_time="2023-07-20T02:21:49+00:00",
        time_zone_id="Australia/Sydney",
        tags={
            "key1": "tag1",
            "key2": "tag2",
        },
        opts = pulumi.ResourceOptions(depends_on=[example_aws_ssmincidents_replication_set]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewContactsRotation(ctx, "example", &ssm.ContactsRotationArgs{
    			ContactIds: pulumi.StringArray{
    				exampleAwsSsmcontactsContact.Arn,
    			},
    			Name: pulumi.String("rotation"),
    			Recurrence: &ssm.ContactsRotationRecurrenceArgs{
    				NumberOfOnCalls:      pulumi.Int(1),
    				RecurrenceMultiplier: pulumi.Int(1),
    				WeeklySettings: ssm.ContactsRotationRecurrenceWeeklySettingArray{
    					&ssm.ContactsRotationRecurrenceWeeklySettingArgs{
    						DayOfWeek: pulumi.String("WED"),
    						HandOffTime: &ssm.ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs{
    							HourOfDay:    pulumi.Int(4),
    							MinuteOfHour: pulumi.Int(25),
    						},
    					},
    					&ssm.ContactsRotationRecurrenceWeeklySettingArgs{
    						DayOfWeek: pulumi.String("FRI"),
    						HandOffTime: &ssm.ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs{
    							HourOfDay:    pulumi.Int(15),
    							MinuteOfHour: pulumi.Int(57),
    						},
    					},
    				},
    				ShiftCoverages: ssm.ContactsRotationRecurrenceShiftCoverageArray{
    					&ssm.ContactsRotationRecurrenceShiftCoverageArgs{
    						MapBlockKey: pulumi.String("MON"),
    						CoverageTimes: ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeArray{
    							&ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs{
    								Start: &ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeStartArgs{
    									HourOfDay:    pulumi.Int(1),
    									MinuteOfHour: pulumi.Int(0),
    								},
    								End: &ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeEndArgs{
    									HourOfDay:    pulumi.Int(23),
    									MinuteOfHour: pulumi.Int(0),
    								},
    							},
    						},
    					},
    				},
    			},
    			StartTime:  pulumi.String("2023-07-20T02:21:49+00:00"),
    			TimeZoneId: pulumi.String("Australia/Sydney"),
    			Tags: pulumi.StringMap{
    				"key1": pulumi.String("tag1"),
    				"key2": pulumi.String("tag2"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleAwsSsmincidentsReplicationSet,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ssm.ContactsRotation("example", new()
        {
            ContactIds = new[]
            {
                exampleAwsSsmcontactsContact.Arn,
            },
            Name = "rotation",
            Recurrence = new Aws.Ssm.Inputs.ContactsRotationRecurrenceArgs
            {
                NumberOfOnCalls = 1,
                RecurrenceMultiplier = 1,
                WeeklySettings = new[]
                {
                    new Aws.Ssm.Inputs.ContactsRotationRecurrenceWeeklySettingArgs
                    {
                        DayOfWeek = "WED",
                        HandOffTime = new Aws.Ssm.Inputs.ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs
                        {
                            HourOfDay = 4,
                            MinuteOfHour = 25,
                        },
                    },
                    new Aws.Ssm.Inputs.ContactsRotationRecurrenceWeeklySettingArgs
                    {
                        DayOfWeek = "FRI",
                        HandOffTime = new Aws.Ssm.Inputs.ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs
                        {
                            HourOfDay = 15,
                            MinuteOfHour = 57,
                        },
                    },
                },
                ShiftCoverages = new[]
                {
                    new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageArgs
                    {
                        MapBlockKey = "MON",
                        CoverageTimes = new[]
                        {
                            new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs
                            {
                                Start = new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageCoverageTimeStartArgs
                                {
                                    HourOfDay = 1,
                                    MinuteOfHour = 0,
                                },
                                End = new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageCoverageTimeEndArgs
                                {
                                    HourOfDay = 23,
                                    MinuteOfHour = 0,
                                },
                            },
                        },
                    },
                },
            },
            StartTime = "2023-07-20T02:21:49+00:00",
            TimeZoneId = "Australia/Sydney",
            Tags = 
            {
                { "key1", "tag1" },
                { "key2", "tag2" },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleAwsSsmincidentsReplicationSet,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ssm.ContactsRotation;
    import com.pulumi.aws.ssm.ContactsRotationArgs;
    import com.pulumi.aws.ssm.inputs.ContactsRotationRecurrenceArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 ContactsRotation("example", ContactsRotationArgs.builder()
                .contactIds(exampleAwsSsmcontactsContact.arn())
                .name("rotation")
                .recurrence(ContactsRotationRecurrenceArgs.builder()
                    .numberOfOnCalls(1)
                    .recurrenceMultiplier(1)
                    .weeklySettings(                
                        ContactsRotationRecurrenceWeeklySettingArgs.builder()
                            .dayOfWeek("WED")
                            .handOffTime(ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs.builder()
                                .hourOfDay(4)
                                .minuteOfHour(25)
                                .build())
                            .build(),
                        ContactsRotationRecurrenceWeeklySettingArgs.builder()
                            .dayOfWeek("FRI")
                            .handOffTime(ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs.builder()
                                .hourOfDay(15)
                                .minuteOfHour(57)
                                .build())
                            .build())
                    .shiftCoverages(ContactsRotationRecurrenceShiftCoverageArgs.builder()
                        .mapBlockKey("MON")
                        .coverageTimes(ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs.builder()
                            .start(ContactsRotationRecurrenceShiftCoverageCoverageTimeStartArgs.builder()
                                .hourOfDay(1)
                                .minuteOfHour(0)
                                .build())
                            .end(ContactsRotationRecurrenceShiftCoverageCoverageTimeEndArgs.builder()
                                .hourOfDay(23)
                                .minuteOfHour(0)
                                .build())
                            .build())
                        .build())
                    .build())
                .startTime("2023-07-20T02:21:49+00:00")
                .timeZoneId("Australia/Sydney")
                .tags(Map.ofEntries(
                    Map.entry("key1", "tag1"),
                    Map.entry("key2", "tag2")
                ))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleAwsSsmincidentsReplicationSet)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ssm:ContactsRotation
        properties:
          contactIds:
            - ${exampleAwsSsmcontactsContact.arn}
          name: rotation
          recurrence:
            numberOfOnCalls: 1
            recurrenceMultiplier: 1
            weeklySettings:
              - dayOfWeek: WED
                handOffTime:
                  hourOfDay: 4
                  minuteOfHour: 25
              - dayOfWeek: FRI
                handOffTime:
                  hourOfDay: 15
                  minuteOfHour: 57
            shiftCoverages:
              - mapBlockKey: MON
                coverageTimes:
                  - start:
                      hourOfDay: 1
                      minuteOfHour: 0
                    end:
                      hourOfDay: 23
                      minuteOfHour: 0
          startTime: 2023-07-20T02:21:49+00:00
          timeZoneId: Australia/Sydney
          tags:
            key1: tag1
            key2: tag2
        options:
          dependson:
            - ${exampleAwsSsmincidentsReplicationSet}
    

    Usage with Monthly Settings Fields

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ssm.ContactsRotation("example", {
        contactIds: [exampleAwsSsmcontactsContact.arn],
        name: "rotation",
        recurrence: {
            numberOfOnCalls: 1,
            recurrenceMultiplier: 1,
            monthlySettings: [
                {
                    dayOfMonth: 20,
                    handOffTime: {
                        hourOfDay: 8,
                        minuteOfHour: 0,
                    },
                },
                {
                    dayOfMonth: 13,
                    handOffTime: {
                        hourOfDay: 12,
                        minuteOfHour: 34,
                    },
                },
            ],
        },
        timeZoneId: "Australia/Sydney",
    }, {
        dependsOn: [exampleAwsSsmincidentsReplicationSet],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ssm.ContactsRotation("example",
        contact_ids=[example_aws_ssmcontacts_contact["arn"]],
        name="rotation",
        recurrence={
            "number_of_on_calls": 1,
            "recurrence_multiplier": 1,
            "monthly_settings": [
                {
                    "day_of_month": 20,
                    "hand_off_time": {
                        "hour_of_day": 8,
                        "minute_of_hour": 0,
                    },
                },
                {
                    "day_of_month": 13,
                    "hand_off_time": {
                        "hour_of_day": 12,
                        "minute_of_hour": 34,
                    },
                },
            ],
        },
        time_zone_id="Australia/Sydney",
        opts = pulumi.ResourceOptions(depends_on=[example_aws_ssmincidents_replication_set]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewContactsRotation(ctx, "example", &ssm.ContactsRotationArgs{
    			ContactIds: pulumi.StringArray{
    				exampleAwsSsmcontactsContact.Arn,
    			},
    			Name: pulumi.String("rotation"),
    			Recurrence: &ssm.ContactsRotationRecurrenceArgs{
    				NumberOfOnCalls:      pulumi.Int(1),
    				RecurrenceMultiplier: pulumi.Int(1),
    				MonthlySettings: ssm.ContactsRotationRecurrenceMonthlySettingArray{
    					&ssm.ContactsRotationRecurrenceMonthlySettingArgs{
    						DayOfMonth: pulumi.Int(20),
    						HandOffTime: &ssm.ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs{
    							HourOfDay:    pulumi.Int(8),
    							MinuteOfHour: pulumi.Int(0),
    						},
    					},
    					&ssm.ContactsRotationRecurrenceMonthlySettingArgs{
    						DayOfMonth: pulumi.Int(13),
    						HandOffTime: &ssm.ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs{
    							HourOfDay:    pulumi.Int(12),
    							MinuteOfHour: pulumi.Int(34),
    						},
    					},
    				},
    			},
    			TimeZoneId: pulumi.String("Australia/Sydney"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleAwsSsmincidentsReplicationSet,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ssm.ContactsRotation("example", new()
        {
            ContactIds = new[]
            {
                exampleAwsSsmcontactsContact.Arn,
            },
            Name = "rotation",
            Recurrence = new Aws.Ssm.Inputs.ContactsRotationRecurrenceArgs
            {
                NumberOfOnCalls = 1,
                RecurrenceMultiplier = 1,
                MonthlySettings = new[]
                {
                    new Aws.Ssm.Inputs.ContactsRotationRecurrenceMonthlySettingArgs
                    {
                        DayOfMonth = 20,
                        HandOffTime = new Aws.Ssm.Inputs.ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs
                        {
                            HourOfDay = 8,
                            MinuteOfHour = 0,
                        },
                    },
                    new Aws.Ssm.Inputs.ContactsRotationRecurrenceMonthlySettingArgs
                    {
                        DayOfMonth = 13,
                        HandOffTime = new Aws.Ssm.Inputs.ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs
                        {
                            HourOfDay = 12,
                            MinuteOfHour = 34,
                        },
                    },
                },
            },
            TimeZoneId = "Australia/Sydney",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleAwsSsmincidentsReplicationSet,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ssm.ContactsRotation;
    import com.pulumi.aws.ssm.ContactsRotationArgs;
    import com.pulumi.aws.ssm.inputs.ContactsRotationRecurrenceArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 ContactsRotation("example", ContactsRotationArgs.builder()
                .contactIds(exampleAwsSsmcontactsContact.arn())
                .name("rotation")
                .recurrence(ContactsRotationRecurrenceArgs.builder()
                    .numberOfOnCalls(1)
                    .recurrenceMultiplier(1)
                    .monthlySettings(                
                        ContactsRotationRecurrenceMonthlySettingArgs.builder()
                            .dayOfMonth(20)
                            .handOffTime(ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs.builder()
                                .hourOfDay(8)
                                .minuteOfHour(0)
                                .build())
                            .build(),
                        ContactsRotationRecurrenceMonthlySettingArgs.builder()
                            .dayOfMonth(13)
                            .handOffTime(ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs.builder()
                                .hourOfDay(12)
                                .minuteOfHour(34)
                                .build())
                            .build())
                    .build())
                .timeZoneId("Australia/Sydney")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleAwsSsmincidentsReplicationSet)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ssm:ContactsRotation
        properties:
          contactIds:
            - ${exampleAwsSsmcontactsContact.arn}
          name: rotation
          recurrence:
            numberOfOnCalls: 1
            recurrenceMultiplier: 1
            monthlySettings:
              - dayOfMonth: 20
                handOffTime:
                  hourOfDay: 8
                  minuteOfHour: 0
              - dayOfMonth: 13
                handOffTime:
                  hourOfDay: 12
                  minuteOfHour: 34
          timeZoneId: Australia/Sydney
        options:
          dependson:
            - ${exampleAwsSsmincidentsReplicationSet}
    

    Create ContactsRotation Resource

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

    Constructor syntax

    new ContactsRotation(name: string, args: ContactsRotationArgs, opts?: CustomResourceOptions);
    @overload
    def ContactsRotation(resource_name: str,
                         args: ContactsRotationArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContactsRotation(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         contact_ids: Optional[Sequence[str]] = None,
                         time_zone_id: Optional[str] = None,
                         name: Optional[str] = None,
                         recurrence: Optional[ContactsRotationRecurrenceArgs] = None,
                         start_time: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None)
    func NewContactsRotation(ctx *Context, name string, args ContactsRotationArgs, opts ...ResourceOption) (*ContactsRotation, error)
    public ContactsRotation(string name, ContactsRotationArgs args, CustomResourceOptions? opts = null)
    public ContactsRotation(String name, ContactsRotationArgs args)
    public ContactsRotation(String name, ContactsRotationArgs args, CustomResourceOptions options)
    
    type: aws:ssm:ContactsRotation
    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 ContactsRotationArgs
    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 ContactsRotationArgs
    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 ContactsRotationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContactsRotationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContactsRotationArgs
    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 contactsRotationResource = new Aws.Ssm.ContactsRotation("contactsRotationResource", new()
    {
        ContactIds = new[]
        {
            "string",
        },
        TimeZoneId = "string",
        Name = "string",
        Recurrence = new Aws.Ssm.Inputs.ContactsRotationRecurrenceArgs
        {
            NumberOfOnCalls = 0,
            RecurrenceMultiplier = 0,
            DailySettings = new[]
            {
                new Aws.Ssm.Inputs.ContactsRotationRecurrenceDailySettingArgs
                {
                    HourOfDay = 0,
                    MinuteOfHour = 0,
                },
            },
            MonthlySettings = new[]
            {
                new Aws.Ssm.Inputs.ContactsRotationRecurrenceMonthlySettingArgs
                {
                    DayOfMonth = 0,
                    HandOffTime = new Aws.Ssm.Inputs.ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs
                    {
                        HourOfDay = 0,
                        MinuteOfHour = 0,
                    },
                },
            },
            ShiftCoverages = new[]
            {
                new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageArgs
                {
                    MapBlockKey = "string",
                    CoverageTimes = new[]
                    {
                        new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs
                        {
                            End = new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageCoverageTimeEndArgs
                            {
                                HourOfDay = 0,
                                MinuteOfHour = 0,
                            },
                            Start = new Aws.Ssm.Inputs.ContactsRotationRecurrenceShiftCoverageCoverageTimeStartArgs
                            {
                                HourOfDay = 0,
                                MinuteOfHour = 0,
                            },
                        },
                    },
                },
            },
            WeeklySettings = new[]
            {
                new Aws.Ssm.Inputs.ContactsRotationRecurrenceWeeklySettingArgs
                {
                    DayOfWeek = "string",
                    HandOffTime = new Aws.Ssm.Inputs.ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs
                    {
                        HourOfDay = 0,
                        MinuteOfHour = 0,
                    },
                },
            },
        },
        StartTime = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ssm.NewContactsRotation(ctx, "contactsRotationResource", &ssm.ContactsRotationArgs{
    	ContactIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TimeZoneId: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	Recurrence: &ssm.ContactsRotationRecurrenceArgs{
    		NumberOfOnCalls:      pulumi.Int(0),
    		RecurrenceMultiplier: pulumi.Int(0),
    		DailySettings: ssm.ContactsRotationRecurrenceDailySettingArray{
    			&ssm.ContactsRotationRecurrenceDailySettingArgs{
    				HourOfDay:    pulumi.Int(0),
    				MinuteOfHour: pulumi.Int(0),
    			},
    		},
    		MonthlySettings: ssm.ContactsRotationRecurrenceMonthlySettingArray{
    			&ssm.ContactsRotationRecurrenceMonthlySettingArgs{
    				DayOfMonth: pulumi.Int(0),
    				HandOffTime: &ssm.ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs{
    					HourOfDay:    pulumi.Int(0),
    					MinuteOfHour: pulumi.Int(0),
    				},
    			},
    		},
    		ShiftCoverages: ssm.ContactsRotationRecurrenceShiftCoverageArray{
    			&ssm.ContactsRotationRecurrenceShiftCoverageArgs{
    				MapBlockKey: pulumi.String("string"),
    				CoverageTimes: ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeArray{
    					&ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs{
    						End: &ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeEndArgs{
    							HourOfDay:    pulumi.Int(0),
    							MinuteOfHour: pulumi.Int(0),
    						},
    						Start: &ssm.ContactsRotationRecurrenceShiftCoverageCoverageTimeStartArgs{
    							HourOfDay:    pulumi.Int(0),
    							MinuteOfHour: pulumi.Int(0),
    						},
    					},
    				},
    			},
    		},
    		WeeklySettings: ssm.ContactsRotationRecurrenceWeeklySettingArray{
    			&ssm.ContactsRotationRecurrenceWeeklySettingArgs{
    				DayOfWeek: pulumi.String("string"),
    				HandOffTime: &ssm.ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs{
    					HourOfDay:    pulumi.Int(0),
    					MinuteOfHour: pulumi.Int(0),
    				},
    			},
    		},
    	},
    	StartTime: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var contactsRotationResource = new ContactsRotation("contactsRotationResource", ContactsRotationArgs.builder()
        .contactIds("string")
        .timeZoneId("string")
        .name("string")
        .recurrence(ContactsRotationRecurrenceArgs.builder()
            .numberOfOnCalls(0)
            .recurrenceMultiplier(0)
            .dailySettings(ContactsRotationRecurrenceDailySettingArgs.builder()
                .hourOfDay(0)
                .minuteOfHour(0)
                .build())
            .monthlySettings(ContactsRotationRecurrenceMonthlySettingArgs.builder()
                .dayOfMonth(0)
                .handOffTime(ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs.builder()
                    .hourOfDay(0)
                    .minuteOfHour(0)
                    .build())
                .build())
            .shiftCoverages(ContactsRotationRecurrenceShiftCoverageArgs.builder()
                .mapBlockKey("string")
                .coverageTimes(ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs.builder()
                    .end(ContactsRotationRecurrenceShiftCoverageCoverageTimeEndArgs.builder()
                        .hourOfDay(0)
                        .minuteOfHour(0)
                        .build())
                    .start(ContactsRotationRecurrenceShiftCoverageCoverageTimeStartArgs.builder()
                        .hourOfDay(0)
                        .minuteOfHour(0)
                        .build())
                    .build())
                .build())
            .weeklySettings(ContactsRotationRecurrenceWeeklySettingArgs.builder()
                .dayOfWeek("string")
                .handOffTime(ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs.builder()
                    .hourOfDay(0)
                    .minuteOfHour(0)
                    .build())
                .build())
            .build())
        .startTime("string")
        .tags(Map.of("string", "string"))
        .build());
    
    contacts_rotation_resource = aws.ssm.ContactsRotation("contactsRotationResource",
        contact_ids=["string"],
        time_zone_id="string",
        name="string",
        recurrence={
            "number_of_on_calls": 0,
            "recurrence_multiplier": 0,
            "daily_settings": [{
                "hour_of_day": 0,
                "minute_of_hour": 0,
            }],
            "monthly_settings": [{
                "day_of_month": 0,
                "hand_off_time": {
                    "hour_of_day": 0,
                    "minute_of_hour": 0,
                },
            }],
            "shift_coverages": [{
                "map_block_key": "string",
                "coverage_times": [{
                    "end": {
                        "hour_of_day": 0,
                        "minute_of_hour": 0,
                    },
                    "start": {
                        "hour_of_day": 0,
                        "minute_of_hour": 0,
                    },
                }],
            }],
            "weekly_settings": [{
                "day_of_week": "string",
                "hand_off_time": {
                    "hour_of_day": 0,
                    "minute_of_hour": 0,
                },
            }],
        },
        start_time="string",
        tags={
            "string": "string",
        })
    
    const contactsRotationResource = new aws.ssm.ContactsRotation("contactsRotationResource", {
        contactIds: ["string"],
        timeZoneId: "string",
        name: "string",
        recurrence: {
            numberOfOnCalls: 0,
            recurrenceMultiplier: 0,
            dailySettings: [{
                hourOfDay: 0,
                minuteOfHour: 0,
            }],
            monthlySettings: [{
                dayOfMonth: 0,
                handOffTime: {
                    hourOfDay: 0,
                    minuteOfHour: 0,
                },
            }],
            shiftCoverages: [{
                mapBlockKey: "string",
                coverageTimes: [{
                    end: {
                        hourOfDay: 0,
                        minuteOfHour: 0,
                    },
                    start: {
                        hourOfDay: 0,
                        minuteOfHour: 0,
                    },
                }],
            }],
            weeklySettings: [{
                dayOfWeek: "string",
                handOffTime: {
                    hourOfDay: 0,
                    minuteOfHour: 0,
                },
            }],
        },
        startTime: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:ssm:ContactsRotation
    properties:
        contactIds:
            - string
        name: string
        recurrence:
            dailySettings:
                - hourOfDay: 0
                  minuteOfHour: 0
            monthlySettings:
                - dayOfMonth: 0
                  handOffTime:
                    hourOfDay: 0
                    minuteOfHour: 0
            numberOfOnCalls: 0
            recurrenceMultiplier: 0
            shiftCoverages:
                - coverageTimes:
                    - end:
                        hourOfDay: 0
                        minuteOfHour: 0
                      start:
                        hourOfDay: 0
                        minuteOfHour: 0
                  mapBlockKey: string
            weeklySettings:
                - dayOfWeek: string
                  handOffTime:
                    hourOfDay: 0
                    minuteOfHour: 0
        startTime: string
        tags:
            string: string
        timeZoneId: string
    

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

    ContactIds List<string>
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    TimeZoneId string
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    Name string
    The name for the rotation.
    Recurrence ContactsRotationRecurrence

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    StartTime string
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    ContactIds []string
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    TimeZoneId string
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    Name string
    The name for the rotation.
    Recurrence ContactsRotationRecurrenceArgs

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    StartTime string
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    contactIds List<String>
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    timeZoneId String
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    name String
    The name for the rotation.
    recurrence ContactsRotationRecurrence

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    startTime String
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    contactIds string[]
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    timeZoneId string
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    name string
    The name for the rotation.
    recurrence ContactsRotationRecurrence

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    startTime string
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    contact_ids Sequence[str]
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    time_zone_id str
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    name str
    The name for the rotation.
    recurrence ContactsRotationRecurrenceArgs

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    start_time str
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    contactIds List<String>
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    timeZoneId String
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    name String
    The name for the rotation.
    recurrence Property Map

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    startTime String
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

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

    Arn string
    The Amazon Resource Name (ARN) of the rotation.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name (ARN) of the rotation.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name (ARN) of the rotation.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name (ARN) of the rotation.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name (ARN) of the rotation.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name (ARN) of the rotation.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing ContactsRotation Resource

    Get an existing ContactsRotation 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?: ContactsRotationState, opts?: CustomResourceOptions): ContactsRotation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            contact_ids: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            recurrence: Optional[ContactsRotationRecurrenceArgs] = None,
            start_time: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            time_zone_id: Optional[str] = None) -> ContactsRotation
    func GetContactsRotation(ctx *Context, name string, id IDInput, state *ContactsRotationState, opts ...ResourceOption) (*ContactsRotation, error)
    public static ContactsRotation Get(string name, Input<string> id, ContactsRotationState? state, CustomResourceOptions? opts = null)
    public static ContactsRotation get(String name, Output<String> id, ContactsRotationState 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:
    Arn string
    The Amazon Resource Name (ARN) of the rotation.
    ContactIds List<string>
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    Name string
    The name for the rotation.
    Recurrence ContactsRotationRecurrence

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    StartTime string
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TimeZoneId string
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    Arn string
    The Amazon Resource Name (ARN) of the rotation.
    ContactIds []string
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    Name string
    The name for the rotation.
    Recurrence ContactsRotationRecurrenceArgs

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    StartTime string
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TimeZoneId string
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    arn String
    The Amazon Resource Name (ARN) of the rotation.
    contactIds List<String>
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    name String
    The name for the rotation.
    recurrence ContactsRotationRecurrence

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    startTime String
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    timeZoneId String
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    arn string
    The Amazon Resource Name (ARN) of the rotation.
    contactIds string[]
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    name string
    The name for the rotation.
    recurrence ContactsRotationRecurrence

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    startTime string
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    timeZoneId string
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    arn str
    The Amazon Resource Name (ARN) of the rotation.
    contact_ids Sequence[str]
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    name str
    The name for the rotation.
    recurrence ContactsRotationRecurrenceArgs

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    start_time str
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    time_zone_id str
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
    arn String
    The Amazon Resource Name (ARN) of the rotation.
    contactIds List<String>
    Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
    name String
    The name for the rotation.
    recurrence Property Map

    Information about when an on-call rotation is in effect and how long the rotation period lasts. Exactly one of either daily_settings, monthly_settings, or weekly_settings must be populated. See Recurrence for more details.

    The following arguments are optional:

    startTime String
    The date and time, in RFC 3339 format, that the rotation goes into effect.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    timeZoneId String
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.

    Supporting Types

    ContactsRotationRecurrence, ContactsRotationRecurrenceArgs

    NumberOfOnCalls int
    (Required) The number of contacts, or shift team members designated to be on call concurrently during a shift.
    RecurrenceMultiplier int
    (Required) The number of days, weeks, or months a single rotation lasts.
    DailySettings List<ContactsRotationRecurrenceDailySetting>
    MonthlySettings List<ContactsRotationRecurrenceMonthlySetting>
    (Optional) Information about on-call rotations that recur monthly. See Monthly Settings for more details.
    ShiftCoverages List<ContactsRotationRecurrenceShiftCoverage>
    (Optional) Information about the days of the week that the on-call rotation coverage includes. See Shift Coverages for more details.
    WeeklySettings List<ContactsRotationRecurrenceWeeklySetting>
    (Optional) Information about on-call rotations that recur weekly. See Weekly Settings for more details.
    NumberOfOnCalls int
    (Required) The number of contacts, or shift team members designated to be on call concurrently during a shift.
    RecurrenceMultiplier int
    (Required) The number of days, weeks, or months a single rotation lasts.
    DailySettings []ContactsRotationRecurrenceDailySetting
    MonthlySettings []ContactsRotationRecurrenceMonthlySetting
    (Optional) Information about on-call rotations that recur monthly. See Monthly Settings for more details.
    ShiftCoverages []ContactsRotationRecurrenceShiftCoverage
    (Optional) Information about the days of the week that the on-call rotation coverage includes. See Shift Coverages for more details.
    WeeklySettings []ContactsRotationRecurrenceWeeklySetting
    (Optional) Information about on-call rotations that recur weekly. See Weekly Settings for more details.
    numberOfOnCalls Integer
    (Required) The number of contacts, or shift team members designated to be on call concurrently during a shift.
    recurrenceMultiplier Integer
    (Required) The number of days, weeks, or months a single rotation lasts.
    dailySettings List<ContactsRotationRecurrenceDailySetting>
    monthlySettings List<ContactsRotationRecurrenceMonthlySetting>
    (Optional) Information about on-call rotations that recur monthly. See Monthly Settings for more details.
    shiftCoverages List<ContactsRotationRecurrenceShiftCoverage>
    (Optional) Information about the days of the week that the on-call rotation coverage includes. See Shift Coverages for more details.
    weeklySettings List<ContactsRotationRecurrenceWeeklySetting>
    (Optional) Information about on-call rotations that recur weekly. See Weekly Settings for more details.
    numberOfOnCalls number
    (Required) The number of contacts, or shift team members designated to be on call concurrently during a shift.
    recurrenceMultiplier number
    (Required) The number of days, weeks, or months a single rotation lasts.
    dailySettings ContactsRotationRecurrenceDailySetting[]
    monthlySettings ContactsRotationRecurrenceMonthlySetting[]
    (Optional) Information about on-call rotations that recur monthly. See Monthly Settings for more details.
    shiftCoverages ContactsRotationRecurrenceShiftCoverage[]
    (Optional) Information about the days of the week that the on-call rotation coverage includes. See Shift Coverages for more details.
    weeklySettings ContactsRotationRecurrenceWeeklySetting[]
    (Optional) Information about on-call rotations that recur weekly. See Weekly Settings for more details.
    number_of_on_calls int
    (Required) The number of contacts, or shift team members designated to be on call concurrently during a shift.
    recurrence_multiplier int
    (Required) The number of days, weeks, or months a single rotation lasts.
    daily_settings Sequence[ContactsRotationRecurrenceDailySetting]
    monthly_settings Sequence[ContactsRotationRecurrenceMonthlySetting]
    (Optional) Information about on-call rotations that recur monthly. See Monthly Settings for more details.
    shift_coverages Sequence[ContactsRotationRecurrenceShiftCoverage]
    (Optional) Information about the days of the week that the on-call rotation coverage includes. See Shift Coverages for more details.
    weekly_settings Sequence[ContactsRotationRecurrenceWeeklySetting]
    (Optional) Information about on-call rotations that recur weekly. See Weekly Settings for more details.
    numberOfOnCalls Number
    (Required) The number of contacts, or shift team members designated to be on call concurrently during a shift.
    recurrenceMultiplier Number
    (Required) The number of days, weeks, or months a single rotation lasts.
    dailySettings List<Property Map>
    monthlySettings List<Property Map>
    (Optional) Information about on-call rotations that recur monthly. See Monthly Settings for more details.
    shiftCoverages List<Property Map>
    (Optional) Information about the days of the week that the on-call rotation coverage includes. See Shift Coverages for more details.
    weeklySettings List<Property Map>
    (Optional) Information about on-call rotations that recur weekly. See Weekly Settings for more details.

    ContactsRotationRecurrenceDailySetting, ContactsRotationRecurrenceDailySettingArgs

    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    hourOfDay Integer
    (Required) The hour of the day.
    minuteOfHour Integer
    (Required) The minutes of the hour.
    hourOfDay number
    (Required) The hour of the day.
    minuteOfHour number
    (Required) The minutes of the hour.
    hour_of_day int
    (Required) The hour of the day.
    minute_of_hour int
    (Required) The minutes of the hour.
    hourOfDay Number
    (Required) The hour of the day.
    minuteOfHour Number
    (Required) The minutes of the hour.

    ContactsRotationRecurrenceMonthlySetting, ContactsRotationRecurrenceMonthlySettingArgs

    DayOfMonth int
    (Required) The day of the month when monthly recurring on-call rotations begin.
    HandOffTime ContactsRotationRecurrenceMonthlySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    DayOfMonth int
    (Required) The day of the month when monthly recurring on-call rotations begin.
    HandOffTime ContactsRotationRecurrenceMonthlySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    dayOfMonth Integer
    (Required) The day of the month when monthly recurring on-call rotations begin.
    handOffTime ContactsRotationRecurrenceMonthlySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    dayOfMonth number
    (Required) The day of the month when monthly recurring on-call rotations begin.
    handOffTime ContactsRotationRecurrenceMonthlySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    day_of_month int
    (Required) The day of the month when monthly recurring on-call rotations begin.
    hand_off_time ContactsRotationRecurrenceMonthlySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    dayOfMonth Number
    (Required) The day of the month when monthly recurring on-call rotations begin.
    handOffTime Property Map
    (Required) The hand off time. See Hand Off Time for more details.

    ContactsRotationRecurrenceMonthlySettingHandOffTime, ContactsRotationRecurrenceMonthlySettingHandOffTimeArgs

    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    hourOfDay Integer
    (Required) The hour of the day.
    minuteOfHour Integer
    (Required) The minutes of the hour.
    hourOfDay number
    (Required) The hour of the day.
    minuteOfHour number
    (Required) The minutes of the hour.
    hour_of_day int
    (Required) The hour of the day.
    minute_of_hour int
    (Required) The minutes of the hour.
    hourOfDay Number
    (Required) The hour of the day.
    minuteOfHour Number
    (Required) The minutes of the hour.

    ContactsRotationRecurrenceShiftCoverage, ContactsRotationRecurrenceShiftCoverageArgs

    MapBlockKey string
    CoverageTimes List<ContactsRotationRecurrenceShiftCoverageCoverageTime>
    (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
    MapBlockKey string
    CoverageTimes []ContactsRotationRecurrenceShiftCoverageCoverageTime
    (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
    mapBlockKey String
    coverageTimes List<ContactsRotationRecurrenceShiftCoverageCoverageTime>
    (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
    mapBlockKey string
    coverageTimes ContactsRotationRecurrenceShiftCoverageCoverageTime[]
    (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
    map_block_key str
    coverage_times Sequence[ContactsRotationRecurrenceShiftCoverageCoverageTime]
    (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.
    mapBlockKey String
    coverageTimes List<Property Map>
    (Required) Information about when an on-call shift begins and ends. See Coverage Times for more details.

    ContactsRotationRecurrenceShiftCoverageCoverageTime, ContactsRotationRecurrenceShiftCoverageCoverageTimeArgs

    End ContactsRotationRecurrenceShiftCoverageCoverageTimeEnd
    (Required) The end time of the on-call shift. See Hand Off Time for more details.
    Start ContactsRotationRecurrenceShiftCoverageCoverageTimeStart
    (Required) The start time of the on-call shift. See Hand Off Time for more details.
    End ContactsRotationRecurrenceShiftCoverageCoverageTimeEnd
    (Required) The end time of the on-call shift. See Hand Off Time for more details.
    Start ContactsRotationRecurrenceShiftCoverageCoverageTimeStart
    (Required) The start time of the on-call shift. See Hand Off Time for more details.
    end ContactsRotationRecurrenceShiftCoverageCoverageTimeEnd
    (Required) The end time of the on-call shift. See Hand Off Time for more details.
    start ContactsRotationRecurrenceShiftCoverageCoverageTimeStart
    (Required) The start time of the on-call shift. See Hand Off Time for more details.
    end ContactsRotationRecurrenceShiftCoverageCoverageTimeEnd
    (Required) The end time of the on-call shift. See Hand Off Time for more details.
    start ContactsRotationRecurrenceShiftCoverageCoverageTimeStart
    (Required) The start time of the on-call shift. See Hand Off Time for more details.
    end ContactsRotationRecurrenceShiftCoverageCoverageTimeEnd
    (Required) The end time of the on-call shift. See Hand Off Time for more details.
    start ContactsRotationRecurrenceShiftCoverageCoverageTimeStart
    (Required) The start time of the on-call shift. See Hand Off Time for more details.
    end Property Map
    (Required) The end time of the on-call shift. See Hand Off Time for more details.
    start Property Map
    (Required) The start time of the on-call shift. See Hand Off Time for more details.

    ContactsRotationRecurrenceShiftCoverageCoverageTimeEnd, ContactsRotationRecurrenceShiftCoverageCoverageTimeEndArgs

    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    hourOfDay Integer
    (Required) The hour of the day.
    minuteOfHour Integer
    (Required) The minutes of the hour.
    hourOfDay number
    (Required) The hour of the day.
    minuteOfHour number
    (Required) The minutes of the hour.
    hour_of_day int
    (Required) The hour of the day.
    minute_of_hour int
    (Required) The minutes of the hour.
    hourOfDay Number
    (Required) The hour of the day.
    minuteOfHour Number
    (Required) The minutes of the hour.

    ContactsRotationRecurrenceShiftCoverageCoverageTimeStart, ContactsRotationRecurrenceShiftCoverageCoverageTimeStartArgs

    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    hourOfDay Integer
    (Required) The hour of the day.
    minuteOfHour Integer
    (Required) The minutes of the hour.
    hourOfDay number
    (Required) The hour of the day.
    minuteOfHour number
    (Required) The minutes of the hour.
    hour_of_day int
    (Required) The hour of the day.
    minute_of_hour int
    (Required) The minutes of the hour.
    hourOfDay Number
    (Required) The hour of the day.
    minuteOfHour Number
    (Required) The minutes of the hour.

    ContactsRotationRecurrenceWeeklySetting, ContactsRotationRecurrenceWeeklySettingArgs

    DayOfWeek string
    (Required) The day of the week when the shift coverage occurs.
    HandOffTime ContactsRotationRecurrenceWeeklySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    DayOfWeek string
    (Required) The day of the week when the shift coverage occurs.
    HandOffTime ContactsRotationRecurrenceWeeklySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    dayOfWeek String
    (Required) The day of the week when the shift coverage occurs.
    handOffTime ContactsRotationRecurrenceWeeklySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    dayOfWeek string
    (Required) The day of the week when the shift coverage occurs.
    handOffTime ContactsRotationRecurrenceWeeklySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    day_of_week str
    (Required) The day of the week when the shift coverage occurs.
    hand_off_time ContactsRotationRecurrenceWeeklySettingHandOffTime
    (Required) The hand off time. See Hand Off Time for more details.
    dayOfWeek String
    (Required) The day of the week when the shift coverage occurs.
    handOffTime Property Map
    (Required) The hand off time. See Hand Off Time for more details.

    ContactsRotationRecurrenceWeeklySettingHandOffTime, ContactsRotationRecurrenceWeeklySettingHandOffTimeArgs

    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    HourOfDay int
    (Required) The hour of the day.
    MinuteOfHour int
    (Required) The minutes of the hour.
    hourOfDay Integer
    (Required) The hour of the day.
    minuteOfHour Integer
    (Required) The minutes of the hour.
    hourOfDay number
    (Required) The hour of the day.
    minuteOfHour number
    (Required) The minutes of the hour.
    hour_of_day int
    (Required) The hour of the day.
    minute_of_hour int
    (Required) The minutes of the hour.
    hourOfDay Number
    (Required) The hour of the day.
    minuteOfHour Number
    (Required) The minutes of the hour.

    Import

    Using pulumi import, import CodeGuru Profiler Profiling Group using the arn. For example:

    $ pulumi import aws:ssm/contactsRotation:ContactsRotation example arn:aws:ssm-contacts:us-east-1:012345678910:rotation/example
    

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

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi