AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.ssm.getContactsRotation
Explore with Pulumi AI
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ssm.getContactsRotation({
    arn: "arn:aws:ssm-contacts:us-east-1:012345678910:rotation/example",
});
import pulumi
import pulumi_aws as aws
example = aws.ssm.get_contacts_rotation(arn="arn:aws:ssm-contacts:us-east-1:012345678910:rotation/example")
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.LookupContactsRotation(ctx, &ssm.LookupContactsRotationArgs{
			Arn: "arn:aws:ssm-contacts:us-east-1:012345678910:rotation/example",
		}, nil)
		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 = Aws.Ssm.GetContactsRotation.Invoke(new()
    {
        Arn = "arn:aws:ssm-contacts:us-east-1:012345678910:rotation/example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssm.SsmFunctions;
import com.pulumi.aws.ssm.inputs.GetContactsRotationArgs;
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) {
        final var example = SsmFunctions.getContactsRotation(GetContactsRotationArgs.builder()
            .arn("arn:aws:ssm-contacts:us-east-1:012345678910:rotation/example")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:ssm:getContactsRotation
      arguments:
        arn: arn:aws:ssm-contacts:us-east-1:012345678910:rotation/example
Using getContactsRotation
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getContactsRotation(args: GetContactsRotationArgs, opts?: InvokeOptions): Promise<GetContactsRotationResult>
function getContactsRotationOutput(args: GetContactsRotationOutputArgs, opts?: InvokeOptions): Output<GetContactsRotationResult>def get_contacts_rotation(arn: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetContactsRotationResult
def get_contacts_rotation_output(arn: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetContactsRotationResult]func LookupContactsRotation(ctx *Context, args *LookupContactsRotationArgs, opts ...InvokeOption) (*LookupContactsRotationResult, error)
func LookupContactsRotationOutput(ctx *Context, args *LookupContactsRotationOutputArgs, opts ...InvokeOption) LookupContactsRotationResultOutput> Note: This function is named LookupContactsRotation in the Go SDK.
public static class GetContactsRotation 
{
    public static Task<GetContactsRotationResult> InvokeAsync(GetContactsRotationArgs args, InvokeOptions? opts = null)
    public static Output<GetContactsRotationResult> Invoke(GetContactsRotationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContactsRotationResult> getContactsRotation(GetContactsRotationArgs args, InvokeOptions options)
public static Output<GetContactsRotationResult> getContactsRotation(GetContactsRotationArgs args, InvokeOptions options)
fn::invoke:
  function: aws:ssm/getContactsRotation:getContactsRotation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- The Amazon Resource Name (ARN) of the rotation.
- Arn string
- The Amazon Resource Name (ARN) of the rotation.
- arn String
- The Amazon Resource Name (ARN) of the rotation.
- arn string
- The Amazon Resource Name (ARN) of the rotation.
- arn str
- The Amazon Resource Name (ARN) of the rotation.
- arn String
- The Amazon Resource Name (ARN) of the rotation.
getContactsRotation Result
The following output properties are available:
- Arn string
- ContactIds List<string>
- The 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.
- Id string
- Name string
- The name for the rotation.
- Recurrences
List<GetContacts Rotation Recurrence> 
- Information about when an on-call rotation is in effect and how long the rotation period lasts.
- StartTime string
- The date and time, in RFC 3339 format, that the rotation goes into effect.
- Dictionary<string, string>
- A map of tags to assign to the resource.
- TimeZone stringId 
- The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- Arn string
- ContactIds []string
- The 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.
- Id string
- Name string
- The name for the rotation.
- Recurrences
[]GetContacts Rotation Recurrence 
- Information about when an on-call rotation is in effect and how long the rotation period lasts.
- StartTime string
- The date and time, in RFC 3339 format, that the rotation goes into effect.
- map[string]string
- A map of tags to assign to the resource.
- TimeZone stringId 
- The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- arn String
- contactIds List<String>
- The 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.
- id String
- name String
- The name for the rotation.
- recurrences
List<GetContacts Rotation Recurrence> 
- Information about when an on-call rotation is in effect and how long the rotation period lasts.
- startTime String
- The date and time, in RFC 3339 format, that the rotation goes into effect.
- Map<String,String>
- A map of tags to assign to the resource.
- timeZone StringId 
- The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- arn string
- contactIds string[]
- The 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.
- id string
- name string
- The name for the rotation.
- recurrences
GetContacts Rotation Recurrence[] 
- Information about when an on-call rotation is in effect and how long the rotation period lasts.
- startTime string
- The date and time, in RFC 3339 format, that the rotation goes into effect.
- {[key: string]: string}
- A map of tags to assign to the resource.
- timeZone stringId 
- The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- arn str
- contact_ids Sequence[str]
- The 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.
- id str
- name str
- The name for the rotation.
- recurrences
Sequence[GetContacts Rotation Recurrence] 
- Information about when an on-call rotation is in effect and how long the rotation period lasts.
- start_time str
- The date and time, in RFC 3339 format, that the rotation goes into effect.
- Mapping[str, str]
- A map of tags to assign to the resource.
- time_zone_ strid 
- The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- arn String
- contactIds List<String>
- The 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.
- id String
- name String
- The name for the rotation.
- recurrences List<Property Map>
- Information about when an on-call rotation is in effect and how long the rotation period lasts.
- startTime String
- The date and time, in RFC 3339 format, that the rotation goes into effect.
- Map<String>
- A map of tags to assign to the resource.
- timeZone StringId 
- The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
Supporting Types
GetContactsRotationRecurrence   
- dailySettings List<GetContacts Rotation Recurrence Daily Setting> 
- monthlySettings List<GetContacts Rotation Recurrence Monthly Setting> 
- numberOf IntegerOn Calls 
- recurrenceMultiplier Integer
- shiftCoverages List<GetContacts Rotation Recurrence Shift Coverage> 
- weeklySettings List<GetContacts Rotation Recurrence Weekly Setting> 
- daily_settings Sequence[GetContacts Rotation Recurrence Daily Setting] 
- monthly_settings Sequence[GetContacts Rotation Recurrence Monthly Setting] 
- number_of_ inton_ calls 
- recurrence_multiplier int
- shift_coverages Sequence[GetContacts Rotation Recurrence Shift Coverage] 
- weekly_settings Sequence[GetContacts Rotation Recurrence Weekly Setting] 
GetContactsRotationRecurrenceDailySetting     
- HourOf intDay 
- MinuteOf intHour 
- HourOf intDay 
- MinuteOf intHour 
- hourOf IntegerDay 
- minuteOf IntegerHour 
- hourOf numberDay 
- minuteOf numberHour 
- hour_of_ intday 
- minute_of_ inthour 
- hourOf NumberDay 
- minuteOf NumberHour 
GetContactsRotationRecurrenceMonthlySetting     
GetContactsRotationRecurrenceMonthlySettingHandOffTime        
- HourOf intDay 
- MinuteOf intHour 
- HourOf intDay 
- MinuteOf intHour 
- hourOf IntegerDay 
- minuteOf IntegerHour 
- hourOf numberDay 
- minuteOf numberHour 
- hour_of_ intday 
- minute_of_ inthour 
- hourOf NumberDay 
- minuteOf NumberHour 
GetContactsRotationRecurrenceShiftCoverage     
GetContactsRotationRecurrenceShiftCoverageCoverageTime       
GetContactsRotationRecurrenceShiftCoverageCoverageTimeEnd        
- HourOf intDay 
- MinuteOf intHour 
- HourOf intDay 
- MinuteOf intHour 
- hourOf IntegerDay 
- minuteOf IntegerHour 
- hourOf numberDay 
- minuteOf numberHour 
- hour_of_ intday 
- minute_of_ inthour 
- hourOf NumberDay 
- minuteOf NumberHour 
GetContactsRotationRecurrenceShiftCoverageCoverageTimeStart        
- HourOf intDay 
- MinuteOf intHour 
- HourOf intDay 
- MinuteOf intHour 
- hourOf IntegerDay 
- minuteOf IntegerHour 
- hourOf numberDay 
- minuteOf numberHour 
- hour_of_ intday 
- minute_of_ inthour 
- hourOf NumberDay 
- minuteOf NumberHour 
GetContactsRotationRecurrenceWeeklySetting     
GetContactsRotationRecurrenceWeeklySettingHandOffTime        
- HourOf intDay 
- MinuteOf intHour 
- HourOf intDay 
- MinuteOf intHour 
- hourOf IntegerDay 
- minuteOf IntegerHour 
- hourOf numberDay 
- minuteOf numberHour 
- hour_of_ intday 
- minute_of_ inthour 
- hourOf NumberDay 
- minuteOf NumberHour 
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.