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

com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheOriginAwsV4AuthenticationArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkservices.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginAwsV4AuthenticationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property accessKeyId The access key ID your origin uses to identify the key.
 * @property originRegion The name of the AWS region that your origin is in.
 * @property secretAccessKeyVersion The Secret Manager secret version of the secret access key used by your origin.
 * This is the resource name of the secret version in the format 'projects/*/secrets/*/versions/*' where the '*' values are replaced by the project, secret, and version you require.
 * */*/*/
 */
public data class EdgeCacheOriginAwsV4AuthenticationArgs(
    public val accessKeyId: Output,
    public val originRegion: Output,
    public val secretAccessKeyVersion: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginAwsV4AuthenticationArgs =
        com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginAwsV4AuthenticationArgs.builder()
            .accessKeyId(accessKeyId.applyValue({ args0 -> args0 }))
            .originRegion(originRegion.applyValue({ args0 -> args0 }))
            .secretAccessKeyVersion(secretAccessKeyVersion.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EdgeCacheOriginAwsV4AuthenticationArgs].
 */
@PulumiTagMarker
public class EdgeCacheOriginAwsV4AuthenticationArgsBuilder internal constructor() {
    private var accessKeyId: Output? = null

    private var originRegion: Output? = null

    private var secretAccessKeyVersion: Output? = null

    /**
     * @param value The access key ID your origin uses to identify the key.
     */
    @JvmName("gniluvxdpvuyddhg")
    public suspend fun accessKeyId(`value`: Output) {
        this.accessKeyId = value
    }

    /**
     * @param value The name of the AWS region that your origin is in.
     */
    @JvmName("chnegmhfbypxmkjl")
    public suspend fun originRegion(`value`: Output) {
        this.originRegion = value
    }

    /**
     * @param value The Secret Manager secret version of the secret access key used by your origin.
     * This is the resource name of the secret version in the format 'projects/*/secrets/*/versions/*' where the '*' values are replaced by the project, secret, and version you require.
     * */*/*/
     */
    @JvmName("npjciograatspyjj")
    public suspend fun secretAccessKeyVersion(`value`: Output) {
        this.secretAccessKeyVersion = value
    }

    /**
     * @param value The access key ID your origin uses to identify the key.
     */
    @JvmName("jldxshlqlbvidlbe")
    public suspend fun accessKeyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessKeyId = mapped
    }

    /**
     * @param value The name of the AWS region that your origin is in.
     */
    @JvmName("scltokrkadvcmtlu")
    public suspend fun originRegion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.originRegion = mapped
    }

    /**
     * @param value The Secret Manager secret version of the secret access key used by your origin.
     * This is the resource name of the secret version in the format 'projects/*/secrets/*/versions/*' where the '*' values are replaced by the project, secret, and version you require.
     * */*/*/
     */
    @JvmName("bhvkmkhkgsftinfk")
    public suspend fun secretAccessKeyVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretAccessKeyVersion = mapped
    }

    internal fun build(): EdgeCacheOriginAwsV4AuthenticationArgs =
        EdgeCacheOriginAwsV4AuthenticationArgs(
            accessKeyId = accessKeyId ?: throw PulumiNullFieldException("accessKeyId"),
            originRegion = originRegion ?: throw PulumiNullFieldException("originRegion"),
            secretAccessKeyVersion = secretAccessKeyVersion ?: throw
                PulumiNullFieldException("secretAccessKeyVersion"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy