describeDomain method

Future<DescribeDomainResponse> describeDomain({
  1. required String domainName,
  2. required String fleetArn,
})

Provides information about the domain.

May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter domainName : The name of the domain.

Parameter fleetArn : The ARN of the fleet.

Implementation

Future<DescribeDomainResponse> describeDomain({
  required String domainName,
  required String fleetArn,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    1,
    253,
    isRequired: true,
  );
  ArgumentError.checkNotNull(fleetArn, 'fleetArn');
  _s.validateStringLength(
    'fleetArn',
    fleetArn,
    20,
    2048,
    isRequired: true,
  );
  final $payload = <String, dynamic>{
    'DomainName': domainName,
    'FleetArn': fleetArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/describeDomain',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeDomainResponse.fromJson(response);
}