public static final class CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder
extends java.lang.Object
CfnOriginAccessControl.OriginAccessControlConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnOriginAccessControl.OriginAccessControlConfigProperty |
build()
Builds the configured instance.
|
CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder |
description(java.lang.String description)
|
CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder |
name(java.lang.String name)
Sets the value of
CfnOriginAccessControl.OriginAccessControlConfigProperty.getName() |
CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder |
originAccessControlOriginType(java.lang.String originAccessControlOriginType)
|
CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder |
signingBehavior(java.lang.String signingBehavior)
|
CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder |
signingProtocol(java.lang.String signingProtocol)
|
public CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder name(java.lang.String name)
CfnOriginAccessControl.OriginAccessControlConfigProperty.getName()
name
- A name to identify the origin access control. This parameter is required.this
public CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder originAccessControlOriginType(java.lang.String originAccessControlOriginType)
CfnOriginAccessControl.OriginAccessControlConfigProperty.getOriginAccessControlOriginType()
originAccessControlOriginType
- The type of origin that this origin access control is for. This parameter is required.
The only valid value is s3
.this
public CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder signingBehavior(java.lang.String signingBehavior)
signingBehavior
- Specifies which requests CloudFront signs (adds authentication information to). This parameter is required.
Specify always
for 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 the Authorization
header 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 the Authorization
header, then CloudFront signs the origin request. If the viewer request contains the Authorization
header, then CloudFront doesn't sign the origin request and instead passes along the Authorization
header from the viewer request. WARNING: To pass along the Authorization
header from the viewer request, you must add the Authorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.this
public CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder signingProtocol(java.lang.String signingProtocol)
signingProtocol
- The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. This parameter is required.
The only valid value is sigv4
.this
public CfnOriginAccessControl.OriginAccessControlConfigProperty.Builder description(java.lang.String description)
description
- A description of the origin access control.this
public CfnOriginAccessControl.OriginAccessControlConfigProperty build()
CfnOriginAccessControl.OriginAccessControlConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided