listProvisionedConcurrencyConfigs method
Retrieves a list of provisioned concurrency configurations for a function.
May throw InvalidParameterValueException. 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 marker
:
Specify the pagination token that's returned by a previous request to
retrieve the next page of results.
Parameter maxItems
:
Specify a number to limit the number of configurations returned.
Implementation
Future<ListProvisionedConcurrencyConfigsResponse>
listProvisionedConcurrencyConfigs({
required String functionName,
String? marker,
int? maxItems,
}) async {
ArgumentError.checkNotNull(functionName, 'functionName');
_s.validateStringLength(
'functionName',
functionName,
1,
140,
isRequired: true,
);
_s.validateNumRange(
'maxItems',
maxItems,
1,
50,
);
final $query = <String, List<String>>{
if (marker != null) 'Marker': [marker],
if (maxItems != null) 'MaxItems': [maxItems.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2019-09-30/functions/${Uri.encodeComponent(functionName)}/provisioned-concurrency?List=ALL',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListProvisionedConcurrencyConfigsResponse.fromJson(response);
}