amazonka-redshift-serverless-2.0: Amazon Redshift Serverless 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.RedshiftServerLess.ListNamespaces

Description

Returns information about a list of specified namespaces.

This operation returns paginated results.

Synopsis

Creating a Request

data ListNamespaces Source #

See: newListNamespaces smart constructor.

Constructors

ListNamespaces' 

Fields

  • maxResults :: Maybe Natural

    An optional parameter that specifies the maximum number of results to return. You can use nextToken to display the next page of results.

  • nextToken :: Maybe Text

    If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken in following ListNamespaces operations, which returns results in the next page.

Instances

Instances details
ToJSON ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

ToHeaders ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

ToPath ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

ToQuery ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

AWSPager ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

AWSRequest ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

Associated Types

type AWSResponse ListNamespaces #

Generic ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

Associated Types

type Rep ListNamespaces :: Type -> Type #

Read ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

Show ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

NFData ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

Methods

rnf :: ListNamespaces -> () #

Eq ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

Hashable ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

type AWSResponse ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

type Rep ListNamespaces Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

type Rep ListNamespaces = D1 ('MetaData "ListNamespaces" "Amazonka.RedshiftServerLess.ListNamespaces" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "ListNamespaces'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListNamespaces :: ListNamespaces Source #

Create a value of ListNamespaces 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:ListNamespaces', listNamespaces_maxResults - An optional parameter that specifies the maximum number of results to return. You can use nextToken to display the next page of results.

ListNamespaces, listNamespaces_nextToken - If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken in following ListNamespaces operations, which returns results in the next page.

Request Lenses

listNamespaces_maxResults :: Lens' ListNamespaces (Maybe Natural) Source #

An optional parameter that specifies the maximum number of results to return. You can use nextToken to display the next page of results.

listNamespaces_nextToken :: Lens' ListNamespaces (Maybe Text) Source #

If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken in following ListNamespaces operations, which returns results in the next page.

Destructuring the Response

data ListNamespacesResponse Source #

See: newListNamespacesResponse smart constructor.

Constructors

ListNamespacesResponse' 

Fields

  • nextToken :: Maybe Text

    When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

  • httpStatus :: Int

    The response's http status code.

  • namespaces :: [Namespace]

    The list of returned namespaces.

Instances

Instances details
Generic ListNamespacesResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

Associated Types

type Rep ListNamespacesResponse :: Type -> Type #

Show ListNamespacesResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

NFData ListNamespacesResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

Methods

rnf :: ListNamespacesResponse -> () #

Eq ListNamespacesResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

type Rep ListNamespacesResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListNamespaces

type Rep ListNamespacesResponse = D1 ('MetaData "ListNamespacesResponse" "Amazonka.RedshiftServerLess.ListNamespaces" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "ListNamespacesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "namespaces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Namespace]))))

newListNamespacesResponse Source #

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

ListNamespaces, listNamespacesResponse_nextToken - When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

$sel:httpStatus:ListNamespacesResponse', listNamespacesResponse_httpStatus - The response's http status code.

$sel:namespaces:ListNamespacesResponse', listNamespacesResponse_namespaces - The list of returned namespaces.

Response Lenses

listNamespacesResponse_nextToken :: Lens' ListNamespacesResponse (Maybe Text) Source #

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.