Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Lambda::Types::FunctionConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#code_sha_256String

The SHA256 hash of the function\'s deployment package.

Returns:

  • (String)

    The SHA256 hash of the function\'s deployment package.

#code_sizeInteger

The size of the function\'s deployment package, in bytes.

Returns:

  • (Integer)

    The size of the function\'s deployment package, in bytes.

#dead_letter_configTypes::DeadLetterConfig

The function\'s dead letter queue.

Returns:

#descriptionString

The function\'s description.

Returns:

  • (String)

    The function\'s description.

#environmentTypes::EnvironmentResponse

The function\'s environment variables.

Returns:

#file_system_configsArray<Types::FileSystemConfig>

Connection settings for an Amazon EFS file system.

Returns:

#function_arnString

The function\'s Amazon Resource Name (ARN).

Returns:

  • (String)

    The function\'s Amazon Resource Name (ARN).

#function_nameString

The name of the function.

Returns:

  • (String)

    The name of the function.

#handlerString

The function that Lambda calls to begin executing your function.

Returns:

  • (String)

    The function that Lambda calls to begin executing your function.

#kms_key_arnString

The KMS key that\'s used to encrypt the function\'s environment variables. This key is only returned if you\'ve configured a customer managed CMK.

Returns:

  • (String)

    The KMS key that\'s used to encrypt the function\'s environment variables.

#last_modifiedTime

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Returns:

  • (Time)

    The date and time that the function was last updated, in [ISO-8601 format][1] (YYYY-MM-DDThh:mm:ss.sTZD).

#last_update_statusString

The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

Possible values:

  • Successful
  • Failed
  • InProgress

Returns:

  • (String)

    The status of the last update that was performed on the function.

#last_update_status_reasonString

The reason for the last update that was performed on the function.

Returns:

  • (String)

    The reason for the last update that was performed on the function.

#last_update_status_reason_codeString

The reason code for the last update that was performed on the function.

Possible values:

  • EniLimitExceeded
  • InsufficientRolePermissions
  • InvalidConfiguration
  • InternalError
  • SubnetOutOfIPAddresses
  • InvalidSubnet
  • InvalidSecurityGroup

Returns:

  • (String)

    The reason code for the last update that was performed on the function.

#layersArray<Types::Layer>

The function\'s layers.

Returns:

#master_arnString

For Lambda@Edge functions, the ARN of the master function.

Returns:

  • (String)

    For Lambda@Edge functions, the ARN of the master function.

#memory_sizeInteger

The memory that\'s allocated to the function.

Returns:

  • (Integer)

    The memory that\'s allocated to the function.

#revision_idString

The latest updated revision of the function or alias.

Returns:

  • (String)

    The latest updated revision of the function or alias.

#roleString

The function\'s execution role.

Returns:

  • (String)

    The function\'s execution role.

#runtimeString

The runtime environment for the Lambda function.

Possible values:

  • nodejs
  • nodejs4.3
  • nodejs6.10
  • nodejs8.10
  • nodejs10.x
  • nodejs12.x
  • java8
  • java8.al2
  • java11
  • python2.7
  • python3.6
  • python3.7
  • python3.8
  • dotnetcore1.0
  • dotnetcore2.0
  • dotnetcore2.1
  • dotnetcore3.1
  • nodejs4.3-edge
  • go1.x
  • ruby2.5
  • ruby2.7
  • provided
  • provided.al2

Returns:

  • (String)

    The runtime environment for the Lambda function.

#stateString

The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

Possible values:

  • Pending
  • Active
  • Inactive
  • Failed

Returns:

  • (String)

    The current state of the function.

#state_reasonString

The reason for the function\'s current state.

Returns:

  • (String)

    The reason for the function\'s current state.

#state_reason_codeString

The reason code for the function\'s current state. When the code is Creating, you can\'t invoke or modify the function.

Possible values:

  • Idle
  • Creating
  • Restoring
  • EniLimitExceeded
  • InsufficientRolePermissions
  • InvalidConfiguration
  • InternalError
  • SubnetOutOfIPAddresses
  • InvalidSubnet
  • InvalidSecurityGroup

Returns:

  • (String)

    The reason code for the function\'s current state.

#timeoutInteger

The amount of time in seconds that Lambda allows a function to run before stopping it.

Returns:

  • (Integer)

    The amount of time in seconds that Lambda allows a function to run before stopping it.

#tracing_configTypes::TracingConfigResponse

The function\'s AWS X-Ray tracing configuration.

Returns:

#versionString

The version of the Lambda function.

Returns:

  • (String)

    The version of the Lambda function.

#vpc_configTypes::VpcConfigResponse

The function\'s networking configuration.

Returns: