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 UntagResource operation. Deletes specified tags from a resource.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class UntagResourceRequest : AmazonECSRequest IAmazonWebServiceRequest
The UntagResourceRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
UntagResourceRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
ResourceArn | System.String |
Gets and sets the property ResourceArn. The Amazon Resource Name (ARN) of the resource to delete tags from. Currently, the supported resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container instances. |
![]() |
TagKeys | System.Collections.Generic.List<System.String> |
Gets and sets the property TagKeys. The keys of the tags to be removed. |
This example deletes the 'team' tag from the 'dev' cluster.
var client = new AmazonECSClient(); var response = client.UntagResource(new UntagResourceRequest { ResourceArn = "arn:aws:ecs:region:aws_account_id:cluster/dev", TagKeys = new List<string> { "team" } });
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5