Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.
Synopsis
- data PutFunctionConcurrency = PutFunctionConcurrency' {}
- newPutFunctionConcurrency :: Text -> Natural -> PutFunctionConcurrency
- putFunctionConcurrency_functionName :: Lens' PutFunctionConcurrency Text
- putFunctionConcurrency_reservedConcurrentExecutions :: Lens' PutFunctionConcurrency Natural
- data Concurrency = Concurrency' {}
- newConcurrency :: Concurrency
- concurrency_reservedConcurrentExecutions :: Lens' Concurrency (Maybe Natural)
Creating a Request
data PutFunctionConcurrency Source #
See: newPutFunctionConcurrency
smart constructor.
PutFunctionConcurrency' | |
|
Instances
newPutFunctionConcurrency Source #
:: Text | |
-> Natural | |
-> PutFunctionConcurrency |
Create a value of PutFunctionConcurrency
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:
$sel:functionName:PutFunctionConcurrency'
, putFunctionConcurrency_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.
$sel:reservedConcurrentExecutions:PutFunctionConcurrency'
, putFunctionConcurrency_reservedConcurrentExecutions
- The number of simultaneous executions to reserve for the function.
Request Lenses
putFunctionConcurrency_functionName :: Lens' PutFunctionConcurrency 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.
putFunctionConcurrency_reservedConcurrentExecutions :: Lens' PutFunctionConcurrency Natural Source #
The number of simultaneous executions to reserve for the function.
Destructuring the Response
data Concurrency Source #
See: newConcurrency
smart constructor.
Concurrency' | |
|
Instances
newConcurrency :: Concurrency Source #
Create a value of Concurrency
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:
$sel:reservedConcurrentExecutions:Concurrency'
, concurrency_reservedConcurrentExecutions
- The number of concurrent executions that are reserved for this function.
For more information, see
Managing Concurrency.
Response Lenses
concurrency_reservedConcurrentExecutions :: Lens' Concurrency (Maybe Natural) Source #
The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.