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

com.pulumi.googlenative.compute.beta.kotlin.BackendBucketArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.beta.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.BackendBucketArgs.builder
import com.pulumi.googlenative.compute.beta.kotlin.enums.BackendBucketCompressionMode
import com.pulumi.googlenative.compute.beta.kotlin.inputs.BackendBucketCdnPolicyArgs
import com.pulumi.googlenative.compute.beta.kotlin.inputs.BackendBucketCdnPolicyArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates a BackendBucket resource in the specified project using the data included in the request.
 * @property bucketName Cloud Storage bucket name.
 * @property cdnPolicy Cloud CDN configuration for this BackendBucket.
 * @property compressionMode Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
 * @property customResponseHeaders Headers that the HTTP/S load balancer should add to proxied responses.
 * @property description An optional textual description of the resource; provided by the client when the resource is created.
 * @property enableCdn If true, enable Cloud CDN for this BackendBucket.
 * @property kind Type of the resource.
 * @property name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
 * @property project
 * @property requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
 */
public data class BackendBucketArgs(
    public val bucketName: Output? = null,
    public val cdnPolicy: Output? = null,
    public val compressionMode: Output? = null,
    public val customResponseHeaders: Output>? = null,
    public val description: Output? = null,
    public val enableCdn: Output? = null,
    public val kind: Output? = null,
    public val name: Output? = null,
    public val project: Output? = null,
    public val requestId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.beta.BackendBucketArgs =
        com.pulumi.googlenative.compute.beta.BackendBucketArgs.builder()
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .cdnPolicy(cdnPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .compressionMode(compressionMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .customResponseHeaders(customResponseHeaders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .enableCdn(enableCdn?.applyValue({ args0 -> args0 }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .requestId(requestId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackendBucketArgs].
 */
@PulumiTagMarker
public class BackendBucketArgsBuilder internal constructor() {
    private var bucketName: Output? = null

    private var cdnPolicy: Output? = null

    private var compressionMode: Output? = null

    private var customResponseHeaders: Output>? = null

    private var description: Output? = null

    private var enableCdn: Output? = null

    private var kind: Output? = null

    private var name: Output? = null

    private var project: Output? = null

    private var requestId: Output? = null

    /**
     * @param value Cloud Storage bucket name.
     */
    @JvmName("ebubguafpwrmqldp")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value Cloud CDN configuration for this BackendBucket.
     */
    @JvmName("olrkwbsbeuueoelj")
    public suspend fun cdnPolicy(`value`: Output) {
        this.cdnPolicy = value
    }

    /**
     * @param value Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
     */
    @JvmName("xwvirhibfqrbirpx")
    public suspend fun compressionMode(`value`: Output) {
        this.compressionMode = value
    }

    /**
     * @param value Headers that the HTTP/S load balancer should add to proxied responses.
     */
    @JvmName("mcvllwyiyxspjkhl")
    public suspend fun customResponseHeaders(`value`: Output>) {
        this.customResponseHeaders = value
    }

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

    /**
     * @param values Headers that the HTTP/S load balancer should add to proxied responses.
     */
    @JvmName("ejcyxgpjgjunvhnl")
    public suspend fun customResponseHeaders(values: List>) {
        this.customResponseHeaders = Output.all(values)
    }

    /**
     * @param value An optional textual description of the resource; provided by the client when the resource is created.
     */
    @JvmName("hhfcytlhlhbwckpb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value If true, enable Cloud CDN for this BackendBucket.
     */
    @JvmName("kpglidsxnneythdw")
    public suspend fun enableCdn(`value`: Output) {
        this.enableCdn = value
    }

    /**
     * @param value Type of the resource.
     */
    @JvmName("lrrdoklhqcoouinx")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("tmnxxnaouyoethio")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("rtghufoxhbmhilvx")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
     */
    @JvmName("lpjdghnrtilgbpty")
    public suspend fun requestId(`value`: Output) {
        this.requestId = value
    }

    /**
     * @param value Cloud Storage bucket name.
     */
    @JvmName("rmrrgruwlopxtfcb")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value Cloud CDN configuration for this BackendBucket.
     */
    @JvmName("arjwplrxlrepirii")
    public suspend fun cdnPolicy(`value`: BackendBucketCdnPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cdnPolicy = mapped
    }

    /**
     * @param argument Cloud CDN configuration for this BackendBucket.
     */
    @JvmName("ctwtowpixcxdvils")
    public suspend fun cdnPolicy(argument: suspend BackendBucketCdnPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = BackendBucketCdnPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cdnPolicy = mapped
    }

    /**
     * @param value Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
     */
    @JvmName("bxatwnewjbqdewoy")
    public suspend fun compressionMode(`value`: BackendBucketCompressionMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compressionMode = mapped
    }

    /**
     * @param value Headers that the HTTP/S load balancer should add to proxied responses.
     */
    @JvmName("xnfqjhjwecvpvyki")
    public suspend fun customResponseHeaders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customResponseHeaders = mapped
    }

    /**
     * @param values Headers that the HTTP/S load balancer should add to proxied responses.
     */
    @JvmName("wywbsimrdmqrxuip")
    public suspend fun customResponseHeaders(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customResponseHeaders = mapped
    }

    /**
     * @param value An optional textual description of the resource; provided by the client when the resource is created.
     */
    @JvmName("wueanuhbfbosxaps")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value If true, enable Cloud CDN for this BackendBucket.
     */
    @JvmName("trbajdpqqxylqcbo")
    public suspend fun enableCdn(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableCdn = mapped
    }

    /**
     * @param value Type of the resource.
     */
    @JvmName("eyrjkpoucoomjmwk")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("skcjprtxffcepefw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("kfralposawyswyax")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
     */
    @JvmName("rquedhejrskfewba")
    public suspend fun requestId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestId = mapped
    }

    internal fun build(): BackendBucketArgs = BackendBucketArgs(
        bucketName = bucketName,
        cdnPolicy = cdnPolicy,
        compressionMode = compressionMode,
        customResponseHeaders = customResponseHeaders,
        description = description,
        enableCdn = enableCdn,
        kind = kind,
        name = name,
        project = project,
        requestId = requestId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy