Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data GetRegions = GetRegions' {}
- newGetRegions :: GetRegions
- getRegions_includeRelationalDatabaseAvailabilityZones :: Lens' GetRegions (Maybe Bool)
- getRegions_includeAvailabilityZones :: Lens' GetRegions (Maybe Bool)
- data GetRegionsResponse = GetRegionsResponse' {
- regions :: Maybe [RegionInfo]
- httpStatus :: Int
- newGetRegionsResponse :: Int -> GetRegionsResponse
- getRegionsResponse_regions :: Lens' GetRegionsResponse (Maybe [RegionInfo])
- getRegionsResponse_httpStatus :: Lens' GetRegionsResponse Int
Creating a Request
data GetRegions Source #
See: newGetRegions
smart constructor.
GetRegions' | |
|
Instances
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.
GetRegionsResponse' | |
|
Instances
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.
getRegionsResponse_httpStatus :: Lens' GetRegionsResponse Int Source #
The response's http status code.