Enum EndpointAccessMode
- All Implemented Interfaces:
Serializable,Comparable<EndpointAccessMode>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:54:56.898Z")
@Stability(Stable)
public enum EndpointAccessMode
extends Enum<EndpointAccessMode>
The endpoint access mode for the domain name.
When using enhanced security policies (those starting with SecurityPolicy_),
you must set the endpoint access mode to either STRICT or BASIC.
Use STRICT for production workloads requiring the highest security.
Use BASIC for migration scenarios or certain application architectures.
Example:
Object acmCertificateForExampleCom;
// For regional or private APIs with enhanced security policy
// For regional or private APIs with enhanced security policy
DomainName.Builder.create(this, "custom-domain-tls13")
.domainName("example.com")
.certificate(acmCertificateForExampleCom)
.securityPolicy(SecurityPolicy.TLS13_1_3_2025_09) // TLS 1.3
.endpointAccessMode(EndpointAccessMode.STRICT)
.build();
// For edge-optimized APIs with enhanced security policy
// For edge-optimized APIs with enhanced security policy
DomainName.Builder.create(this, "custom-domain-edge-tls13")
.domainName("example.com")
.certificate(acmCertificateForExampleCom)
.endpointType(EndpointType.EDGE)
.securityPolicy(SecurityPolicy.TLS13_2025_EDGE) // Enhanced security policy for edge
.endpointAccessMode(EndpointAccessMode.STRICT)
.build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointAccessModeReturns the enum constant of this type with the specified name.static EndpointAccessMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STRICT
Strict mode - only accepts connections from clients using the specified security policy.Recommended for production workloads.
-
BASIC
Basic mode - one of the two valid endpoint access modes for enhanced security policies.Suitable for migration scenarios or certain application architectures. Note: legacy security policies (TLS_1_0, TLS_1_2) do not use this attribute.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-