Interface CfnOriginAccessControl.OriginAccessControlConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnOriginAccessControl.OriginAccessControlConfigProperty.Jsii$Proxy
Enclosing class:
CfnOriginAccessControl

@Stability(Stable) public static interface CfnOriginAccessControl.OriginAccessControlConfigProperty extends software.amazon.jsii.JsiiSerializable
Creates a new origin access control in CloudFront.

After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.

This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront.

For more information about using a CloudFront origin access control, see Restricting access to an AWS origin in the Amazon CloudFront Developer Guide .

Example:

 // 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.*;
 OriginAccessControlConfigProperty originAccessControlConfigProperty = OriginAccessControlConfigProperty.builder()
         .name("name")
         .originAccessControlOriginType("originAccessControlOriginType")
         .signingBehavior("signingBehavior")
         .signingProtocol("signingProtocol")
         // the properties below are optional
         .description("description")
         .build();
 

See Also: