getApiAssociation method

Future<GetApiAssociationResponse> getApiAssociation({
  1. required String domainName,
})

Retrieves an ApiAssociation object.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalFailureException. May throw NotFoundException.

Parameter domainName : The domain name.

Implementation

Future<GetApiAssociationResponse> getApiAssociation({
  required String domainName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/domainnames/${Uri.encodeComponent(domainName)}/apiassociation',
    exceptionFnMap: _exceptionFns,
  );
  return GetApiAssociationResponse.fromJson(response);
}