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

com.pulumi.awsnative.devopsguru.kotlin.outputs.NotificationChannelConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.devopsguru.kotlin.outputs

import kotlin.Suppress

/**
 * Information about notification channels you have configured with DevOps Guru.
 * @property filters The filter configurations for the Amazon SNS notification topic you use with DevOps Guru. If you do not provide filter configurations, the default configurations are to receive notifications for all message types of `High` or `Medium` severity.
 * @property sns Information about a notification channel configured in DevOps Guru to send notifications when insights are created.
 * If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see [Permissions for Amazon SNS topics](https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-required-permissions.html) .
 * If you use an Amazon SNS topic that is encrypted by an AWS Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see [Permissions for AWS KMS–encrypted Amazon SNS topics](https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-kms-permissions.html) .
 */
public data class NotificationChannelConfig(
    public val filters: NotificationChannelNotificationFilterConfig? = null,
    public val sns: NotificationChannelSnsChannelConfig? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.devopsguru.outputs.NotificationChannelConfig): NotificationChannelConfig = NotificationChannelConfig(
            filters = javaType.filters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.devopsguru.kotlin.outputs.NotificationChannelNotificationFilterConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            sns = javaType.sns().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.devopsguru.kotlin.outputs.NotificationChannelSnsChannelConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy