com.pulumi.aws.cfg.kotlin.inputs.RuleScopeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.cfg.kotlin.inputs
import com.pulumi.aws.cfg.inputs.RuleScopeArgs.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
/**
*
* @property complianceResourceId The IDs 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 `compliance_resource_types`.
* @property complianceResourceTypes A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., `AWS::EC2::Instance`. You can only specify one type if you also specify a resource ID for `compliance_resource_id`. See [relevant part of AWS Docs](http://docs.aws.amazon.com/config/latest/APIReference/API_ResourceIdentifier.html#config-Type-ResourceIdentifier-resourceType) for available types.
* @property tagKey The tag key that is applied to only those AWS resources that you want 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.
*/
public data class RuleScopeArgs(
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.aws.cfg.inputs.RuleScopeArgs =
com.pulumi.aws.cfg.inputs.RuleScopeArgs.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 [RuleScopeArgs].
*/
@PulumiTagMarker
public class RuleScopeArgsBuilder 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 IDs 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 `compliance_resource_types`.
*/
@JvmName("xfdiprbbuixdfaxv")
public suspend fun complianceResourceId(`value`: Output) {
this.complianceResourceId = value
}
/**
* @param value A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., `AWS::EC2::Instance`. You can only specify one type if you also specify a resource ID for `compliance_resource_id`. See [relevant part of AWS Docs](http://docs.aws.amazon.com/config/latest/APIReference/API_ResourceIdentifier.html#config-Type-ResourceIdentifier-resourceType) for available types.
*/
@JvmName("huvwvctprljjvmtx")
public suspend fun complianceResourceTypes(`value`: Output>) {
this.complianceResourceTypes = value
}
@JvmName("hpvqvdkpufyfehpq")
public suspend fun complianceResourceTypes(vararg values: Output) {
this.complianceResourceTypes = Output.all(values.asList())
}
/**
* @param values A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., `AWS::EC2::Instance`. You can only specify one type if you also specify a resource ID for `compliance_resource_id`. See [relevant part of AWS Docs](http://docs.aws.amazon.com/config/latest/APIReference/API_ResourceIdentifier.html#config-Type-ResourceIdentifier-resourceType) for available types.
*/
@JvmName("odmfwmrmucbhenqf")
public suspend fun complianceResourceTypes(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy