Class: Aws::Greengrass::Types::CreateFunctionDefinitionVersionRequest

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

Overview

Note:

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

{
  amzn_client_token: "__string",
  default_config: {
    execution: {
      isolation_mode: "GreengrassContainer", # accepts GreengrassContainer, NoContainer
      run_as: {
        gid: 1,
        uid: 1,
      },
    },
  },
  function_definition_id: "__string", # required
  functions: [
    {
      function_arn: "__string",
      function_configuration: {
        encoding_type: "binary", # accepts binary, json
        environment: {
          access_sysfs: false,
          execution: {
            isolation_mode: "GreengrassContainer", # accepts GreengrassContainer, NoContainer
            run_as: {
              gid: 1,
              uid: 1,
            },
          },
          resource_access_policies: [
            {
              permission: "ro", # accepts ro, rw
              resource_id: "__string", # required
            },
          ],
          variables: {
            "__string" => "__string",
          },
        },
        exec_args: "__string",
        executable: "__string",
        memory_size: 1,
        pinned: false,
        timeout: 1,
      },
      id: "__string", # required
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#amzn_client_tokenString

Returns:

  • (String)


1051
1052
1053
1054
1055
1056
1057
1058
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1051

class CreateFunctionDefinitionVersionRequest < Struct.new(
  :amzn_client_token,
  :default_config,
  :function_definition_id,
  :functions)
  SENSITIVE = []
  include Aws::Structure
end

#default_configTypes::FunctionDefaultConfig

The default configuration that applies to all Lambda functions in the group. Individual Lambda functions can override these settings.



1051
1052
1053
1054
1055
1056
1057
1058
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1051

class CreateFunctionDefinitionVersionRequest < Struct.new(
  :amzn_client_token,
  :default_config,
  :function_definition_id,
  :functions)
  SENSITIVE = []
  include Aws::Structure
end

#function_definition_idString

Returns:

  • (String)


1051
1052
1053
1054
1055
1056
1057
1058
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1051

class CreateFunctionDefinitionVersionRequest < Struct.new(
  :amzn_client_token,
  :default_config,
  :function_definition_id,
  :functions)
  SENSITIVE = []
  include Aws::Structure
end

#functionsArray<Types::Function>

Returns:



1051
1052
1053
1054
1055
1056
1057
1058
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1051

class CreateFunctionDefinitionVersionRequest < Struct.new(
  :amzn_client_token,
  :default_config,
  :function_definition_id,
  :functions)
  SENSITIVE = []
  include Aws::Structure
end