getResolverEndpoint method
Gets information about a specified Resolver endpoint, such as whether it's an inbound or an outbound Resolver endpoint, and the current status of the endpoint.
May throw ResourceNotFoundException. May throw InvalidParameterException. May throw InternalServiceErrorException. May throw ThrottlingException.
Parameter resolverEndpointId
:
The ID of the Resolver endpoint that you want to get information about.
Implementation
Future<GetResolverEndpointResponse> getResolverEndpoint({
required String resolverEndpointId,
}) async {
ArgumentError.checkNotNull(resolverEndpointId, 'resolverEndpointId');
_s.validateStringLength(
'resolverEndpointId',
resolverEndpointId,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.GetResolverEndpoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResolverEndpointId': resolverEndpointId,
},
);
return GetResolverEndpointResponse.fromJson(jsonResponse.body);
}