@Stability(value=Experimental) @Internal public static final class DistributionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DistributionProps
DistributionPropssoftware.amazon.jsii.JsiiObject.InitializationModeDistributionProps.Builder, DistributionProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(BehaviorOptions defaultBehavior,
Map<String,? extends BehaviorOptions> additionalBehaviors,
ICertificate certificate,
String comment,
String defaultRootObject,
List<String> domainNames,
Boolean enabled,
Boolean enableIpv6,
Boolean enableLogging,
List<? extends ErrorResponse> errorResponses,
GeoRestriction geoRestriction,
HttpVersion httpVersion,
IBucket logBucket,
String logFilePrefix,
Boolean logIncludesCookies,
SecurityPolicyProtocol minimumProtocolVersion,
PriceClass priceClass,
String webAclId)
Constructor that initializes the object based on literal property values passed by the
DistributionProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Map<String,BehaviorOptions> |
getAdditionalBehaviors()
(experimental) Additional behaviors for the distribution, mapped by the pathPattern that specifies which requests to apply the behavior to.
|
ICertificate |
getCertificate()
(experimental) A certificate to associate with the distribution.
|
String |
getComment()
(experimental) Any comments you want to include about the distribution.
|
BehaviorOptions |
getDefaultBehavior()
(experimental) The default behavior for the distribution.
|
String |
getDefaultRootObject()
(experimental) The object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution.
|
List<String> |
getDomainNames()
(experimental) Alternative domain names for this distribution.
|
Boolean |
getEnabled()
(experimental) Enable or disable the distribution.
|
Boolean |
getEnableIpv6()
(experimental) Whether CloudFront will respond to IPv6 DNS requests with an IPv6 address.
|
Boolean |
getEnableLogging()
(experimental) Enable access logging for the distribution.
|
List<ErrorResponse> |
getErrorResponses()
(experimental) How CloudFront should handle requests that are not successful (e.g., PageNotFound).
|
GeoRestriction |
getGeoRestriction()
(experimental) Controls the countries in which your content is distributed.
|
HttpVersion |
getHttpVersion()
(experimental) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.
|
IBucket |
getLogBucket()
(experimental) The Amazon S3 bucket to store the access logs in.
|
String |
getLogFilePrefix()
(experimental) An optional string that you want CloudFront to prefix to the access log filenames for this distribution.
|
Boolean |
getLogIncludesCookies()
(experimental) Specifies whether you want CloudFront to include cookies in access logs.
|
SecurityPolicyProtocol |
getMinimumProtocolVersion()
(experimental) The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.
|
PriceClass |
getPriceClass()
(experimental) The price class that corresponds with the maximum price that you want to pay for CloudFront service.
|
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(BehaviorOptions defaultBehavior, Map<String,? extends BehaviorOptions> additionalBehaviors, ICertificate certificate, String comment, String defaultRootObject, List<String> domainNames, Boolean enabled, Boolean enableIpv6, Boolean enableLogging, List<? extends ErrorResponse> errorResponses, GeoRestriction geoRestriction, HttpVersion httpVersion, IBucket logBucket, String logFilePrefix, Boolean logIncludesCookies, SecurityPolicyProtocol minimumProtocolVersion, PriceClass priceClass, String webAclId)
DistributionProps.Builder.public final BehaviorOptions getDefaultBehavior()
DistributionPropsgetDefaultBehavior in interface DistributionPropspublic final Map<String,BehaviorOptions> getAdditionalBehaviors()
DistributionPropsDefault: - no additional behaviors are added.
getAdditionalBehaviors in interface DistributionPropspublic final ICertificate getCertificate()
DistributionPropsThe certificate must be located in N. Virginia (us-east-1).
Default: - the CloudFront wildcard certificate (*.cloudfront.net) will be used.
getCertificate in interface DistributionPropspublic final String getComment()
DistributionPropsDefault: - no comment
getComment in interface DistributionPropspublic final String getDefaultRootObject()
DistributionPropsDefault: - no default root object
getDefaultRootObject in interface DistributionPropspublic final List<String> getDomainNames()
DistributionPropsIf 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 must add (at least one of) the domain names of the certificate to this list.
Default: - The distribution will only support the default generated name (e.g., d111111abcdef8.cloudfront.net)
getDomainNames in interface DistributionPropspublic final Boolean getEnabled()
DistributionPropsDefault: true
getEnabled in interface DistributionPropspublic final Boolean getEnableIpv6()
DistributionPropsIf 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
getEnableIpv6 in interface DistributionPropspublic final Boolean getEnableLogging()
DistributionPropsDefault: - false, unless `logBucket` is specified.
getEnableLogging in interface DistributionPropspublic final List<ErrorResponse> getErrorResponses()
DistributionPropsDefault: - No custom error responses.
getErrorResponses in interface DistributionPropspublic final GeoRestriction getGeoRestriction()
DistributionPropsDefault: - No geographic restrictions
getGeoRestriction in interface DistributionPropspublic final HttpVersion getHttpVersion()
DistributionPropsFor 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
getHttpVersion in interface DistributionPropspublic final IBucket getLogBucket()
DistributionPropsDefault: - A bucket is created if `enableLogging` is true
getLogBucket in interface DistributionPropspublic final String getLogFilePrefix()
DistributionPropsDefault: - no prefix
getLogFilePrefix in interface DistributionPropspublic final Boolean getLogIncludesCookies()
DistributionPropsDefault: false
getLogIncludesCookies in interface DistributionPropspublic final SecurityPolicyProtocol getMinimumProtocolVersion()
DistributionPropsCloudFront serves your objects only to browsers or devices that support at least the SSL version that you specify.
Default: SecurityPolicyProtocol.TLS_V1_2_2019
getMinimumProtocolVersion in interface DistributionPropspublic final PriceClass getPriceClass()
DistributionPropsIf 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
getPriceClass in interface DistributionPropspublic final String getWebAclId()
DistributionProps
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 DistributionPropshttps://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.