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

Amazonka.Discovery.DescribeTags

Description

Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value, passed to the optional parameter filters.

There are three valid tag filter names:

  • tagKey
  • tagValue
  • configurationId

Also, all configuration items associated with your user account that have tags can be listed if you call DescribeTags as is without passing any parameters.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeTags Source #

See: newDescribeTags smart constructor.

Constructors

DescribeTags' 

Fields

  • filters :: Maybe [TagFilter]

    You can filter the list using a key-value format. You can separate these items by using logical operators. Allowed filters include tagKey, tagValue, and configurationId.

  • nextToken :: Maybe Text

    A token to start the list. Use this token to get the next set of results.

  • maxResults :: Maybe Int

    The total number of items to return in a single page of output. The maximum value is 100.

Instances

Instances details
Eq DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Read DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Show DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Generic DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Associated Types

type Rep DescribeTags :: Type -> Type #

NFData DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Methods

rnf :: DescribeTags -> () #

Hashable DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

ToJSON DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

AWSPager DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

AWSRequest DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Associated Types

type AWSResponse DescribeTags #

ToHeaders DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

ToPath DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

ToQuery DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

type Rep DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

type Rep DescribeTags = D1 ('MetaData "DescribeTags" "Amazonka.Discovery.DescribeTags" "libZSservicesZSamazonka-discoveryZSamazonka-discovery" 'False) (C1 ('MetaCons "DescribeTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagFilter])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))
type AWSResponse DescribeTags Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

newDescribeTags :: DescribeTags Source #

Create a value of DescribeTags 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:filters:DescribeTags', describeTags_filters - You can filter the list using a key-value format. You can separate these items by using logical operators. Allowed filters include tagKey, tagValue, and configurationId.

$sel:nextToken:DescribeTags', describeTags_nextToken - A token to start the list. Use this token to get the next set of results.

$sel:maxResults:DescribeTags', describeTags_maxResults - The total number of items to return in a single page of output. The maximum value is 100.

Request Lenses

describeTags_filters :: Lens' DescribeTags (Maybe [TagFilter]) Source #

You can filter the list using a key-value format. You can separate these items by using logical operators. Allowed filters include tagKey, tagValue, and configurationId.

describeTags_nextToken :: Lens' DescribeTags (Maybe Text) Source #

A token to start the list. Use this token to get the next set of results.

describeTags_maxResults :: Lens' DescribeTags (Maybe Int) Source #

The total number of items to return in a single page of output. The maximum value is 100.

Destructuring the Response

data DescribeTagsResponse Source #

See: newDescribeTagsResponse smart constructor.

Constructors

DescribeTagsResponse' 

Fields

  • nextToken :: Maybe Text

    The call returns a token. Use this token to get the next set of results.

  • tags :: Maybe [ConfigurationTag]

    Depending on the input, this is a list of configuration items tagged with a specific tag, or a list of tags for a specific configuration item.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeTagsResponse Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Read DescribeTagsResponse Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Show DescribeTagsResponse Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Generic DescribeTagsResponse Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Associated Types

type Rep DescribeTagsResponse :: Type -> Type #

NFData DescribeTagsResponse Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

Methods

rnf :: DescribeTagsResponse -> () #

type Rep DescribeTagsResponse Source # 
Instance details

Defined in Amazonka.Discovery.DescribeTags

type Rep DescribeTagsResponse = D1 ('MetaData "DescribeTagsResponse" "Amazonka.Discovery.DescribeTags" "libZSservicesZSamazonka-discoveryZSamazonka-discovery" 'False) (C1 ('MetaCons "DescribeTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ConfigurationTag])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeTagsResponse Source #

Create a value of DescribeTagsResponse 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:nextToken:DescribeTags', describeTagsResponse_nextToken - The call returns a token. Use this token to get the next set of results.

$sel:tags:DescribeTagsResponse', describeTagsResponse_tags - Depending on the input, this is a list of configuration items tagged with a specific tag, or a list of tags for a specific configuration item.

$sel:httpStatus:DescribeTagsResponse', describeTagsResponse_httpStatus - The response's http status code.

Response Lenses

describeTagsResponse_nextToken :: Lens' DescribeTagsResponse (Maybe Text) Source #

The call returns a token. Use this token to get the next set of results.

describeTagsResponse_tags :: Lens' DescribeTagsResponse (Maybe [ConfigurationTag]) Source #

Depending on the input, this is a list of configuration items tagged with a specific tag, or a list of tags for a specific configuration item.