interface LegacyS3OriginProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.LegacyS3OriginProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_LegacyS3OriginProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.LegacyS3OriginProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.LegacyS3OriginProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnDistributionPropsMixin » LegacyS3OriginProperty |
The origin as an Amazon S3 bucket.
This property is legacy. We recommend that you use Origin instead.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const legacyS3OriginProperty: cloudfront_mixins.CfnDistributionPropsMixin.LegacyS3OriginProperty = {
dnsName: 'dnsName',
originAccessIdentity: 'originAccessIdentity',
};
Properties
| Name | Type | Description |
|---|---|---|
| dns | string | The domain name assigned to your CloudFront distribution. |
| origin | string | The CloudFront origin access identity to associate with the distribution. |
dnsName?
Type:
string
(optional)
The domain name assigned to your CloudFront distribution.
originAccessIdentity?
Type:
string
(optional, default: "")
The CloudFront origin access identity to associate with the distribution.
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.

.NET
Go
Java
Python
TypeScript