@Stability(value=Experimental) public static final class CloudFrontWebDistributionProps.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontWebDistributionProps>
CloudFrontWebDistributionProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder originConfigs(List<? extends SourceConfiguration> originConfigs)
CloudFrontWebDistributionProps.getOriginConfigs()originConfigs - The origin configurations for this distribution. This parameter is required.
Behaviors are a part of the origin.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder comment(String comment)
CloudFrontWebDistributionProps.getComment()comment - A comment for this distribution in the CloudFront console.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder defaultRootObject(String defaultRootObject)
CloudFrontWebDistributionProps.getDefaultRootObject()defaultRootObject - The default object to serve.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder enableIpV6(Boolean enableIpV6)
CloudFrontWebDistributionProps.getEnableIpV6()enableIpV6 - If your distribution should have IPv6 enabled.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder errorConfigurations(List<? extends CfnDistribution.CustomErrorResponseProperty> errorConfigurations)
CloudFrontWebDistributionProps.getErrorConfigurations()errorConfigurations - How CloudFront should handle requests that are not successful (eg PageNotFound).
By 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.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder geoRestriction(GeoRestriction geoRestriction)
CloudFrontWebDistributionProps.getGeoRestriction()geoRestriction - Controls the countries in which your content is distributed.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder httpVersion(HttpVersion httpVersion)
CloudFrontWebDistributionProps.getHttpVersion()httpVersion - The max supported HTTP Versions.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder loggingConfig(LoggingConfiguration loggingConfig)
CloudFrontWebDistributionProps.getLoggingConfig()loggingConfig - Optional - if we should enable logging.
You 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.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder priceClass(PriceClass priceClass)
CloudFrontWebDistributionProps.getPriceClass()priceClass - The price class for the distribution (this impacts how many locations CloudFront uses for your distribution, and billing).this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder viewerCertificate(ViewerCertificate viewerCertificate)
CloudFrontWebDistributionProps.getViewerCertificate()viewerCertificate - 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.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder viewerProtocolPolicy(ViewerProtocolPolicy viewerProtocolPolicy)
CloudFrontWebDistributionProps.getViewerProtocolPolicy()viewerProtocolPolicy - The default viewer policy for incoming clients.this@Stability(value=Experimental) public CloudFrontWebDistributionProps.Builder webAclId(String webAclId)
CloudFrontWebDistributionProps#getWebAclIdwebAclId - Unique 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 example 473e64fd-f30b-4765-81a0-62ad96dd167a.
this@Stability(value=Experimental) public CloudFrontWebDistributionProps build()
build in interface software.amazon.jsii.Builder<CloudFrontWebDistributionProps>CloudFrontWebDistributionPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.