Skip to content

(aws-cloudfront): sslSupportMethod is not defined #19476

@dayjournal

Description

@dayjournal

What is the problem?

Cannot specify sslSupportMethod for CloudFront Distribution in distribution.ts.
I can specify minimumProtocolVersion but not sslSupportMethod.

Example of minimumProtocolVersion
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-cloudfront/lib/distribution.ts#L222
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-cloudfront/lib/distribution.ts#L537

Example of sslSupportMethod
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-cloudfront/lib/distribution.ts#L528

Reproduction Steps

minimumProtocolVersion: cloudfront.SecurityPolicyProtocol.TLS_V1_2_2021,
sslSupportMethod: cloudfront.SSLMethod.SNI,

What did you expect to happen?

I want to set sslSupportMethod.

What actually happened?

I can't configure it with the new method CloudFront Distribution.
It seems to be possible with the old method CloudFrontWebDistribution.

CDK CLI Version

v2.15.0

Framework Version

v2.15.0

Node.js Version

v16.10.0

OS

M1 Mac (macOS Monterey v12.2.1)

Language

Typescript

Language Version

v3.9.7

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudfrontRelated to Amazon CloudFronteffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions