Class: AWSCDK::Greengrass::CfnFunctionDefinition::DefaultConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnFunctionDefinition::DefaultConfigProperty
- Defined in:
- greengrass/cfn_function_definition.rb
Overview
The default configuration that applies to all Lambda functions in the function definition version.
Individual Lambda functions can override these settings.
In an CloudFormation template, DefaultConfig is a property of the FunctionDefinitionVersion property type.
Instance Attribute Summary collapse
-
#execution ⇒ AWSCDK::IResolvable, AWSCDK::Greengrass::CfnFunctionDefinition::ExecutionProperty
readonly
Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(execution:) ⇒ DefaultConfigProperty
constructor
A new instance of DefaultConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(execution:) ⇒ DefaultConfigProperty
Returns a new instance of DefaultConfigProperty.
605 606 607 608 |
# File 'greengrass/cfn_function_definition.rb', line 605 def initialize(execution:) @execution = execution.is_a?(Hash) ? ::AWSCDK::Greengrass::CfnFunctionDefinition::ExecutionProperty.new(**execution.transform_keys(&:to_sym)) : execution Jsii::Type.check_type(@execution, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzLkNmbkZ1bmN0aW9uRGVmaW5pdGlvbi5FeGVjdXRpb25Qcm9wZXJ0eSJ9XX19")), "execution") end |
Instance Attribute Details
#execution ⇒ AWSCDK::IResolvable, AWSCDK::Greengrass::CfnFunctionDefinition::ExecutionProperty (readonly)
Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.
614 615 616 |
# File 'greengrass/cfn_function_definition.rb', line 614 def execution @execution end |
Class Method Details
.jsii_properties ⇒ Object
616 617 618 619 620 |
# File 'greengrass/cfn_function_definition.rb', line 616 def self.jsii_properties { :execution => "execution", } end |
Instance Method Details
#to_jsii ⇒ Object
622 623 624 625 626 627 628 |
# File 'greengrass/cfn_function_definition.rb', line 622 def to_jsii result = {} result.merge!({ "execution" => @execution, }) result.compact end |