listFunctionsByCodeSigningConfig method

Future<ListFunctionsByCodeSigningConfigResponse> listFunctionsByCodeSigningConfig({
  1. required String codeSigningConfigArn,
  2. String? marker,
  3. int? maxItems,
})

List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

May throw ServiceException. May throw InvalidParameterValueException. May throw ResourceNotFoundException.

Parameter codeSigningConfigArn : The The Amazon Resource Name (ARN) of the code signing configuration.

Parameter marker : Specify the pagination token that's returned by a previous request to retrieve the next page of results.

Parameter maxItems : Maximum number of items to return.

Implementation

Future<ListFunctionsByCodeSigningConfigResponse>
    listFunctionsByCodeSigningConfig({
  required String codeSigningConfigArn,
  String? marker,
  int? maxItems,
}) async {
  ArgumentError.checkNotNull(codeSigningConfigArn, 'codeSigningConfigArn');
  _s.validateStringLength(
    'codeSigningConfigArn',
    codeSigningConfigArn,
    0,
    200,
    isRequired: true,
  );
  _s.validateNumRange(
    'maxItems',
    maxItems,
    1,
    10000,
  );
  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:
        '/2020-04-22/code-signing-configs/${Uri.encodeComponent(codeSigningConfigArn)}/functions',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListFunctionsByCodeSigningConfigResponse.fromJson(response);
}