describeIpGroups method

Future<DescribeIpGroupsResult> describeIpGroups({
  1. List<String>? groupIds,
  2. int? maxResults,
  3. String? nextToken,
})

Describes one or more of your IP access control groups.

May throw InvalidParameterValuesException. May throw AccessDeniedException.

Parameter groupIds : The identifiers of one or more IP access control groups.

Parameter maxResults : The maximum number of items to return.

Parameter nextToken : If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Implementation

Future<DescribeIpGroupsResult> describeIpGroups({
  List<String>? groupIds,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    25,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    2048,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.DescribeIpGroups'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (groupIds != null) 'GroupIds': groupIds,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return DescribeIpGroupsResult.fromJson(jsonResponse.body);
}