resetNotificationSettings
inline suspend fun RolesAnywhereClient.resetNotificationSettings(crossinline block: ResetNotificationSettingsRequest.Builder.() -> Unit): ResetNotificationSettingsResponse
Resets the custom notification setting to IAM Roles Anywhere default setting.
**Required permissions: **rolesanywhere:ResetNotificationSettings
.
Samples
import aws.sdk.kotlin.services.rolesanywhere.model.NotificationSettingKey
fun main() {
//sampleStart
// ResetNotificationSettings Resets to IAM Roles Anywhere defined default notification settings
val resp = rolesAnywhereClient.resetNotificationSettings {
trustAnchorId = "c2505e61-2fc1-4a18-9fcf-94e18a22928b"
notificationSettingKeys = listOf<NotificationSettingKey>(
NotificationSettingKey {
event = NotificationEvent.fromValue("END_ENTITY_CERTIFICATE_EXPIRY")
}
)
}
//sampleEnd
}