ServerTlsPolicyArgs

data class ServerTlsPolicyArgs(val allowOpen: Output<Boolean>? = null, val description: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val mtlsPolicy: Output<MTLSPolicyArgs>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val serverCertificate: Output<GoogleCloudNetworksecurityV1beta1CertificateProviderArgs>? = null, val serverTlsPolicyId: Output<String>? = null) : ConvertibleToJava<ServerTlsPolicyArgs>

Creates a new ServerTlsPolicy in a given project and location.

Constructors

Link copied to clipboard
fun ServerTlsPolicyArgs(allowOpen: Output<Boolean>? = null, description: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, mtlsPolicy: Output<MTLSPolicyArgs>? = null, name: Output<String>? = null, project: Output<String>? = null, serverCertificate: Output<GoogleCloudNetworksecurityV1beta1CertificateProviderArgs>? = null, serverTlsPolicyId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServerTlsPolicyArgs

Properties

Link copied to clipboard
val allowOpen: Output<Boolean>? = null

This field applies only for Traffic Director policies. It is must be set to false for external HTTPS load balancer policies. Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if allow_open and mtls_policy are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.

Link copied to clipboard
val description: Output<String>? = null

Free-text description of the resource.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Set of label tags associated with the resource.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val mtlsPolicy: Output<MTLSPolicyArgs>? = null

This field is required if the policy is used with external HTTPS load balancers. This field can be empty for Traffic Director. Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

Link copied to clipboard
val name: Output<String>? = null

Name of the ServerTlsPolicy resource. It matches the pattern projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard

Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty. Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

Link copied to clipboard
val serverTlsPolicyId: Output<String>? = null

Required. Short name of the ServerTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "server_mtls_policy". */