get_function¶
Operation¶
get_function
¶
get_function(request: GetFunctionInput | GetFunctionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetFunctionInputDict]) -> GetFunctionOutput
Returns information about a Lambda Event 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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
GetFunctionInput | GetFunctionInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[GetFunctionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
GetFunctionOutput
|
An instance of |
get_function
async
¶
get_function(request: GetFunctionInput | GetFunctionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetFunctionInputDict]) -> GetFunctionOutput
Returns information about a Lambda Event 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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
GetFunctionInput | GetFunctionInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[GetFunctionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
GetFunctionOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
GetFunctionInputDict
¶
Bases: TypedDict
Dictionary form of GetFunctionInput.
Attributes¶
function_name
instance-attribute
¶
The name or ARN of the Lambda function, version, or alias.
Name formats
-
Function name --
my-function(name-only),my-function:v1(with alias). -
Function ARN --
arn:aws:lambda:us-west-2:123456789012:function:my-function. -
Partial ARN --
123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
GetFunctionInput
dataclass
¶
Bases: _SerdeShape
Dataclass for GetFunctionInput structure.
Attributes¶
function_name
class-attribute
instance-attribute
¶
function_name: str | None = ...
The name or ARN of the Lambda function, version, or alias.
Name formats
-
Function name --
my-function(name-only),my-function:v1(with alias). -
Function ARN --
arn:aws:lambda:us-west-2:123456789012:function:my-function. -
Partial ARN --
123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Output¶
GetFunctionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for GetFunctionOutput structure.
Attributes¶
code
class-attribute
instance-attribute
¶
code: FunctionCodeLocation | None = ...
The deployment package of the function or version.
concurrency
class-attribute
instance-attribute
¶
concurrency: Concurrency | None = ...
The function's reserved concurrency.
configuration
class-attribute
instance-attribute
¶
configuration: FunctionConfiguration | None = ...
The configuration of the function or version.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.
tags
class-attribute
instance-attribute
¶
The function's tags. Lambda returns tag data only if you have explicit allow permissions for lambda:ListTags.