deleteProvisionedConcurrencyConfig method
Deletes the provisioned concurrency configuration for a function.
May throw InvalidParameterValueException. May throw ResourceConflictException. May throw ResourceNotFoundException. May throw TooManyRequestsException. May throw ServiceException.
Parameter 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
.
Parameter qualifier
:
The version number or alias name.
Implementation
Future<void> deleteProvisionedConcurrencyConfig({
required String functionName,
required String qualifier,
}) async {
ArgumentError.checkNotNull(functionName, 'functionName');
_s.validateStringLength(
'functionName',
functionName,
1,
140,
isRequired: true,
);
ArgumentError.checkNotNull(qualifier, 'qualifier');
_s.validateStringLength(
'qualifier',
qualifier,
1,
128,
isRequired: true,
);
final $query = <String, List<String>>{
'Qualifier': [qualifier],
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2019-09-30/functions/${Uri.encodeComponent(functionName)}/provisioned-concurrency',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}