Neptune / Client / add_tags_to_resource

add_tags_to_resource#

Neptune.Client.add_tags_to_resource(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.add_tags_to_resource(
    ResourceName='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceName (string) –

    [REQUIRED]

    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).

  • Tags (list) –

    [REQUIRED]

    The tags to be assigned to the Amazon Neptune resource.

    • (dict) –

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) –

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can’t be prefixed with aws: or rds:. The string can only contain the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘/’, ‘=’, ‘+’, ‘-’ (Java regex: “^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$”).

      • Value (string) –

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can’t be prefixed with aws: or rds:. The string can only contain the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘/’, ‘=’, ‘+’, ‘-’ (Java regex: “^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$”).

Returns:

None

Exceptions

  • Neptune.Client.exceptions.DBInstanceNotFoundFault

  • Neptune.Client.exceptions.DBSnapshotNotFoundFault

  • Neptune.Client.exceptions.DBClusterNotFoundFault