com.pulumi.googlenative.compute.v1.kotlin.TargetSslProxy.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [TargetSslProxy].
*/
@PulumiTagMarker
public class TargetSslProxyResourceBuilder internal constructor() {
public var name: String? = null
public var args: TargetSslProxyArgs = TargetSslProxyArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend TargetSslProxyArgsBuilder.() -> Unit) {
val builder = TargetSslProxyArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): TargetSslProxy {
val builtJavaResource =
com.pulumi.googlenative.compute.v1.TargetSslProxy(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return TargetSslProxy(builtJavaResource)
}
}
/**
* Creates a TargetSslProxy resource in the specified project using the data included in the request.
*/
public class TargetSslProxy internal constructor(
override val javaResource: com.pulumi.googlenative.compute.v1.TargetSslProxy,
) : KotlinCustomResource(javaResource, TargetSslProxyMapper) {
/**
* 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}.
*/
public val certificateMap: Output
get() = javaResource.certificateMap().applyValue({ args0 -> args0 })
/**
* Creation timestamp in RFC3339 text format.
*/
public val creationTimestamp: Output
get() = javaResource.creationTimestamp().applyValue({ args0 -> args0 })
/**
* An optional description of this resource. Provide this property when you create the resource.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* Type of the resource. Always compute#targetSslProxy for target SSL proxies.
*/
public val kind: Output
get() = javaResource.kind().applyValue({ args0 -> args0 })
/**
* 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.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
*/
public val proxyHeader: Output
get() = javaResource.proxyHeader().applyValue({ args0 -> args0 })
/**
* 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 val requestId: Output?
get() = javaResource.requestId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Server-defined URL for the resource.
*/
public val selfLink: Output
get() = javaResource.selfLink().applyValue({ args0 -> args0 })
/**
* URL to the BackendService resource.
*/
public val service: Output
get() = javaResource.service().applyValue({ args0 -> args0 })
/**
* 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.
*/
public val sslCertificates: Output>
get() = javaResource.sslCertificates().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* 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 val sslPolicy: Output
get() = javaResource.sslPolicy().applyValue({ args0 -> args0 })
}
public object TargetSslProxyMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.compute.v1.TargetSslProxy::class == javaResource::class
override fun map(javaResource: Resource): TargetSslProxy = TargetSslProxy(
javaResource as
com.pulumi.googlenative.compute.v1.TargetSslProxy,
)
}
/**
* @see [TargetSslProxy].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [TargetSslProxy].
*/
public suspend fun targetSslProxy(
name: String,
block: suspend TargetSslProxyResourceBuilder.() -> Unit,
): TargetSslProxy {
val builder = TargetSslProxyResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [TargetSslProxy].
* @param name The _unique_ name of the resulting resource.
*/
public fun targetSslProxy(name: String): TargetSslProxy {
val builder = TargetSslProxyResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy