addTagsToResource method

Future<void> addTagsToResource({
  1. required String resourceName,
  2. required List<Tag> tags,
})

Adds metadata tags to an Amazon Neptune resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon Neptune resources, or used in a Condition statement in an IAM policy for Amazon Neptune.

May throw DBInstanceNotFoundFault. May throw DBSnapshotNotFoundFault. May throw DBClusterNotFoundFault.

Parameter resourceName : The Amazon Neptune resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an Amazon Resource Name (ARN).

Parameter tags : The tags to be assigned to the Amazon Neptune resource.

Implementation

Future<void> addTagsToResource({
  required String resourceName,
  required List<Tag> tags,
}) async {
  ArgumentError.checkNotNull(resourceName, 'resourceName');
  ArgumentError.checkNotNull(tags, 'tags');
  final $request = <String, dynamic>{};
  $request['ResourceName'] = resourceName;
  $request['Tags'] = tags;
  await _protocol.send(
    $request,
    action: 'AddTagsToResource',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['AddTagsToResourceMessage'],
    shapes: shapes,
  );
}