updateNotifyConfiguration
inline suspend fun PinpointSmsVoiceV2Client.updateNotifyConfiguration(crossinline block: UpdateNotifyConfigurationRequest.Builder.() -> Unit): UpdateNotifyConfigurationResponse
Updates an existing notify configuration. You can update the default template, pool association, enabled channels, enabled countries, and deletion protection settings.
Samples
import aws.sdk.kotlin.services.pinpointsmsvoicev2.model.NumberCapability
fun main() {
//sampleStart
// Update a notify configuration to add voice channel and additional countries.
val resp = pinpointSmsVoiceV2Client.updateNotifyConfiguration {
notifyConfigurationId = "nc-1234567890abcdef0"
enabledChannels = listOf<NumberCapability>(
NumberCapability.fromValue("SMS"),
NumberCapability.fromValue("VOICE")
)
enabledCountries = listOf<String>(
"US",
"CA",
"GB"
)
deletionProtectionEnabled = true
}
//sampleEnd
}