Class: AWSCDK::Greengrass::CfnFunctionDefinitionVersion::DefaultConfigProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution:) ⇒ DefaultConfigProperty

Returns a new instance of DefaultConfigProperty.

Parameters:



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

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



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_jsiiObject



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