
com.pulumi.googlenative.compute.alpha.kotlin.TargetHttpsProxy.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.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.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [TargetHttpsProxy].
*/
@PulumiTagMarker
public class TargetHttpsProxyResourceBuilder internal constructor() {
public var name: String? = null
public var args: TargetHttpsProxyArgs = TargetHttpsProxyArgs()
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 TargetHttpsProxyArgsBuilder.() -> Unit) {
val builder = TargetHttpsProxyArgsBuilder()
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(): TargetHttpsProxy {
val builtJavaResource =
com.pulumi.googlenative.compute.alpha.TargetHttpsProxy(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return TargetHttpsProxy(builtJavaResource)
}
}
/**
* Creates a TargetHttpsProxy resource in the specified project using the data included in the request.
*/
public class TargetHttpsProxy internal constructor(
override val javaResource: com.pulumi.googlenative.compute.alpha.TargetHttpsProxy,
) : KotlinCustomResource(javaResource, TargetHttpsProxyMapper) {
/**
* [Deprecated] Use serverTlsPolicy instead.
*/
@Deprecated(
message = """
[Deprecated] Use serverTlsPolicy instead.
""",
)
public val authentication: Output
get() = javaResource.authentication().applyValue({ args0 -> args0 })
/**
* [Deprecated] Use authorizationPolicy instead.
*/
@Deprecated(
message = """
[Deprecated] Use authorizationPolicy instead.
""",
)
public val authorization: Output
get() = javaResource.authorization().applyValue({ args0 -> args0 })
/**
* Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how the proxy should authorize inbound traffic. If left blank, access will not be restricted by an authorization policy. Refer to the AuthorizationPolicy resource for additional details. authorizationPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. Note: This field currently has no impact.
*/
public val authorizationPolicy: Output
get() = javaResource.authorizationPolicy().applyValue({ args0 -> args0 })
/**
* 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 })
/**
* Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to-date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpsProxy.
*/
public val fingerprint: Output
get() = javaResource.fingerprint().applyValue({ args0 -> args0 })
/**
* URLs to networkservices.HttpFilter resources enabled for xDS clients using this configuration. For example, https://networkservices.googleapis.com/beta/projects/project/locations/ locationhttpFilters/httpFilter Only filters that handle outbound connection and stream events may be specified. These filters work in conjunction with a default set of HTTP filters that may already be configured by Traffic Director. Traffic Director will determine the final location of these filters within xDS configuration based on the name of the HTTP filter. If Traffic Director positions multiple filters at the same location, those filters will be in the same order as specified in this list. httpFilters only applies for loadbalancers with loadBalancingScheme set to INTERNAL_SELF_MANAGED. See ForwardingRule for more details.
*/
public val httpFilters: Output>
get() = javaResource.httpFilters().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For Global external HTTP(S) load balancer, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For Global external HTTP(S) load balancer (classic), this option is not available publicly.
*/
public val httpKeepAliveTimeoutSec: Output
get() = javaResource.httpKeepAliveTimeoutSec().applyValue({ args0 -> args0 })
/**
* Type of resource. Always compute#targetHttpsProxy for target HTTPS 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 })
/**
* This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
*/
public val proxyBind: Output
get() = javaResource.proxyBind().applyValue({ args0 -> args0 })
/**
* Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. - When quic-override is set to NONE, Google manages whether QUIC is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - If the quic-override flag is not specified, NONE is implied.
*/
public val quicOverride: Output
get() = javaResource.quicOverride().applyValue({ args0 -> args0 })
/**
* URL of the region where the regional TargetHttpsProxy resides. This field is not applicable to global TargetHttpsProxies.
*/
public val region: Output
get() = javaResource.region().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 })
/**
* Server-defined URL for this resource with the resource id.
*/
public val selfLinkWithId: Output
get() = javaResource.selfLinkWithId().applyValue({ args0 -> args0 })
/**
* Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted.
*/
public val serverTlsPolicy: Output
get() = javaResource.serverTlsPolicy().applyValue({ args0 -> args0 })
/**
* URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. 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 TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource has no SSL policy configured.
*/
public val sslPolicy: Output
get() = javaResource.sslPolicy().applyValue({ args0 -> args0 })
/**
* A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL to the BackendService. For example, the following are all valid URLs for specifying a URL map: - https://www.googleapis.compute/v1/projects/project/global/urlMaps/ url-map - projects/project/global/urlMaps/url-map - global/urlMaps/url-map
*/
public val urlMap: Output
get() = javaResource.urlMap().applyValue({ args0 -> args0 })
}
public object TargetHttpsProxyMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.compute.alpha.TargetHttpsProxy::class == javaResource::class
override fun map(javaResource: Resource): TargetHttpsProxy = TargetHttpsProxy(
javaResource as
com.pulumi.googlenative.compute.alpha.TargetHttpsProxy,
)
}
/**
* @see [TargetHttpsProxy].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [TargetHttpsProxy].
*/
public suspend fun targetHttpsProxy(
name: String,
block: suspend TargetHttpsProxyResourceBuilder.() -> Unit,
): TargetHttpsProxy {
val builder = TargetHttpsProxyResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [TargetHttpsProxy].
* @param name The _unique_ name of the resulting resource.
*/
public fun targetHttpsProxy(name: String): TargetHttpsProxy {
val builder = TargetHttpsProxyResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy