
com.pulumi.googlenative.compute.alpha.kotlin.TargetSslProxyArgs.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.alpha.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.TargetSslProxyArgs.builder
import com.pulumi.googlenative.compute.alpha.kotlin.enums.TargetSslProxyProxyHeader
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Creates a TargetSslProxy resource in the specified project using the data included in the request.
* @property certificateMap URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
* @property description An optional description of this resource. Provide this property when you create 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 proxyHeader Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
* @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).
* @property service URL to the BackendService resource.
* @property sslCertificates URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
* @property sslPolicy URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, the TargetSslProxy resource will not have any SSL policy configured.
*/
public data class TargetSslProxyArgs(
public val certificateMap: Output? = null,
public val description: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val proxyHeader: Output? = null,
public val requestId: Output? = null,
public val service: Output? = null,
public val sslCertificates: Output>? = null,
public val sslPolicy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.TargetSslProxyArgs =
com.pulumi.googlenative.compute.alpha.TargetSslProxyArgs.builder()
.certificateMap(certificateMap?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.proxyHeader(proxyHeader?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.requestId(requestId?.applyValue({ args0 -> args0 }))
.service(service?.applyValue({ args0 -> args0 }))
.sslCertificates(sslCertificates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.sslPolicy(sslPolicy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TargetSslProxyArgs].
*/
@PulumiTagMarker
public class TargetSslProxyArgsBuilder internal constructor() {
private var certificateMap: Output? = null
private var description: Output? = null
private var name: Output? = null
private var project: Output? = null
private var proxyHeader: Output? = null
private var requestId: Output? = null
private var service: Output? = null
private var sslCertificates: Output>? = null
private var sslPolicy: Output? = null
/**
* @param value URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
*/
@JvmName("vknbevoccugssrxb")
public suspend fun certificateMap(`value`: Output) {
this.certificateMap = value
}
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("mmyuhjerjuafdmgh")
public suspend fun description(`value`: Output) {
this.description = 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("jrtsdbhjgsbikdhu")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("urastjcpdcglsjhk")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
*/
@JvmName("igwknxwadqesvkgl")
public suspend fun proxyHeader(`value`: Output) {
this.proxyHeader = 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("uttodghxaognisli")
public suspend fun requestId(`value`: Output) {
this.requestId = value
}
/**
* @param value URL to the BackendService resource.
*/
@JvmName("nyviqysjgqenyukm")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
*/
@JvmName("cnhwlpokiyvpckuc")
public suspend fun sslCertificates(`value`: Output>) {
this.sslCertificates = value
}
@JvmName("xwrajvrmxxdjvvym")
public suspend fun sslCertificates(vararg values: Output) {
this.sslCertificates = Output.all(values.asList())
}
/**
* @param values URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
*/
@JvmName("rvanofpqqyjqkgka")
public suspend fun sslCertificates(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy