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.94.0 (build b380f01)", date="2024-02-23T02:06:27.474Z") @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

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
    All HTTP methods.
    static final List<String>
    All origins.
    static final List<String>
    The set of default headers allowed for CORS and useful for API Gateway.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Cors(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Cors(software.amazon.jsii.JsiiObjectRef objRef)
     
  • 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

      @Stability(Stable) public static final List<String> ALL_METHODS
      All HTTP methods.
    • ALL_ORIGINS

      @Stability(Stable) public static final List<String> ALL_ORIGINS
      All origins.
    • DEFAULT_HEADERS

      @Stability(Stable) public static final List<String> 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)