amazonka-migrationhubstrategy-2.0: Amazon Migration Hub Strategy Recommendations 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.MigrationHubStrategy.ListServers

Description

Returns a list of all the servers.

This operation returns paginated results.

Synopsis

Creating a Request

data ListServers Source #

See: newListServers smart constructor.

Constructors

ListServers' 

Fields

  • filterValue :: Maybe Text

    Specifies the filter value, which is based on the type of server criteria. For example, if serverCriteria is OS_NAME, and the filterValue is equal to WindowsServer, then ListServers returns all of the servers matching the OS name WindowsServer.

  • groupIdFilter :: Maybe [Group]

    Specifies the group ID to filter on.

  • maxResults :: Maybe Int

    The maximum number of items to include in the response. The maximum value is 100.

  • nextToken :: Maybe Text

    The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.

  • serverCriteria :: Maybe ServerCriteria

    Criteria for filtering servers.

  • sort :: Maybe SortOrder

    Specifies whether to sort by ascending (ASC) or descending (DESC) order.

Instances

Instances details
ToJSON ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

ToHeaders ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Methods

toHeaders :: ListServers -> [Header] #

ToPath ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

ToQuery ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

AWSPager ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

AWSRequest ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Associated Types

type AWSResponse ListServers #

Generic ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Associated Types

type Rep ListServers :: Type -> Type #

Read ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Show ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

NFData ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Methods

rnf :: ListServers -> () #

Eq ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Hashable ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

type AWSResponse ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

type Rep ListServers Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

type Rep ListServers = D1 ('MetaData "ListServers" "Amazonka.MigrationHubStrategy.ListServers" "amazonka-migrationhubstrategy-2.0-mnEPazDQ9LCt8OMOo53lQ" 'False) (C1 ('MetaCons "ListServers'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filterValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "groupIdFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Group])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "serverCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ServerCriteria)) :*: S1 ('MetaSel ('Just "sort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SortOrder))))))

newListServers :: ListServers Source #

Create a value of ListServers 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:filterValue:ListServers', listServers_filterValue - Specifies the filter value, which is based on the type of server criteria. For example, if serverCriteria is OS_NAME, and the filterValue is equal to WindowsServer, then ListServers returns all of the servers matching the OS name WindowsServer.

$sel:groupIdFilter:ListServers', listServers_groupIdFilter - Specifies the group ID to filter on.

$sel:maxResults:ListServers', listServers_maxResults - The maximum number of items to include in the response. The maximum value is 100.

ListServers, listServers_nextToken - The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.

$sel:serverCriteria:ListServers', listServers_serverCriteria - Criteria for filtering servers.

$sel:sort:ListServers', listServers_sort - Specifies whether to sort by ascending (ASC) or descending (DESC) order.

Request Lenses

listServers_filterValue :: Lens' ListServers (Maybe Text) Source #

Specifies the filter value, which is based on the type of server criteria. For example, if serverCriteria is OS_NAME, and the filterValue is equal to WindowsServer, then ListServers returns all of the servers matching the OS name WindowsServer.

listServers_groupIdFilter :: Lens' ListServers (Maybe [Group]) Source #

Specifies the group ID to filter on.

listServers_maxResults :: Lens' ListServers (Maybe Int) Source #

The maximum number of items to include in the response. The maximum value is 100.

listServers_nextToken :: Lens' ListServers (Maybe Text) Source #

The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.

listServers_sort :: Lens' ListServers (Maybe SortOrder) Source #

Specifies whether to sort by ascending (ASC) or descending (DESC) order.

Destructuring the Response

data ListServersResponse Source #

See: newListServersResponse smart constructor.

Constructors

ListServersResponse' 

Fields

Instances

Instances details
Generic ListServersResponse Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Associated Types

type Rep ListServersResponse :: Type -> Type #

Read ListServersResponse Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Show ListServersResponse Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

NFData ListServersResponse Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

Methods

rnf :: ListServersResponse -> () #

Eq ListServersResponse Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

type Rep ListServersResponse Source # 
Instance details

Defined in Amazonka.MigrationHubStrategy.ListServers

type Rep ListServersResponse = D1 ('MetaData "ListServersResponse" "Amazonka.MigrationHubStrategy.ListServers" "amazonka-migrationhubstrategy-2.0-mnEPazDQ9LCt8OMOo53lQ" 'False) (C1 ('MetaCons "ListServersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "serverInfos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ServerDetail])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListServersResponse Source #

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

ListServers, listServersResponse_nextToken - The token you use to retrieve the next set of results, or null if there are no more results.

$sel:serverInfos:ListServersResponse', listServersResponse_serverInfos - The list of servers with detailed information about each server.

$sel:httpStatus:ListServersResponse', listServersResponse_httpStatus - The response's http status code.

Response Lenses

listServersResponse_nextToken :: Lens' ListServersResponse (Maybe Text) Source #

The token you use to retrieve the next set of results, or null if there are no more results.

listServersResponse_serverInfos :: Lens' ListServersResponse (Maybe [ServerDetail]) Source #

The list of servers with detailed information about each server.