createNotifyConfiguration

Creates a new notify configuration for managed messaging. A notify configuration defines the settings for sending templated messages, including the display name, use case, enabled channels, and enabled countries.

Samples

import aws.sdk.kotlin.services.pinpointsmsvoicev2.model.NotifyConfigurationUseCase
import aws.sdk.kotlin.services.pinpointsmsvoicev2.model.NumberCapability
import aws.sdk.kotlin.services.pinpointsmsvoicev2.model.Tag

fun main() { 
   //sampleStart 
   // Create a notify configuration for OTP code verification over SMS.
val resp = pinpointSmsVoiceV2Client.createNotifyConfiguration {
    displayName = "MyOTPConfig"
    useCase = NotifyConfigurationUseCase.fromValue("CODE_VERIFICATION")
    enabledChannels = listOf<NumberCapability>(
        NumberCapability.fromValue("SMS")
    )
    enabledCountries = listOf<String>(
        "US",
        "CA"
    )
    deletionProtectionEnabled = false
    tags = listOf<Tag>(
        Tag {
            key = "Environment"
            value = "Production"
        }            
    )
} 
   //sampleEnd
}