Skip to content

apigateway: More DomainName security policy options for TLS 1.3 #36280

@skairunner

Description

@skairunner

Describe the feature

The docs here currently note that the only two supported policies are TLS_1_2 and TLS_1_0. These are considered "legacy security policies" (according to the docs here) and we are directed to use a policy that starts with SecurityPolicy_, such as SecurityPolicy_TLS13_1_3_2025_09.

At least in the Python CDK, the current definition of SecurityPolicy prevents using an arbitrary value:

# code
domain_name_options = apigateway.DomainNameOptions(
            certificate=certificate,
            domain_name=domain_name,
            security_policy=apigateway.SecurityPolicy("SecurityPolicy_TLS13_1_3_2025_09")
        )
# result
ValueError: 'SecurityPolicy_TLS13_1_3_2025_09' is not a valid SecurityPolicy

Use Case

I want to use TLS 1.3 for my custom domain names.

Proposed Solution

It would be nice if the enum was expanded to include at least some of the security policies available, or at least update the security_policy parameter to let you provide an arbitrary value.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.231.0

AWS CDK CLI version

2.1033.0

Environment details (OS name and version, etc.)

Mac OS version 26.1

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-apigatewayRelated to Amazon API Gatewayeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions