amazonka-gamelift-2.0: Amazon GameLift 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.GameLift.ListAliases

Description

Retrieves all aliases for this Amazon Web Services account. You can filter the result set by alias name and/or routing strategy type. Use the pagination parameters to retrieve results in sequential pages.

Returned aliases are not listed in any particular order.

Related actions

All APIs by task

This operation returns paginated results.

Synopsis

Creating a Request

data ListAliases Source #

See: newListAliases smart constructor.

Constructors

ListAliases' 

Fields

  • limit :: Maybe Natural

    The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

  • name :: Maybe Text

    A descriptive label that is associated with an alias. Alias names do not need to be unique.

  • nextToken :: Maybe Text

    A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

  • routingStrategyType :: Maybe RoutingStrategyType

    The routing type to filter results on. Use this parameter to retrieve only aliases with a certain routing type. To retrieve all aliases, leave this parameter empty.

    Possible routing types include the following:

    • SIMPLE -- The alias resolves to one specific fleet. Use this type when routing to active fleets.
    • TERMINAL -- The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.

Instances

Instances details
ToJSON ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

ToHeaders ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Methods

toHeaders :: ListAliases -> [Header] #

ToPath ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

ToQuery ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

AWSPager ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

AWSRequest ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Associated Types

type AWSResponse ListAliases #

Generic ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Associated Types

type Rep ListAliases :: Type -> Type #

Read ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Show ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

NFData ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Methods

rnf :: ListAliases -> () #

Eq ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Hashable ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

type AWSResponse ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

type Rep ListAliases Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

type Rep ListAliases = D1 ('MetaData "ListAliases" "Amazonka.GameLift.ListAliases" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "ListAliases'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "routingStrategyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RoutingStrategyType)))))

newListAliases :: ListAliases Source #

Create a value of ListAliases 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:limit:ListAliases', listAliases_limit - The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

ListAliases, listAliases_name - A descriptive label that is associated with an alias. Alias names do not need to be unique.

ListAliases, listAliases_nextToken - A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

$sel:routingStrategyType:ListAliases', listAliases_routingStrategyType - The routing type to filter results on. Use this parameter to retrieve only aliases with a certain routing type. To retrieve all aliases, leave this parameter empty.

Possible routing types include the following:

  • SIMPLE -- The alias resolves to one specific fleet. Use this type when routing to active fleets.
  • TERMINAL -- The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.

Request Lenses

listAliases_limit :: Lens' ListAliases (Maybe Natural) Source #

The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

listAliases_name :: Lens' ListAliases (Maybe Text) Source #

A descriptive label that is associated with an alias. Alias names do not need to be unique.

listAliases_nextToken :: Lens' ListAliases (Maybe Text) Source #

A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

listAliases_routingStrategyType :: Lens' ListAliases (Maybe RoutingStrategyType) Source #

The routing type to filter results on. Use this parameter to retrieve only aliases with a certain routing type. To retrieve all aliases, leave this parameter empty.

Possible routing types include the following:

  • SIMPLE -- The alias resolves to one specific fleet. Use this type when routing to active fleets.
  • TERMINAL -- The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.

Destructuring the Response

data ListAliasesResponse Source #

See: newListAliasesResponse smart constructor.

Constructors

ListAliasesResponse' 

Fields

  • aliases :: Maybe [Alias]

    A collection of alias resources that match the request parameters.

  • nextToken :: Maybe Text

    A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListAliasesResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Associated Types

type Rep ListAliasesResponse :: Type -> Type #

Read ListAliasesResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Show ListAliasesResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

NFData ListAliasesResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

Methods

rnf :: ListAliasesResponse -> () #

Eq ListAliasesResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

type Rep ListAliasesResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListAliases

type Rep ListAliasesResponse = D1 ('MetaData "ListAliasesResponse" "Amazonka.GameLift.ListAliases" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "ListAliasesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "aliases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Alias])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListAliasesResponse Source #

Create a value of ListAliasesResponse 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:aliases:ListAliasesResponse', listAliasesResponse_aliases - A collection of alias resources that match the request parameters.

ListAliases, listAliasesResponse_nextToken - A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

$sel:httpStatus:ListAliasesResponse', listAliasesResponse_httpStatus - The response's http status code.

Response Lenses

listAliasesResponse_aliases :: Lens' ListAliasesResponse (Maybe [Alias]) Source #

A collection of alias resources that match the request parameters.

listAliasesResponse_nextToken :: Lens' ListAliasesResponse (Maybe Text) Source #

A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.