Class CfnDistribution.LegacyS3OriginProperty
The origin as an Amazon S3 bucket.
Inheritance
System.Object
CfnDistribution.LegacyS3OriginProperty
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LegacyS3OriginProperty : Object, CfnDistribution.ILegacyS3OriginProperty
Syntax (vb)
Public Class LegacyS3OriginProperty
Inherits Object
Implements CfnDistribution.ILegacyS3OriginProperty
Remarks
This property is legacy. We recommend that you use Origin instead.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var legacyS3OriginProperty = new LegacyS3OriginProperty {
DnsName = "dnsName",
// the properties below are optional
OriginAccessIdentity = "originAccessIdentity"
};
Synopsis
Constructors
LegacyS3OriginProperty() |
Properties
DnsName | The domain name assigned to your CloudFront distribution. |
OriginAccessIdentity | The CloudFront origin access identity to associate with the distribution. |
Constructors
LegacyS3OriginProperty()
public LegacyS3OriginProperty()
Properties
DnsName
The domain name assigned to your CloudFront distribution.
public string DnsName { get; set; }
Property Value
System.String
Remarks
OriginAccessIdentity
The CloudFront origin access identity to associate with the distribution.
public string OriginAccessIdentity { get; set; }
Property Value
System.String
Remarks
Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 through CloudFront .
This property is legacy. We recommend that you use OriginAccessControl instead.
Default: - ""