libZSservicesZSamazonka-workmailZSamazonka-workmail
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.WorkMail.ListResources

Description

Returns summaries of the organization's resources.

This operation returns paginated results.

Synopsis

Creating a Request

data ListResources Source #

See: newListResources smart constructor.

Constructors

ListResources' 

Fields

  • nextToken :: Maybe Text

    The token to use to retrieve the next page of results. The first call does not contain any tokens.

  • maxResults :: Maybe Natural

    The maximum number of results to return in a single call.

  • organizationId :: Text

    The identifier for the organization under which the resources exist.

Instances

Instances details
Eq ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Read ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Show ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Generic ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Associated Types

type Rep ListResources :: Type -> Type #

NFData ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Methods

rnf :: ListResources -> () #

Hashable ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

ToJSON ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

AWSPager ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

AWSRequest ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Associated Types

type AWSResponse ListResources #

ToHeaders ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

ToPath ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

ToQuery ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

type Rep ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

type Rep ListResources = D1 ('MetaData "ListResources" "Amazonka.WorkMail.ListResources" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "ListResources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListResources Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

newListResources Source #

Create a value of ListResources 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:ListResources', listResources_nextToken - The token to use to retrieve the next page of results. The first call does not contain any tokens.

$sel:maxResults:ListResources', listResources_maxResults - The maximum number of results to return in a single call.

$sel:organizationId:ListResources', listResources_organizationId - The identifier for the organization under which the resources exist.

Request Lenses

listResources_nextToken :: Lens' ListResources (Maybe Text) Source #

The token to use to retrieve the next page of results. The first call does not contain any tokens.

listResources_maxResults :: Lens' ListResources (Maybe Natural) Source #

The maximum number of results to return in a single call.

listResources_organizationId :: Lens' ListResources Text Source #

The identifier for the organization under which the resources exist.

Destructuring the Response

data ListResourcesResponse Source #

See: newListResourcesResponse smart constructor.

Constructors

ListResourcesResponse' 

Fields

  • resources :: Maybe [Resource]

    One page of the organization's resource representation.

  • nextToken :: Maybe Text

    The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListResourcesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Read ListResourcesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Show ListResourcesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Generic ListResourcesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Associated Types

type Rep ListResourcesResponse :: Type -> Type #

NFData ListResourcesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

Methods

rnf :: ListResourcesResponse -> () #

type Rep ListResourcesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListResources

type Rep ListResourcesResponse = D1 ('MetaData "ListResourcesResponse" "Amazonka.WorkMail.ListResources" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "ListResourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Resource])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListResourcesResponse Source #

Create a value of ListResourcesResponse 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:resources:ListResourcesResponse', listResourcesResponse_resources - One page of the organization's resource representation.

$sel:nextToken:ListResources', listResourcesResponse_nextToken - The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.

$sel:httpStatus:ListResourcesResponse', listResourcesResponse_httpStatus - The response's http status code.

Response Lenses

listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource]) Source #

One page of the organization's resource representation.

listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text) Source #

The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.