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

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

package com.pulumi.gcp.networkservices.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property actions The actions to take to add signatures to responses.
 * Each value may be one of: `GENERATE_COOKIE`, `GENERATE_TOKEN_HLS_COOKIELESS`, `PROPAGATE_TOKEN_HLS_COOKIELESS`.
 * @property copiedParameters The parameters to copy from the verified token to the generated token.
 * Only the following parameters may be copied:
 * * `PathGlobs`
 * @property keyset The keyset to use for signature generation.
 * The following are both valid paths to an EdgeCacheKeyset resource:
 * * `projects/project/locations/global/edgeCacheKeysets/yourKeyset`
 * * `yourKeyset`
 * This must be specified when the GENERATE_COOKIE or GENERATE_TOKEN_HLS_COOKIELESS actions are specified.  This field may not be specified otherwise.
 * @property tokenQueryParameter The query parameter in which to put the generated token.
 * If not specified, defaults to `edge-cache-token`.
 * If specified, 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.
 * This field may only be set when the GENERATE_TOKEN_HLS_COOKIELESS or PROPAGATE_TOKEN_HLS_COOKIELESS actions are specified.
 * @property tokenTtl The duration the token is valid starting from the moment the token is first generated.
 * Defaults to `86400s` (1 day).
 * The TTL must be >= 0 and <= 604,800 seconds (1 week).
 * This field may only be specified when the GENERATE_COOKIE or GENERATE_TOKEN_HLS_COOKIELESS actions are specified.
 * A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
 */
public data class EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyAddSignatures(
    public val actions: String,
    public val copiedParameters: List? = null,
    public val keyset: String? = null,
    public val tokenQueryParameter: String? = null,
    public val tokenTtl: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyAddSignatures): EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyAddSignatures =
            EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCdnPolicyAddSignatures(
                actions = javaType.actions(),
                copiedParameters = javaType.copiedParameters().map({ args0 -> args0 }),
                keyset = javaType.keyset().map({ args0 -> args0 }).orElse(null),
                tokenQueryParameter = javaType.tokenQueryParameter().map({ args0 -> args0 }).orElse(null),
                tokenTtl = javaType.tokenTtl().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy