LegacyS3OriginProperty Struct
The origin as an Amazon S3 bucket.
This property is legacy. We recommend that you use Origin instead.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const legacyS3OriginProperty: cloudfront.CfnDistribution.LegacyS3OriginProperty = {
dnsName: 'dnsName',
// the properties below are optional
originAccessIdentity: 'originAccessIdentity',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront
legacy_s3_origin_property = cloudfront.CfnDistribution.LegacyS3OriginProperty(
dns_name="dnsName",
# the properties below are optional
origin_access_identity="originAccessIdentity"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
LegacyS3OriginProperty legacyS3OriginProperty = LegacyS3OriginProperty.builder()
.dnsName("dnsName")
// the properties below are optional
.originAccessIdentity("originAccessIdentity")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
legacyS3OriginProperty := &LegacyS3OriginProperty{
DnsName: jsii.String("dnsName"),
// the properties below are optional
OriginAccessIdentity: jsii.String("originAccessIdentity"),
}
Properties
The domain name assigned to your CloudFront distribution.
originAccessIdentityoptionalstringorigin_access_identityoptionalstroriginAccessIdentityoptionalStringOriginAccessIdentityoptionalstringOriginAccessIdentityoptional*string = "" #The CloudFront origin access identity to associate with the distribution.
notes
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.