amazonka-ecs-1.5.0: Amazon EC2 Container Service SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECS.ListAttributes

Contents

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 ).

Synopsis

Creating a Request

listAttributes Source #

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 - 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. This value is null when there are no more results to return.
  • laAttributeName - The name of the attribute with which to filter the results.
  • laMaxResults - 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 - The type of the target with which to list attributes.

data ListAttributes Source #

See: listAttributes smart constructor.

Instances

Eq ListAttributes Source # 
Data ListAttributes Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListAttributes -> c ListAttributes #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListAttributes #

toConstr :: ListAttributes -> Constr #

dataTypeOf :: ListAttributes -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListAttributes) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListAttributes) #

gmapT :: (forall b. Data b => b -> b) -> ListAttributes -> ListAttributes #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListAttributes -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListAttributes -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListAttributes -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListAttributes -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListAttributes -> m ListAttributes #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListAttributes -> m ListAttributes #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListAttributes -> m ListAttributes #

Read ListAttributes Source # 
Show ListAttributes Source # 
Generic ListAttributes Source # 

Associated Types

type Rep ListAttributes :: * -> * #

Hashable ListAttributes Source # 
ToJSON ListAttributes Source # 
NFData ListAttributes Source # 

Methods

rnf :: ListAttributes -> () #

AWSRequest ListAttributes Source # 
ToQuery ListAttributes Source # 
ToPath ListAttributes Source # 
ToHeaders ListAttributes Source # 
type Rep ListAttributes Source # 
type Rep ListAttributes = D1 (MetaData "ListAttributes" "Network.AWS.ECS.ListAttributes" "amazonka-ecs-1.5.0-EwatFke974vDkurbaNzIje" False) (C1 (MetaCons "ListAttributes'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_laAttributeValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_laCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_laNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_laAttributeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_laMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_laTargetType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TargetType))))))
type Rs ListAttributes Source # 

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. This value is null when there are no more results to return.

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 #

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 - 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 - A list of attribute objects that meet the criteria of the request.
  • larsResponseStatus - -- | The response status code.

data ListAttributesResponse Source #

See: listAttributesResponse smart constructor.

Instances

Eq ListAttributesResponse Source # 
Data ListAttributesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListAttributesResponse -> c ListAttributesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListAttributesResponse #

toConstr :: ListAttributesResponse -> Constr #

dataTypeOf :: ListAttributesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListAttributesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListAttributesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListAttributesResponse -> ListAttributesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListAttributesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListAttributesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListAttributesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListAttributesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListAttributesResponse -> m ListAttributesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListAttributesResponse -> m ListAttributesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListAttributesResponse -> m ListAttributesResponse #

Read ListAttributesResponse Source # 
Show ListAttributesResponse Source # 
Generic ListAttributesResponse Source # 
NFData ListAttributesResponse Source # 

Methods

rnf :: ListAttributesResponse -> () #

type Rep ListAttributesResponse Source # 
type Rep ListAttributesResponse = D1 (MetaData "ListAttributesResponse" "Network.AWS.ECS.ListAttributes" "amazonka-ecs-1.5.0-EwatFke974vDkurbaNzIje" False) (C1 (MetaCons "ListAttributesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_larsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_larsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute]))) (S1 (MetaSel (Just Symbol "_larsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

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.