Class: AWSCDK::Greengrass::CfnFunctionDefinition::DefaultConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution:) ⇒ DefaultConfigProperty

Returns a new instance of DefaultConfigProperty.

Parameters:



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

#executionAWSCDK::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_propertiesObject



616
617
618
619
620
# File 'greengrass/cfn_function_definition.rb', line 616

def self.jsii_properties
  {
    :execution => "execution",
  }
end

Instance Method Details

#to_jsiiObject



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