updateSite method
Updates the specified site.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw NotFoundException.
May throw ValidationException.
Parameter siteId :
The ID or the Amazon Resource Name (ARN) of the site.
Parameter notes :
Notes about a site.
Implementation
Future<UpdateSiteOutput> updateSite({
required String siteId,
String? description,
String? name,
String? notes,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
if (notes != null) 'Notes': notes,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/sites/${Uri.encodeComponent(siteId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateSiteOutput.fromJson(response);
}