1. Packages
  2. AWS Classic
  3. API Docs
  4. ssm
  5. getContactsRotation

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.ssm.getContactsRotation

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:ssm/getContactsRotation:getContactsRotation
      arguments:
        # arguments dictionary

    The 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<GetContactsRotationRecurrence>
    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.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource.
    TimeZoneId string
    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 []GetContactsRotationRecurrence
    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.
    Tags map[string]string
    A map of tags to assign to the resource.
    TimeZoneId string
    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<GetContactsRotationRecurrence>
    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.
    tags Map<String,String>
    A map of tags to assign to the resource.
    timeZoneId String
    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 GetContactsRotationRecurrence[]
    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.
    tags {[key: string]: string}
    A map of tags to assign to the resource.
    timeZoneId string
    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[GetContactsRotationRecurrence]
    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.
    tags Mapping[str, str]
    A map of tags to assign to the resource.
    time_zone_id str
    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.
    tags Map<String>
    A map of tags to assign to the resource.
    timeZoneId String
    The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.

    Supporting Types

    GetContactsRotationRecurrence

    DailySettings []interface{}
    MonthlySettings []interface{}
    NumberOfOnCalls int
    RecurrenceMultiplier int
    ShiftCoverages []interface{}
    WeeklySettings []interface{}
    dailySettings List<Object>
    monthlySettings List<Object>
    numberOfOnCalls Integer
    recurrenceMultiplier Integer
    shiftCoverages List<Object>
    weeklySettings List<Object>

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi