Class: Aws::GreengrassV2::Types::LambdaFunctionRecipeSource

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb

Overview

Note:

When making an API call, you may pass LambdaFunctionRecipeSource data as a hash:

{
  lambda_arn: "LambdaFunctionARNWithVersionNumber", # required
  component_name: "ComponentNameString",
  component_version: "ComponentVersionString",
  component_platforms: [
    {
      name: "NonEmptyString",
      attributes: {
        "NonEmptyString" => "NonEmptyString",
      },
    },
  ],
  component_dependencies: {
    "NonEmptyString" => {
      version_requirement: "NonEmptyString",
      dependency_type: "HARD", # accepts HARD, SOFT
    },
  },
  component_lambda_parameters: {
    event_sources: [
      {
        topic: "TopicString", # required
        type: "PUB_SUB", # required, accepts PUB_SUB, IOT_CORE
      },
    ],
    max_queue_size: 1,
    max_instances_count: 1,
    max_idle_time_in_seconds: 1,
    timeout_in_seconds: 1,
    status_timeout_in_seconds: 1,
    pinned: false,
    input_payload_encoding_type: "json", # accepts json, binary
    exec_args: ["LambdaExecArg"],
    environment_variables: {
      "NonEmptyString" => "String",
    },
    linux_process_params: {
      isolation_mode: "GreengrassContainer", # accepts GreengrassContainer, NoContainer
      container_params: {
        memory_size_in_kb: 1,
        mount_ro_sysfs: false,
        volumes: [
          {
            source_path: "FileSystemPath", # required
            destination_path: "FileSystemPath", # required
            permission: "ro", # accepts ro, rw
            add_group_owner: false,
          },
        ],
        devices: [
          {
            path: "FileSystemPath", # required
            permission: "ro", # accepts ro, rw
            add_group_owner: false,
          },
        ],
      },
    },
  },
}

Contains information about an AWS Lambda function to import to create a component.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#component_dependenciesHash<String,Types::ComponentDependencyRequirement>

The component versions on which this Lambda function component depends.

Returns:



2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2459

class LambdaFunctionRecipeSource < Struct.new(
  :lambda_arn,
  :component_name,
  :component_version,
  :component_platforms,
  :component_dependencies,
  :component_lambda_parameters)
  SENSITIVE = []
  include Aws::Structure
end

#component_lambda_parametersTypes::LambdaExecutionParameters

The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.



2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2459

class LambdaFunctionRecipeSource < Struct.new(
  :lambda_arn,
  :component_name,
  :component_version,
  :component_platforms,
  :component_dependencies,
  :component_lambda_parameters)
  SENSITIVE = []
  include Aws::Structure
end

#component_nameString

The name of the component.

Defaults to the name of the Lambda function.

Returns:

  • (String)


2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2459

class LambdaFunctionRecipeSource < Struct.new(
  :lambda_arn,
  :component_name,
  :component_version,
  :component_platforms,
  :component_dependencies,
  :component_lambda_parameters)
  SENSITIVE = []
  include Aws::Structure
end

#component_platformsArray<Types::ComponentPlatform>

The platforms that the component version supports.

Returns:



2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2459

class LambdaFunctionRecipeSource < Struct.new(
  :lambda_arn,
  :component_name,
  :component_version,
  :component_platforms,
  :component_dependencies,
  :component_lambda_parameters)
  SENSITIVE = []
  include Aws::Structure
end

#component_versionString

The version of the component.

Defaults to the version of the Lambda function as a semantic version. For example, if your function version is 3, the component version becomes 3.0.0.

Returns:

  • (String)


2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2459

class LambdaFunctionRecipeSource < Struct.new(
  :lambda_arn,
  :component_name,
  :component_version,
  :component_platforms,
  :component_dependencies,
  :component_lambda_parameters)
  SENSITIVE = []
  include Aws::Structure
end

#lambda_arnString

The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like $LATEST.

Returns:

  • (String)


2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
# File 'gems/aws-sdk-greengrassv2/lib/aws-sdk-greengrassv2/types.rb', line 2459

class LambdaFunctionRecipeSource < Struct.new(
  :lambda_arn,
  :component_name,
  :component_version,
  :component_platforms,
  :component_dependencies,
  :component_lambda_parameters)
  SENSITIVE = []
  include Aws::Structure
end