Class CfnDomain.DomainEndpointOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CfnDomain.DomainEndpointOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.DomainEndpointOptionsProperty>
- Enclosing interface:
CfnDomain.DomainEndpointOptionsProperty
@Stability(Stable)
public static final class CfnDomain.DomainEndpointOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.DomainEndpointOptionsProperty>
A builder for
CfnDomain.DomainEndpointOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customEndpoint(String customEndpoint) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getCustomEndpoint()customEndpointCertificateArn(String customEndpointCertificateArn) customEndpointEnabled(Boolean customEndpointEnabled) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getCustomEndpointEnabled()customEndpointEnabled(IResolvable customEndpointEnabled) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getCustomEndpointEnabled()enforceHttps(Boolean enforceHttps) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getEnforceHttps()enforceHttps(IResolvable enforceHttps) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getEnforceHttps()tlsSecurityPolicy(String tlsSecurityPolicy) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getTlsSecurityPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customEndpoint
@Stability(Stable) public CfnDomain.DomainEndpointOptionsProperty.Builder customEndpoint(String customEndpoint) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getCustomEndpoint()- Parameters:
customEndpoint- The fully qualified URL for your custom endpoint. Required if you enabled a custom endpoint for the domain.- Returns:
this
-
customEndpointCertificateArn
@Stability(Stable) public CfnDomain.DomainEndpointOptionsProperty.Builder customEndpointCertificateArn(String customEndpointCertificateArn) - Parameters:
customEndpointCertificateArn- The Certificate Manager ARN for your domain's SSL/TLS certificate. Required if you enabled a custom endpoint for the domain.- Returns:
this
-
customEndpointEnabled
@Stability(Stable) public CfnDomain.DomainEndpointOptionsProperty.Builder customEndpointEnabled(Boolean customEndpointEnabled) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getCustomEndpointEnabled()- Parameters:
customEndpointEnabled- True to enable a custom endpoint for the domain. If enabled, you must also provide values forCustomEndpointandCustomEndpointCertificateArn.- Returns:
this
-
customEndpointEnabled
@Stability(Stable) public CfnDomain.DomainEndpointOptionsProperty.Builder customEndpointEnabled(IResolvable customEndpointEnabled) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getCustomEndpointEnabled()- Parameters:
customEndpointEnabled- True to enable a custom endpoint for the domain. If enabled, you must also provide values forCustomEndpointandCustomEndpointCertificateArn.- Returns:
this
-
enforceHttps
@Stability(Stable) public CfnDomain.DomainEndpointOptionsProperty.Builder enforceHttps(Boolean enforceHttps) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getEnforceHttps()- Parameters:
enforceHttps- True to require that all traffic to the domain arrive over HTTPS. Required if you enable fine-grained access control in AdvancedSecurityOptions .- Returns:
this
-
enforceHttps
@Stability(Stable) public CfnDomain.DomainEndpointOptionsProperty.Builder enforceHttps(IResolvable enforceHttps) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getEnforceHttps()- Parameters:
enforceHttps- True to require that all traffic to the domain arrive over HTTPS. Required if you enable fine-grained access control in AdvancedSecurityOptions .- Returns:
this
-
tlsSecurityPolicy
@Stability(Stable) public CfnDomain.DomainEndpointOptionsProperty.Builder tlsSecurityPolicy(String tlsSecurityPolicy) Sets the value ofCfnDomain.DomainEndpointOptionsProperty.getTlsSecurityPolicy()- Parameters:
tlsSecurityPolicy- The minimum TLS version required for traffic to the domain. The policy can be one of the following values:.- Policy-Min-TLS-1-0-2019-07: TLS security policy that supports TLS version 1.0 to TLS version 1.2
- Policy-Min-TLS-1-2-2019-07: TLS security policy that supports only TLS version 1.2
- Policy-Min-TLS-1-2-PFS-2023-10: TLS security policy that supports TLS version 1.2 to TLS version 1.3 with perfect forward secrecy cipher suites
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomain.DomainEndpointOptionsProperty>- Returns:
- a new instance of
CfnDomain.DomainEndpointOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-