Class: AWSCDK::SAM::CfnFunction::FunctionURLConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sam/cfn_function.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_type:, cors: nil, invoke_mode: nil) ⇒ FunctionURLConfigProperty

Returns a new instance of FunctionURLConfigProperty.

Parameters:



2000
2001
2002
2003
2004
2005
2006
2007
# File 'sam/cfn_function.rb', line 2000

def initialize(auth_type:, cors: nil, invoke_mode: nil)
  @auth_type = auth_type
  Jsii::Type.check_type(@auth_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authType")
  @cors = cors.is_a?(Hash) ? ::AWSCDK::SAM::CfnFunction::CorsConfigurationProperty.new(**cors.transform_keys(&:to_sym)) : cors
  Jsii::Type.check_type(@cors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2YWJsZSJ9LHsiZnFuIjoiYXdzLWNkay1saWIuYXdzX3NhbS5DZm5GdW5jdGlvbi5Db3JzQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "cors") unless @cors.nil?
  @invoke_mode = invoke_mode
  Jsii::Type.check_type(@invoke_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invokeMode") unless @invoke_mode.nil?
end

Instance Attribute Details

#auth_typeString (readonly)



2011
2012
2013
# File 'sam/cfn_function.rb', line 2011

def auth_type
  @auth_type
end

#invoke_modeString? (readonly)



2017
2018
2019
# File 'sam/cfn_function.rb', line 2017

def invoke_mode
  @invoke_mode
end

Class Method Details

.jsii_propertiesObject



2019
2020
2021
2022
2023
2024
2025
# File 'sam/cfn_function.rb', line 2019

def self.jsii_properties
  {
    :auth_type => "authType",
    :cors => "cors",
    :invoke_mode => "invokeMode",
  }
end

Instance Method Details

#to_jsiiObject



2027
2028
2029
2030
2031
2032
2033
2034
2035
# File 'sam/cfn_function.rb', line 2027

def to_jsii
  result = {}
  result.merge!({
    "authType" => @auth_type,
    "cors" => @cors,
    "invokeMode" => @invoke_mode,
  })
  result.compact
end