
com.pulumi.awsnative.codestarnotifications.kotlin.outputs.GetNotificationRuleResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.codestarnotifications.kotlin.outputs
import com.pulumi.awsnative.codestarnotifications.kotlin.enums.NotificationRuleDetailType
import com.pulumi.awsnative.codestarnotifications.kotlin.enums.NotificationRuleStatus
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property arn The Amazon Resource Name (ARN) of the notification rule.
* @property createdBy The name or email alias of the person who created the notification rule.
* @property detailType The level of detail to include in the notifications for this resource. `BASIC` will include only the contents of the event as it would appear in Amazon CloudWatch. `FULL` will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
* @property eventTypeIds A list of event types associated with this notification rule. For a complete list of event types and IDs, see [Notification concepts](https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api) in the *Developer Tools Console User Guide* .
* @property name The name for the notification rule. Notification rule names must be unique in your AWS account .
* @property status The status of the notification rule. The default value is `ENABLED` . If the status is set to `DISABLED` , notifications aren't sent for the notification rule.
* @property tags A list of tags to apply to this notification rule. Key names cannot start with " `aws` ".
* @property targets A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.
*/
public data class GetNotificationRuleResult(
public val arn: String? = null,
public val createdBy: String? = null,
public val detailType: NotificationRuleDetailType? = null,
public val eventTypeIds: List? = null,
public val name: String? = null,
public val status: NotificationRuleStatus? = null,
public val tags: Map? = null,
public val targets: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.codestarnotifications.outputs.GetNotificationRuleResult): GetNotificationRuleResult = GetNotificationRuleResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
createdBy = javaType.createdBy().map({ args0 -> args0 }).orElse(null),
detailType = javaType.detailType().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codestarnotifications.kotlin.enums.NotificationRuleDetailType.Companion.toKotlin(args0)
})
}).orElse(null),
eventTypeIds = javaType.eventTypeIds().map({ args0 -> args0 }),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codestarnotifications.kotlin.enums.NotificationRuleStatus.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
targets = javaType.targets().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codestarnotifications.kotlin.outputs.NotificationRuleTarget.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy