listProtectConfigurationRuleSetNumberOverrides method

Future<ListProtectConfigurationRuleSetNumberOverridesResult> listProtectConfigurationRuleSetNumberOverrides({
  1. required String protectConfigurationId,
  2. List<ProtectConfigurationRuleSetNumberOverrideFilterItem>? filters,
  3. int? maxResults,
  4. String? nextToken,
})

Retrieve all of the protect configuration rule set number overrides that match the filters.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter protectConfigurationId : The unique identifier for the protect configuration.

Parameter filters : An array of ProtectConfigurationRuleSetNumberOverrideFilterItem objects to filter the results.

Parameter maxResults : The maximum number of results to return per each request.

Parameter nextToken : The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Implementation

Future<ListProtectConfigurationRuleSetNumberOverridesResult>
    listProtectConfigurationRuleSetNumberOverrides({
  required String protectConfigurationId,
  List<ProtectConfigurationRuleSetNumberOverrideFilterItem>? filters,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'PinpointSMSVoiceV2.ListProtectConfigurationRuleSetNumberOverrides'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ProtectConfigurationId': protectConfigurationId,
      if (filters != null) 'Filters': filters,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListProtectConfigurationRuleSetNumberOverridesResult.fromJson(
      jsonResponse.body);
}