amazonka-m2-2.0: Amazon MainframeModernization 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.M2.ListEnvironments

Description

Lists the runtime environments.

This operation returns paginated results.

Synopsis

Creating a Request

data ListEnvironments Source #

See: newListEnvironments smart constructor.

Constructors

ListEnvironments' 

Fields

Instances

Instances details
ToHeaders ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

ToPath ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

ToQuery ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

AWSPager ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

AWSRequest ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Associated Types

type AWSResponse ListEnvironments #

Generic ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Associated Types

type Rep ListEnvironments :: Type -> Type #

Read ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Show ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

NFData ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Methods

rnf :: ListEnvironments -> () #

Eq ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Hashable ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

type AWSResponse ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

type Rep ListEnvironments Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

type Rep ListEnvironments = D1 ('MetaData "ListEnvironments" "Amazonka.M2.ListEnvironments" "amazonka-m2-2.0-1kXEGTJs74f5RPbatSDeMH" 'False) (C1 ('MetaCons "ListEnvironments'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "engineType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EngineType)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "names") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListEnvironments :: ListEnvironments Source #

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

ListEnvironments, listEnvironments_engineType - The engine type for the runtime environment.

$sel:maxResults:ListEnvironments', listEnvironments_maxResults - The maximum number of runtime environments to return.

$sel:names:ListEnvironments', listEnvironments_names - The names of the runtime environments. Must be unique within the account.

ListEnvironments, listEnvironments_nextToken - A pagination token to control the number of runtime environments displayed in the list.

Request Lenses

listEnvironments_engineType :: Lens' ListEnvironments (Maybe EngineType) Source #

The engine type for the runtime environment.

listEnvironments_maxResults :: Lens' ListEnvironments (Maybe Natural) Source #

The maximum number of runtime environments to return.

listEnvironments_names :: Lens' ListEnvironments (Maybe (NonEmpty Text)) Source #

The names of the runtime environments. Must be unique within the account.

listEnvironments_nextToken :: Lens' ListEnvironments (Maybe Text) Source #

A pagination token to control the number of runtime environments displayed in the list.

Destructuring the Response

data ListEnvironmentsResponse Source #

See: newListEnvironmentsResponse smart constructor.

Constructors

ListEnvironmentsResponse' 

Fields

Instances

Instances details
Generic ListEnvironmentsResponse Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Associated Types

type Rep ListEnvironmentsResponse :: Type -> Type #

Read ListEnvironmentsResponse Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Show ListEnvironmentsResponse Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

NFData ListEnvironmentsResponse Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

Eq ListEnvironmentsResponse Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

type Rep ListEnvironmentsResponse Source # 
Instance details

Defined in Amazonka.M2.ListEnvironments

type Rep ListEnvironmentsResponse = D1 ('MetaData "ListEnvironmentsResponse" "Amazonka.M2.ListEnvironments" "amazonka-m2-2.0-1kXEGTJs74f5RPbatSDeMH" 'False) (C1 ('MetaCons "ListEnvironmentsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "environments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [EnvironmentSummary]))))

newListEnvironmentsResponse Source #

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

ListEnvironments, listEnvironmentsResponse_nextToken - A pagination token that's returned when the response doesn't contain all the runtime environments.

$sel:httpStatus:ListEnvironmentsResponse', listEnvironmentsResponse_httpStatus - The response's http status code.

$sel:environments:ListEnvironmentsResponse', listEnvironmentsResponse_environments - Returns a list of summary details for all the runtime environments in your account.

Response Lenses

listEnvironmentsResponse_nextToken :: Lens' ListEnvironmentsResponse (Maybe Text) Source #

A pagination token that's returned when the response doesn't contain all the runtime environments.

listEnvironmentsResponse_environments :: Lens' ListEnvironmentsResponse [EnvironmentSummary] Source #

Returns a list of summary details for all the runtime environments in your account.