software.amazon.jsii.JsiiObject.InitializationModeCorsRule.Builder, CorsRule.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(List<? extends HttpMethods> allowedMethods,
List<String> allowedOrigins,
List<String> allowedHeaders,
List<String> exposedHeaders,
String id,
Number maxAge)
Constructor that initializes the object based on literal property values passed by the
CorsRule.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<String> |
getAllowedHeaders()
(experimental) Headers that are specified in the Access-Control-Request-Headers header.
|
List<HttpMethods> |
getAllowedMethods()
(experimental) An HTTP method that you allow the origin to execute.
|
List<String> |
getAllowedOrigins()
(experimental) One or more origins you want customers to be able to access the bucket from.
|
List<String> |
getExposedHeaders()
(experimental) One or more headers in the response that you want customers to be able to access from their applications.
|
String |
getId()
(experimental) A unique identifier for this rule.
|
Number |
getMaxAge()
(experimental) The time in seconds that your browser is to cache the preflight response for the specified resource.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.public final List<HttpMethods> getAllowedMethods()
CorsRulegetAllowedMethods in interface CorsRulepublic final List<String> getAllowedOrigins()
CorsRulegetAllowedOrigins in interface CorsRulepublic final List<String> getAllowedHeaders()
CorsRuleDefault: - No headers allowed.
getAllowedHeaders in interface CorsRulepublic final List<String> getExposedHeaders()
CorsRuleDefault: - No headers exposed.
getExposedHeaders in interface CorsRulepublic final String getId()
CorsRuleDefault: - No id specified.
public final Number getMaxAge()
CorsRuleDefault: - No caching.
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.