Class: AWSCDK::Greengrass::CfnFunctionDefinition::FunctionDefinitionVersionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrass/cfn_function_definition.rb

Overview

A function definition version contains a list of functions.

After you create a function definition version that contains the functions you want to deploy, you must add it to your group version. For more information, see AWS::Greengrass::Group .

In an CloudFormation template, FunctionDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::FunctionDefinition resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(functions:, default_config: nil) ⇒ FunctionDefinitionVersionProperty

Returns a new instance of FunctionDefinitionVersionProperty.

Parameters:



876
877
878
879
880
881
# File 'greengrass/cfn_function_definition.rb', line 876

def initialize(functions:, default_config: nil)
  @functions = functions
  Jsii::Type.check_type(@functions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzcy5DZm5GdW5jdGlvbkRlZmluaXRpb24uRnVuY3Rpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "functions")
  @default_config = default_config.is_a?(Hash) ? ::AWSCDK::Greengrass::CfnFunctionDefinition::DefaultConfigProperty.new(**default_config.transform_keys(&:to_sym)) : default_config
  Jsii::Type.check_type(@default_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzLkNmbkZ1bmN0aW9uRGVmaW5pdGlvbi5EZWZhdWx0Q29uZmlnUHJvcGVydHkifV19fQ==")), "defaultConfig") unless @default_config.nil?
end

Instance Attribute Details

#default_configAWSCDK::IResolvable, ... (readonly)

The default configuration that applies to all Lambda functions in the group.

Individual Lambda functions can override these settings.



894
895
896
# File 'greengrass/cfn_function_definition.rb', line 894

def default_config
  @default_config
end

Class Method Details

.jsii_propertiesObject



896
897
898
899
900
901
# File 'greengrass/cfn_function_definition.rb', line 896

def self.jsii_properties
  {
    :functions => "functions",
    :default_config => "defaultConfig",
  }
end

Instance Method Details

#to_jsiiObject



903
904
905
906
907
908
909
910
# File 'greengrass/cfn_function_definition.rb', line 903

def to_jsii
  result = {}
  result.merge!({
    "functions" => @functions,
    "defaultConfig" => @default_config,
  })
  result.compact
end