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

com.pulumi.awsnative.configuration.kotlin.outputs.ConfigRuleScope.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.configuration.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * Defines which resources trigger an evaluation for an CC rule. The scope can include one or more resource types, a combination of a tag key and value, or a combination of one resource type and one resource ID. Specify a scope to constrain which resources trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered when any resource in your recording group changes in configuration.
 * @property complianceResourceId The ID of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for ``ComplianceResourceTypes``.
 * @property complianceResourceTypes The resource types of only those AWS resources that you want to trigger an evaluation for the rule. You can only specify one type if you also specify a resource ID for ``ComplianceResourceId``.
 * @property tagKey The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
 * @property tagValue The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you specify a value for ``TagValue``, you must also specify a value for ``TagKey``.
 */
public data class ConfigRuleScope(
    public val complianceResourceId: String? = null,
    public val complianceResourceTypes: List? = null,
    public val tagKey: String? = null,
    public val tagValue: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.configuration.outputs.ConfigRuleScope): ConfigRuleScope = ConfigRuleScope(
            complianceResourceId = javaType.complianceResourceId().map({ args0 -> args0 }).orElse(null),
            complianceResourceTypes = javaType.complianceResourceTypes().map({ args0 -> args0 }),
            tagKey = javaType.tagKey().map({ args0 -> args0 }).orElse(null),
            tagValue = javaType.tagValue().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy