@Stability(value=Stable) public static final class CfnResponseHeadersPolicy.CorsConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.CorsConfigProperty>
CfnResponseHeadersPolicy.CorsConfigProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowCredentials(Boolean accessControlAllowCredentials)
accessControlAllowCredentials - A Boolean that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP response header. This parameter is required.
For more information about the Access-Control-Allow-Credentials HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowCredentials(IResolvable accessControlAllowCredentials)
accessControlAllowCredentials - A Boolean that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP response header. This parameter is required.
For more information about the Access-Control-Allow-Credentials HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowHeaders(CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty accessControlAllowHeaders)
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.
For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowHeaders(IResolvable accessControlAllowHeaders)
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.
For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowMethods(CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty accessControlAllowMethods)
accessControlAllowMethods - A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header. This parameter is required.
For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowMethods(IResolvable accessControlAllowMethods)
accessControlAllowMethods - A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header. This parameter is required.
For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowOrigins(CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty accessControlAllowOrigins)
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.
For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlAllowOrigins(IResolvable accessControlAllowOrigins)
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.
For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder originOverride(Boolean originOverride)
CfnResponseHeadersPolicy.CorsConfigProperty.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 CfnResponseHeadersPolicy.CorsConfigProperty.Builder originOverride(IResolvable originOverride)
CfnResponseHeadersPolicy.CorsConfigProperty.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 CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlExposeHeaders(CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty accessControlExposeHeaders)
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.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlExposeHeaders(IResolvable accessControlExposeHeaders)
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.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty.Builder accessControlMaxAgeSec(Number accessControlMaxAgeSec)
CfnResponseHeadersPolicy.CorsConfigProperty.getAccessControlMaxAgeSec()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.this@Stability(value=Stable) public CfnResponseHeadersPolicy.CorsConfigProperty build()
build in interface software.amazon.jsii.Builder<CfnResponseHeadersPolicy.CorsConfigProperty>CfnResponseHeadersPolicy.CorsConfigPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.