# CfnContactProps

Properties for defining a `CfnContact`.

Used as props by: [CfnContact](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssmcontacts.CfnContact.html)

- Source: Generated at build time
- Type last changed: v2.196.0 · 16 May 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `alias`: string (required) — The unique and identifiable alias of the contact or escalation plan.

- `displayName`: string (required) — The full name of the contact or escalation plan.

- `plan`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContact.StageProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssmcontacts.CfnContact.StageProperty.html)[] — 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.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[]

- `type`: string (required) — The type of contact.

  - `PERSONAL` : A single, individual contact.
  - `ESCALATION` : An escalation plan.
  - `ONCALL_SCHEDULE` : An on-call schedule.
