listResolverEndpointIpAddresses method
Gets the IP addresses for a specified Resolver endpoint.
May throw ResourceNotFoundException. May throw InvalidParameterException. May throw InternalServiceErrorException. May throw InvalidNextTokenException. May throw ThrottlingException.
Parameter resolverEndpointId
:
The ID of the Resolver endpoint that you want to get IP addresses for.
Parameter maxResults
:
The maximum number of IP addresses that you want to return in the response
to a ListResolverEndpointIpAddresses
request. If you don't
specify a value for MaxResults
, Resolver returns up to 100 IP
addresses.
Parameter nextToken
:
For the first ListResolverEndpointIpAddresses
request, omit
this value.
If the specified Resolver endpoint has more than MaxResults
IP addresses, you can submit another
ListResolverEndpointIpAddresses
request to get the next group
of IP addresses. In the next request, specify the value of
NextToken
from the previous response.
Implementation
Future<ListResolverEndpointIpAddressesResponse>
listResolverEndpointIpAddresses({
required String resolverEndpointId,
int? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(resolverEndpointId, 'resolverEndpointId');
_s.validateStringLength(
'resolverEndpointId',
resolverEndpointId,
1,
64,
isRequired: true,
);
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.ListResolverEndpointIpAddresses'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResolverEndpointId': resolverEndpointId,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListResolverEndpointIpAddressesResponse.fromJson(jsonResponse.body);
}