Interface IS3OriginAccessControlProps
Properties for creating a S3 Origin Access Control resource.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IS3OriginAccessControlProps : IOriginAccessControlBaseProps
Syntax (vb)
Public Interface IS3OriginAccessControlProps
Inherits IOriginAccessControlBaseProps
Remarks
ExampleMetadata: infused
Examples
var myBucket = new Bucket(this, "myBucket");
var oac = new S3OriginAccessControl(this, "MyOAC", new S3OriginAccessControlProps {
Signing = Signing.SIGV4_NO_OVERRIDE
});
var s3Origin = S3BucketOrigin.WithOriginAccessControl(myBucket, new S3BucketOriginWithOACProps {
OriginAccessControl = oac
});
new Distribution(this, "myDist", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = s3Origin
}
});