Class CfnDistribution
A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnDistribution
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
CloudformationResource: AWS::CloudFront::Distribution
ExampleMetadata: infused
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");
Synopsis
Constructors
CfnDistribution(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnDistribution(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnDistribution(Construct, String, ICfnDistributionProps) |
Properties
AttrDomainName | The domain name of the resource, such as |
AttrId | The distribution's identifier. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DistributionConfig | The distribution's configuration. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | A complex type that contains zero or more |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnDistribution(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnDistribution(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnDistribution(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnDistribution(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnDistribution(Construct, String, ICfnDistributionProps)
public CfnDistribution(Construct scope, string id, ICfnDistributionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnDistributionProps
Resource properties.
Properties
AttrDomainName
The domain name of the resource, such as d111111abcdef8.cloudfront.net
.
public virtual string AttrDomainName { get; }
Property Value
System.String
Remarks
CloudformationAttribute: DomainName
AttrId
The distribution's identifier.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
For example: E1U5RQF7T870K0
.
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
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DistributionConfig
The distribution's configuration.
public virtual object DistributionConfig { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
A complex type that contains zero or more Tag
elements.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
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 System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>