getVpcLinks method

Future<GetVpcLinksResponse> getVpcLinks({
  1. String? maxResults,
  2. String? nextToken,
})

Gets a collection of VPC links.

May throw BadRequestException. May throw TooManyRequestsException.

Parameter maxResults : The maximum number of elements to be returned for this resource.

Parameter nextToken : The next page of elements from this collection. Not valid for the last element of the collection.

Implementation

Future<GetVpcLinksResponse> getVpcLinks({
  String? maxResults,
  String? nextToken,
}) async {
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/vpclinks',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetVpcLinksResponse.fromJson(response);
}