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 |
Adds a provisioned concurrency configuration to a function's alias or version.
Synopsis
- data PutProvisionedConcurrencyConfig = PutProvisionedConcurrencyConfig' {}
- newPutProvisionedConcurrencyConfig :: Text -> Text -> Natural -> PutProvisionedConcurrencyConfig
- putProvisionedConcurrencyConfig_functionName :: Lens' PutProvisionedConcurrencyConfig Text
- putProvisionedConcurrencyConfig_qualifier :: Lens' PutProvisionedConcurrencyConfig Text
- putProvisionedConcurrencyConfig_provisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfig Natural
- data PutProvisionedConcurrencyConfigResponse = PutProvisionedConcurrencyConfigResponse' {}
- newPutProvisionedConcurrencyConfigResponse :: Int -> PutProvisionedConcurrencyConfigResponse
- putProvisionedConcurrencyConfigResponse_status :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe ProvisionedConcurrencyStatusEnum)
- putProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Natural)
- putProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Natural)
- putProvisionedConcurrencyConfigResponse_statusReason :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Text)
- putProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Natural)
- putProvisionedConcurrencyConfigResponse_lastModified :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Text)
- putProvisionedConcurrencyConfigResponse_httpStatus :: Lens' PutProvisionedConcurrencyConfigResponse Int
Creating a Request
data PutProvisionedConcurrencyConfig Source #
See: newPutProvisionedConcurrencyConfig
smart constructor.
PutProvisionedConcurrencyConfig' | |
|
Instances
newPutProvisionedConcurrencyConfig Source #
:: Text | |
-> Text | |
-> Natural |
|
-> PutProvisionedConcurrencyConfig |
Create a value of PutProvisionedConcurrencyConfig
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:PutProvisionedConcurrencyConfig'
, putProvisionedConcurrencyConfig_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:qualifier:PutProvisionedConcurrencyConfig'
, putProvisionedConcurrencyConfig_qualifier
- The version number or alias name.
$sel:provisionedConcurrentExecutions:PutProvisionedConcurrencyConfig'
, putProvisionedConcurrencyConfig_provisionedConcurrentExecutions
- The amount of provisioned concurrency to allocate for the version or
alias.
Request Lenses
putProvisionedConcurrencyConfig_functionName :: Lens' PutProvisionedConcurrencyConfig 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.
putProvisionedConcurrencyConfig_qualifier :: Lens' PutProvisionedConcurrencyConfig Text Source #
The version number or alias name.
putProvisionedConcurrencyConfig_provisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfig Natural Source #
The amount of provisioned concurrency to allocate for the version or alias.
Destructuring the Response
data PutProvisionedConcurrencyConfigResponse Source #
See: newPutProvisionedConcurrencyConfigResponse
smart constructor.
PutProvisionedConcurrencyConfigResponse' | |
|
Instances
newPutProvisionedConcurrencyConfigResponse Source #
Create a value of PutProvisionedConcurrencyConfigResponse
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:status:PutProvisionedConcurrencyConfigResponse'
, putProvisionedConcurrencyConfigResponse_status
- The status of the allocation process.
$sel:requestedProvisionedConcurrentExecutions:PutProvisionedConcurrencyConfigResponse'
, putProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions
- The amount of provisioned concurrency requested.
$sel:availableProvisionedConcurrentExecutions:PutProvisionedConcurrencyConfigResponse'
, putProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions
- The amount of provisioned concurrency available.
$sel:statusReason:PutProvisionedConcurrencyConfigResponse'
, putProvisionedConcurrencyConfigResponse_statusReason
- For failed allocations, the reason that provisioned concurrency could
not be allocated.
$sel:allocatedProvisionedConcurrentExecutions:PutProvisionedConcurrencyConfigResponse'
, putProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions
- The amount of provisioned concurrency allocated.
$sel:lastModified:PutProvisionedConcurrencyConfigResponse'
, putProvisionedConcurrencyConfigResponse_lastModified
- The date and time that a user last updated the configuration, in
ISO 8601 format.
$sel:httpStatus:PutProvisionedConcurrencyConfigResponse'
, putProvisionedConcurrencyConfigResponse_httpStatus
- The response's http status code.
Response Lenses
putProvisionedConcurrencyConfigResponse_status :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe ProvisionedConcurrencyStatusEnum) Source #
The status of the allocation process.
putProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Natural) Source #
The amount of provisioned concurrency requested.
putProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Natural) Source #
The amount of provisioned concurrency available.
putProvisionedConcurrencyConfigResponse_statusReason :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Text) Source #
For failed allocations, the reason that provisioned concurrency could not be allocated.
putProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Natural) Source #
The amount of provisioned concurrency allocated.
putProvisionedConcurrencyConfigResponse_lastModified :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Text) Source #
The date and time that a user last updated the configuration, in ISO 8601 format.
putProvisionedConcurrencyConfigResponse_httpStatus :: Lens' PutProvisionedConcurrencyConfigResponse Int Source #
The response's http status code.