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

com.pulumi.awsnative.codeartifact.kotlin.DomainArgs.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.codeartifact.kotlin

import com.pulumi.awsnative.codeartifact.DomainArgs.builder
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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The resource schema to create a CodeArtifact domain.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property domainName The name of the domain.
 * @property encryptionKey The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain.
 * @property permissionsPolicyDocument The access control resource policy on the provided domain.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::CodeArtifact::Domain` for more information about the expected schema for this property.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class DomainArgs(
    public val domainName: Output? = null,
    public val encryptionKey: Output? = null,
    public val permissionsPolicyDocument: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codeartifact.DomainArgs =
        com.pulumi.awsnative.codeartifact.DomainArgs.builder()
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .encryptionKey(encryptionKey?.applyValue({ args0 -> args0 }))
            .permissionsPolicyDocument(permissionsPolicyDocument?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DomainArgs].
 */
@PulumiTagMarker
public class DomainArgsBuilder internal constructor() {
    private var domainName: Output? = null

    private var encryptionKey: Output? = null

    private var permissionsPolicyDocument: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the domain.
     */
    @JvmName("uilnwojbhugxpjjd")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain.
     */
    @JvmName("rvqpodbnftmdcnkd")
    public suspend fun encryptionKey(`value`: Output) {
        this.encryptionKey = value
    }

    /**
     * @param value The access control resource policy on the provided domain.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::CodeArtifact::Domain` for more information about the expected schema for this property.
     */
    @JvmName("rwekrgyrmjakfirf")
    public suspend fun permissionsPolicyDocument(`value`: Output) {
        this.permissionsPolicyDocument = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("spycwcefraboienj")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("qnlcgkmxycduwgku")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the domain.
     */
    @JvmName("ohqepakjnqpjdulv")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain.
     */
    @JvmName("iyhsnintgemxrbhh")
    public suspend fun encryptionKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionKey = mapped
    }

    /**
     * @param value The access control resource policy on the provided domain.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::CodeArtifact::Domain` for more information about the expected schema for this property.
     */
    @JvmName("gjtkvoltluymkcgl")
    public suspend fun permissionsPolicyDocument(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.permissionsPolicyDocument = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("gifhlwujqmindxgn")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("mahjsyxfqrlexfhn")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("wjvinfqmhkfwnhhe")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("wfoskfmtfckpckvp")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("frsocisufpinmkpq")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DomainArgs = DomainArgs(
        domainName = domainName,
        encryptionKey = encryptionKey,
        permissionsPolicyDocument = permissionsPolicyDocument,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy