Skip to content
v2.278.0

CfnContactProps Struct ​

Properties for defining a CfnContact.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssmcontacts as ssmcontacts } from 'aws-cdk-lib';
const cfnContactProps: ssmcontacts.CfnContactProps = {
  alias: 'alias',
  displayName: 'displayName',
  type: 'type',

  // the properties below are optional
  plan: [{
    durationInMinutes: 123,
    rotationIds: ['rotationIds'],
    targets: [{
      channelTargetInfo: {
        channelId: 'channelId',
        retryIntervalInMinutes: 123,
      },
      contactTargetInfo: {
        contactId: 'contactId',
        isEssential: false,
      },
    }],
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ssmcontacts as ssmcontacts

cfn_contact_props = ssmcontacts.CfnContactProps(
    alias="alias",
    display_name="displayName",
    type="type",

    # the properties below are optional
    plan=[ssmcontacts.CfnContact.StageProperty(
        duration_in_minutes=123,
        rotation_ids=["rotationIds"],
        targets=[ssmcontacts.CfnContact.TargetsProperty(
            channel_target_info=ssmcontacts.CfnContact.ChannelTargetInfoProperty(
                channel_id="channelId",
                retry_interval_in_minutes=123
            ),
            contact_target_info=ssmcontacts.CfnContact.ContactTargetInfoProperty(
                contact_id="contactId",
                is_essential=False
            )
        )]
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssmcontacts.*;

CfnContactProps cfnContactProps = CfnContactProps.builder()
        .alias("alias")
        .displayName("displayName")
        .type("type")

        // the properties below are optional
        .plan(List.of(StageProperty.builder()
                .durationInMinutes(123)
                .rotationIds(List.of("rotationIds"))
                .targets(List.of(TargetsProperty.builder()
                        .channelTargetInfo(ChannelTargetInfoProperty.builder()
                                .channelId("channelId")
                                .retryIntervalInMinutes(123)
                                .build())
                        .contactTargetInfo(ContactTargetInfoProperty.builder()
                                .contactId("contactId")
                                .isEssential(false)
                                .build())
                        .build()))
                .build()))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SSMContacts;

var cfnContactProps = new CfnContactProps {
    Alias = "alias",
    DisplayName = "displayName",
    Type = "type",

    // the properties below are optional
    Plan = new [] { new StageProperty {
        DurationInMinutes = 123,
        RotationIds = new [] { "rotationIds" },
        Targets = new [] { new TargetsProperty {
            ChannelTargetInfo = new ChannelTargetInfoProperty {
                ChannelId = "channelId",
                RetryIntervalInMinutes = 123
            },
            ContactTargetInfo = new ContactTargetInfoProperty {
                ContactId = "contactId",
                IsEssential = false
            }
        } }
    } },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnContactProps := &CfnContactProps{
	Alias: jsii.String("alias"),
	DisplayName: jsii.String("displayName"),
	Type: jsii.String("type"),

	// the properties below are optional
	Plan: []interface{}{
		&StageProperty{
			DurationInMinutes: jsii.Number(123),
			RotationIds: []*string{
				jsii.String("rotationIds"),
			},
			Targets: []interface{}{
				&TargetsProperty{
					ChannelTargetInfo: &ChannelTargetInfoProperty{
						ChannelId: jsii.String("channelId"),
						RetryIntervalInMinutes: jsii.Number(123),
					},
					ContactTargetInfo: &ContactTargetInfoProperty{
						ContactId: jsii.String("contactId"),
						IsEssential: jsii.Boolean(false),
					},
				},
			},
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

aliasstringaliasstraliasStringAliasstringAlias*string required #
The unique and identifiable alias of the contact or escalation plan.
displayNamestringdisplay_namestrdisplayNameStringDisplayNamestringDisplayName*string required #
The full name of the contact or escalation plan.
planoptionalIResolvable | IResolvable | CfnContact.StageProperty[]planoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, StageProperty]]]planoptionalIResolvablePlanoptionalIResolvablePlanoptionalinterface{} #
A list of stages.

A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
typestringtypestrtypeStringTypestringType*string required #
The type of contact.
  • PERSONAL : A single, individual contact.
  • ESCALATION : An escalation plan.
  • ONCALL_SCHEDULE : An on-call schedule.