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
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
- Contact
Ids 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<Get
Contacts Rotation Recurrence> - Information about when an on-call rotation is in effect and how long the rotation period lasts.
- Start
Time 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.
- Time
Zone stringId - The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- Arn string
- Contact
Ids []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
[]Get
Contacts Rotation Recurrence - Information about when an on-call rotation is in effect and how long the rotation period lasts.
- Start
Time 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.
- Time
Zone stringId - The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- arn String
- contact
Ids 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<Get
Contacts Rotation Recurrence> - Information about when an on-call rotation is in effect and how long the rotation period lasts.
- start
Time 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.
- time
Zone StringId - The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
- arn string
- contact
Ids 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
Get
Contacts Rotation Recurrence[] - Information about when an on-call rotation is in effect and how long the rotation period lasts.
- start
Time 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.
- time
Zone 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[Get
Contacts 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
- contact
Ids 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.
- start
Time 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.
- time
Zone StringId - The time zone to base the rotation’s activity on in Internet Assigned Numbers Authority (IANA) format.
Supporting Types
GetContactsRotationRecurrence
- Daily
Settings List<object> - Monthly
Settings List<object> - Number
Of intOn Calls - Recurrence
Multiplier int - Shift
Coverages List<object> - Weekly
Settings List<object>
- Daily
Settings []interface{} - Monthly
Settings []interface{} - Number
Of intOn Calls - Recurrence
Multiplier int - Shift
Coverages []interface{} - Weekly
Settings []interface{}
- daily
Settings List<Object> - monthly
Settings List<Object> - number
Of IntegerOn Calls - recurrence
Multiplier Integer - shift
Coverages List<Object> - weekly
Settings List<Object>
- daily
Settings any[] - monthly
Settings any[] - number
Of numberOn Calls - recurrence
Multiplier number - shift
Coverages any[] - weekly
Settings any[]
- daily_
settings Sequence[Any] - monthly_
settings Sequence[Any] - number_
of_ inton_ calls - recurrence_
multiplier int - shift_
coverages Sequence[Any] - weekly_
settings Sequence[Any]
- daily
Settings List<Any> - monthly
Settings List<Any> - number
Of NumberOn Calls - recurrence
Multiplier Number - shift
Coverages List<Any> - weekly
Settings List<Any>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi