Class: AWSCDK::Greengrass::CfnFunctionDefinitionVersion::DefaultConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnFunctionDefinitionVersion::DefaultConfigProperty
- Defined in:
- greengrass/cfn_function_definition_version.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 AWS::Greengrass::FunctionDefinitionVersion resource.
Instance Attribute Summary collapse
-
#execution ⇒ AWSCDK::IResolvable, AWSCDK::Greengrass::CfnFunctionDefinitionVersion::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.
535 536 537 538 |
# File 'greengrass/cfn_function_definition_version.rb', line 535 def initialize(execution:) @execution = execution.is_a?(Hash) ? ::AWSCDK::Greengrass::CfnFunctionDefinitionVersion::ExecutionProperty.new(**execution.transform_keys(&:to_sym)) : execution Jsii::Type.check_type(@execution, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzLkNmbkZ1bmN0aW9uRGVmaW5pdGlvblZlcnNpb24uRXhlY3V0aW9uUHJvcGVydHkifV19fQ==")), "execution") end |
Instance Attribute Details
#execution ⇒ AWSCDK::IResolvable, AWSCDK::Greengrass::CfnFunctionDefinitionVersion::ExecutionProperty (readonly)
Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.
544 545 546 |
# File 'greengrass/cfn_function_definition_version.rb', line 544 def execution @execution end |
Class Method Details
.jsii_properties ⇒ Object
546 547 548 549 550 |
# File 'greengrass/cfn_function_definition_version.rb', line 546 def self.jsii_properties { :execution => "execution", } end |
Instance Method Details
#to_jsii ⇒ Object
552 553 554 555 556 557 558 |
# File 'greengrass/cfn_function_definition_version.rb', line 552 def to_jsii result = {} result.merge!({ "execution" => @execution, }) result.compact end |