| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
GET /2015-03-31/functions/FunctionName?Qualifier=Qualifier HTTP/1.1
The request requires the following URI parameters.
** FunctionName ** The name of the Lambda function, version, or alias.
Name formats
** Qualifier **
Specify a version or alias to get details about a published version of the function.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: (|[a-zA-Z0-9$_-]+)
The request does not have a request body.
HTTP/1.1 200
Content-type: application/json
{
"[Code](#SSS-GetFunction-response-Code)": {
"[Location](API_FunctionCodeLocation.md#SSS-Type-FunctionCodeLocation-Location)": "string",
"[RepositoryType](API_FunctionCodeLocation.md#SSS-Type-FunctionCodeLocation-RepositoryType)": "string"
},
"[Concurrency](#SSS-GetFunction-response-Concurrency)": {
"[ReservedConcurrentExecutions](API_Concurrency.md#SSS-Type-Concurrency-ReservedConcurrentExecutions)": number
},
"[Configuration](#SSS-GetFunction-response-Configuration)": {
"[CodeSha256](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-CodeSha256)": "string",
"[CodeSize](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-CodeSize)": number,
"[DeadLetterConfig](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-DeadLetterConfig)": {
"[TargetArn](API_DeadLetterConfig.md#SSS-Type-DeadLetterConfig-TargetArn)": "string"
},
"[Description](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Description)": "string",
"[Environment](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Environment)": {
"[Error](API_EnvironmentResponse.md#SSS-Type-EnvironmentResponse-Error)": {
"[ErrorCode](API_EnvironmentError.md#SSS-Type-EnvironmentError-ErrorCode)": "string",
"[Message](API_EnvironmentError.md#SSS-Type-EnvironmentError-Message)": "string"
},
"[Variables](API_EnvironmentResponse.md#SSS-Type-EnvironmentResponse-Variables)": {
"string" : "string"
}
},
"[FunctionArn](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-FunctionArn)": "string",
"[FunctionName](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-FunctionName)": "string",
"[Handler](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Handler)": "string",
"[KMSKeyArn](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-KMSKeyArn)": "string",
"[LastModified](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-LastModified)": "string",
"[Layers](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Layers)": [
{
"[Arn](API_Layer.md#SSS-Type-Layer-Arn)": "string",
"[CodeSize](API_Layer.md#SSS-Type-Layer-CodeSize)": number
}
],
"[MasterArn](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-MasterArn)": "string",
"[MemorySize](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-MemorySize)": number,
"[RevisionId](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-RevisionId)": "string",
"[Role](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Role)": "string",
"[Runtime](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Runtime)": "string",
"[Timeout](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Timeout)": number,
"[TracingConfig](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-TracingConfig)": {
"[Mode](API_TracingConfigResponse.md#SSS-Type-TracingConfigResponse-Mode)": "string"
},
"[Version](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-Version)": "string",
"[VpcConfig](API_FunctionConfiguration.md#SSS-Type-FunctionConfiguration-VpcConfig)": {
"[SecurityGroupIds](API_VpcConfigResponse.md#SSS-Type-VpcConfigResponse-SecurityGroupIds)": [ "string" ],
"[SubnetIds](API_VpcConfigResponse.md#SSS-Type-VpcConfigResponse-SubnetIds)": [ "string" ],
"[VpcId](API_VpcConfigResponse.md#SSS-Type-VpcConfigResponse-VpcId)": "string"
}
},
"[Tags](#SSS-GetFunction-response-Tags)": {
"string" : "string"
}
}
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
** Code **
The deployment package of the function or version.
Type: FunctionCodeLocation object
** Concurrency **
The function's reserved concurrency.
Type: Concurrency object
** Configuration **
The configuration of the function or version.
Type: FunctionConfiguration object
** Tags **
The function's tags.
Type: String to string map
InvalidParameterValueException
One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration API, that AWS Lambda is unable to assume you will get this exception.
HTTP Status Code: 400
ResourceNotFoundException
The resource (for example, a Lambda function or access policy statement) specified in the request does not exist.
HTTP Status Code: 404
ServiceException
The AWS Lambda service encountered an internal error.
HTTP Status Code: 500
TooManyRequestsException
Request throughput limit exceeded.
HTTP Status Code: 429
For more information about using this API in one of the language-specific AWS SDKs, see the following:
| Back | FazBrowse Home | New Git URL |