AddTagsToResource - Amazon DocumentDB


Adds metadata tags to an Amazon DocumentDB resource. You can use these tags with cost allocation reporting to track costs that are associated with Amazon DocumentDB resources or in a Condition statement in an AWS Identity and Access Management (IAM) policy for Amazon DocumentDB.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The Amazon DocumentDB resource that the tags are added to. This value is an Amazon Resource Name .

Type: String

Required: Yes


The tags to be assigned to the Amazon DocumentDB resource.

Type: Array of Tag objects

Required: Yes


For information about the errors that are common to all actions, see Common Errors.


DBClusterIdentifier doesn't refer to an existing cluster.

HTTP Status Code: 404


DBInstanceIdentifier doesn't refer to an existing instance.

HTTP Status Code: 404


DBSnapshotIdentifier doesn't refer to an existing snapshot.

HTTP Status Code: 404

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: