@Generated(value="software.amazon.awssdk:codegen") public final class OriginAccessControlConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OriginAccessControlConfig.Builder,OriginAccessControlConfig>
A CloudFront origin access control configuration.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OriginAccessControlConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static OriginAccessControlConfig.Builder |
builder() |
String |
description()
A description of the origin access control.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
A name to identify the origin access control.
|
OriginAccessControlOriginTypes |
originAccessControlOriginType()
The type of origin that this origin access control is for.
|
String |
originAccessControlOriginTypeAsString()
The type of origin that this origin access control is for.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OriginAccessControlConfig.Builder> |
serializableBuilderClass() |
OriginAccessControlSigningBehaviors |
signingBehavior()
Specifies which requests CloudFront signs (adds authentication information to).
|
String |
signingBehaviorAsString()
Specifies which requests CloudFront signs (adds authentication information to).
|
OriginAccessControlSigningProtocols |
signingProtocol()
The signing protocol of the origin access control, which determines how CloudFront signs (authenticates)
requests.
|
String |
signingProtocolAsString()
The signing protocol of the origin access control, which determines how CloudFront signs (authenticates)
requests.
|
OriginAccessControlConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
A name to identify the origin access control.
public final String description()
A description of the origin access control.
public final OriginAccessControlSigningProtocols signingProtocol()
The signing protocol of the origin access control, which determines how CloudFront signs (authenticates)
requests. The only valid value is sigv4.
If the service returns an enum value that is not available in the current SDK version, signingProtocol
will return OriginAccessControlSigningProtocols.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from signingProtocolAsString().
sigv4.OriginAccessControlSigningProtocolspublic final String signingProtocolAsString()
The signing protocol of the origin access control, which determines how CloudFront signs (authenticates)
requests. The only valid value is sigv4.
If the service returns an enum value that is not available in the current SDK version, signingProtocol
will return OriginAccessControlSigningProtocols.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from signingProtocolAsString().
sigv4.OriginAccessControlSigningProtocolspublic final OriginAccessControlSigningBehaviors signingBehavior()
Specifies which requests CloudFront signs (adds authentication information to). 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.
If the service returns an enum value that is not available in the current SDK version, signingBehavior
will return OriginAccessControlSigningBehaviors.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from signingBehaviorAsString().
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.
OriginAccessControlSigningBehaviorspublic final String signingBehaviorAsString()
Specifies which requests CloudFront signs (adds authentication information to). 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.
If the service returns an enum value that is not available in the current SDK version, signingBehavior
will return OriginAccessControlSigningBehaviors.UNKNOWN_TO_SDK_VERSION. The raw value returned by the
service is available from signingBehaviorAsString().
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.
OriginAccessControlSigningBehaviorspublic final OriginAccessControlOriginTypes originAccessControlOriginType()
The type of origin that this origin access control is for.
If the service returns an enum value that is not available in the current SDK version,
originAccessControlOriginType will return OriginAccessControlOriginTypes.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from originAccessControlOriginTypeAsString().
OriginAccessControlOriginTypespublic final String originAccessControlOriginTypeAsString()
The type of origin that this origin access control is for.
If the service returns an enum value that is not available in the current SDK version,
originAccessControlOriginType will return OriginAccessControlOriginTypes.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from originAccessControlOriginTypeAsString().
OriginAccessControlOriginTypespublic OriginAccessControlConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OriginAccessControlConfig.Builder,OriginAccessControlConfig>public static OriginAccessControlConfig.Builder builder()
public static Class<? extends OriginAccessControlConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.