All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.rolesanywhere.kotlin.outputs.TrustAnchorNotificationSetting.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.rolesanywhere.kotlin.outputs

import com.pulumi.awsnative.rolesanywhere.kotlin.enums.TrustAnchorNotificationChannel
import com.pulumi.awsnative.rolesanywhere.kotlin.enums.TrustAnchorNotificationEvent
import kotlin.Boolean
import kotlin.Double
import kotlin.Suppress

/**
 *
 * @property channel The specified channel of notification. IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and AWS Health Dashboard to notify for an event.
 * > In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.
 * @property enabled Indicates whether the notification setting is enabled.
 * @property event The event to which this notification setting is applied.
 * @property threshold The number of days before a notification event. This value is required for a notification setting that is enabled.
 */
public data class TrustAnchorNotificationSetting(
    public val channel: TrustAnchorNotificationChannel? = null,
    public val enabled: Boolean,
    public val event: TrustAnchorNotificationEvent,
    public val threshold: Double? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.rolesanywhere.outputs.TrustAnchorNotificationSetting): TrustAnchorNotificationSetting = TrustAnchorNotificationSetting(
            channel = javaType.channel().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.rolesanywhere.kotlin.enums.TrustAnchorNotificationChannel.Companion.toKotlin(args0)
                })
            }).orElse(null),
            enabled = javaType.enabled(),
            event = javaType.event().let({ args0 ->
                com.pulumi.awsnative.rolesanywhere.kotlin.enums.TrustAnchorNotificationEvent.Companion.toKotlin(args0)
            }),
            threshold = javaType.threshold().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy