Skip to content
v2.275.0

EndpointAccessMode Enum ​

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 ​

ts
declare const acmCertificateForExampleCom: any;

// For regional or private APIs with enhanced security policy
new apigateway.DomainName(this, 'custom-domain-tls13', {
  domainName: 'example.com',
  certificate: acmCertificateForExampleCom,
  securityPolicy: apigateway.SecurityPolicy.TLS13_1_3_2025_09, // TLS 1.3
  endpointAccessMode: apigateway.EndpointAccessMode.STRICT, // Recommended for production
});

// For edge-optimized APIs with enhanced security policy
new apigateway.DomainName(this, 'custom-domain-edge-tls13', {
  domainName: 'example.com',
  certificate: acmCertificateForExampleCom,
  endpointType: apigateway.EndpointType.EDGE,
  securityPolicy: apigateway.SecurityPolicy.TLS13_2025_EDGE, // Enhanced security policy for edge
  endpointAccessMode: apigateway.EndpointAccessMode.STRICT, // Recommended for production
});

Members ​

MemberDescription
STRICTStrict mode - only accepts connections from clients using the specified security policy.
BASICBasic mode - one of the two valid endpoint access modes for enhanced security policies.

Referenced by ​

  • DomainNameOptions.endpointAccessModeendpoint_access_modeendpointAccessModeEndpointAccessModeEndpointAccessMode