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 ListAttributes operation.
Lists the attributes for Amazon ECS resources within a specified target type and cluster.
When you specify a target type and cluster, ListAttributes
returns a list of
attribute objects, one for each attribute on each resource. You can filter the list
of results to a single attribute name to only return results that have that name.
You can also filter the results by attribute name and value. You can do this, for
example, to see which container instances in a cluster are running a Linux AMI (ecs.os-type=linux
).
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class ListAttributesRequest : AmazonECSRequest IAmazonWebServiceRequest
The ListAttributesRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
ListAttributesRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
AttributeName | System.String |
Gets and sets the property AttributeName. The name of the attribute to filter the results with. |
![]() |
AttributeValue | System.String |
Gets and sets the property AttributeValue. The value of the attribute to filter results with. You must also specify an attribute name to use this parameter. |
![]() |
Cluster | System.String |
Gets and sets the property Cluster. The short name or full Amazon Resource Name (ARN) of the cluster to list attributes. If you do not specify a cluster, the default cluster is assumed. |
![]() |
MaxResults | System.Int32 |
Gets and sets the property MaxResults.
The maximum number of cluster results that |
![]() |
NextToken | System.String |
Gets and sets the property NextToken.
The This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. |
![]() |
TargetType | Amazon.ECS.TargetType |
Gets and sets the property TargetType. The type of the target to list attributes with. |
This example lists attributes for a container instance with the attribute "stack" equal to the value "production".
var client = new AmazonECSClient(); var response = client.ListAttributes(new ListAttributesRequest { AttributeName = "stack", AttributeValue = "production", Cluster = "MyCluster", TargetType = "container-instance" }); List<Attribute> attributes = response.Attributes;
.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