Menu
AWS Greengrass
API Reference

/greengrass/definition/functions/FunctionDefinitionId/versions/FunctionDefinitionVersionId

GET

GET /greengrass/definition/functions/FunctionDefinitionId/versions/FunctionDefinitionVersionId

Operation ID: GetFunctionDefinitionVersion

Retrieves information about a Lambda function definition version, including which Lambda functions are included in the version and their configurations.

Produces: application/json

Path Parameters

FunctionDefinitionId

The ID of the Lambda function definition.

where used: path; required: true

type: string

FunctionDefinitionVersionId

The ID of the function definition version.

where used: path; required: true

type: string

CLI

Copy
aws greengrass get-function-definition-version \ --function-definition-id <value> \ --function-definition-version-id <value> \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

Copy
{ "FunctionDefinitionId": "string", "FunctionDefinitionVersionId": "string" }

Responses

200

success

GetFunctionDefinitionVersionResponse

Copy
{ "Arn": "string", "Id": "string", "Version": "string", "CreationTimestamp": "string", "Definition": { "Functions": [ { "Id": "string", "FunctionArn": "string", "FunctionConfiguration": { "Pinned": true, "Executable": "string", "ExecArgs": "string", "MemorySize": 0, "Timeout": 0, "Environment": { "Variables": { "additionalProperty0": "string", "additionalProperty1": "string", "additionalProperty2": "string" }, "ResourceAccessPolicies": [ { "ResourceId": "string", "Permission": "ro|rw" } ], "AccessSysfs": true } } } ] } }
GetFunctionDefinitionVersionResponse

Information about a function definition version.

type: object

Arn

The ARN of the function definition version.

type: string

Id

The ID of the function definition version.

type: string

Version

The version of the function definition version.

type: string

CreationTimestamp

The time, in milliseconds since the epoch, when the function definition version was created.

type: string

Definition

Information about a function definition version.

type: object

Functions

A list of Lambda functions in this function definition version.

type: array

items: Function

Information about a Lambda function.

type: object

required: ["Id"]

Id

The ID of the Lambda function.

type: string

FunctionArn

The ARN of the Lambda function.

type: string

FunctionConfiguration

The configuration of the Lambda function.

type: object

Pinned

True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.

type: boolean

Executable

The name of the function executable.

type: string

ExecArgs

The execution arguments.

type: string

MemorySize

The memory size, in KB, which the function requires.

type: integer

Timeout

The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned lambdas for each request.

type: integer

Environment

The environment configuration of the function.

type: object

Variables

Environment variables for the Lambda function's configuration.

type: object

additionalProperties: "type"=>"string"

ResourceAccessPolicies

A list of the resources, with their permissions, to which the Lambda function will be granted access.

type: array

items: ResourceAccessPolicy

ResourceAccessPolicy

A policy used by the function to access a resource.

type: object

required: ["ResourceId"]

ResourceId

The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)

type: string

Permission

The type of permission a function has to access a resource.

type: string

enum: ["ro", "rw"]

AccessSysfs

If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda function needs to read device information from /sys.

type: boolean

400

invalid request

GeneralError

Copy
{ "Message": "string", "ErrorDetails": [ { "DetailedErrorCode": "string", "DetailedErrorMessage": "string" } ] }
GeneralError

General error information.

type: object

required: ["Message"]

Message

A message containing information about the error.

type: string

ErrorDetails

A list of error details.

type: array

items: ErrorDetail

ErrorDetail

Details about the error.

type: object

DetailedErrorCode

A detailed error code.

type: string

DetailedErrorMessage

A detailed error message.

type: string

On this page: