AddTagsToResource

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.

ResourceName

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

Type: String

Required: Yes

Tags.Tag.N

The tags to be assigned to the Amazon DocumentDB resource.

Type: Array of Tag objects

Required: Yes

Errors

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

DBClusterNotFoundFault

DBClusterIdentifier doesn’t refer to an existing cluster.

HTTP Status Code: 404

DBInstanceNotFound

DBInstanceIdentifier doesn’t refer to an existing instance.

HTTP Status Code: 404

DBSnapshotNotFound

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: