@Generated(value="software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyCorsConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyCorsConfig.Builder,ResponseHeadersPolicyCorsConfig>
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS). CloudFront adds these headers to HTTP responses that it sends for CORS requests that match a cache behavior associated with this response headers policy.
For more information about CORS, see Cross-Origin Resource Sharing (CORS) in the MDN Web Docs.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponseHeadersPolicyCorsConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
accessControlAllowCredentials()
A Boolean that CloudFront uses as the value for the
Access-Control-Allow-Credentials HTTP response
header. |
ResponseHeadersPolicyAccessControlAllowHeaders |
accessControlAllowHeaders()
A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header. |
ResponseHeadersPolicyAccessControlAllowMethods |
accessControlAllowMethods()
A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods HTTP
response header. |
ResponseHeadersPolicyAccessControlAllowOrigins |
accessControlAllowOrigins()
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin HTTP response header. |
ResponseHeadersPolicyAccessControlExposeHeaders |
accessControlExposeHeaders()
A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers HTTP
response header. |
Integer |
accessControlMaxAgeSec()
A number that CloudFront uses as the value for the
Access-Control-Max-Age HTTP response header. |
static ResponseHeadersPolicyCorsConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
originOverride()
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the
ones specified in this response headers policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResponseHeadersPolicyCorsConfig.Builder> |
serializableBuilderClass() |
ResponseHeadersPolicyCorsConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ResponseHeadersPolicyAccessControlAllowOrigins accessControlAllowOrigins()
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin HTTP response header.
For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
Access-Control-Allow-Origin HTTP response header.
For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control
-Allow-Origin in the MDN Web Docs.
public final ResponseHeadersPolicyAccessControlAllowHeaders accessControlAllowHeaders()
A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.
Access-Control-Allow-Headers HTTP response header.
For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control
-Allow-Headers in the MDN Web Docs.
public final ResponseHeadersPolicyAccessControlAllowMethods accessControlAllowMethods()
A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP
response header.
For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.
Access-Control-Allow-Methods HTTP response header.
For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control
-Allow-Methods in the MDN Web Docs.
public final Boolean accessControlAllowCredentials()
A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response
header.
For more information about the Access-Control-Allow-Credentials HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.
Access-Control-Allow-Credentials HTTP
response header.
For more information about the Access-Control-Allow-Credentials HTTP response header, see Access-
Control-Allow-Credentials in the MDN Web Docs.
public final ResponseHeadersPolicyAccessControlExposeHeaders accessControlExposeHeaders()
A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP
response header.
For more information about the Access-Control-Expose-Headers HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.
Access-Control-Expose-Headers HTTP response header.
For more information about the Access-Control-Expose-Headers HTTP response header, see Access-
Control-Expose-Headers in the MDN Web Docs.
public final Integer accessControlMaxAgeSec()
A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header.
For more information about the Access-Control-Max-Age HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
Access-Control-Max-Age HTTP response
header.
For more information about the Access-Control-Max-Age HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
public final Boolean originOverride()
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
public ResponseHeadersPolicyCorsConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResponseHeadersPolicyCorsConfig.Builder,ResponseHeadersPolicyCorsConfig>public static ResponseHeadersPolicyCorsConfig.Builder builder()
public static Class<? extends ResponseHeadersPolicyCorsConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.