Interface CfnHttpApi.CorsConfigurationObjectProperty

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

@Stability(Stable) public static interface CfnHttpApi.CorsConfigurationObjectProperty 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.*;
 CorsConfigurationObjectProperty corsConfigurationObjectProperty = CorsConfigurationObjectProperty.builder()
         .allowCredentials(false)
         .allowHeaders(List.of("allowHeaders"))
         .allowMethods(List.of("allowMethods"))
         .allowOrigins(List.of("allowOrigins"))
         .exposeHeaders(List.of("exposeHeaders"))
         .maxAge(123)
         .build();
 
  • Method Details

    • getAllowCredentials

      @Stability(Stable) @Nullable default Object getAllowCredentials()
      CfnHttpApi.CorsConfigurationObjectProperty.AllowCredentials.
    • getAllowHeaders

      @Stability(Stable) @Nullable default List<String> getAllowHeaders()
      CfnHttpApi.CorsConfigurationObjectProperty.AllowHeaders.
    • getAllowMethods

      @Stability(Stable) @Nullable default List<String> getAllowMethods()
      CfnHttpApi.CorsConfigurationObjectProperty.AllowMethods.
    • getAllowOrigins

      @Stability(Stable) @Nullable default List<String> getAllowOrigins()
      CfnHttpApi.CorsConfigurationObjectProperty.AllowOrigins.
    • getExposeHeaders

      @Stability(Stable) @Nullable default List<String> getExposeHeaders()
      CfnHttpApi.CorsConfigurationObjectProperty.ExposeHeaders.
    • getMaxAge

      @Stability(Stable) @Nullable default Number getMaxAge()
      CfnHttpApi.CorsConfigurationObjectProperty.MaxAge.
    • builder

      @Stability(Stable) static CfnHttpApi.CorsConfigurationObjectProperty.Builder builder()
      Returns:
      a CfnHttpApi.CorsConfigurationObjectProperty.Builder of CfnHttpApi.CorsConfigurationObjectProperty