
com.pulumi.awsnative.configuration.kotlin.inputs.ConfigRuleScopeArgs.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.configuration.kotlin.inputs
import com.pulumi.awsnative.configuration.inputs.ConfigRuleScopeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* 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 ConfigRuleScopeArgs(
public val complianceResourceId: Output? = null,
public val complianceResourceTypes: Output>? = null,
public val tagKey: Output? = null,
public val tagValue: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.configuration.inputs.ConfigRuleScopeArgs =
com.pulumi.awsnative.configuration.inputs.ConfigRuleScopeArgs.builder()
.complianceResourceId(complianceResourceId?.applyValue({ args0 -> args0 }))
.complianceResourceTypes(
complianceResourceTypes?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.tagKey(tagKey?.applyValue({ args0 -> args0 }))
.tagValue(tagValue?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConfigRuleScopeArgs].
*/
@PulumiTagMarker
public class ConfigRuleScopeArgsBuilder internal constructor() {
private var complianceResourceId: Output? = null
private var complianceResourceTypes: Output>? = null
private var tagKey: Output? = null
private var tagValue: Output? = null
/**
* @param value 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``.
*/
@JvmName("fmurndlnqiyorcgs")
public suspend fun complianceResourceId(`value`: Output) {
this.complianceResourceId = value
}
/**
* @param value 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``.
*/
@JvmName("olsogdfyiawhvjdm")
public suspend fun complianceResourceTypes(`value`: Output>) {
this.complianceResourceTypes = value
}
@JvmName("bxpceelwkbvpaxse")
public suspend fun complianceResourceTypes(vararg values: Output) {
this.complianceResourceTypes = Output.all(values.asList())
}
/**
* @param values 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``.
*/
@JvmName("emwbnpnjpnlfnucp")
public suspend fun complianceResourceTypes(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy