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

com.pulumi.awsnative.appconfig.kotlin.ConfigurationProfileArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.appconfig.kotlin

import com.pulumi.awsnative.appconfig.ConfigurationProfileArgs.builder
import com.pulumi.awsnative.appconfig.kotlin.inputs.ConfigurationProfileValidatorsArgs
import com.pulumi.awsnative.appconfig.kotlin.inputs.ConfigurationProfileValidatorsArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * An example resource schema demonstrating some basic constructs and validation rules.
 * @property applicationId The application ID.
 * @property description A description of the configuration profile.
 * @property kmsKeyIdentifier The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
 * @property locationUri A URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object.
 * @property name A name for the configuration profile.
 * @property retrievalRoleArn The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
 * @property tags Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
 * @property type The type of configurations contained in the profile. When calling this API, enter one of the following values for Type: AWS.AppConfig.FeatureFlags, AWS.Freeform
 * @property validators A list of methods for validating the configuration.
 */
public data class ConfigurationProfileArgs(
    public val applicationId: Output? = null,
    public val description: Output? = null,
    public val kmsKeyIdentifier: Output? = null,
    public val locationUri: Output? = null,
    public val name: Output? = null,
    public val retrievalRoleArn: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
    public val validators: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appconfig.ConfigurationProfileArgs =
        com.pulumi.awsnative.appconfig.ConfigurationProfileArgs.builder()
            .applicationId(applicationId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .kmsKeyIdentifier(kmsKeyIdentifier?.applyValue({ args0 -> args0 }))
            .locationUri(locationUri?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .retrievalRoleArn(retrievalRoleArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0 }))
            .validators(
                validators?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ConfigurationProfileArgs].
 */
@PulumiTagMarker
public class ConfigurationProfileArgsBuilder internal constructor() {
    private var applicationId: Output? = null

    private var description: Output? = null

    private var kmsKeyIdentifier: Output? = null

    private var locationUri: Output? = null

    private var name: Output? = null

    private var retrievalRoleArn: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    private var validators: Output>? = null

    /**
     * @param value The application ID.
     */
    @JvmName("ohajmmbvgndseapv")
    public suspend fun applicationId(`value`: Output) {
        this.applicationId = value
    }

    /**
     * @param value A description of the configuration profile.
     */
    @JvmName("fbxcldxvcqvcorrx")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
     */
    @JvmName("oquakahgjdgfyftb")
    public suspend fun kmsKeyIdentifier(`value`: Output) {
        this.kmsKeyIdentifier = value
    }

    /**
     * @param value A URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object.
     */
    @JvmName("hdbgopakvasqngbv")
    public suspend fun locationUri(`value`: Output) {
        this.locationUri = value
    }

    /**
     * @param value A name for the configuration profile.
     */
    @JvmName("tnxvmgrgraxnfpsj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
     */
    @JvmName("hmufajaixneyggri")
    public suspend fun retrievalRoleArn(`value`: Output) {
        this.retrievalRoleArn = value
    }

    /**
     * @param value Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("vfkaunpyebknwfrq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("gwjctbtqooefdydp")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("gpwkdlsiendjvocl")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of configurations contained in the profile. When calling this API, enter one of the following values for Type: AWS.AppConfig.FeatureFlags, AWS.Freeform
     */
    @JvmName("gdilxgttblhmmyir")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A list of methods for validating the configuration.
     */
    @JvmName("eujhkpdapsiqibbv")
    public suspend fun validators(`value`: Output>) {
        this.validators = value
    }

    @JvmName("hbgvbkkfuckgissr")
    public suspend fun validators(vararg values: Output) {
        this.validators = Output.all(values.asList())
    }

    /**
     * @param values A list of methods for validating the configuration.
     */
    @JvmName("fwwgpfbdlhkyvgxh")
    public suspend fun validators(values: List>) {
        this.validators = Output.all(values)
    }

    /**
     * @param value The application ID.
     */
    @JvmName("xkmsgurbhbshhfhh")
    public suspend fun applicationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationId = mapped
    }

    /**
     * @param value A description of the configuration profile.
     */
    @JvmName("mjscvofgsuyeqikj")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
     */
    @JvmName("exupsqkyxjuyyvgw")
    public suspend fun kmsKeyIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyIdentifier = mapped
    }

    /**
     * @param value A URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object.
     */
    @JvmName("nwgrwqbakppiqlda")
    public suspend fun locationUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locationUri = mapped
    }

    /**
     * @param value A name for the configuration profile.
     */
    @JvmName("pllpuiwgwauamuyl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
     */
    @JvmName("kifcspvuhhoyrkxu")
    public suspend fun retrievalRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retrievalRoleArn = mapped
    }

    /**
     * @param value Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("hunfwcgknjmnwqad")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("gvuxutdirxjbxqrd")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("baxvqxctefvdliqb")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("hsyusbpcbwfmymbk")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata to assign to the configuration profile. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("eiqhfkeiduiebowr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of configurations contained in the profile. When calling this API, enter one of the following values for Type: AWS.AppConfig.FeatureFlags, AWS.Freeform
     */
    @JvmName("dddlanyfrpvteyql")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value A list of methods for validating the configuration.
     */
    @JvmName("yxdwltedomxbdyqa")
    public suspend fun validators(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.validators = mapped
    }

    /**
     * @param argument A list of methods for validating the configuration.
     */
    @JvmName("ptirvdvcfabrgvfe")
    public suspend fun validators(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationProfileValidatorsArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.validators = mapped
    }

    /**
     * @param argument A list of methods for validating the configuration.
     */
    @JvmName("egolyuhgnvmdmmrf")
    public suspend fun validators(vararg argument: suspend ConfigurationProfileValidatorsArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConfigurationProfileValidatorsArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.validators = mapped
    }

    /**
     * @param argument A list of methods for validating the configuration.
     */
    @JvmName("mgtecrjgwkqdaufq")
    public suspend fun validators(argument: suspend ConfigurationProfileValidatorsArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConfigurationProfileValidatorsArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.validators = mapped
    }

    /**
     * @param values A list of methods for validating the configuration.
     */
    @JvmName("rmfvtyroqnggxipo")
    public suspend fun validators(vararg values: ConfigurationProfileValidatorsArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.validators = mapped
    }

    internal fun build(): ConfigurationProfileArgs = ConfigurationProfileArgs(
        applicationId = applicationId,
        description = description,
        kmsKeyIdentifier = kmsKeyIdentifier,
        locationUri = locationUri,
        name = name,
        retrievalRoleArn = retrievalRoleArn,
        tags = tags,
        type = type,
        validators = validators,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy