
com.pulumi.awsnative.rds.kotlin.outputs.GetEventSubscriptionResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.rds.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property enabled Specifies whether to activate the subscription. If the event notification subscription isn't activated, the subscription is created but not active.
* @property eventCategories A list of event categories for a particular source type (``SourceType``) that you want to subscribe to. You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the [Amazon RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.Messages.html) or the [Amazon Aurora User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Events.Messages.html). You can also see this list by using the ``DescribeEventCategories`` operation.
* @property sourceIds The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
* Constraints:
* + If a ``SourceIds`` value is supplied, ``SourceType`` must also be provided.
* + If the source type is a DB instance, a ``DBInstanceIdentifier`` value must be supplied.
* + If the source type is a DB cluster, a ``DBClusterIdentifier`` value must be supplied.
* + If the source type is a DB parameter group, a ``DBParameterGroupName`` value must be supplied.
* + If the source type is a DB security group, a ``DBSecurityGroupName`` value must be supplied.
* + If the source type is a DB snapshot, a ``DBSnapshotIdentifier`` value must be supplied.
* + If the source type is a DB cluster snapshot, a ``DBClusterSnapshotIdentifier`` value must be supplied.
* @property sourceType The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, set this parameter to ``db-instance``. If this value isn't specified, all events are returned.
* Valid values: ``db-instance`` | ``db-cluster`` | ``db-parameter-group`` | ``db-security-group`` | ``db-snapshot`` | ``db-cluster-snapshot``
* @property tags An optional array of key-value pairs to apply to this subscription.
*/
public data class GetEventSubscriptionResult(
public val enabled: Boolean? = null,
public val eventCategories: List? = null,
public val sourceIds: List? = null,
public val sourceType: String? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.rds.outputs.GetEventSubscriptionResult): GetEventSubscriptionResult = GetEventSubscriptionResult(
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
eventCategories = javaType.eventCategories().map({ args0 -> args0 }),
sourceIds = javaType.sourceIds().map({ args0 -> args0 }),
sourceType = javaType.sourceType().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy