AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

S3OriginAccessControl

An Origin Access Control for Amazon S3 origins.

Import

import { S3OriginAccessControl } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.S3OriginAccessControl

Properties

Configuration passed to the constructor as S3OriginAccessControlProps.

3 properties inherited from OriginAccessControlBaseProps
descriptionOptionalinherited from OriginAccessControlBaseProps
string

A description of the origin access control.

Default: - no description

originAccessControlNameOptionalinherited from OriginAccessControlBaseProps
string

A name to identify the origin access control, with a maximum length of 64 characters.

Default: - a generated name

signingOptionalinherited from OriginAccessControlBaseProps
Signing

Specifies which requests CloudFront signs and the signing protocol.

Default: SIGV4_ALWAYS

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic