updateHostedZoneAssociation method
Updates the configuration of a hosted zone association.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter hostedZoneAssociationId :
The ID of the private hosted zone association.
Parameter name :
The name you want to update the hosted zone association to.
Implementation
Future<UpdateHostedZoneAssociationOutput> updateHostedZoneAssociation({
required String hostedZoneAssociationId,
String? name,
}) async {
final $payload = <String, dynamic>{
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/hosted-zone-associations/${Uri.encodeComponent(hostedZoneAssociationId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateHostedZoneAssociationOutput.fromJson(response);
}