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
-
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 AWS 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 forCustomEndpoint
andCustomEndpointCertificateArn
.- 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 forCustomEndpoint
andCustomEndpointCertificateArn
.- 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. Valid values are TLS 1.0 (default) or 1.2:.Policy-Min-TLS-1-0-2019-07
Policy-Min-TLS-1-2-2019-07
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.DomainEndpointOptionsProperty>
- Returns:
- a new instance of
CfnDomain.DomainEndpointOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-