removeTags method

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

Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.

May throw LoadBalancerNotFoundException. May throw TargetGroupNotFoundException. May throw ListenerNotFoundException. May throw RuleNotFoundException. May throw TooManyTagsException.

Parameter resourceArns : The Amazon Resource Name (ARN) of the resource.

Parameter tagKeys : The tag keys for the tags to remove.

Implementation

Future<void> removeTags({
  required List<String> resourceArns,
  required List<String> tagKeys,
}) async {
  ArgumentError.checkNotNull(resourceArns, 'resourceArns');
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final $request = <String, dynamic>{};
  $request['ResourceArns'] = resourceArns;
  $request['TagKeys'] = tagKeys;
  await _protocol.send(
    $request,
    action: 'RemoveTags',
    version: '2015-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['RemoveTagsInput'],
    shapes: shapes,
    resultWrapper: 'RemoveTagsResult',
  );
}