Class CfnDistribution
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.cloudfront.CfnDistribution
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.478Z")
@Stability(Stable)
public class CfnDistribution
extends CfnResource
implements IInspectable
A CloudFormation
AWS::CloudFront::Distribution
.
A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
Example:
Bucket sourceBucket; Distribution myDistribution = Distribution.Builder.create(this, "MyCfWebDistribution") .defaultBehavior(BehaviorOptions.builder() .origin(new S3Origin(sourceBucket)) .build()) .build(); CfnDistribution cfnDistribution = (CfnDistribution)myDistribution.getNode().getDefaultChild(); cfnDistribution.overrideLogicalId("MyDistributionCFDistribution3H55TI9Q");
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDistribution
.static interface
A complex type that describes how CloudFront processes requests.static interface
This field is deprecated.static interface
A complex type that controls:.static interface
A custom origin.static interface
A complex type that describes the default cache behavior if you don't specify aCacheBehavior
element or if request URLs don't match any of the values ofPathPattern
inCacheBehavior
elements.static interface
A distribution configuration.static interface
This field is deprecated.static interface
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.static interface
A complex type that controls the countries in which your content is distributed.static interface
A complex type that contains a Lambda@Edge function association.static interface
Example:static interface
Example:static interface
A complex type that controls whether access logs are written for the distribution.static interface
A complex type that containsHeaderName
andHeaderValue
elements, if any, for this distribution.static interface
A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.static interface
An origin in an origin group.static interface
A complex data type for the origins included in an origin group.static interface
An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify.static interface
A complex data type for the origin groups specified for a distribution.static interface
An origin.static interface
CloudFront Origin Shield.static interface
A complex type that identifies ways in which you want to restrict distribution of your content.static interface
A complex type that contains information about the Amazon S3 origin.static interface
A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.static interface
A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnDistribution
(Construct scope, String id, CfnDistributionProps props) Create a newAWS::CloudFront::Distribution
.protected
CfnDistribution
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDistribution
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe domain name of the resource, such asd111111abcdef8.cloudfront.net
.The identifier for the distribution, for exampleEDFDVBD632BHDS5
.The distribution's configuration.getTags()
A complex type that contains zero or moreTag
elements.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDistributionConfig
(IResolvable value) The distribution's configuration.void
The distribution's configuration.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDistribution
protected CfnDistribution(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDistribution
protected CfnDistribution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDistribution
@Stability(Stable) public CfnDistribution(@NotNull Construct scope, @NotNull String id, @NotNull CfnDistributionProps props) Create a newAWS::CloudFront::Distribution
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrDomainName
The domain name of the resource, such asd111111abcdef8.cloudfront.net
. -
getAttrId
The identifier for the distribution, for exampleEDFDVBD632BHDS5
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
A complex type that contains zero or moreTag
elements. -
getDistributionConfig
The distribution's configuration. -
setDistributionConfig
The distribution's configuration. -
setDistributionConfig
@Stability(Stable) public void setDistributionConfig(@NotNull CfnDistribution.DistributionConfigProperty value) The distribution's configuration.
-