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

Copyright(c) 2013-2018 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.
  • 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 # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Data ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

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 # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Show ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Generic ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Associated Types

type Rep ListAttributes :: Type -> Type #

Hashable ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

ToJSON ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

AWSRequest ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Associated Types

type Rs ListAttributes :: Type #

ToHeaders ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

ToPath ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

ToQuery ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

NFData ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Methods

rnf :: ListAttributes -> () #

type Rep ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

type Rep ListAttributes = D1 (MetaData "ListAttributes" "Network.AWS.ECS.ListAttributes" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" False) (C1 (MetaCons "ListAttributes'" PrefixI True) ((S1 (MetaSel (Just "_laAttributeValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_laCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_laNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_laAttributeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_laMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_laTargetType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TargetType)))))
type Rs ListAttributes Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

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 #

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 # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Data ListAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

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 # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Show ListAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Generic ListAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Associated Types

type Rep ListAttributesResponse :: Type -> Type #

NFData ListAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

Methods

rnf :: ListAttributesResponse -> () #

type Rep ListAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListAttributes

type Rep ListAttributesResponse = D1 (MetaData "ListAttributesResponse" "Network.AWS.ECS.ListAttributes" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" False) (C1 (MetaCons "ListAttributesResponse'" PrefixI True) (S1 (MetaSel (Just "_larsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_larsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute])) :*: S1 (MetaSel (Just "_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.