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

com.pulumi.aws.cfg.kotlin.inputs.RuleScopeArgs.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: 6.57.0.0
Show newest version
@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>) {
        this.complianceResourceTypes = Output.all(values)
    }

    /**
     * @param value The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.
     */
    @JvmName("emlpixvgjnqbrmrw")
    public suspend fun tagKey(`value`: Output) {
        this.tagKey = value
    }

    /**
     * @param value The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule.
     */
    @JvmName("dthowrkolwrikqok")
    public suspend fun tagValue(`value`: Output) {
        this.tagValue = value
    }

    /**
     * @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("farluufqqefuqamh")
    public suspend fun complianceResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.complianceResourceId = mapped
    }

    /**
     * @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("hqgmlekcqwggexsr")
    public suspend fun complianceResourceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.complianceResourceTypes = mapped
    }

    /**
     * @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("ghinjvivtvucsjvs")
    public suspend fun complianceResourceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.complianceResourceTypes = mapped
    }

    /**
     * @param value The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.
     */
    @JvmName("ddkadokipcnkwkwp")
    public suspend fun tagKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagKey = mapped
    }

    /**
     * @param value The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule.
     */
    @JvmName("rjlchebfxbnwunah")
    public suspend fun tagValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagValue = mapped
    }

    internal fun build(): RuleScopeArgs = RuleScopeArgs(
        complianceResourceId = complianceResourceId,
        complianceResourceTypes = complianceResourceTypes,
        tagKey = tagKey,
        tagValue = tagValue,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy