Lambda

lambda.function

class lambda.function
../_images/lambda_function.gv.png

Discovery Example:

>>> from cloudwanderer import CloudWanderer, ServiceResourceType
>>> from cloudwanderer.storage_connectors import GremlinStorageConnector
>>> cloud_wanderer = CloudWanderer(storage_connectors=[
...        GremlinStorageConnector(
...          endpoint_url="ws://localhost:8182",
...        )
...    ])
>>> cloud_wanderer.write_resources(
...     service_resource_types=[ServiceResourceType("lambda","function")]
... )

OpenCypher Example:

How to query resources of this type using OpenCypher in Neptune.

MATCH (function:aws_lambda_function)
RETURN *

Gremlin Example:

How to query resources of this type using Gremlin in Neptune/local Gremlin.

g.V().hasLabel('aws_lambda_function').out().path().by(valueMap(true))
architectures

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64 .

code_sha256

The SHA256 hash of the function’s deployment package.

code_size

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

dead_letter_config

The function’s dead letter queue.

description

The function’s description.

environment

The function’s environment variables .

file_system_configs

Connection settings for an Amazon EFS file system .

function_arn

The function’s Amazon Resource Name (ARN).

handler

The function that Lambda calls to begin executing your function.

image_config_response

The function’s image configuration values.

kms_key_arn

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 key.

last_modified

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

last_update_status

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

last_update_status_reason

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

last_update_status_reason_code

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

layers

The function’s layers .

master_arn

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

memory_size

The amount of memory available to the function at runtime.

package_type

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

revision_id

The latest updated revision of the function or alias.

role

The function’s execution role.

runtime

The runtime environment for the Lambda function.

signing_job_arn

The ARN of the signing job.

signing_profile_version_arn

The ARN of the signing profile version.

state

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

state_reason

The reason for the function’s current state.

state_reason_code

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

timeout

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

tracing_config

The function’s X-Ray tracing configuration.

version

The version of the Lambda function.

vpc_config

The function’s networking configuration.

lambda.function.function_alias

class lambda.function.function_alias

A subresource of lambda.function.

../_images/lambda_function_alias.gv.png

Discovery Example:

>>> from cloudwanderer import CloudWanderer, ServiceResourceType
>>> from cloudwanderer.storage_connectors import GremlinStorageConnector
>>> cloud_wanderer = CloudWanderer(storage_connectors=[
...        GremlinStorageConnector(
...          endpoint_url="ws://localhost:8182",
...        )
...    ])
>>> cloud_wanderer.write_resources(
...     service_resource_types=[ServiceResourceType("lambda","function_alias")]
... )

OpenCypher Example:

How to query resources of this type using OpenCypher in Neptune.

MATCH (function_alias:aws_lambda_function_alias)
RETURN *

Gremlin Example:

How to query resources of this type using Gremlin in Neptune/local Gremlin.

g.V().hasLabel('aws_lambda_function_alias').out().path().by(valueMap(true))
alias_arn

The Amazon Resource Name (ARN) of the alias.

description

A description of the alias.

function_version

The function version that the alias invokes.

revision_id

A unique identifier that changes when you update the alias.

routing_config

The routing configuration of the alias.

lambda.function.function_version

class lambda.function.function_version

A subresource of lambda.function.

../_images/lambda_function_version.gv.png

Discovery Example:

>>> from cloudwanderer import CloudWanderer, ServiceResourceType
>>> from cloudwanderer.storage_connectors import GremlinStorageConnector
>>> cloud_wanderer = CloudWanderer(storage_connectors=[
...        GremlinStorageConnector(
...          endpoint_url="ws://localhost:8182",
...        )
...    ])
>>> cloud_wanderer.write_resources(
...     service_resource_types=[ServiceResourceType("lambda","function_version")]
... )

OpenCypher Example:

How to query resources of this type using OpenCypher in Neptune.

MATCH (function_version:aws_lambda_function_version)
RETURN *

Gremlin Example:

How to query resources of this type using Gremlin in Neptune/local Gremlin.

g.V().hasLabel('aws_lambda_function_version').out().path().by(valueMap(true))
architectures

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64 .

code_sha256

The SHA256 hash of the function’s deployment package.

code_size

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

dead_letter_config

The function’s dead letter queue.

description

The function’s description.

environment

The function’s environment variables .

file_system_configs

Connection settings for an Amazon EFS file system .

function_arn

The function’s Amazon Resource Name (ARN).

handler

The function that Lambda calls to begin executing your function.

image_config_response

The function’s image configuration values.

kms_key_arn

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 key.

last_modified

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

last_update_status

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

last_update_status_reason

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

last_update_status_reason_code

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

layers

The function’s layers .

master_arn

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

memory_size

The amount of memory available to the function at runtime.

package_type

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

revision_id

The latest updated revision of the function or alias.

role

The function’s execution role.

runtime

The runtime environment for the Lambda function.

signing_job_arn

The ARN of the signing job.

signing_profile_version_arn

The ARN of the signing profile version.

state

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

state_reason

The reason for the function’s current state.

state_reason_code

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

timeout

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

tracing_config

The function’s X-Ray tracing configuration.

vpc_config

The function’s networking configuration.

lambda.layer

class lambda.layer
../_images/lambda_layer.gv.png

Discovery Example:

>>> from cloudwanderer import CloudWanderer, ServiceResourceType
>>> from cloudwanderer.storage_connectors import GremlinStorageConnector
>>> cloud_wanderer = CloudWanderer(storage_connectors=[
...        GremlinStorageConnector(
...          endpoint_url="ws://localhost:8182",
...        )
...    ])
>>> cloud_wanderer.write_resources(
...     service_resource_types=[ServiceResourceType("lambda","layer")]
... )

OpenCypher Example:

How to query resources of this type using OpenCypher in Neptune.

MATCH (layer:aws_lambda_layer)
RETURN *

Gremlin Example:

How to query resources of this type using Gremlin in Neptune/local Gremlin.

g.V().hasLabel('aws_lambda_layer').out().path().by(valueMap(true))
latest_matching_version

The newest version of the layer.

layer_arn

The Amazon Resource Name (ARN) of the function layer.

lambda.layer.layer_version

class lambda.layer.layer_version

A subresource of lambda.layer.

../_images/lambda_layer_version.gv.png

Discovery Example:

>>> from cloudwanderer import CloudWanderer, ServiceResourceType
>>> from cloudwanderer.storage_connectors import GremlinStorageConnector
>>> cloud_wanderer = CloudWanderer(storage_connectors=[
...        GremlinStorageConnector(
...          endpoint_url="ws://localhost:8182",
...        )
...    ])
>>> cloud_wanderer.write_resources(
...     service_resource_types=[ServiceResourceType("lambda","layer_version")]
... )

OpenCypher Example:

How to query resources of this type using OpenCypher in Neptune.

MATCH (layer_version:aws_lambda_layer_version)
RETURN *

Gremlin Example:

How to query resources of this type using Gremlin in Neptune/local Gremlin.

g.V().hasLabel('aws_lambda_layer_version').out().path().by(valueMap(true))
compatible_architectures

A list of compatible instruction set architectures .

compatible_runtimes

The layer’s compatible runtimes.

created_date

The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000 .

description

The description of the version.

layer_version_arn

The ARN of the layer version.

license_info

The layer’s open-source license.