list_function_definition_versions

list_function_definition_versions(**kwargs)

Lists the versions of a Lambda function definition.

See also: AWS API Documentation

Request Syntax

response = client.list_function_definition_versions(
    FunctionDefinitionId='string',
    MaxResults='string',
    NextToken='string'
)
Parameters
  • FunctionDefinitionId (string) -- [REQUIRED] The ID of the Lambda function definition.
  • MaxResults (string) -- The maximum number of results to be returned per request.
  • NextToken (string) -- The token for the next set of results, or ''null'' if there are no additional results.
Return type

dict

Returns

Response Syntax

{
    'NextToken': 'string',
    'Versions': [
        {
            'Arn': 'string',
            'CreationTimestamp': 'string',
            'Id': 'string',
            'Version': 'string'
        },
    ]
}

Response Structure

  • (dict) -- success
    • NextToken (string) -- The token for the next set of results, or ''null'' if there are no additional results.
    • Versions (list) -- Information about a version.
      • (dict) -- Information about a version.
        • Arn (string) -- The ARN of the version.
        • CreationTimestamp (string) -- The time, in milliseconds since the epoch, when the version was created.
        • Id (string) -- The ID of the parent definition that the version is associated with.
        • Version (string) -- The ID of the version.

Exceptions

  • Greengrass.Client.exceptions.BadRequestException