restoreDomainAccess method
Moves a domain to ACTIVE status if it was in the INACTIVE status.
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<void> restoreDomainAccess({
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: '/restoreDomainAccess',
exceptionFnMap: _exceptionFns,
);
}