Class: AWSCDK::SAM::CfnFunction::FunctionURLConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::FunctionURLConfigProperty
- Defined in:
- sam/cfn_function.rb
Overview
Instance Attribute Summary collapse
- #auth_type ⇒ String readonly
- #cors ⇒ String, ... readonly
- #invoke_mode ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth_type:, cors: nil, invoke_mode: nil) ⇒ FunctionURLConfigProperty
constructor
A new instance of FunctionURLConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auth_type:, cors: nil, invoke_mode: nil) ⇒ FunctionURLConfigProperty
Returns a new instance of FunctionURLConfigProperty.
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_type ⇒ String (readonly)
2011 2012 2013 |
# File 'sam/cfn_function.rb', line 2011 def auth_type @auth_type end |
#cors ⇒ String, ... (readonly)
2014 2015 2016 |
# File 'sam/cfn_function.rb', line 2014 def cors @cors end |
#invoke_mode ⇒ String? (readonly)
2017 2018 2019 |
# File 'sam/cfn_function.rb', line 2017 def invoke_mode @invoke_mode end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |