getSiteAddress method

Future<GetSiteAddressOutput> getSiteAddress({
  1. required AddressType addressType,
  2. required String siteId,
})

Gets the site address of the specified site.

May throw AccessDeniedException. May throw InternalServerException. May throw NotFoundException. May throw ValidationException.

Parameter addressType : The type of the address you request.

Parameter siteId : The ID or the Amazon Resource Name (ARN) of the site.

Implementation

Future<GetSiteAddressOutput> getSiteAddress({
  required AddressType addressType,
  required String siteId,
}) async {
  final $query = <String, List<String>>{
    'AddressType': [addressType.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/sites/${Uri.encodeComponent(siteId)}/address',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetSiteAddressOutput.fromJson(response);
}