@Stability(value=Stable) public static final class ResponseHeadersCorsBehavior.Builder extends Object implements software.amazon.jsii.Builder<ResponseHeadersCorsBehavior>
ResponseHeadersCorsBehavior| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public ResponseHeadersCorsBehavior.Builder accessControlAllowCredentials(Boolean accessControlAllowCredentials)
ResponseHeadersCorsBehavior.getAccessControlAllowCredentials()accessControlAllowCredentials - A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header. This parameter is required.this@Stability(value=Stable) public ResponseHeadersCorsBehavior.Builder accessControlAllowHeaders(List<String> accessControlAllowHeaders)
ResponseHeadersCorsBehavior.getAccessControlAllowHeaders()accessControlAllowHeaders - A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. This parameter is required.
You can specify ['*'] to allow all headers.this@Stability(value=Stable) public ResponseHeadersCorsBehavior.Builder accessControlAllowMethods(List<String> accessControlAllowMethods)
ResponseHeadersCorsBehavior.getAccessControlAllowMethods()accessControlAllowMethods - A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. This parameter is required.this@Stability(value=Stable) public ResponseHeadersCorsBehavior.Builder accessControlAllowOrigins(List<String> accessControlAllowOrigins)
ResponseHeadersCorsBehavior.getAccessControlAllowOrigins()accessControlAllowOrigins - A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. This parameter is required.
You can specify ['*'] to allow all origins.this@Stability(value=Stable) public ResponseHeadersCorsBehavior.Builder originOverride(Boolean originOverride)
ResponseHeadersCorsBehavior.getOriginOverride()originOverride - A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy. This parameter is required.this@Stability(value=Stable) public ResponseHeadersCorsBehavior.Builder accessControlExposeHeaders(List<String> accessControlExposeHeaders)
ResponseHeadersCorsBehavior.getAccessControlExposeHeaders()accessControlExposeHeaders - A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header.
You can specify ['*'] to expose all headers.this@Stability(value=Stable) public ResponseHeadersCorsBehavior.Builder accessControlMaxAge(Duration accessControlMaxAge)
ResponseHeadersCorsBehavior.getAccessControlMaxAge()accessControlMaxAge - A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header.this@Stability(value=Stable) public ResponseHeadersCorsBehavior build()
build in interface software.amazon.jsii.Builder<ResponseHeadersCorsBehavior>ResponseHeadersCorsBehaviorNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.