amazonka-ecs-2.0: Amazon EC2 Container Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.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. You can do this, for example, to see which container instances in a cluster are running a Linux AMI (ecs.os-type=linux).

This operation returns paginated results.

Synopsis

Creating a Request

data ListAttributes Source #

See: newListAttributes smart constructor.

Constructors

ListAttributes' 

Fields

  • attributeName :: Maybe Text

    The name of the attribute to filter the results with.

  • attributeValue :: Maybe Text

    The value of the attribute to filter results with. You must also specify an attribute name to use this parameter.

  • cluster :: Maybe Text

    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 :: Maybe Int

    The maximum number of cluster results that ListAttributes returned 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 isn't used, then ListAttributes returns up to 100 results and a nextToken value if applicable.

  • nextToken :: Maybe Text

    The nextToken value returned from a ListAttributes request indicating that more results are available to fulfill the request and further calls are needed. If maxResults was provided, it's possible the number of results to be fewer than maxResults.

    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 :: TargetType

    The type of the target to list attributes with.

Instances

Instances details
ToJSON ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

ToHeaders ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

ToPath ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

ToQuery ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

AWSPager ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

AWSRequest ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Associated Types

type AWSResponse ListAttributes #

Generic ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Associated Types

type Rep ListAttributes :: Type -> Type #

Read ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Show ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

NFData ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Methods

rnf :: ListAttributes -> () #

Eq ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Hashable ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

type AWSResponse ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

type Rep ListAttributes Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

type Rep ListAttributes = D1 ('MetaData "ListAttributes" "Amazonka.ECS.ListAttributes" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "ListAttributes'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "attributeValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TargetType)))))

newListAttributes Source #

Create a value of ListAttributes with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:attributeName:ListAttributes', listAttributes_attributeName - The name of the attribute to filter the results with.

$sel:attributeValue:ListAttributes', listAttributes_attributeValue - The value of the attribute to filter results with. You must also specify an attribute name to use this parameter.

$sel:cluster:ListAttributes', listAttributes_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.

$sel:maxResults:ListAttributes', listAttributes_maxResults - The maximum number of cluster results that ListAttributes returned 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 isn't used, then ListAttributes returns up to 100 results and a nextToken value if applicable.

ListAttributes, listAttributes_nextToken - The nextToken value returned from a ListAttributes request indicating that more results are available to fulfill the request and further calls are needed. If maxResults was provided, it's possible the number of results to be fewer than maxResults.

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.

ListAttributes, listAttributes_targetType - The type of the target to list attributes with.

Request Lenses

listAttributes_attributeName :: Lens' ListAttributes (Maybe Text) Source #

The name of the attribute to filter the results with.

listAttributes_attributeValue :: Lens' ListAttributes (Maybe Text) Source #

The value of the attribute to filter results with. You must also specify an attribute name to use this parameter.

listAttributes_cluster :: 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.

listAttributes_maxResults :: Lens' ListAttributes (Maybe Int) Source #

The maximum number of cluster results that ListAttributes returned 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 isn't used, then ListAttributes returns up to 100 results and a nextToken value if applicable.

listAttributes_nextToken :: Lens' ListAttributes (Maybe Text) Source #

The nextToken value returned from a ListAttributes request indicating that more results are available to fulfill the request and further calls are needed. If maxResults was provided, it's possible the number of results to be fewer than maxResults.

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.

listAttributes_targetType :: Lens' ListAttributes TargetType Source #

The type of the target to list attributes with.

Destructuring the Response

data ListAttributesResponse Source #

See: newListAttributesResponse smart constructor.

Constructors

ListAttributesResponse' 

Fields

  • attributes :: Maybe [Attribute]

    A list of attribute objects that meet the criteria of the request.

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Associated Types

type Rep ListAttributesResponse :: Type -> Type #

Read ListAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Show ListAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

NFData ListAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

Methods

rnf :: ListAttributesResponse -> () #

Eq ListAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

type Rep ListAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.ListAttributes

type Rep ListAttributesResponse = D1 ('MetaData "ListAttributesResponse" "Amazonka.ECS.ListAttributes" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "ListAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Attribute])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListAttributesResponse Source #

Create a value of ListAttributesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ListAttributesResponse, listAttributesResponse_attributes - A list of attribute objects that meet the criteria of the request.

ListAttributes, listAttributesResponse_nextToken - 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.

$sel:httpStatus:ListAttributesResponse', listAttributesResponse_httpStatus - The response's http status code.

Response Lenses

listAttributesResponse_attributes :: Lens' ListAttributesResponse (Maybe [Attribute]) Source #

A list of attribute objects that meet the criteria of the request.

listAttributesResponse_nextToken :: 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.