Interface CfnApi.CorsConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnApi.CorsConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnApi

@Stability(Stable) public static interface CfnApi.CorsConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.sam.*;
 CorsConfigurationProperty corsConfigurationProperty = CorsConfigurationProperty.builder()
         .allowOrigin("allowOrigin")
         // the properties below are optional
         .allowCredentials(false)
         .allowHeaders("allowHeaders")
         .allowMethods("allowMethods")
         .maxAge("maxAge")
         .build();
 
  • Method Details

    • getAllowOrigin

      @Stability(Stable) @NotNull String getAllowOrigin()
      CfnApi.CorsConfigurationProperty.AllowOrigin.
    • getAllowCredentials

      @Stability(Stable) @Nullable default Object getAllowCredentials()
      CfnApi.CorsConfigurationProperty.AllowCredentials.
    • getAllowHeaders

      @Stability(Stable) @Nullable default String getAllowHeaders()
      CfnApi.CorsConfigurationProperty.AllowHeaders.
    • getAllowMethods

      @Stability(Stable) @Nullable default String getAllowMethods()
      CfnApi.CorsConfigurationProperty.AllowMethods.
    • getMaxAge

      @Stability(Stable) @Nullable default String getMaxAge()
      CfnApi.CorsConfigurationProperty.MaxAge.
    • builder

      @Stability(Stable) static CfnApi.CorsConfigurationProperty.Builder builder()
      Returns:
      a CfnApi.CorsConfigurationProperty.Builder of CfnApi.CorsConfigurationProperty