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
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The domain name of the resource, such as |
Attr |
The distribution's identifier. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Distribution |
The distribution's configuration. |
Tags | Tag Manager which manages the tags for this resource. |
Tags |
A complex type that contains zero or more |
Methods
Inspect(Tree |
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. By Ref Value 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. Deputy Base. Deputy Props 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 ICfn
Distribution Props Resource properties.
Properties
AttrDomainName
The domain name of the resource, such as d111111abcdef8.cloudfront.net
.
public virtual string AttrDomainName { get; }
Property Value
System.
Remarks
CloudformationAttribute: DomainName
AttrId
The distribution's identifier.
public virtual string AttrId { get; }
Property Value
System.
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.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
DistributionConfig
The distribution's configuration.
public virtual object DistributionConfig { get; set; }
Property Value
System.
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
ICfn
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector 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. <System.Generic. IDictionary String , System.Object >
Returns
System.