deleteTags method

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

Deletes tags from a resource. You must provide the ARN of the resource from which you want to delete the tag or tags.

May throw ResourceNotFoundFault. May throw InvalidTagFault.

Parameter resourceName : The Amazon Resource Name (ARN) from which you want to remove the tag or tags. For example, arn:aws:redshift:us-east-2:123456789:cluster:t1.

Parameter tagKeys : The tag key that you want to delete.

Implementation

Future<void> deleteTags({
  required String resourceName,
  required List<String> tagKeys,
}) async {
  ArgumentError.checkNotNull(resourceName, 'resourceName');
  _s.validateStringLength(
    'resourceName',
    resourceName,
    0,
    2147483647,
    isRequired: true,
  );
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final $request = <String, dynamic>{};
  $request['ResourceName'] = resourceName;
  $request['TagKeys'] = tagKeys;
  await _protocol.send(
    $request,
    action: 'DeleteTags',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteTagsMessage'],
    shapes: shapes,
  );
}