untagResource method

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

Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide.

May throw ResourceNotFoundException. May throw TagLimitExceededException. May throw StaleTagException. May throw TagPolicyException. May throw InvalidParameterException. May throw AuthorizationErrorException. May throw ConcurrentAccessException.

Parameter resourceArn : The ARN of the topic from which to remove tags.

Parameter tagKeys : The list of tag keys to remove from the specified topic.

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 $request = <String, dynamic>{};
  $request['ResourceArn'] = resourceArn;
  $request['TagKeys'] = tagKeys;
  await _protocol.send(
    $request,
    action: 'UntagResource',
    version: '2010-03-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UntagResourceRequest'],
    shapes: shapes,
    resultWrapper: 'UntagResourceResult',
  );
}