untagResource method

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

An API operation for removing tags from a resource.

May throw InternalServiceException. May throw InvalidArnException. May throw RetryableConflictException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw InvalidTaggingRequestException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

Parameter tagKeys : Keys of the tag that need to be removed from the resource.

Implementation

Future<void> untagResource({
  required String resourceArn,
  required List<String> tagKeys,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final $payload = <String, dynamic>{
    'ResourceArn': resourceArn,
    'TagKeys': tagKeys,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/amazonclouddirectory/2017-01-11/tags/remove',
    exceptionFnMap: _exceptionFns,
  );
}