-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
Labels
@aws-cdk/aws-apigatewayRelated to Amazon API GatewayRelated to Amazon API Gatewayeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
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 SecurityPolicyUse 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 GatewayRelated to Amazon API Gatewayeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2