disassociateDomain method

Future<void> disassociateDomain({
  1. required String domainName,
  2. required String fleetArn,
})

Disassociates a domain from Amazon WorkLink. End users lose the ability to access the domain with Amazon WorkLink.

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> disassociateDomain({
  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: '/disassociateDomain',
    exceptionFnMap: _exceptionFns,
  );
}