amazonka-sqs-2.0: Amazon Simple Queue 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.SQS.ListQueues

Description

Returns a list of your queues in the current region. The response includes a maximum of 1,000 results. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned.

The listQueues methods supports pagination. Set parameter MaxResults in the request to specify the maximum number of results to be returned in the response. If you do not set MaxResults, the response includes a maximum of 1,000 results. If you set MaxResults and there are additional results to display, the response includes a value for NextToken. Use NextToken as a parameter in your next request to listQueues to receive the next page of results.

Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a user name in the Amazon SQS Developer Guide.

This operation returns paginated results.

Synopsis

Creating a Request

data ListQueues Source #

See: newListQueues smart constructor.

Constructors

ListQueues' 

Fields

  • maxResults :: Maybe Int

    Maximum number of results to include in the response. Value range is 1 to 1000. You must set MaxResults to receive a value for NextToken in the response.

  • nextToken :: Maybe Text

    Pagination token to request the next set of results.

  • queueNamePrefix :: Maybe Text

    A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

    Queue URLs and names are case-sensitive.

Instances

Instances details
ToHeaders ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Methods

toHeaders :: ListQueues -> [Header] #

ToPath ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

ToQuery ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

AWSPager ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

AWSRequest ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Associated Types

type AWSResponse ListQueues #

Generic ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Associated Types

type Rep ListQueues :: Type -> Type #

Read ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Show ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

NFData ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Methods

rnf :: ListQueues -> () #

Eq ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Hashable ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

type AWSResponse ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

type Rep ListQueues Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

type Rep ListQueues = D1 ('MetaData "ListQueues" "Amazonka.SQS.ListQueues" "amazonka-sqs-2.0-8jRKm0MCN6JIBFunCpUxaV" 'False) (C1 ('MetaCons "ListQueues'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queueNamePrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListQueues :: ListQueues Source #

Create a value of ListQueues 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:ListQueues', listQueues_maxResults - Maximum number of results to include in the response. Value range is 1 to 1000. You must set MaxResults to receive a value for NextToken in the response.

ListQueues, listQueues_nextToken - Pagination token to request the next set of results.

$sel:queueNamePrefix:ListQueues', listQueues_queueNamePrefix - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue URLs and names are case-sensitive.

Request Lenses

listQueues_maxResults :: Lens' ListQueues (Maybe Int) Source #

Maximum number of results to include in the response. Value range is 1 to 1000. You must set MaxResults to receive a value for NextToken in the response.

listQueues_nextToken :: Lens' ListQueues (Maybe Text) Source #

Pagination token to request the next set of results.

listQueues_queueNamePrefix :: Lens' ListQueues (Maybe Text) Source #

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue URLs and names are case-sensitive.

Destructuring the Response

data ListQueuesResponse Source #

A list of your queues.

See: newListQueuesResponse smart constructor.

Constructors

ListQueuesResponse' 

Fields

  • nextToken :: Maybe Text

    Pagination token to include in the next request. Token value is null if there are no additional results to request, or if you did not set MaxResults in the request.

  • queueUrls :: Maybe [Text]

    A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListQueuesResponse Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Associated Types

type Rep ListQueuesResponse :: Type -> Type #

Read ListQueuesResponse Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Show ListQueuesResponse Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

NFData ListQueuesResponse Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

Methods

rnf :: ListQueuesResponse -> () #

Eq ListQueuesResponse Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

type Rep ListQueuesResponse Source # 
Instance details

Defined in Amazonka.SQS.ListQueues

type Rep ListQueuesResponse = D1 ('MetaData "ListQueuesResponse" "Amazonka.SQS.ListQueues" "amazonka-sqs-2.0-8jRKm0MCN6JIBFunCpUxaV" 'False) (C1 ('MetaCons "ListQueuesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "queueUrls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListQueuesResponse Source #

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

ListQueues, listQueuesResponse_nextToken - Pagination token to include in the next request. Token value is null if there are no additional results to request, or if you did not set MaxResults in the request.

$sel:queueUrls:ListQueuesResponse', listQueuesResponse_queueUrls - A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request.

$sel:httpStatus:ListQueuesResponse', listQueuesResponse_httpStatus - The response's http status code.

Response Lenses

listQueuesResponse_nextToken :: Lens' ListQueuesResponse (Maybe Text) Source #

Pagination token to include in the next request. Token value is null if there are no additional results to request, or if you did not set MaxResults in the request.

listQueuesResponse_queueUrls :: Lens' ListQueuesResponse (Maybe [Text]) Source #

A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request.