deleteConnectionAlias method

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

Deletes the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

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

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

Implementation

Future<void> deleteConnectionAlias({
  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.DeleteConnectionAlias'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AliasId': aliasId,
    },
  );
}