disassociateConnectionAlias method

Future<void> disassociateConnectionAlias({
  1. required String aliasId,
})

Disassociates a connection alias from a directory. Disassociating a connection alias disables cross-Region redirection between two directories in different AWS Regions. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

May throw AccessDeniedException. May throw ResourceNotFoundException. May throw InvalidParameterValuesException. May throw InvalidResourceStateException. May throw OperationNotSupportedException.

Parameter aliasId : The identifier of the connection alias to disassociate.

Implementation

Future<void> disassociateConnectionAlias({
  required String aliasId,
}) async {
  ArgumentError.checkNotNull(aliasId, 'aliasId');
  _s.validateStringLength(
    'aliasId',
    aliasId,
    13,
    68,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.DisassociateConnectionAlias'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AliasId': aliasId,
    },
  );
}