Class CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty>
- Enclosing interface:
CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty
@Stability(Stable)
public static final class CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) originAccessControlOriginType(String originAccessControlOriginType) signingBehavior(String signingBehavior) signingProtocol(String signingProtocol)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder description(String description) Sets the value ofCfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.getDescription()- Parameters:
description- A description of the origin access control.- Returns:
this
-
name
@Stability(Stable) public CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder name(String name) - Parameters:
name- A name to identify the origin access control. You can specify up to 64 characters.- Returns:
this
-
originAccessControlOriginType
@Stability(Stable) public CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder originAccessControlOriginType(String originAccessControlOriginType) Sets the value ofCfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.getOriginAccessControlOriginType()- Parameters:
originAccessControlOriginType- The type of origin that this origin access control is for.- Returns:
this
-
signingBehavior
@Stability(Stable) public CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder signingBehavior(String signingBehavior) Sets the value ofCfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.getSigningBehavior()- Parameters:
signingBehavior- Specifies which requests CloudFront signs (adds authentication information to). Specifyalwaysfor the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .This field can have one of the following values:
always– CloudFront signs all origin requests, overwriting theAuthorizationheader from the viewer request if one exists.never– CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.no-override– If the viewer request doesn't contain theAuthorizationheader, then CloudFront signs the origin request. If the viewer request contains theAuthorizationheader, then CloudFront doesn't sign the origin request and instead passes along theAuthorizationheader from the viewer request. WARNING: To pass along theAuthorizationheader from the viewer request, you must add theAuthorizationheader to a cache policy for all cache behaviors that use origins associated with this origin access control.
- Returns:
this
-
signingProtocol
@Stability(Stable) public CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.Builder signingProtocol(String signingProtocol) Sets the value ofCfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty.getSigningProtocol()- Parameters:
signingProtocol- The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value issigv4.- Returns:
this
-
build
@Stability(Stable) public CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty>- Returns:
- a new instance of
CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-