deleteTags method

Future<void> deleteTags({
  1. required String resourceId,
  2. required List<String> tagKeys,
})

Deletes the specified tags from the specified WorkSpaces resource.

May throw ResourceNotFoundException. May throw InvalidParameterValuesException.

Parameter resourceId : The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases.

Parameter tagKeys : The tag keys.

Implementation

Future<void> deleteTags({
  required String resourceId,
  required List<String> tagKeys,
}) async {
  ArgumentError.checkNotNull(resourceId, 'resourceId');
  _s.validateStringLength(
    'resourceId',
    resourceId,
    1,
    1152921504606846976,
    isRequired: true,
  );
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.DeleteTags'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceId': resourceId,
      'TagKeys': tagKeys,
    },
  );
}