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 ChangeTagsForResource operation. Adds, edits, or deletes tags for a health check or a hosted zone.
For information about using tags for cost allocation, see Using Cost Allocation Tags in the Billing and Cost Management User Guide.
Namespace: Amazon.Route53.Model
Assembly: AWSSDK.Route53.dll
Version: 3.x.y.z
public class ChangeTagsForResourceRequest : AmazonRoute53Request IAmazonWebServiceRequest
The ChangeTagsForResourceRequest type exposes the following members
Name | Description | |
---|---|---|
ChangeTagsForResourceRequest() |
Name | Type | Description | |
---|---|---|---|
AddTags | System.Collections.Generic.List<Amazon.Route53.Model.Tag> |
Gets and sets the property AddTags.
A complex type that contains a list of the tags that you want to add to the specified
health check or hosted zone and/or the tags that you want to edit You can add a maximum of 10 tags to a health check or a hosted zone. |
|
RemoveTagKeys | System.Collections.Generic.List<System.String> |
Gets and sets the property RemoveTagKeys. A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys. |
|
ResourceId | System.String |
Gets and sets the property ResourceId. The ID of the resource for which you want to add, change, or delete tags. |
|
ResourceType | Amazon.Route53.TagResourceType |
Gets and sets the property ResourceType. The type of the resource.
|
The following example adds two tags and removes one tag from the hosted zone with ID Z3M3LMPEXAMPLE.
var client = new AmazonRoute53Client(); var response = client.ChangeTagsForResource(new ChangeTagsForResourceRequest { AddTags = new List<Tag> { new Tag { Key = "apex", Value = "3874" }, new Tag { Key = "acme", Value = "4938" } }, RemoveTagKeys = new List<string> { "Nadir" }, ResourceId = "Z3M3LMPEXAMPLE", ResourceType = "hostedzone" // Valid values are healthcheck and hostedzone. });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5