Skip to content
v2.278.0

CfnNotifyConfigurationProps Struct ​

Properties for defining a CfnNotifyConfiguration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_smsvoice as smsvoice } from 'aws-cdk-lib';
const cfnNotifyConfigurationProps: smsvoice.CfnNotifyConfigurationProps = {
  displayName: 'displayName',
  enabledChannels: ['enabledChannels'],
  useCase: 'useCase',

  // the properties below are optional
  defaultTemplateId: 'defaultTemplateId',
  deletionProtectionEnabled: false,
  enabledCountries: ['enabledCountries'],
  poolId: 'poolId',
  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_smsvoice as smsvoice

cfn_notify_configuration_props = smsvoice.CfnNotifyConfigurationProps(
    display_name="displayName",
    enabled_channels=["enabledChannels"],
    use_case="useCase",

    # the properties below are optional
    default_template_id="defaultTemplateId",
    deletion_protection_enabled=False,
    enabled_countries=["enabledCountries"],
    pool_id="poolId",
    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.smsvoice.*;

CfnNotifyConfigurationProps cfnNotifyConfigurationProps = CfnNotifyConfigurationProps.builder()
        .displayName("displayName")
        .enabledChannels(List.of("enabledChannels"))
        .useCase("useCase")

        // the properties below are optional
        .defaultTemplateId("defaultTemplateId")
        .deletionProtectionEnabled(false)
        .enabledCountries(List.of("enabledCountries"))
        .poolId("poolId")
        .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.SMSVOICE;

var cfnNotifyConfigurationProps = new CfnNotifyConfigurationProps {
    DisplayName = "displayName",
    EnabledChannels = new [] { "enabledChannels" },
    UseCase = "useCase",

    // the properties below are optional
    DefaultTemplateId = "defaultTemplateId",
    DeletionProtectionEnabled = false,
    EnabledCountries = new [] { "enabledCountries" },
    PoolId = "poolId",
    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"

cfnNotifyConfigurationProps := &CfnNotifyConfigurationProps{
	DisplayName: jsii.String("displayName"),
	EnabledChannels: []*string{
		jsii.String("enabledChannels"),
	},
	UseCase: jsii.String("useCase"),

	// the properties below are optional
	DefaultTemplateId: jsii.String("defaultTemplateId"),
	DeletionProtectionEnabled: jsii.Boolean(false),
	EnabledCountries: []*string{
		jsii.String("enabledCountries"),
	},
	PoolId: jsii.String("poolId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

defaultTemplateIdoptionalstringdefault_template_idoptionalstrdefaultTemplateIdoptionalStringDefaultTemplateIdoptionalstringDefaultTemplateIdoptional*string #
The default template identifier to associate with the notify configuration.

If specified, this template is used when sending messages without an explicit template identifier.

deletionProtectionEnabledoptionalboolean | IResolvabledeletion_protection_enabledoptionaltyping.Union[bool, IResolvable]deletionProtectionEnabledoptionalBooleanDeletionProtectionEnabledoptionalboolDeletionProtectionEnabledoptionalinterface{} #
By default this is set to false.

When set to true the notify configuration can't be deleted.

displayNamestringdisplay_namestrdisplayNameStringDisplayNamestringDisplayName*string required #
The display name to associate with the notify configuration.
enabledChannelsstring[]enabled_channelstyping.List[str]enabledChannelsList<String>EnabledChannelsstring[]EnabledChannels*[]*string required #
An array of channels to enable for the notify configuration.

Supported values include SMS and VOICE.

enabledCountriesoptionalstring[]enabled_countriesoptionaltyping.List[str]enabledCountriesoptionalList<String>EnabledCountriesoptionalstring[]EnabledCountriesoptional*[]*string #
An array of two-character ISO country codes, in ISO 3166-1 alpha-2 format, that are enabled for the notify configuration.
poolIdoptionalstringpool_idoptionalstrpoolIdoptionalStringPoolIdoptionalstringPoolIdoptional*string #
The identifier of the pool to associate with the notify configuration.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of tags (key and value pairs) associated with the notify configuration.
useCasestringuse_casestruseCaseStringUseCasestringUseCase*string required #
The use case for the notify configuration.