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

com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs.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.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs.builder
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 allowedSignatureAlgorithms The allowed signature algorithms to use.
 * Defaults to using only ED25519.
 * You may specify up to 3 signature algorithms to use.
 * Each value may be one of: `ED25519`, `HMAC_SHA_256`, `HMAC_SHA1`.
 * @property tokenQueryParameter The query parameter in which to find the token.
 * The name must be 1-64 characters long and match the regular expression `a-zA-Z*` which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
 * Defaults to `edge-cache-token`.
 */
public data class
EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs(
    public val allowedSignatureAlgorithms: Output>? = null,
    public val tokenQueryParameter: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs =
        com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs.builder()
            .allowedSignatureAlgorithms(
                allowedSignatureAlgorithms?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .tokenQueryParameter(tokenQueryParameter?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs].
 */
@PulumiTagMarker
public class
EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgsBuilder
internal constructor() {
    private var allowedSignatureAlgorithms: Output>? = null

    private var tokenQueryParameter: Output? = null

    /**
     * @param value The allowed signature algorithms to use.
     * Defaults to using only ED25519.
     * You may specify up to 3 signature algorithms to use.
     * Each value may be one of: `ED25519`, `HMAC_SHA_256`, `HMAC_SHA1`.
     */
    @JvmName("lohgocnublcqmuhu")
    public suspend fun allowedSignatureAlgorithms(`value`: Output>) {
        this.allowedSignatureAlgorithms = value
    }

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

    /**
     * @param values The allowed signature algorithms to use.
     * Defaults to using only ED25519.
     * You may specify up to 3 signature algorithms to use.
     * Each value may be one of: `ED25519`, `HMAC_SHA_256`, `HMAC_SHA1`.
     */
    @JvmName("mtaveygkaiynefat")
    public suspend fun allowedSignatureAlgorithms(values: List>) {
        this.allowedSignatureAlgorithms = Output.all(values)
    }

    /**
     * @param value The query parameter in which to find the token.
     * The name must be 1-64 characters long and match the regular expression `a-zA-Z*` which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
     * Defaults to `edge-cache-token`.
     */
    @JvmName("llmitorilhsjamcj")
    public suspend fun tokenQueryParameter(`value`: Output) {
        this.tokenQueryParameter = value
    }

    /**
     * @param value The allowed signature algorithms to use.
     * Defaults to using only ED25519.
     * You may specify up to 3 signature algorithms to use.
     * Each value may be one of: `ED25519`, `HMAC_SHA_256`, `HMAC_SHA1`.
     */
    @JvmName("jjyefgsexevggcid")
    public suspend fun allowedSignatureAlgorithms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedSignatureAlgorithms = mapped
    }

    /**
     * @param values The allowed signature algorithms to use.
     * Defaults to using only ED25519.
     * You may specify up to 3 signature algorithms to use.
     * Each value may be one of: `ED25519`, `HMAC_SHA_256`, `HMAC_SHA1`.
     */
    @JvmName("rqtkvxdmsojqasol")
    public suspend fun allowedSignatureAlgorithms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedSignatureAlgorithms = mapped
    }

    /**
     * @param value The query parameter in which to find the token.
     * The name must be 1-64 characters long and match the regular expression `a-zA-Z*` which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
     * Defaults to `edge-cache-token`.
     */
    @JvmName("vxxabyspjkopydrk")
    public suspend fun tokenQueryParameter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tokenQueryParameter = mapped
    }

    internal fun build(): EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs =
        EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicySignedTokenOptionsArgs(
            allowedSignatureAlgorithms = allowedSignatureAlgorithms,
            tokenQueryParameter = tokenQueryParameter,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy