public static final class CfnUrl.CorsProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnUrl.CorsProperty
CfnUrl.CorsProperty
CfnUrl.CorsProperty.Builder, CfnUrl.CorsProperty.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.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAllowCredentials()
Whether you want to allow cookies or other credentials in requests to your function URL.
|
java.util.List<java.lang.String> |
getAllowHeaders()
The HTTP headers that origins can include in requests to your function URL.
|
java.util.List<java.lang.String> |
getAllowMethods()
The HTTP methods that are allowed when calling your function URL.
|
java.util.List<java.lang.String> |
getAllowOrigins()
The origins that can access your function URL.
|
java.util.List<java.lang.String> |
getExposeHeaders()
The HTTP headers in your function response that you want to expose to origins that call your function URL.
|
java.lang.Number |
getMaxAge()
The maximum amount of time, in seconds, that browsers can cache results of a preflight request.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Object getAllowCredentials()
CfnUrl.CorsProperty
The default is false
.
getAllowCredentials
in interface CfnUrl.CorsProperty
public final java.util.List<java.lang.String> getAllowHeaders()
CfnUrl.CorsProperty
For example: Date
, Keep-Alive
, X-Custom-Header
.
getAllowHeaders
in interface CfnUrl.CorsProperty
public final java.util.List<java.lang.String> getAllowMethods()
CfnUrl.CorsProperty
For example: GET
, POST
, DELETE
, or the wildcard character ( *
).
getAllowMethods
in interface CfnUrl.CorsProperty
public final java.util.List<java.lang.String> getAllowOrigins()
CfnUrl.CorsProperty
You can list any number of specific origins, separated by a comma. For example: https://www.example.com
, http://localhost:60905
.
Alternatively, you can grant access to all origins with the wildcard character ( *
).
getAllowOrigins
in interface CfnUrl.CorsProperty
public final java.util.List<java.lang.String> getExposeHeaders()
CfnUrl.CorsProperty
For example: Date
, Keep-Alive
, X-Custom-Header
.
getExposeHeaders
in interface CfnUrl.CorsProperty
public final java.lang.Number getMaxAge()
CfnUrl.CorsProperty
By default, this is set to 0
, which means the browser will not cache results.
getMaxAge
in interface CfnUrl.CorsProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()