putNotificationSettings

Attaches a list of notification settings to a trust anchor.

A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify.

**Required permissions: **rolesanywhere:PutNotificationSettings.

Samples

import aws.sdk.kotlin.services.rolesanywhere.model.NotificationSetting
fun main() { 
   //sampleStart 
   // PutNotificationSettings Adds custom notification settings
val resp = rolesAnywhereClient.putNotificationSettings {
    trustAnchorId = "c2505e61-2fc1-4a18-9fcf-94e18a22928b"
    notificationSettings = listOf<NotificationSetting>(
        NotificationSetting {
            event = NotificationEvent.fromValue("END_ENTITY_CERTIFICATE_EXPIRY")
            enabled = true
            threshold = 10
        }            
    )
} 
   //sampleEnd
}