AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateTags operation. Adds one or more tags to a specified resource.

A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, you will receive an error and the attempt will fail.

If you specify a key that already exists for the resource, the value for that key will be updated with the new value.

Inheritance Hierarchy


Namespace: Amazon.Redshift.Model
Assembly: AWSSDK.Redshift.dll
Version: 3.x.y.z


public class CreateTagsRequest : AmazonRedshiftRequest

The CreateTagsRequest type exposes the following members


Public Method CreateTagsRequest()


Public Property ResourceName System.String

Gets and sets the property ResourceName.

The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.

Public Property Tags System.Collections.Generic.List<Amazon.Redshift.Model.Tag>

Gets and sets the property Tags.

One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter Key and the corresponding value is passed in with the parameter Value. The Key and Value parameters are separated by a comma (,). Separate multiple tags with a space. For example,

--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test"


This example creates tags for the specified cluster.

To create tags

var response = client.CreateTags(new CreateTagsRequest 
    ResourceName = "arn:aws:redshift:us-west-2:644653688104:cluster:mycluster",
    Tags = new List {
        new Tag {
            Key = "owner",
            Value = "admin"
        new Tag {
            Key = "test",
            Value = "environment"


Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms