Package com.pulumi.gcp.networksecurity
Class ServerTlsPolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.networksecurity.ServerTlsPolicyArgs.Builder
-
- Enclosing class:
- ServerTlsPolicyArgs
public static final class ServerTlsPolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(ServerTlsPolicyArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ServerTlsPolicyArgs defaults)
-
-
Method Detail
-
allowOpen
public ServerTlsPolicyArgs.Builder allowOpen(@Nullable com.pulumi.core.Output<java.lang.Boolean> allowOpen)
- Parameters:
allowOpen
- 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 allowOpen and mtlsPolicy 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.- Returns:
- builder
-
allowOpen
public ServerTlsPolicyArgs.Builder allowOpen(java.lang.Boolean allowOpen)
- Parameters:
allowOpen
- 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 allowOpen and mtlsPolicy 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.- Returns:
- builder
-
description
public ServerTlsPolicyArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- A free-text description of the resource. Max length 1024 characters.- Returns:
- builder
-
description
public ServerTlsPolicyArgs.Builder description(java.lang.String description)
- Parameters:
description
- A free-text description of the resource. Max length 1024 characters.- Returns:
- builder
-
labels
public ServerTlsPolicyArgs.Builder labels(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
- Parameters:
labels
- Set of label tags associated with the ServerTlsPolicy resource. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effective_labels` for all of the labels present on the resource.- Returns:
- builder
-
labels
public ServerTlsPolicyArgs.Builder labels(java.util.Map<java.lang.String,java.lang.String> labels)
- Parameters:
labels
- Set of label tags associated with the ServerTlsPolicy resource. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effective_labels` for all of the labels present on the resource.- Returns:
- builder
-
location
public ServerTlsPolicyArgs.Builder location(@Nullable com.pulumi.core.Output<java.lang.String> location)
- Parameters:
location
- The location of the server tls policy. The default value is `global`.- Returns:
- builder
-
location
public ServerTlsPolicyArgs.Builder location(java.lang.String location)
- Parameters:
location
- The location of the server tls policy. The default value is `global`.- Returns:
- builder
-
mtlsPolicy
public ServerTlsPolicyArgs.Builder mtlsPolicy(@Nullable com.pulumi.core.Output<ServerTlsPolicyMtlsPolicyArgs> mtlsPolicy)
- Parameters:
mtlsPolicy
- 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 allowOpen and mtlsPolicy are set, server allows both plain text and mTLS connections. Structure is documented below.- Returns:
- builder
-
mtlsPolicy
public ServerTlsPolicyArgs.Builder mtlsPolicy(ServerTlsPolicyMtlsPolicyArgs mtlsPolicy)
- Parameters:
mtlsPolicy
- 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 allowOpen and mtlsPolicy are set, server allows both plain text and mTLS connections. Structure is documented below.- Returns:
- builder
-
name
public ServerTlsPolicyArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Name of the ServerTlsPolicy resource. ***- Returns:
- builder
-
name
public ServerTlsPolicyArgs.Builder name(java.lang.String name)
- Parameters:
name
- Name of the ServerTlsPolicy resource. ***- Returns:
- builder
-
project
public ServerTlsPolicyArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public ServerTlsPolicyArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
serverCertificate
public ServerTlsPolicyArgs.Builder serverCertificate(@Nullable com.pulumi.core.Output<ServerTlsPolicyServerCertificateArgs> serverCertificate)
- Parameters:
serverCertificate
- Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.- Returns:
- builder
-
serverCertificate
public ServerTlsPolicyArgs.Builder serverCertificate(ServerTlsPolicyServerCertificateArgs serverCertificate)
- Parameters:
serverCertificate
- Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.- Returns:
- builder
-
build
public ServerTlsPolicyArgs build()
-
-