untagResource method

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

Removes tags from an AWS X-Ray group or sampling rule. You cannot edit or delete system tags (those with an aws: prefix).

May throw InvalidRequestException. May throw ThrottledException. May throw ResourceNotFoundException.

Parameter resourceARN : The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.

Parameter tagKeys : Keys for one or more tags that you want to remove from an X-Ray group or sampling rule.

Implementation

Future<void> untagResource({
  required String resourceARN,
  required List<String> tagKeys,
}) async {
  ArgumentError.checkNotNull(resourceARN, 'resourceARN');
  _s.validateStringLength(
    'resourceARN',
    resourceARN,
    1,
    1011,
    isRequired: true,
  );
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final $payload = <String, dynamic>{
    'ResourceARN': resourceARN,
    'TagKeys': tagKeys,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/UntagResource',
    exceptionFnMap: _exceptionFns,
  );
}