Skip to content

Commit d43e829

Browse files
authored
feat(cloudfront): backfill enum values in cloudfront module (#34075)
### Reason for this change backfill enum values in cloudfront module https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent eec900e commit d43e829

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Diff for: packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts

+1
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ export enum OriginProtocolPolicy {
905905
export enum SSLMethod {
906906
SNI = 'sni-only',
907907
VIP = 'vip',
908+
STATIC_IP = 'static-ip',
908909
}
909910

910911
/**

Diff for: packages/aws-cdk-lib/aws-cloudfront/lib/web-distribution.ts

+4
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,10 @@ export class CloudFrontWebDistribution extends cdk.Resource implements IDistribu
819819
SecurityPolicyProtocol.TLS_V1_2_2019, SecurityPolicyProtocol.TLS_V1_2_2021,
820820
],
821821
[SSLMethod.VIP]: [SecurityPolicyProtocol.SSL_V3, SecurityPolicyProtocol.TLS_V1],
822+
[SSLMethod.STATIC_IP]: [
823+
SecurityPolicyProtocol.TLS_V1_2_2018, SecurityPolicyProtocol.TLS_V1_2_2019,
824+
SecurityPolicyProtocol.TLS_V1_2_2021,
825+
],
822826
};
823827

824828
constructor(scope: Construct, id: string, props: CloudFrontWebDistributionProps) {

0 commit comments

Comments
 (0)