amazonka-config-2.0: Amazon Config 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.Config.ListStoredQueries

Description

Lists the stored queries for a single Amazon Web Services account and a single Amazon Web Services Region. The default is 100.

Synopsis

Creating a Request

data ListStoredQueries Source #

See: newListStoredQueries smart constructor.

Constructors

ListStoredQueries' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to be returned with a single call.

  • nextToken :: Maybe Text

    The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Instances

Instances details
ToJSON ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

ToHeaders ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

ToPath ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

ToQuery ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

AWSRequest ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Associated Types

type AWSResponse ListStoredQueries #

Generic ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Associated Types

type Rep ListStoredQueries :: Type -> Type #

Read ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Show ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

NFData ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Methods

rnf :: ListStoredQueries -> () #

Eq ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Hashable ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

type AWSResponse ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

type Rep ListStoredQueries Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

type Rep ListStoredQueries = D1 ('MetaData "ListStoredQueries" "Amazonka.Config.ListStoredQueries" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "ListStoredQueries'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListStoredQueries :: ListStoredQueries Source #

Create a value of ListStoredQueries 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:maxResults:ListStoredQueries', listStoredQueries_maxResults - The maximum number of results to be returned with a single call.

ListStoredQueries, listStoredQueries_nextToken - The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Request Lenses

listStoredQueries_maxResults :: Lens' ListStoredQueries (Maybe Natural) Source #

The maximum number of results to be returned with a single call.

listStoredQueries_nextToken :: Lens' ListStoredQueries (Maybe Text) Source #

The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.

Destructuring the Response

data ListStoredQueriesResponse Source #

See: newListStoredQueriesResponse smart constructor.

Constructors

ListStoredQueriesResponse' 

Fields

  • nextToken :: Maybe Text

    If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

  • storedQueryMetadata :: Maybe [StoredQueryMetadata]

    A list of StoredQueryMetadata objects.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListStoredQueriesResponse Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Associated Types

type Rep ListStoredQueriesResponse :: Type -> Type #

Read ListStoredQueriesResponse Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Show ListStoredQueriesResponse Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

NFData ListStoredQueriesResponse Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

Eq ListStoredQueriesResponse Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

type Rep ListStoredQueriesResponse Source # 
Instance details

Defined in Amazonka.Config.ListStoredQueries

type Rep ListStoredQueriesResponse = D1 ('MetaData "ListStoredQueriesResponse" "Amazonka.Config.ListStoredQueries" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "ListStoredQueriesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "storedQueryMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [StoredQueryMetadata])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListStoredQueriesResponse Source #

Create a value of ListStoredQueriesResponse 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:

ListStoredQueries, listStoredQueriesResponse_nextToken - If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

$sel:storedQueryMetadata:ListStoredQueriesResponse', listStoredQueriesResponse_storedQueryMetadata - A list of StoredQueryMetadata objects.

$sel:httpStatus:ListStoredQueriesResponse', listStoredQueriesResponse_httpStatus - The response's http status code.

Response Lenses

listStoredQueriesResponse_nextToken :: Lens' ListStoredQueriesResponse (Maybe Text) Source #

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.