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

com.pulumi.awsnative.forecast.kotlin.inputs.EncryptionConfigPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.forecast.kotlin.inputs

import com.pulumi.awsnative.forecast.inputs.EncryptionConfigPropertiesArgs.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.jvm.JvmName

/**
 * A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
 * @property kmsKeyArn The Amazon Resource Name (ARN) of the KMS key.
 * @property roleArn The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
 * Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an `InvalidInputException` error.
 */
public data class EncryptionConfigPropertiesArgs(
    public val kmsKeyArn: Output? = null,
    public val roleArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.forecast.inputs.EncryptionConfigPropertiesArgs =
        com.pulumi.awsnative.forecast.inputs.EncryptionConfigPropertiesArgs.builder()
            .kmsKeyArn(kmsKeyArn?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EncryptionConfigPropertiesArgs].
 */
@PulumiTagMarker
public class EncryptionConfigPropertiesArgsBuilder internal constructor() {
    private var kmsKeyArn: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the KMS key.
     */
    @JvmName("vrphnqmkucsnoopw")
    public suspend fun kmsKeyArn(`value`: Output) {
        this.kmsKeyArn = value
    }

    /**
     * @param value The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
     * Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an `InvalidInputException` error.
     */
    @JvmName("jcbrncsnyqqlpjks")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the KMS key.
     */
    @JvmName("rlonakdrohrvcddg")
    public suspend fun kmsKeyArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyArn = mapped
    }

    /**
     * @param value The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
     * Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an `InvalidInputException` error.
     */
    @JvmName("lmgtkasyyhsdocxk")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): EncryptionConfigPropertiesArgs = EncryptionConfigPropertiesArgs(
        kmsKeyArn = kmsKeyArn,
        roleArn = roleArn,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy