libZSservicesZSamazonka-lightsailZSamazonka-lightsail
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.Lightsail.GetRegions

Description

Returns a list of all valid regions for Amazon Lightsail. Use the include availability zones parameter to also return the Availability Zones in a region.

Synopsis

Creating a Request

data GetRegions Source #

See: newGetRegions smart constructor.

Constructors

GetRegions' 

Fields

  • includeRelationalDatabaseAvailabilityZones :: Maybe Bool

    A Boolean value indicating whether to also include Availability Zones for databases in your get regions request. Availability Zones are indicated with a letter (e.g., us-east-2a).

  • includeAvailabilityZones :: Maybe Bool

    A Boolean value indicating whether to also include Availability Zones in your get regions request. Availability Zones are indicated with a letter: e.g., us-east-2a.

Instances

Instances details
Eq GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Read GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Show GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Generic GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Associated Types

type Rep GetRegions :: Type -> Type #

NFData GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Methods

rnf :: GetRegions -> () #

Hashable GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

ToJSON GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

AWSRequest GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Associated Types

type AWSResponse GetRegions #

ToHeaders GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Methods

toHeaders :: GetRegions -> [Header] #

ToPath GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

ToQuery GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

type Rep GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

type Rep GetRegions = D1 ('MetaData "GetRegions" "Amazonka.Lightsail.GetRegions" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetRegions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "includeRelationalDatabaseAvailabilityZones") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "includeAvailabilityZones") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))
type AWSResponse GetRegions Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

newGetRegions :: GetRegions Source #

Create a value of GetRegions 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:includeRelationalDatabaseAvailabilityZones:GetRegions', getRegions_includeRelationalDatabaseAvailabilityZones - A Boolean value indicating whether to also include Availability Zones for databases in your get regions request. Availability Zones are indicated with a letter (e.g., us-east-2a).

$sel:includeAvailabilityZones:GetRegions', getRegions_includeAvailabilityZones - A Boolean value indicating whether to also include Availability Zones in your get regions request. Availability Zones are indicated with a letter: e.g., us-east-2a.

Request Lenses

getRegions_includeRelationalDatabaseAvailabilityZones :: Lens' GetRegions (Maybe Bool) Source #

A Boolean value indicating whether to also include Availability Zones for databases in your get regions request. Availability Zones are indicated with a letter (e.g., us-east-2a).

getRegions_includeAvailabilityZones :: Lens' GetRegions (Maybe Bool) Source #

A Boolean value indicating whether to also include Availability Zones in your get regions request. Availability Zones are indicated with a letter: e.g., us-east-2a.

Destructuring the Response

data GetRegionsResponse Source #

See: newGetRegionsResponse smart constructor.

Constructors

GetRegionsResponse' 

Fields

Instances

Instances details
Eq GetRegionsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Read GetRegionsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Show GetRegionsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Generic GetRegionsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Associated Types

type Rep GetRegionsResponse :: Type -> Type #

NFData GetRegionsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

Methods

rnf :: GetRegionsResponse -> () #

type Rep GetRegionsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetRegions

type Rep GetRegionsResponse = D1 ('MetaData "GetRegionsResponse" "Amazonka.Lightsail.GetRegions" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetRegionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "regions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RegionInfo])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetRegionsResponse Source #

Create a value of GetRegionsResponse 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:regions:GetRegionsResponse', getRegionsResponse_regions - An array of key-value pairs containing information about your get regions request.

$sel:httpStatus:GetRegionsResponse', getRegionsResponse_httpStatus - The response's http status code.

Response Lenses

getRegionsResponse_regions :: Lens' GetRegionsResponse (Maybe [RegionInfo]) Source #

An array of key-value pairs containing information about your get regions request.