Class CfnUrl.CorsProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.CfnUrl.CorsProperty.Jsii$Proxy
All Implemented Interfaces:
CfnUrl.CorsProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnUrl.CorsProperty

@Stability(Stable) @Internal public static final class CfnUrl.CorsProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnUrl.CorsProperty
An implementation for CfnUrl.CorsProperty
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.CfnUrl.CorsProperty

    CfnUrl.CorsProperty.Builder, CfnUrl.CorsProperty.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the CfnUrl.CorsProperty.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final Object
    Whether you want to allow cookies or other credentials in requests to your function URL.
    final List<String>
    The HTTP headers that origins can include in requests to your function URL.
    final List<String>
    The HTTP methods that are allowed when calling your function URL.
    final List<String>
    The origins that can access your function URL.
    final List<String>
    The HTTP headers in your function response that you want to expose to origins that call your function URL.
    final Number
    The maximum amount of time, in seconds, that browsers can cache results of a preflight request.
    final int
     

    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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnUrl.CorsProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnUrl.CorsProperty.Builder.
  • Method Details

    • getAllowCredentials

      public final Object getAllowCredentials()
      Description copied from interface: CfnUrl.CorsProperty
      Whether you want to allow cookies or other credentials in requests to your function URL.

      The default is false .

      Specified by:
      getAllowCredentials in interface CfnUrl.CorsProperty
    • getAllowHeaders

      public final List<String> getAllowHeaders()
      Description copied from interface: CfnUrl.CorsProperty
      The HTTP headers that origins can include in requests to your function URL.

      For example: Date , Keep-Alive , X-Custom-Header .

      Specified by:
      getAllowHeaders in interface CfnUrl.CorsProperty
    • getAllowMethods

      public final List<String> getAllowMethods()
      Description copied from interface: CfnUrl.CorsProperty
      The HTTP methods that are allowed when calling your function URL.

      For example: GET , POST , DELETE , or the wildcard character ( * ).

      Specified by:
      getAllowMethods in interface CfnUrl.CorsProperty
    • getAllowOrigins

      public final List<String> getAllowOrigins()
      Description copied from interface: CfnUrl.CorsProperty
      The origins that can access your function URL.

      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 ( * ).

      Specified by:
      getAllowOrigins in interface CfnUrl.CorsProperty
    • getExposeHeaders

      public final List<String> getExposeHeaders()
      Description copied from interface: CfnUrl.CorsProperty
      The HTTP headers in your function response that you want to expose to origins that call your function URL.

      For example: Date , Keep-Alive , X-Custom-Header .

      Specified by:
      getExposeHeaders in interface CfnUrl.CorsProperty
    • getMaxAge

      public final Number getMaxAge()
      Description copied from interface: CfnUrl.CorsProperty
      The maximum amount of time, in seconds, that browsers can cache results of a preflight request.

      By default, this is set to 0 , which means the browser will not cache results.

      Specified by:
      getMaxAge in interface CfnUrl.CorsProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object