Class CfnDistribution
- Namespace
- Amazon.CDK.AWS.CloudFront
- Assembly
- Amazon.CDK.AWS.CloudFront.dll
A CloudFormation AWS::CloudFront::Distribution
.
public class CfnDistribution : CfnResource, IInspectable
- Inheritance
-
CfnDistribution
- Implements
-
IInspectable
Examples
Bucket sourceBucket;
var myDistribution = new Distribution(this, "MyCfWebDistribution", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = new S3Origin(sourceBucket)
}
});
var cfnDistribution = (CfnDistribution)myDistribution.Node.DefaultChild;
cfnDistribution.OverrideLogicalId("MyDistributionCFDistribution3H55TI9Q");
Remarks
A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
CloudformationResource: AWS::CloudFront::Distribution
ExampleMetadata: infused
Constructors
CfnDistribution(Construct, string, ICfnDistributionProps)
Create a new AWS::CloudFront::Distribution
.
public CfnDistribution(Construct scope, string id, ICfnDistributionProps props)
Parameters
scope
Construct- scope in which this resource is defined.
id
string- scoped id of the resource.
props
ICfnDistributionProps- resource properties.
Properties
AttrDomainName
The domain name of the resource, such as d111111abcdef8.cloudfront.net
.
public virtual string AttrDomainName { get; }
Property Value
Remarks
CloudformationAttribute: DomainName
AttrId
The identifier for the distribution, for example EDFDVBD632BHDS5
.
public virtual string AttrId { get; }
Property Value
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
DistributionConfig
The distribution's configuration.
public virtual object DistributionConfig { get; set; }
Property Value
Remarks
Tags
A complex type that contains zero or more Tag
elements.
public virtual TagManager Tags { get; }
Property Value
- TagManager
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
inspector
TreeInspector- tree inspector to collect and process attributes.
RenderProperties(IDictionary<string, object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props
IDictionary<string, object>