disassociateHostedZone method
Disassociates a Route 53 private hosted zone from a Route 53 Global Resolver resource.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter hostedZoneId :
The ID of the Route 53 private hosted zone to disassociate.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the Route 53 Global Resolver resource to
disassociate the hosted zone from.
Implementation
Future<DisassociateHostedZoneOutput> disassociateHostedZone({
required String hostedZoneId,
required String resourceArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/hosted-zone-associations/hosted-zone/${Uri.encodeComponent(hostedZoneId)}/resource-arn/${resourceArn.split('/').map(Uri.encodeComponent).join('/')}',
exceptionFnMap: _exceptionFns,
);
return DisassociateHostedZoneOutput.fromJson(response);
}