Class CfnDistributionPropsMixin.DistributionConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.DistributionConfigProperty>
- Enclosing interface:
CfnDistributionPropsMixin.DistributionConfigProperty
CfnDistributionPropsMixin.DistributionConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getAliases()anycastIpListId(String anycastIpListId) build()Builds the configured instance.cacheBehaviors(List<? extends Object> cacheBehaviors) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCacheBehaviors()cacheBehaviors(IResolvable cacheBehaviors) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCacheBehaviors()Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCnamEs()Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getComment()connectionFunctionAssociation(CfnDistributionPropsMixin.ConnectionFunctionAssociationProperty connectionFunctionAssociation) connectionFunctionAssociation(IResolvable connectionFunctionAssociation) connectionMode(String connectionMode) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getConnectionMode()continuousDeploymentPolicyId(String continuousDeploymentPolicyId) customErrorResponses(List<? extends Object> customErrorResponses) customErrorResponses(IResolvable customErrorResponses) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCustomOrigin()customOrigin(IResolvable customOrigin) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCustomOrigin()defaultCacheBehavior(CfnDistributionPropsMixin.DefaultCacheBehaviorProperty defaultCacheBehavior) defaultCacheBehavior(IResolvable defaultCacheBehavior) defaultRootObject(String defaultRootObject) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getEnabled()httpVersion(String httpVersion) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getHttpVersion()ipv6Enabled(Boolean ipv6Enabled) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getIpv6Enabled()ipv6Enabled(IResolvable ipv6Enabled) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getIpv6Enabled()Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getLogging()logging(IResolvable logging) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getLogging()originGroups(CfnDistributionPropsMixin.OriginGroupsProperty originGroups) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOriginGroups()originGroups(IResolvable originGroups) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOriginGroups()Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOrigins()origins(IResolvable origins) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOrigins()priceClass(String priceClass) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getPriceClass()restrictions(CfnDistributionPropsMixin.RestrictionsProperty restrictions) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getRestrictions()restrictions(IResolvable restrictions) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getRestrictions()Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getS3Origin()s3Origin(IResolvable s3Origin) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getS3Origin()Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getStaging()staging(IResolvable staging) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getStaging()tenantConfig(CfnDistributionPropsMixin.TenantConfigProperty tenantConfig) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getTenantConfig()tenantConfig(IResolvable tenantConfig) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getTenantConfig()viewerCertificate(CfnDistributionPropsMixin.ViewerCertificateProperty viewerCertificate) viewerCertificate(IResolvable viewerCertificate) viewerMtlsConfig(CfnDistributionPropsMixin.ViewerMtlsConfigProperty viewerMtlsConfig) viewerMtlsConfig(IResolvable viewerMtlsConfig) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getWebAclId()webAclId(IWebACLRef webAclId) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getWebAclId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aliases
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder aliases(List<String> aliases) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getAliases()- Parameters:
aliases-
You can't specify this field for multi-tenant distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .This field only supports standard distributions.
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
- Returns:
this
-
anycastIpListId
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder anycastIpListId(String anycastIpListId) - Parameters:
anycastIpListId-
For more information, see ConnectionGroup .To use this field for a multi-tenant distribution, use a connection group instead.
ID of the Anycast static IP list that is associated with the distribution.
- Returns:
this
-
cacheBehaviors
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder cacheBehaviors(IResolvable cacheBehaviors) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCacheBehaviors()- Parameters:
cacheBehaviors- A complex type that contains zero or moreCacheBehaviorelements.- Returns:
this
-
cacheBehaviors
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder cacheBehaviors(List<? extends Object> cacheBehaviors) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCacheBehaviors()- Parameters:
cacheBehaviors- A complex type that contains zero or moreCacheBehaviorelements.- Returns:
this
-
cnamEs
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder cnamEs(List<String> cnamEs) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCnamEs()- Parameters:
cnamEs- An alias for the CloudFront distribution's domain name.This property is legacy. We recommend that you use Aliases instead.
- Returns:
this
-
comment
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder comment(String comment) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getComment()- Parameters:
comment- A comment to describe the distribution. The comment cannot be longer than 128 characters.- Returns:
this
-
connectionFunctionAssociation
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder connectionFunctionAssociation(IResolvable connectionFunctionAssociation) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getConnectionFunctionAssociation()- Parameters:
connectionFunctionAssociation- The distribution's connection function association.- Returns:
this
-
connectionFunctionAssociation
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder connectionFunctionAssociation(CfnDistributionPropsMixin.ConnectionFunctionAssociationProperty connectionFunctionAssociation) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getConnectionFunctionAssociation()- Parameters:
connectionFunctionAssociation- The distribution's connection function association.- Returns:
this
-
connectionMode
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder connectionMode(String connectionMode) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getConnectionMode()- Parameters:
connectionMode- This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants (tenant-only).- Returns:
this
-
continuousDeploymentPolicyId
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder continuousDeploymentPolicyId(String continuousDeploymentPolicyId) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getContinuousDeploymentPolicyId()- Parameters:
continuousDeploymentPolicyId-
You can't specify this field for multi-tenant distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .This field only supports standard distributions.
The identifier of a continuous deployment policy. For more information, see
CreateContinuousDeploymentPolicy.- Returns:
this
-
customErrorResponses
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder customErrorResponses(IResolvable customErrorResponses) - Parameters:
customErrorResponses- A complex type that controls the following:.- Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
- How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide .
- Returns:
this
-
customErrorResponses
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder customErrorResponses(List<? extends Object> customErrorResponses) - Parameters:
customErrorResponses- A complex type that controls the following:.- Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
- How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide .
- Returns:
this
-
customOrigin
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder customOrigin(IResolvable customOrigin) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCustomOrigin()- Parameters:
customOrigin- The user-defined HTTP server that serves as the origin for content that CloudFront distributes.This property is legacy. We recommend that you use Origin instead.
- Returns:
this
-
customOrigin
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder customOrigin(CfnDistributionPropsMixin.LegacyCustomOriginProperty customOrigin) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getCustomOrigin()- Parameters:
customOrigin- The user-defined HTTP server that serves as the origin for content that CloudFront distributes.This property is legacy. We recommend that you use Origin instead.
- Returns:
this
-
defaultCacheBehavior
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder defaultCacheBehavior(IResolvable defaultCacheBehavior) - Parameters:
defaultCacheBehavior- A complex type that describes the default cache behavior if you don't specify aCacheBehaviorelement or if files don't match any of the values ofPathPatterninCacheBehaviorelements. You must create exactly one default cache behavior.- Returns:
this
-
defaultCacheBehavior
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder defaultCacheBehavior(CfnDistributionPropsMixin.DefaultCacheBehaviorProperty defaultCacheBehavior) - Parameters:
defaultCacheBehavior- A complex type that describes the default cache behavior if you don't specify aCacheBehaviorelement or if files don't match any of the values ofPathPatterninCacheBehaviorelements. You must create exactly one default cache behavior.- Returns:
this
-
defaultRootObject
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder defaultRootObject(String defaultRootObject) - Parameters:
defaultRootObject- When a viewer requests the root URL for your distribution, the default root object is the object that you want CloudFront to request from your origin. For example, if your root URL ishttps://www.example.com, you can specify CloudFront to return theindex.htmlfile as the default root object. You can specify a default root object so that viewers see a specific file or object, instead of another object in your distribution (for example,https://www.example.com/product-description.html). A default root object avoids exposing the contents of your distribution.You can specify the object name or a path to the object name (for example,
index.htmlorexampleFolderName/index.html). Your string can't begin with a forward slash (/). Only specify the object name or the path to the object.If you don't want to specify a default root object when you create a distribution, include an empty
DefaultRootObjectelement.To delete the default root object from an existing distribution, update the distribution configuration and include an empty
DefaultRootObjectelement.To replace the default root object, update the distribution configuration and specify the new object.
For more information about the default root object, see Specify a default root object in the Amazon CloudFront Developer Guide .
- Returns:
this
-
enabled
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getEnabled()- Parameters:
enabled- From this field, you can enable or disable the selected distribution.- Returns:
this
-
enabled
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getEnabled()- Parameters:
enabled- From this field, you can enable or disable the selected distribution.- Returns:
this
-
httpVersion
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder httpVersion(String httpVersion) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getHttpVersion()- Parameters:
httpVersion- (Optional) Specify the HTTP version(s) that you want viewers to use to communicate with CloudFront . The default value for new distributions ishttp1.1.For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).
For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CloudFront supports HTTP/3 connection migration to allow the viewer to switch networks without losing connection. For more information about connection migration, see Connection Migration at RFC 9000. For more information about supported TLSv1.3 ciphers, see Supported protocols and ciphers between viewers and CloudFront .
- Returns:
this
-
ipv6Enabled
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder ipv6Enabled(Boolean ipv6Enabled) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getIpv6Enabled()- Parameters:
ipv6Enabled-
For more information, see ConnectionGroup .To use this field for a multi-tenant distribution, use a connection group instead.
If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify
true. If you specifyfalse, CloudFront responds to IPv6 DNS requests with the DNS response codeNOERRORand with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the
IpAddressparameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see Creating a Signed URL Using a Custom Policy in the Amazon CloudFront Developer Guide .If you're using an Amazon Route 53 AWS Integration alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true:
- You enable IPv6 for the distribution
- You're using alternate domain names in the URLs for your objects
For more information, see Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name in the Amazon Route 53 AWS Integration Developer Guide .
If you created a CNAME resource record set, either with Amazon Route 53 AWS Integration or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.
- Returns:
this
-
ipv6Enabled
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder ipv6Enabled(IResolvable ipv6Enabled) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getIpv6Enabled()- Parameters:
ipv6Enabled-
For more information, see ConnectionGroup .To use this field for a multi-tenant distribution, use a connection group instead.
If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify
true. If you specifyfalse, CloudFront responds to IPv6 DNS requests with the DNS response codeNOERRORand with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the
IpAddressparameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see Creating a Signed URL Using a Custom Policy in the Amazon CloudFront Developer Guide .If you're using an Amazon Route 53 AWS Integration alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true:
- You enable IPv6 for the distribution
- You're using alternate domain names in the URLs for your objects
For more information, see Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name in the Amazon Route 53 AWS Integration Developer Guide .
If you created a CNAME resource record set, either with Amazon Route 53 AWS Integration or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.
- Returns:
this
-
logging
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder logging(IResolvable logging) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getLogging()- Parameters:
logging- A complex type that controls whether access logs are written for the distribution. For more information about logging, see Access Logs in the Amazon CloudFront Developer Guide .- Returns:
this
-
logging
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder logging(CfnDistributionPropsMixin.LoggingProperty logging) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getLogging()- Parameters:
logging- A complex type that controls whether access logs are written for the distribution. For more information about logging, see Access Logs in the Amazon CloudFront Developer Guide .- Returns:
this
-
originGroups
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder originGroups(IResolvable originGroups) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOriginGroups()- Parameters:
originGroups- A complex type that contains information about origin groups for this distribution. Specify a value for either theOriginsorOriginGroupsproperty.- Returns:
this
-
originGroups
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder originGroups(CfnDistributionPropsMixin.OriginGroupsProperty originGroups) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOriginGroups()- Parameters:
originGroups- A complex type that contains information about origin groups for this distribution. Specify a value for either theOriginsorOriginGroupsproperty.- Returns:
this
-
origins
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder origins(IResolvable origins) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOrigins()- Parameters:
origins- A complex type that contains information about origins for this distribution. Specify a value for either theOriginsorOriginGroupsproperty.- Returns:
this
-
origins
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder origins(List<? extends Object> origins) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getOrigins()- Parameters:
origins- A complex type that contains information about origins for this distribution. Specify a value for either theOriginsorOriginGroupsproperty.- Returns:
this
-
priceClass
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder priceClass(String priceClass) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getPriceClass()- Parameters:
priceClass-
You can't specify this field for multi-tenant distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .This field only supports standard distributions.
The 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. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance.For more information about price classes, see Choosing the Price Class for a CloudFront Distribution in the Amazon CloudFront Developer Guide . For information about CloudFront pricing, including how price classes (such as Price Class 100) map to CloudFront regions, see Amazon CloudFront Pricing .
- Returns:
this
-
restrictions
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder restrictions(IResolvable restrictions) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getRestrictions()- Parameters:
restrictions- A complex type that identifies ways in which you want to restrict distribution of your content.- Returns:
this
-
restrictions
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder restrictions(CfnDistributionPropsMixin.RestrictionsProperty restrictions) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getRestrictions()- Parameters:
restrictions- A complex type that identifies ways in which you want to restrict distribution of your content.- Returns:
this
-
s3Origin
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder s3Origin(IResolvable s3Origin) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getS3Origin()- Parameters:
s3Origin- The origin as an Amazon S3 bucket.This property is legacy. We recommend that you use Origin instead.
- Returns:
this
-
s3Origin
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder s3Origin(CfnDistributionPropsMixin.LegacyS3OriginProperty s3Origin) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getS3Origin()- Parameters:
s3Origin- The origin as an Amazon S3 bucket.This property is legacy. We recommend that you use Origin instead.
- Returns:
this
-
staging
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder staging(Boolean staging) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getStaging()- Parameters:
staging-
You can't specify this field for multi-tenant distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .This field only supports standard distributions.
A Boolean that indicates whether this is a staging distribution. When this value is
true, this is a staging distribution. When this value isfalse, this is not a staging distribution.- Returns:
this
-
staging
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder staging(IResolvable staging) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getStaging()- Parameters:
staging-
You can't specify this field for multi-tenant distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .This field only supports standard distributions.
A Boolean that indicates whether this is a staging distribution. When this value is
true, this is a staging distribution. When this value isfalse, this is not a staging distribution.- Returns:
this
-
tenantConfig
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder tenantConfig(IResolvable tenantConfig) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getTenantConfig()- Parameters:
tenantConfig-
You can't specify this field for standard distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .This field only supports multi-tenant distributions.
A distribution tenant configuration.
- Returns:
this
-
tenantConfig
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder tenantConfig(CfnDistributionPropsMixin.TenantConfigProperty tenantConfig) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getTenantConfig()- Parameters:
tenantConfig-
You can't specify this field for standard distributions. For more information, see Unsupported features for SaaS Manager for Amazon CloudFront in the Amazon CloudFront Developer Guide .This field only supports multi-tenant distributions.
A distribution tenant configuration.
- Returns:
this
-
viewerCertificate
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder viewerCertificate(IResolvable viewerCertificate) - Parameters:
viewerCertificate- A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.- Returns:
this
-
viewerCertificate
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder viewerCertificate(CfnDistributionPropsMixin.ViewerCertificateProperty viewerCertificate) - Parameters:
viewerCertificate- A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.- Returns:
this
-
viewerMtlsConfig
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder viewerMtlsConfig(IResolvable viewerMtlsConfig) - Parameters:
viewerMtlsConfig- The distribution's viewer mTLS configuration.- Returns:
this
-
viewerMtlsConfig
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder viewerMtlsConfig(CfnDistributionPropsMixin.ViewerMtlsConfigProperty viewerMtlsConfig) - Parameters:
viewerMtlsConfig- The distribution's viewer mTLS configuration.- Returns:
this
-
webAclId
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder webAclId(String webAclId) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getWebAclId()- Parameters:
webAclId-
A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF , use the ACL ARN, for exampleMulti-tenant distributions only support AWS WAF V2 web ACLs.
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for examplea1b2c3d4-5678-90ab-cdef-EXAMPLE11111.AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about AWS WAF , see the AWS WAF Developer Guide .
- Returns:
this
-
webAclId
@Stability(Stable) public CfnDistributionPropsMixin.DistributionConfigProperty.Builder webAclId(IWebACLRef webAclId) Sets the value ofCfnDistributionPropsMixin.DistributionConfigProperty.getWebAclId()- Parameters:
webAclId-
A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF , use the ACL ARN, for exampleMulti-tenant distributions only support AWS WAF V2 web ACLs.
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for examplea1b2c3d4-5678-90ab-cdef-EXAMPLE11111.AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about AWS WAF , see the AWS WAF Developer Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.DistributionConfigProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.DistributionConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-