@Stability(value=Stable) public static final class CfnBucket.CorsRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnBucket.CorsRuleProperty>
CfnBucket.CorsRuleProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucket.CorsRuleProperty.Builder |
allowedHeaders(List<String> allowedHeaders)
Sets the value of
CfnBucket.CorsRuleProperty.getAllowedHeaders() |
CfnBucket.CorsRuleProperty.Builder |
allowedMethods(List<String> allowedMethods)
Sets the value of
CfnBucket.CorsRuleProperty.getAllowedMethods() |
CfnBucket.CorsRuleProperty.Builder |
allowedOrigins(List<String> allowedOrigins)
Sets the value of
CfnBucket.CorsRuleProperty.getAllowedOrigins() |
CfnBucket.CorsRuleProperty |
build()
Builds the configured instance.
|
CfnBucket.CorsRuleProperty.Builder |
exposedHeaders(List<String> exposedHeaders)
Sets the value of
CfnBucket.CorsRuleProperty.getExposedHeaders() |
CfnBucket.CorsRuleProperty.Builder |
id(String id)
Sets the value of
CfnBucket.CorsRuleProperty.getId() |
CfnBucket.CorsRuleProperty.Builder |
maxAge(Number maxAge)
Sets the value of
CfnBucket.CorsRuleProperty.getMaxAge() |
@Stability(value=Stable) public CfnBucket.CorsRuleProperty.Builder allowedMethods(List<String> allowedMethods)
CfnBucket.CorsRuleProperty.getAllowedMethods()allowedMethods - An HTTP method that you allow the origin to run. This parameter is required.
Allowed values : GET | PUT | HEAD | POST | DELETEthis@Stability(value=Stable) public CfnBucket.CorsRuleProperty.Builder allowedOrigins(List<String> allowedOrigins)
CfnBucket.CorsRuleProperty.getAllowedOrigins()allowedOrigins - One or more origins you want customers to be able to access the bucket from. This parameter is required.this@Stability(value=Stable) public CfnBucket.CorsRuleProperty.Builder allowedHeaders(List<String> allowedHeaders)
CfnBucket.CorsRuleProperty.getAllowedHeaders()allowedHeaders - Headers that are specified in the `Access-Control-Request-Headers` header.
These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.this@Stability(value=Stable) public CfnBucket.CorsRuleProperty.Builder exposedHeaders(List<String> exposedHeaders)
CfnBucket.CorsRuleProperty.getExposedHeaders()exposedHeaders - One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object).this@Stability(value=Stable) public CfnBucket.CorsRuleProperty.Builder id(String id)
CfnBucket.CorsRuleProperty.getId()id - A unique identifier for this rule.
The value must be no more than 255 characters.this@Stability(value=Stable) public CfnBucket.CorsRuleProperty.Builder maxAge(Number maxAge)
CfnBucket.CorsRuleProperty.getMaxAge()maxAge - The time in seconds that your browser is to cache the preflight response for the specified resource.this@Stability(value=Stable) public CfnBucket.CorsRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnBucket.CorsRuleProperty>CfnBucket.CorsRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.