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.

An attribute is a name-value pair that's associated with an Amazon ECS object. Use attributes to extend the Amazon ECS data model by adding custom metadata to your resources. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.Attribute

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

Syntax

C#
public class Attribute

The Attribute type exposes the following members

Constructors

NameDescription
Public Method Attribute()

Properties

NameTypeDescription
Public Property Name System.String

Gets and sets the property Name.

The name of the attribute. The name must contain between 1 and 128 characters. The name may contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods (.).

Public Property TargetId System.String

Gets and sets the property TargetId.

The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

Public Property TargetType Amazon.ECS.TargetType

Gets and sets the property TargetType.

The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.

Public Property Value System.String

Gets and sets the property Value.

The value of the attribute. The value must contain between 1 and 128 characters. It can contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.

Version Information

.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