| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lambda.GetFunctionConcurrency
Description
Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
Synopsis
- data GetFunctionConcurrency = GetFunctionConcurrency' {
- functionName :: Text
- newGetFunctionConcurrency :: Text -> GetFunctionConcurrency
- getFunctionConcurrency_functionName :: Lens' GetFunctionConcurrency Text
- data GetFunctionConcurrencyResponse = GetFunctionConcurrencyResponse' {}
- newGetFunctionConcurrencyResponse :: Int -> GetFunctionConcurrencyResponse
- getFunctionConcurrencyResponse_reservedConcurrentExecutions :: Lens' GetFunctionConcurrencyResponse (Maybe Natural)
- getFunctionConcurrencyResponse_httpStatus :: Lens' GetFunctionConcurrencyResponse Int
Creating a Request
data GetFunctionConcurrency Source #
See: newGetFunctionConcurrency smart constructor.
Constructors
| GetFunctionConcurrency' | |
Fields
| |
Instances
newGetFunctionConcurrency Source #
Arguments
| :: Text | |
| -> GetFunctionConcurrency |
Create a value of GetFunctionConcurrency with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetFunctionConcurrency, getFunctionConcurrency_functionName - The name of the Lambda function.
Name formats
- Function name –
my-function. - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. - Partial ARN –
123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Request Lenses
getFunctionConcurrency_functionName :: Lens' GetFunctionConcurrency Text Source #
The name of the Lambda function.
Name formats
- Function name –
my-function. - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. - Partial ARN –
123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Destructuring the Response
data GetFunctionConcurrencyResponse Source #
See: newGetFunctionConcurrencyResponse smart constructor.
Constructors
| GetFunctionConcurrencyResponse' | |
Fields
| |
Instances
newGetFunctionConcurrencyResponse Source #
Create a value of GetFunctionConcurrencyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetFunctionConcurrencyResponse, getFunctionConcurrencyResponse_reservedConcurrentExecutions - The number of simultaneous executions that are reserved for the
function.
$sel:httpStatus:GetFunctionConcurrencyResponse', getFunctionConcurrencyResponse_httpStatus - The response's http status code.
Response Lenses
getFunctionConcurrencyResponse_reservedConcurrentExecutions :: Lens' GetFunctionConcurrencyResponse (Maybe Natural) Source #
The number of simultaneous executions that are reserved for the function.
getFunctionConcurrencyResponse_httpStatus :: Lens' GetFunctionConcurrencyResponse Int Source #
The response's http status code.