
com.pulumi.googlenative.compute.beta.kotlin.BackendBucketArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy