Class DistributionProps.Jsii$Proxy
- All Implemented Interfaces:
DistributionProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
DistributionProps
DistributionProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.DistributionProps
DistributionProps.Builder, DistributionProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(DistributionProps.Builder builder) Constructor that initializes the object based on literal property values passed by theDistributionProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal Map<String, BehaviorOptions> Additional behaviors for the distribution, mapped by the pathPattern that specifies which requests to apply the behavior to.final ICertificateA certificate to associate with the distribution.final StringAny comments you want to include about the distribution.final BehaviorOptionsThe default behavior for the distribution.final StringThe object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution.Alternative domain names for this distribution.final BooleanEnable or disable the distribution.final BooleanWhether CloudFront will respond to IPv6 DNS requests with an IPv6 address.final BooleanEnable access logging for the distribution.final List<ErrorResponse> How CloudFront should handle requests that are not successful (e.g., PageNotFound).final GeoRestrictionControls the countries in which your content is distributed.final HttpVersionSpecify the maximum HTTP version that you want viewers to use to communicate with CloudFront.final IBucketThe Amazon S3 bucket to store the access logs in.final StringAn optional string that you want CloudFront to prefix to the access log filenames for this distribution.final BooleanSpecifies whether you want CloudFront to include cookies in access logs.final SecurityPolicyProtocolThe minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.final PriceClassThe price class that corresponds with the maximum price that you want to pay for CloudFront service.final BooleanWhether to enable additional CloudWatch metrics.final SSLMethodThe SSL method CloudFront will use for your distribution.final StringUnique identifier that specifies the AWS WAF web ACL to associate with this CloudFront distribution.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theDistributionProps.Builder.
-
-
Method Details
-
getDefaultBehavior
Description copied from interface:DistributionPropsThe default behavior for the distribution.- Specified by:
getDefaultBehaviorin interfaceDistributionProps
-
getAdditionalBehaviors
Description copied from interface:DistributionPropsAdditional behaviors for the distribution, mapped by the pathPattern that specifies which requests to apply the behavior to.Default: - no additional behaviors are added.
- Specified by:
getAdditionalBehaviorsin interfaceDistributionProps
-
getCertificate
Description copied from interface:DistributionPropsA certificate to associate with the distribution.The certificate must be located in N. Virginia (us-east-1).
Default: - the CloudFront wildcard certificate (*.cloudfront.net) will be used.
- Specified by:
getCertificatein interfaceDistributionProps
-
getComment
Description copied from interface:DistributionPropsAny comments you want to include about the distribution.Default: - no comment
- Specified by:
getCommentin interfaceDistributionProps
-
getDefaultRootObject
Description copied from interface:DistributionPropsThe object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution. If no default object is set, the request goes to the origin's root (e.g., example.com/).Default: - no default root object
- Specified by:
getDefaultRootObjectin interfaceDistributionProps
-
getDomainNames
Description copied from interface:DistributionPropsAlternative domain names for this distribution.If you want to use your own domain name, such as www.example.com, instead of the cloudfront.net domain name, you can add an alternate domain name to your distribution. If you attach a certificate to the distribution, you should add (at least one of) the domain names of the certificate to this list.
When you want to move a domain name between distributions, you can associate a certificate without specifying any domain names. For more information, see the Moving an alternate domain name to a different distribution section in the README.
Default: - The distribution will only support the default generated name (e.g., d111111abcdef8.cloudfront.net)
- Specified by:
getDomainNamesin interfaceDistributionProps
-
getEnabled
Description copied from interface:DistributionPropsEnable or disable the distribution.Default: true
- Specified by:
getEnabledin interfaceDistributionProps
-
getEnableIpv6
Description copied from interface:DistributionPropsWhether CloudFront will respond to IPv6 DNS requests with an IPv6 address.If you specify false, CloudFront responds to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.
Default: true
- Specified by:
getEnableIpv6in interfaceDistributionProps
-
getEnableLogging
Description copied from interface:DistributionPropsEnable access logging for the distribution.Default: - false, unless `logBucket` is specified.
- Specified by:
getEnableLoggingin interfaceDistributionProps
-
getErrorResponses
Description copied from interface:DistributionPropsHow CloudFront should handle requests that are not successful (e.g., PageNotFound).Default: - No custom error responses.
- Specified by:
getErrorResponsesin interfaceDistributionProps
-
getGeoRestriction
Description copied from interface:DistributionPropsControls the countries in which your content is distributed.Default: - No geographic restrictions
- Specified by:
getGeoRestrictionin interfaceDistributionProps
-
getHttpVersion
Description copied from interface:DistributionPropsSpecify the maximum HTTP version that you want viewers to use to communicate with CloudFront.For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support server name identification (SNI).
Default: HttpVersion.HTTP2
- Specified by:
getHttpVersionin interfaceDistributionProps
-
getLogBucket
Description copied from interface:DistributionPropsThe Amazon S3 bucket to store the access logs in.Make sure to set
objectOwnershiptos3.ObjectOwnership.OBJECT_WRITERin your custom bucket.Default: - A bucket is created if `enableLogging` is true
- Specified by:
getLogBucketin interfaceDistributionProps
-
getLogFilePrefix
Description copied from interface:DistributionPropsAn optional string that you want CloudFront to prefix to the access log filenames for this distribution.Default: - no prefix
- Specified by:
getLogFilePrefixin interfaceDistributionProps
-
getLogIncludesCookies
Description copied from interface:DistributionPropsSpecifies whether you want CloudFront to include cookies in access logs.Default: false
- Specified by:
getLogIncludesCookiesin interfaceDistributionProps
-
getMinimumProtocolVersion
Description copied from interface:DistributionPropsThe 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: - SecurityPolicyProtocol.TLS_V1_2_2021 if the '@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021' feature flag is set; otherwise, SecurityPolicyProtocol.TLS_V1_2_2019.
- Specified by:
getMinimumProtocolVersionin interfaceDistributionProps
-
getPriceClass
Description copied from interface:DistributionPropsThe price class that corresponds with the maximum price that you want to pay for CloudFront service.If you specify PriceClass_All, CloudFront responds to requests for your objects from all CloudFront edge locations. If you specify a price class other than PriceClass_All, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class.
Default: PriceClass.PRICE_CLASS_ALL
- Specified by:
getPriceClassin interfaceDistributionProps
-
getPublishAdditionalMetrics
Description copied from interface:DistributionPropsWhether to enable additional CloudWatch metrics.Default: false
- Specified by:
getPublishAdditionalMetricsin interfaceDistributionProps- See Also:
-
getSslSupportMethod
Description copied from interface:DistributionPropsThe SSL method CloudFront will use for your distribution.Server Name Indication (SNI) - is an extension to the TLS computer networking protocol by which a client indicates which hostname it is attempting to connect to at the start of the handshaking process. This allows a server to present multiple certificates on the same IP address and TCP port number and hence allows multiple secure (HTTPS) websites (or any other service over TLS) to be served by the same IP address without requiring all those sites to use the same certificate.
CloudFront can use SNI to host multiple distributions on the same IP - which a large majority of clients will support.
If your clients cannot support SNI however - CloudFront can use dedicated IPs for your distribution - but there is a prorated monthly charge for using this feature. By default, we use SNI - but you can optionally enable dedicated IPs (VIP).
See the CloudFront SSL for more details about pricing : https://aws.amazon.com/cloudfront/custom-ssl-domains/
Default: SSLMethod.SNI
- Specified by:
getSslSupportMethodin interfaceDistributionProps
-
getWebAclId
Description copied from interface:DistributionPropsUnique identifier that specifies the AWS WAF web ACL to associate with this CloudFront distribution.To specify a web ACL created using the latest version of AWS WAF, use the ACL ARN, for example
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example473e64fd-f30b-4765-81a0-62ad96dd167a.Default: - No AWS Web Application Firewall web access control list (web ACL).
- Specified by:
getWebAclIdin interfaceDistributionProps- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-