S3OriginAccessControlProps Struct
Properties for creating a S3 Origin Access Control resource.
Example
ts
const myBucket = new s3.Bucket(this, 'myBucket');
const oac = new cloudfront.S3OriginAccessControl(this, 'MyOAC', {
signing: cloudfront.Signing.SIGV4_NO_OVERRIDE
});
const s3Origin = origins.S3BucketOrigin.withOriginAccessControl(myBucket, {
originAccessControl: oac
}
)
new cloudfront.Distribution(this, 'myDist', {
defaultBehavior: {
origin: s3Origin
},
});
Properties
A description of the origin access control.
Default: no description
originAccessControlNamestringorigin_access_control_namestroriginAccessControlNameStringOriginAccessControlNamestringOriginAccessControlName*string#A name to identify the origin access control, with a maximum length of 64 characters.
Default: a generated name