getProvisionedConcurrencyConfig method

Future<GetProvisionedConcurrencyConfigResponse> getProvisionedConcurrencyConfig({
  1. required String functionName,
  2. required String qualifier,
})

Retrieves the provisioned concurrency configuration for a function's alias or version.

May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw TooManyRequestsException. May throw ServiceException. May throw ProvisionedConcurrencyConfigNotFoundException.

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.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Parameter qualifier : The version number or alias name.

Implementation

Future<GetProvisionedConcurrencyConfigResponse>
    getProvisionedConcurrencyConfig({
  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],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2019-09-30/functions/${Uri.encodeComponent(functionName)}/provisioned-concurrency',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetProvisionedConcurrencyConfigResponse.fromJson(response);
}