amazonka-sms-2.0: Amazon Server Migration 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.SMS.GetServers

Description

Describes the servers in your server catalog.

Before you can describe your servers, you must import them using ImportServerCatalog.

This operation returns paginated results.

Synopsis

Creating a Request

data GetServers Source #

See: newGetServers smart constructor.

Constructors

GetServers' 

Fields

Instances

Instances details
ToJSON GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

ToHeaders GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Methods

toHeaders :: GetServers -> [Header] #

ToPath GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

ToQuery GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

AWSPager GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

AWSRequest GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Associated Types

type AWSResponse GetServers #

Generic GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Associated Types

type Rep GetServers :: Type -> Type #

Read GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Show GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

NFData GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Methods

rnf :: GetServers -> () #

Eq GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Hashable GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

type AWSResponse GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

type Rep GetServers Source # 
Instance details

Defined in Amazonka.SMS.GetServers

type Rep GetServers = D1 ('MetaData "GetServers" "Amazonka.SMS.GetServers" "amazonka-sms-2.0-4YLznk7UFuE5VtyLFXmW6X" 'False) (C1 ('MetaCons "GetServers'" '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 "vmServerAddressList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [VmServerAddress])))))

newGetServers :: GetServers Source #

Create a value of GetServers 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:GetServers', getServers_maxResults - The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

GetServers, getServers_nextToken - The token for the next set of results.

$sel:vmServerAddressList:GetServers', getServers_vmServerAddressList - The server addresses.

Request Lenses

getServers_maxResults :: Lens' GetServers (Maybe Int) Source #

The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

getServers_nextToken :: Lens' GetServers (Maybe Text) Source #

The token for the next set of results.

Destructuring the Response

data GetServersResponse Source #

See: newGetServersResponse smart constructor.

Constructors

GetServersResponse' 

Fields

Instances

Instances details
Generic GetServersResponse Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Associated Types

type Rep GetServersResponse :: Type -> Type #

Read GetServersResponse Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Show GetServersResponse Source # 
Instance details

Defined in Amazonka.SMS.GetServers

NFData GetServersResponse Source # 
Instance details

Defined in Amazonka.SMS.GetServers

Methods

rnf :: GetServersResponse -> () #

Eq GetServersResponse Source # 
Instance details

Defined in Amazonka.SMS.GetServers

type Rep GetServersResponse Source # 
Instance details

Defined in Amazonka.SMS.GetServers

type Rep GetServersResponse = D1 ('MetaData "GetServersResponse" "Amazonka.SMS.GetServers" "amazonka-sms-2.0-4YLznk7UFuE5VtyLFXmW6X" 'False) (C1 ('MetaCons "GetServersResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lastModifiedOn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "serverCatalogStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ServerCatalogStatus)) :*: (S1 ('MetaSel ('Just "serverList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Server])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetServersResponse Source #

Create a value of GetServersResponse 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:lastModifiedOn:GetServersResponse', getServersResponse_lastModifiedOn - The time when the server was last modified.

GetServers, getServersResponse_nextToken - The token required to retrieve the next set of results. This value is null when there are no more results to return.

$sel:serverCatalogStatus:GetServersResponse', getServersResponse_serverCatalogStatus - The status of the server catalog.

GetServersResponse, getServersResponse_serverList - Information about the servers.

$sel:httpStatus:GetServersResponse', getServersResponse_httpStatus - The response's http status code.

Response Lenses

getServersResponse_lastModifiedOn :: Lens' GetServersResponse (Maybe UTCTime) Source #

The time when the server was last modified.

getServersResponse_nextToken :: Lens' GetServersResponse (Maybe Text) Source #

The token required to retrieve the next set of results. This value is null when there are no more results to return.