interface S3OriginAccessControlProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.S3OriginAccessControlProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#S3OriginAccessControlProps |
![]() | software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps |
![]() | aws_cdk.aws_cloudfront.S3OriginAccessControlProps |
![]() | aws-cdk-lib » aws_cloudfront » S3OriginAccessControlProps |
Properties for creating a S3 Origin Access Control resource.
Example
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
Name | Type | Description |
---|---|---|
description? | string | A description of the origin access control. |
origin | string | A name to identify the origin access control, with a maximum length of 64 characters. |
signing? | Signing | Specifies which requests CloudFront signs and the signing protocol. |
description?
Type:
string
(optional, default: no description)
A description of the origin access control.
originAccessControlName?
Type:
string
(optional, default: a generated name)
A name to identify the origin access control, with a maximum length of 64 characters.
signing?
Type:
Signing
(optional, default: SIGV4_ALWAYS)
Specifies which requests CloudFront signs and the signing protocol.