deleteResolverEndpoint method
Future<DeleteResolverEndpointResponse>
deleteResolverEndpoint({
- required String resolverEndpointId,
Deletes a Resolver endpoint. The effect of deleting a Resolver endpoint depends on whether it's an inbound or an outbound Resolver endpoint:
- Inbound: DNS queries from your network are no longer routed to the DNS service for the specified VPC.
- Outbound: DNS queries from a VPC are no longer routed to your network.
May throw ResourceNotFoundException. May throw InvalidParameterException. May throw InvalidRequestException. May throw InternalServiceErrorException. May throw ThrottlingException.
Parameter resolverEndpointId
:
The ID of the Resolver endpoint that you want to delete.
Implementation
Future<DeleteResolverEndpointResponse> deleteResolverEndpoint({
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.DeleteResolverEndpoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResolverEndpointId': resolverEndpointId,
},
);
return DeleteResolverEndpointResponse.fromJson(jsonResponse.body);
}