removeTagsFromOnPremisesInstances method

Future<void> removeTagsFromOnPremisesInstances({
  1. required List<String> instanceNames,
  2. required List<Tag> tags,
})

Removes one or more tags from one or more on-premises instances.

May throw InstanceNameRequiredException. May throw InvalidInstanceNameException. May throw TagRequiredException. May throw InvalidTagException. May throw TagLimitExceededException. May throw InstanceLimitExceededException. May throw InstanceNotRegisteredException.

Parameter instanceNames : The names of the on-premises instances from which to remove tags.

Parameter tags : The tag key-value pairs to remove from the on-premises instances.

Implementation

Future<void> removeTagsFromOnPremisesInstances({
  required List<String> instanceNames,
  required List<Tag> tags,
}) async {
  ArgumentError.checkNotNull(instanceNames, 'instanceNames');
  ArgumentError.checkNotNull(tags, 'tags');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeDeploy_20141006.RemoveTagsFromOnPremisesInstances'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'instanceNames': instanceNames,
      'tags': tags,
    },
  );
}