| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.ECS.ListAttributes
Description
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, for example, to see which container instances in a cluster are running a Linux AMI (ecs.os-type=linux ).
- listAttributes :: TargetType -> ListAttributes
- data ListAttributes
- laAttributeValue :: Lens' ListAttributes (Maybe Text)
- laCluster :: Lens' ListAttributes (Maybe Text)
- laNextToken :: Lens' ListAttributes (Maybe Text)
- laAttributeName :: Lens' ListAttributes (Maybe Text)
- laMaxResults :: Lens' ListAttributes (Maybe Int)
- laTargetType :: Lens' ListAttributes TargetType
- listAttributesResponse :: Int -> ListAttributesResponse
- data ListAttributesResponse
- larsNextToken :: Lens' ListAttributesResponse (Maybe Text)
- larsAttributes :: Lens' ListAttributesResponse [Attribute]
- larsResponseStatus :: Lens' ListAttributesResponse Int
Creating a Request
Arguments
| :: TargetType | |
| -> ListAttributes |
Creates a value of ListAttributes with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
laAttributeValue- The value of the attribute with which to filter results. You must also specify an attribute name to use this parameter.laCluster- 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.laNextToken- ThenextTokenvalue returned from a previous paginatedListAttributesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.laAttributeName- The name of the attribute with which to filter the results.laMaxResults- The maximum number of cluster results returned byListAttributesin paginated output. When this parameter is used,ListAttributesonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListAttributesrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenListAttributesreturns up to 100 results and anextTokenvalue if applicable.laTargetType- The type of the target with which to list attributes.
data ListAttributes Source #
See: listAttributes smart constructor.
Instances
Request Lenses
laAttributeValue :: Lens' ListAttributes (Maybe Text) Source #
The value of the attribute with which to filter results. You must also specify an attribute name to use this parameter.
laCluster :: Lens' ListAttributes (Maybe Text) Source #
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.
laNextToken :: Lens' ListAttributes (Maybe Text) Source #
The nextToken value returned from a previous paginated ListAttributes request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.
laAttributeName :: Lens' ListAttributes (Maybe Text) Source #
The name of the attribute with which to filter the results.
laMaxResults :: Lens' ListAttributes (Maybe Int) Source #
The maximum number of cluster results returned by ListAttributes in paginated output. When this parameter is used, ListAttributes only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListAttributes request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListAttributes returns up to 100 results and a nextToken value if applicable.
laTargetType :: Lens' ListAttributes TargetType Source #
The type of the target with which to list attributes.
Destructuring the Response
listAttributesResponse Source #
Arguments
| :: Int | |
| -> ListAttributesResponse |
Creates a value of ListAttributesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
larsNextToken- ThenextTokenvalue to include in a futureListAttributesrequest. When the results of aListAttributesrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.larsAttributes- A list of attribute objects that meet the criteria of the request.larsResponseStatus- -- | The response status code.
data ListAttributesResponse Source #
See: listAttributesResponse smart constructor.
Response Lenses
larsNextToken :: Lens' ListAttributesResponse (Maybe Text) Source #
The nextToken value to include in a future ListAttributes request. When the results of a ListAttributes request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
larsAttributes :: Lens' ListAttributesResponse [Attribute] Source #
A list of attribute objects that meet the criteria of the request.
larsResponseStatus :: Lens' ListAttributesResponse Int Source #
- - | The response status code.