getDomainAssociation method
Returns the domain information for an Amplify app.
May throw BadRequestException.
May throw InternalFailureException.
May throw NotFoundException.
May throw UnauthorizedException.
Parameter appId :
The unique id for an Amplify app.
Parameter domainName :
The name of the domain.
Implementation
Future<GetDomainAssociationResult> getDomainAssociation({
required String appId,
required String domainName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/apps/${Uri.encodeComponent(appId)}/domains/${Uri.encodeComponent(domainName)}',
exceptionFnMap: _exceptionFns,
);
return GetDomainAssociationResult.fromJson(response);
}