AliasConfiguration

class aws_cdk.aws_cloudfront.AliasConfiguration(*, acm_cert_ref, names, security_policy=None, ssl_method=None)

Bases: object

(experimental) Configuration for custom domain names.

CloudFront can use a custom domain that you provide instead of a “cloudfront.net” domain. To use this feature you must provide the list of additional domains, and the ACM Certificate that CloudFront should use for these additional domains.

Parameters
  • acm_cert_ref (str) – (experimental) ARN of an AWS Certificate Manager (ACM) certificate.

  • names (List[str]) – (experimental) Domain names on the certificate. Both main domain name and Subject Alternative Names.

  • security_policy (Optional[SecurityPolicyProtocol]) – (experimental) The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. CloudFront serves your objects only to browsers or devices that support at least the SSL version that you specify. Default: - SSLv3 if sslMethod VIP, TLSv1 if sslMethod SNI

  • ssl_method (Optional[SSLMethod]) – (experimental) How CloudFront should serve HTTPS requests. See the notes on SSLMethod if you wish to use other SSL termination types. Default: SSLMethod.SNI

Stability

experimental

Attributes

acm_cert_ref

(experimental) ARN of an AWS Certificate Manager (ACM) certificate.

Stability

experimental

Return type

str

names

(experimental) Domain names on the certificate.

Both main domain name and Subject Alternative Names.

Stability

experimental

Return type

List[str]

security_policy

(experimental) The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.

CloudFront serves your objects only to browsers or devices that support at least the SSL version that you specify.

Default
  • SSLv3 if sslMethod VIP, TLSv1 if sslMethod SNI

Stability

experimental

Return type

Optional[SecurityPolicyProtocol]

ssl_method

(experimental) How CloudFront should serve HTTPS requests.

See the notes on SSLMethod if you wish to use other SSL termination types.

Default

SSLMethod.SNI

See

https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ViewerCertificate.html

Stability

experimental

Return type

Optional[SSLMethod]