Class Cors
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigateway.Cors
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.928Z")
@Stability(Stable)
public class Cors
extends software.amazon.jsii.JsiiObject
Example:
RestApi.Builder.create(this, "api") .defaultCorsPreflightOptions(CorsOptions.builder() .allowOrigins(Cors.ALL_ORIGINS) .allowMethods(Cors.ALL_METHODS) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionAll HTTP methods.All origins.The set of default headers allowed for CORS and useful for API Gateway. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
ALL_METHODS
All HTTP methods. -
ALL_ORIGINS
All origins. -
DEFAULT_HEADERS
The set of default headers allowed for CORS and useful for API Gateway.
-
-
Constructor Details
-
Cors
protected Cors(software.amazon.jsii.JsiiObjectRef objRef) -
Cors
protected Cors(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-