describeUserPoolDomain method
Gets information about a domain.
May throw NotAuthorizedException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw InternalErrorException.
Parameter domain
:
The domain string.
Implementation
Future<DescribeUserPoolDomainResponse> describeUserPoolDomain({
required String domain,
}) async {
ArgumentError.checkNotNull(domain, 'domain');
_s.validateStringLength(
'domain',
domain,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSCognitoIdentityProviderService.DescribeUserPoolDomain'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Domain': domain,
},
);
return DescribeUserPoolDomainResponse.fromJson(jsonResponse.body);
}