@Stability(value=Experimental) @Internal public static final class CloudFrontWebDistributionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CloudFrontWebDistributionProps
CloudFrontWebDistributionPropssoftware.amazon.jsii.JsiiObject.InitializationModeCloudFrontWebDistributionProps.Builder, CloudFrontWebDistributionProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(List<? extends SourceConfiguration> originConfigs,
String comment,
String defaultRootObject,
Boolean enableIpV6,
List<? extends CfnDistribution.CustomErrorResponseProperty> errorConfigurations,
GeoRestriction geoRestriction,
HttpVersion httpVersion,
LoggingConfiguration loggingConfig,
PriceClass priceClass,
ViewerCertificate viewerCertificate,
ViewerProtocolPolicy viewerProtocolPolicy,
String webAclId)
Constructor that initializes the object based on literal property values passed by the
CloudFrontWebDistributionProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getComment()
(experimental) A comment for this distribution in the CloudFront console.
|
String |
getDefaultRootObject()
(experimental) The default object to serve.
|
Boolean |
getEnableIpV6()
(experimental) If your distribution should have IPv6 enabled.
|
List<CfnDistribution.CustomErrorResponseProperty> |
getErrorConfigurations()
(experimental) How CloudFront should handle requests that are not successful (eg PageNotFound).
|
GeoRestriction |
getGeoRestriction()
(experimental) Controls the countries in which your content is distributed.
|
HttpVersion |
getHttpVersion()
(experimental) The max supported HTTP Versions.
|
LoggingConfiguration |
getLoggingConfig()
(experimental) Optional - if we should enable logging.
|
List<SourceConfiguration> |
getOriginConfigs()
(experimental) The origin configurations for this distribution.
|
PriceClass |
getPriceClass()
(experimental) The price class for the distribution (this impacts how many locations CloudFront uses for your distribution, and billing).
|
ViewerCertificate |
getViewerCertificate()
(experimental) Specifies whether you want viewers to use HTTP or HTTPS to request your objects, whether you're using an alternate domain name with HTTPS, and if so, if you're using AWS Certificate Manager (ACM) or a third-party certificate authority.
|
ViewerProtocolPolicy |
getViewerProtocolPolicy()
(experimental) The default viewer policy for incoming clients.
|
String |
getWebACLId()
(experimental) Unique identifier that specifies the AWS WAF web ACL to associate with this CloudFront distribution.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(List<? extends SourceConfiguration> originConfigs, String comment, String defaultRootObject, Boolean enableIpV6, List<? extends CfnDistribution.CustomErrorResponseProperty> errorConfigurations, GeoRestriction geoRestriction, HttpVersion httpVersion, LoggingConfiguration loggingConfig, PriceClass priceClass, ViewerCertificate viewerCertificate, ViewerProtocolPolicy viewerProtocolPolicy, String webAclId)
CloudFrontWebDistributionProps.Builder.public final List<SourceConfiguration> getOriginConfigs()
CloudFrontWebDistributionPropsBehaviors are a part of the origin.
getOriginConfigs in interface CloudFrontWebDistributionPropspublic final String getComment()
CloudFrontWebDistributionPropsDefault: - No comment is added to distribution.
getComment in interface CloudFrontWebDistributionPropspublic final String getDefaultRootObject()
CloudFrontWebDistributionPropsDefault: - "index.html" is served.
getDefaultRootObject in interface CloudFrontWebDistributionPropspublic final Boolean getEnableIpV6()
CloudFrontWebDistributionPropsDefault: true
getEnableIpV6 in interface CloudFrontWebDistributionPropspublic final List<CfnDistribution.CustomErrorResponseProperty> getErrorConfigurations()
CloudFrontWebDistributionPropsBy default, CloudFront does not replace HTTP status codes in the 4xx and 5xx range with custom error messages. CloudFront does not cache HTTP status codes.
Default: - No custom error configuration.
getErrorConfigurations in interface CloudFrontWebDistributionPropspublic final GeoRestriction getGeoRestriction()
CloudFrontWebDistributionPropsDefault: No geo restriction
getGeoRestriction in interface CloudFrontWebDistributionPropspublic final HttpVersion getHttpVersion()
CloudFrontWebDistributionPropsDefault: HttpVersion.HTTP2
getHttpVersion in interface CloudFrontWebDistributionPropspublic final LoggingConfiguration getLoggingConfig()
CloudFrontWebDistributionPropsYou can pass an empty object ({}) to have us auto create a bucket for logging. Omission of this property indicates no logging is to be enabled.
Default: - no logging is enabled by default.
getLoggingConfig in interface CloudFrontWebDistributionPropspublic final PriceClass getPriceClass()
CloudFrontWebDistributionPropsDefault: PriceClass.PRICE_CLASS_100 the cheapest option for CloudFront is picked by default.
getPriceClass in interface CloudFrontWebDistributionPropspublic final ViewerCertificate getViewerCertificate()
CloudFrontWebDistributionPropsDefault: ViewerCertificate.fromCloudFrontDefaultCertificate()
getViewerCertificate in interface CloudFrontWebDistributionPropshttps://aws.amazon.com/premiumsupport/knowledge-center/custom-ssl-certificate-cloudfront/public final ViewerProtocolPolicy getViewerProtocolPolicy()
CloudFrontWebDistributionPropsDefault: RedirectToHTTPs
getViewerProtocolPolicy in interface CloudFrontWebDistributionPropspublic final String getWebACLId()
CloudFrontWebDistributionProps
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 example 473e64fd-f30b-4765-81a0-62ad96dd167a.
Default: - No AWS Web Application Firewall web access control list (web ACL).
getWebACLId in interface CloudFrontWebDistributionPropshttps://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html#API_CreateDistribution_RequestParameters.@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.