Class CfnDistribution
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cloudfront.CfnDistribution
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:05.442Z")
@Stability(Stable)
public class CfnDistribution
extends CfnResource
implements IInspectable, ITaggable
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");
- See Also:
-
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
A custom origin.static interface
The origin as an Amazon S3 bucket.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.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnDistribution
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDistribution
(software.amazon.jsii.JsiiObjectRef objRef) CfnDistribution
(software.constructs.Construct scope, String id, CfnDistributionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe domain name of the resource, such asd111111abcdef8.cloudfront.net
.The distribution's identifier.The distribution's configuration.getTags()
Tag Manager which manages the tags for this resource.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.void
setTagsRaw
(List<CfnTag> value) A complex type that contains zero or moreTag
elements.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnDistributionProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
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 distribution's identifier.For example:
E1U5RQF7T870K0
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getDistributionConfig
The distribution's configuration. -
setDistributionConfig
The distribution's configuration. -
setDistributionConfig
@Stability(Stable) public void setDistributionConfig(@NotNull CfnDistribution.DistributionConfigProperty value) The distribution's configuration. -
getTagsRaw
A complex type that contains zero or moreTag
elements. -
setTagsRaw
A complex type that contains zero or moreTag
elements.
-