untagProject method

Future<void> untagProject({
  1. required String id,
  2. required List<String> tags,
})

Removes tags from a project.

May throw ProjectNotFoundException. May throw ValidationException. May throw LimitExceededException. May throw ConcurrentModificationException.

Parameter id : The ID of the project to remove tags from.

Parameter tags : The tags to remove from the project.

Implementation

Future<void> untagProject({
  required String id,
  required List<String> tags,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  _s.validateStringLength(
    'id',
    id,
    2,
    15,
    isRequired: true,
  );
  ArgumentError.checkNotNull(tags, 'tags');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeStar_20170419.UntagProject'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'id': id,
      'tags': tags,
    },
  );
}