@Stability(value=Stable) @Internal public static final class CfnContainer.CorsRuleProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnContainer.CorsRuleProperty
CfnContainer.CorsRulePropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnContainer.CorsRuleProperty.Builder, CfnContainer.CorsRuleProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnContainer.CorsRuleProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnContainer.CorsRuleProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<String> |
getAllowedHeaders()
Specifies which headers are allowed in a preflight `OPTIONS` request through the `Access-Control-Request-Headers` header.
|
List<String> |
getAllowedMethods()
Identifies an HTTP method that the origin that is specified in the rule is allowed to execute.
|
List<String> |
getAllowedOrigins()
One or more response headers that you want users to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object).
|
List<String> |
getExposeHeaders()
One or more headers in the response that you want users to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object).
|
Number |
getMaxAgeSeconds()
The time in seconds that your browser caches the preflight response for the specified resource.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnContainer.CorsRuleProperty.Builder builder)
CfnContainer.CorsRuleProperty.Builder.public final List<String> getAllowedHeaders()
CfnContainer.CorsRuleProperty
Each header name that is specified in Access-Control-Request-Headers must have a corresponding entry in the rule. Only the headers that were requested are sent back.
This element can contain only one wildcard character (*).
getAllowedHeaders in interface CfnContainer.CorsRulePropertypublic final List<String> getAllowedMethods()
CfnContainer.CorsRuleProperty
Each CORS rule must contain at least one AllowedMethods and one AllowedOrigins element.
getAllowedMethods in interface CfnContainer.CorsRulePropertypublic final List<String> getAllowedOrigins()
CfnContainer.CorsRuleProperty
Each CORS rule must have at least one AllowedOrigins element. The string value can include only one wildcard character (), for example, http://.example.com. Additionally, you can specify only one wildcard character to allow cross-origin access for all origins.
getAllowedOrigins in interface CfnContainer.CorsRulePropertypublic final List<String> getExposeHeaders()
CfnContainer.CorsRulePropertyThis element is optional for each rule.
getExposeHeaders in interface CfnContainer.CorsRulePropertypublic final Number getMaxAgeSeconds()
CfnContainer.CorsRuleProperty
A CORS rule can have only one MaxAgeSeconds element.
getMaxAgeSeconds in interface CfnContainer.CorsRuleProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.