AliasConfiguration

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

Bases: object

(deprecated) 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) – (deprecated) ARN of an AWS Certificate Manager (ACM) certificate.

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

  • security_policy (Optional[SecurityPolicyProtocol]) – (deprecated) 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]) – (deprecated) How CloudFront should serve HTTPS requests. See the notes on SSLMethod if you wish to use other SSL termination types. Default: SSLMethod.SNI

Deprecated:

see {@link CloudFrontWebDistributionProps#viewerCertificate} with {@link ViewerCertificate#acmCertificate}

Stability:

deprecated

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_cloudfront as cloudfront

alias_configuration = cloudfront.AliasConfiguration(
    acm_cert_ref="acmCertRef",
    names=["names"],

    # the properties below are optional
    security_policy=cloudfront.SecurityPolicyProtocol.SSL_V3,
    ssl_method=cloudfront.SSLMethod.SNI
)

Attributes

acm_cert_ref

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

Stability:

deprecated

names

(deprecated) Domain names on the certificate.

Both main domain name and Subject Alternative Names.

Stability:

deprecated

security_policy

(deprecated) 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:

deprecated

ssl_method

(deprecated) 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:

deprecated