{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.RDS.DescribeCustomAvailabilityZones
(
DescribeCustomAvailabilityZones (..),
newDescribeCustomAvailabilityZones,
describeCustomAvailabilityZones_filters,
describeCustomAvailabilityZones_customAvailabilityZoneId,
describeCustomAvailabilityZones_marker,
describeCustomAvailabilityZones_maxRecords,
DescribeCustomAvailabilityZonesResponse (..),
newDescribeCustomAvailabilityZonesResponse,
describeCustomAvailabilityZonesResponse_customAvailabilityZones,
describeCustomAvailabilityZonesResponse_marker,
describeCustomAvailabilityZonesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeCustomAvailabilityZones = DescribeCustomAvailabilityZones'
{
DescribeCustomAvailabilityZones -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeCustomAvailabilityZones -> Maybe Text
customAvailabilityZoneId :: Prelude.Maybe Prelude.Text,
DescribeCustomAvailabilityZones -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeCustomAvailabilityZones -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones -> Bool
(DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones -> Bool)
-> (DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones -> Bool)
-> Eq DescribeCustomAvailabilityZones
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones -> Bool
$c/= :: DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones -> Bool
== :: DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones -> Bool
$c== :: DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones -> Bool
Prelude.Eq, ReadPrec [DescribeCustomAvailabilityZones]
ReadPrec DescribeCustomAvailabilityZones
Int -> ReadS DescribeCustomAvailabilityZones
ReadS [DescribeCustomAvailabilityZones]
(Int -> ReadS DescribeCustomAvailabilityZones)
-> ReadS [DescribeCustomAvailabilityZones]
-> ReadPrec DescribeCustomAvailabilityZones
-> ReadPrec [DescribeCustomAvailabilityZones]
-> Read DescribeCustomAvailabilityZones
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCustomAvailabilityZones]
$creadListPrec :: ReadPrec [DescribeCustomAvailabilityZones]
readPrec :: ReadPrec DescribeCustomAvailabilityZones
$creadPrec :: ReadPrec DescribeCustomAvailabilityZones
readList :: ReadS [DescribeCustomAvailabilityZones]
$creadList :: ReadS [DescribeCustomAvailabilityZones]
readsPrec :: Int -> ReadS DescribeCustomAvailabilityZones
$creadsPrec :: Int -> ReadS DescribeCustomAvailabilityZones
Prelude.Read, Int -> DescribeCustomAvailabilityZones -> ShowS
[DescribeCustomAvailabilityZones] -> ShowS
DescribeCustomAvailabilityZones -> String
(Int -> DescribeCustomAvailabilityZones -> ShowS)
-> (DescribeCustomAvailabilityZones -> String)
-> ([DescribeCustomAvailabilityZones] -> ShowS)
-> Show DescribeCustomAvailabilityZones
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomAvailabilityZones] -> ShowS
$cshowList :: [DescribeCustomAvailabilityZones] -> ShowS
show :: DescribeCustomAvailabilityZones -> String
$cshow :: DescribeCustomAvailabilityZones -> String
showsPrec :: Int -> DescribeCustomAvailabilityZones -> ShowS
$cshowsPrec :: Int -> DescribeCustomAvailabilityZones -> ShowS
Prelude.Show, (forall x.
DescribeCustomAvailabilityZones
-> Rep DescribeCustomAvailabilityZones x)
-> (forall x.
Rep DescribeCustomAvailabilityZones x
-> DescribeCustomAvailabilityZones)
-> Generic DescribeCustomAvailabilityZones
forall x.
Rep DescribeCustomAvailabilityZones x
-> DescribeCustomAvailabilityZones
forall x.
DescribeCustomAvailabilityZones
-> Rep DescribeCustomAvailabilityZones x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeCustomAvailabilityZones x
-> DescribeCustomAvailabilityZones
$cfrom :: forall x.
DescribeCustomAvailabilityZones
-> Rep DescribeCustomAvailabilityZones x
Prelude.Generic)
newDescribeCustomAvailabilityZones ::
DescribeCustomAvailabilityZones
newDescribeCustomAvailabilityZones :: DescribeCustomAvailabilityZones
newDescribeCustomAvailabilityZones =
DescribeCustomAvailabilityZones' :: Maybe [Filter]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZones'
{ $sel:filters:DescribeCustomAvailabilityZones' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:customAvailabilityZoneId:DescribeCustomAvailabilityZones' :: Maybe Text
customAvailabilityZoneId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeCustomAvailabilityZones' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeCustomAvailabilityZones' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeCustomAvailabilityZones_filters :: Lens.Lens' DescribeCustomAvailabilityZones (Prelude.Maybe [Filter])
describeCustomAvailabilityZones_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeCustomAvailabilityZones
-> f DescribeCustomAvailabilityZones
describeCustomAvailabilityZones_filters = (DescribeCustomAvailabilityZones -> Maybe [Filter])
-> (DescribeCustomAvailabilityZones
-> Maybe [Filter] -> DescribeCustomAvailabilityZones)
-> Lens
DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZones
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomAvailabilityZones' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeCustomAvailabilityZones
s@DescribeCustomAvailabilityZones' {} Maybe [Filter]
a -> DescribeCustomAvailabilityZones
s {$sel:filters:DescribeCustomAvailabilityZones' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeCustomAvailabilityZones) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeCustomAvailabilityZones
-> f DescribeCustomAvailabilityZones)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeCustomAvailabilityZones
-> f DescribeCustomAvailabilityZones
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeCustomAvailabilityZones_customAvailabilityZoneId :: Lens.Lens' DescribeCustomAvailabilityZones (Prelude.Maybe Prelude.Text)
describeCustomAvailabilityZones_customAvailabilityZoneId :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomAvailabilityZones
-> f DescribeCustomAvailabilityZones
describeCustomAvailabilityZones_customAvailabilityZoneId = (DescribeCustomAvailabilityZones -> Maybe Text)
-> (DescribeCustomAvailabilityZones
-> Maybe Text -> DescribeCustomAvailabilityZones)
-> Lens
DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZones
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomAvailabilityZones' {Maybe Text
customAvailabilityZoneId :: Maybe Text
$sel:customAvailabilityZoneId:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe Text
customAvailabilityZoneId} -> Maybe Text
customAvailabilityZoneId) (\s :: DescribeCustomAvailabilityZones
s@DescribeCustomAvailabilityZones' {} Maybe Text
a -> DescribeCustomAvailabilityZones
s {$sel:customAvailabilityZoneId:DescribeCustomAvailabilityZones' :: Maybe Text
customAvailabilityZoneId = Maybe Text
a} :: DescribeCustomAvailabilityZones)
describeCustomAvailabilityZones_marker :: Lens.Lens' DescribeCustomAvailabilityZones (Prelude.Maybe Prelude.Text)
describeCustomAvailabilityZones_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomAvailabilityZones
-> f DescribeCustomAvailabilityZones
describeCustomAvailabilityZones_marker = (DescribeCustomAvailabilityZones -> Maybe Text)
-> (DescribeCustomAvailabilityZones
-> Maybe Text -> DescribeCustomAvailabilityZones)
-> Lens
DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZones
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomAvailabilityZones' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeCustomAvailabilityZones
s@DescribeCustomAvailabilityZones' {} Maybe Text
a -> DescribeCustomAvailabilityZones
s {$sel:marker:DescribeCustomAvailabilityZones' :: Maybe Text
marker = Maybe Text
a} :: DescribeCustomAvailabilityZones)
describeCustomAvailabilityZones_maxRecords :: Lens.Lens' DescribeCustomAvailabilityZones (Prelude.Maybe Prelude.Int)
describeCustomAvailabilityZones_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeCustomAvailabilityZones
-> f DescribeCustomAvailabilityZones
describeCustomAvailabilityZones_maxRecords = (DescribeCustomAvailabilityZones -> Maybe Int)
-> (DescribeCustomAvailabilityZones
-> Maybe Int -> DescribeCustomAvailabilityZones)
-> Lens
DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZones
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomAvailabilityZones' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeCustomAvailabilityZones
s@DescribeCustomAvailabilityZones' {} Maybe Int
a -> DescribeCustomAvailabilityZones
s {$sel:maxRecords:DescribeCustomAvailabilityZones' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeCustomAvailabilityZones)
instance
Core.AWSPager
DescribeCustomAvailabilityZones
where
page :: DescribeCustomAvailabilityZones
-> AWSResponse DescribeCustomAvailabilityZones
-> Maybe DescribeCustomAvailabilityZones
page DescribeCustomAvailabilityZones
rq AWSResponse DescribeCustomAvailabilityZones
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZonesResponse
rs
DescribeCustomAvailabilityZonesResponse
-> Getting
(First Text) DescribeCustomAvailabilityZonesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCustomAvailabilityZonesResponse
-> Const (First Text) DescribeCustomAvailabilityZonesResponse
Lens' DescribeCustomAvailabilityZonesResponse (Maybe Text)
describeCustomAvailabilityZonesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCustomAvailabilityZonesResponse
-> Const (First Text) DescribeCustomAvailabilityZonesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeCustomAvailabilityZonesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeCustomAvailabilityZones
forall a. Maybe a
Prelude.Nothing
| Maybe [CustomAvailabilityZone] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZonesResponse
rs
DescribeCustomAvailabilityZonesResponse
-> Getting
(First [CustomAvailabilityZone])
DescribeCustomAvailabilityZonesResponse
[CustomAvailabilityZone]
-> Maybe [CustomAvailabilityZone]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [CustomAvailabilityZone]
-> Const
(First [CustomAvailabilityZone]) (Maybe [CustomAvailabilityZone]))
-> DescribeCustomAvailabilityZonesResponse
-> Const
(First [CustomAvailabilityZone])
DescribeCustomAvailabilityZonesResponse
Lens'
DescribeCustomAvailabilityZonesResponse
(Maybe [CustomAvailabilityZone])
describeCustomAvailabilityZonesResponse_customAvailabilityZones
((Maybe [CustomAvailabilityZone]
-> Const
(First [CustomAvailabilityZone]) (Maybe [CustomAvailabilityZone]))
-> DescribeCustomAvailabilityZonesResponse
-> Const
(First [CustomAvailabilityZone])
DescribeCustomAvailabilityZonesResponse)
-> (([CustomAvailabilityZone]
-> Const (First [CustomAvailabilityZone]) [CustomAvailabilityZone])
-> Maybe [CustomAvailabilityZone]
-> Const
(First [CustomAvailabilityZone]) (Maybe [CustomAvailabilityZone]))
-> Getting
(First [CustomAvailabilityZone])
DescribeCustomAvailabilityZonesResponse
[CustomAvailabilityZone]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([CustomAvailabilityZone]
-> Const (First [CustomAvailabilityZone]) [CustomAvailabilityZone])
-> Maybe [CustomAvailabilityZone]
-> Const
(First [CustomAvailabilityZone]) (Maybe [CustomAvailabilityZone])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeCustomAvailabilityZones
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeCustomAvailabilityZones
-> Maybe DescribeCustomAvailabilityZones
forall a. a -> Maybe a
Prelude.Just (DescribeCustomAvailabilityZones
-> Maybe DescribeCustomAvailabilityZones)
-> DescribeCustomAvailabilityZones
-> Maybe DescribeCustomAvailabilityZones
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeCustomAvailabilityZones
rq
DescribeCustomAvailabilityZones
-> (DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones)
-> DescribeCustomAvailabilityZones
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeCustomAvailabilityZones
-> Identity DescribeCustomAvailabilityZones
Lens
DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZones
(Maybe Text)
(Maybe Text)
describeCustomAvailabilityZones_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeCustomAvailabilityZones
-> Identity DescribeCustomAvailabilityZones)
-> Maybe Text
-> DescribeCustomAvailabilityZones
-> DescribeCustomAvailabilityZones
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeCustomAvailabilityZones
DescribeCustomAvailabilityZonesResponse
rs
DescribeCustomAvailabilityZonesResponse
-> Getting
(First Text) DescribeCustomAvailabilityZonesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCustomAvailabilityZonesResponse
-> Const (First Text) DescribeCustomAvailabilityZonesResponse
Lens' DescribeCustomAvailabilityZonesResponse (Maybe Text)
describeCustomAvailabilityZonesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCustomAvailabilityZonesResponse
-> Const (First Text) DescribeCustomAvailabilityZonesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeCustomAvailabilityZonesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
DescribeCustomAvailabilityZones
where
type
AWSResponse DescribeCustomAvailabilityZones =
DescribeCustomAvailabilityZonesResponse
request :: DescribeCustomAvailabilityZones
-> Request DescribeCustomAvailabilityZones
request = Service
-> DescribeCustomAvailabilityZones
-> Request DescribeCustomAvailabilityZones
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeCustomAvailabilityZones
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeCustomAvailabilityZones)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeCustomAvailabilityZones))
-> Logger
-> Service
-> Proxy DescribeCustomAvailabilityZones
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeCustomAvailabilityZones)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DescribeCustomAvailabilityZonesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [CustomAvailabilityZone]
-> Maybe Text -> Int -> DescribeCustomAvailabilityZonesResponse
DescribeCustomAvailabilityZonesResponse'
(Maybe [CustomAvailabilityZone]
-> Maybe Text -> Int -> DescribeCustomAvailabilityZonesResponse)
-> Either String (Maybe [CustomAvailabilityZone])
-> Either
String
(Maybe Text -> Int -> DescribeCustomAvailabilityZonesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CustomAvailabilityZones"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [CustomAvailabilityZone]))
-> Either String (Maybe [CustomAvailabilityZone])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [CustomAvailabilityZone])
-> [Node] -> Either String (Maybe [CustomAvailabilityZone])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
(Text -> [Node] -> Either String [CustomAvailabilityZone]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"CustomAvailabilityZone")
)
Either
String
(Maybe Text -> Int -> DescribeCustomAvailabilityZonesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeCustomAvailabilityZonesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
Either String (Int -> DescribeCustomAvailabilityZonesResponse)
-> Either String Int
-> Either String DescribeCustomAvailabilityZonesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DescribeCustomAvailabilityZones
instance
Prelude.NFData
DescribeCustomAvailabilityZones
instance
Core.ToHeaders
DescribeCustomAvailabilityZones
where
toHeaders :: DescribeCustomAvailabilityZones -> ResponseHeaders
toHeaders = ResponseHeaders
-> DescribeCustomAvailabilityZones -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeCustomAvailabilityZones where
toPath :: DescribeCustomAvailabilityZones -> ByteString
toPath = ByteString -> DescribeCustomAvailabilityZones -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeCustomAvailabilityZones where
toQuery :: DescribeCustomAvailabilityZones -> QueryString
toQuery DescribeCustomAvailabilityZones' {Maybe Int
Maybe [Filter]
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
customAvailabilityZoneId :: Maybe Text
filters :: Maybe [Filter]
$sel:maxRecords:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe Int
$sel:marker:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe Text
$sel:customAvailabilityZoneId:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe Text
$sel:filters:DescribeCustomAvailabilityZones' :: DescribeCustomAvailabilityZones -> Maybe [Filter]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DescribeCustomAvailabilityZones" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"Filters"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
ByteString
"CustomAvailabilityZoneId"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
customAvailabilityZoneId,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords
]
data DescribeCustomAvailabilityZonesResponse = DescribeCustomAvailabilityZonesResponse'
{
DescribeCustomAvailabilityZonesResponse
-> Maybe [CustomAvailabilityZone]
customAvailabilityZones :: Prelude.Maybe [CustomAvailabilityZone],
DescribeCustomAvailabilityZonesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeCustomAvailabilityZonesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeCustomAvailabilityZonesResponse
-> DescribeCustomAvailabilityZonesResponse -> Bool
(DescribeCustomAvailabilityZonesResponse
-> DescribeCustomAvailabilityZonesResponse -> Bool)
-> (DescribeCustomAvailabilityZonesResponse
-> DescribeCustomAvailabilityZonesResponse -> Bool)
-> Eq DescribeCustomAvailabilityZonesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomAvailabilityZonesResponse
-> DescribeCustomAvailabilityZonesResponse -> Bool
$c/= :: DescribeCustomAvailabilityZonesResponse
-> DescribeCustomAvailabilityZonesResponse -> Bool
== :: DescribeCustomAvailabilityZonesResponse
-> DescribeCustomAvailabilityZonesResponse -> Bool
$c== :: DescribeCustomAvailabilityZonesResponse
-> DescribeCustomAvailabilityZonesResponse -> Bool
Prelude.Eq, Int -> DescribeCustomAvailabilityZonesResponse -> ShowS
[DescribeCustomAvailabilityZonesResponse] -> ShowS
DescribeCustomAvailabilityZonesResponse -> String
(Int -> DescribeCustomAvailabilityZonesResponse -> ShowS)
-> (DescribeCustomAvailabilityZonesResponse -> String)
-> ([DescribeCustomAvailabilityZonesResponse] -> ShowS)
-> Show DescribeCustomAvailabilityZonesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomAvailabilityZonesResponse] -> ShowS
$cshowList :: [DescribeCustomAvailabilityZonesResponse] -> ShowS
show :: DescribeCustomAvailabilityZonesResponse -> String
$cshow :: DescribeCustomAvailabilityZonesResponse -> String
showsPrec :: Int -> DescribeCustomAvailabilityZonesResponse -> ShowS
$cshowsPrec :: Int -> DescribeCustomAvailabilityZonesResponse -> ShowS
Prelude.Show, (forall x.
DescribeCustomAvailabilityZonesResponse
-> Rep DescribeCustomAvailabilityZonesResponse x)
-> (forall x.
Rep DescribeCustomAvailabilityZonesResponse x
-> DescribeCustomAvailabilityZonesResponse)
-> Generic DescribeCustomAvailabilityZonesResponse
forall x.
Rep DescribeCustomAvailabilityZonesResponse x
-> DescribeCustomAvailabilityZonesResponse
forall x.
DescribeCustomAvailabilityZonesResponse
-> Rep DescribeCustomAvailabilityZonesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeCustomAvailabilityZonesResponse x
-> DescribeCustomAvailabilityZonesResponse
$cfrom :: forall x.
DescribeCustomAvailabilityZonesResponse
-> Rep DescribeCustomAvailabilityZonesResponse x
Prelude.Generic)
newDescribeCustomAvailabilityZonesResponse ::
Prelude.Int ->
DescribeCustomAvailabilityZonesResponse
newDescribeCustomAvailabilityZonesResponse :: Int -> DescribeCustomAvailabilityZonesResponse
newDescribeCustomAvailabilityZonesResponse
Int
pHttpStatus_ =
DescribeCustomAvailabilityZonesResponse' :: Maybe [CustomAvailabilityZone]
-> Maybe Text -> Int -> DescribeCustomAvailabilityZonesResponse
DescribeCustomAvailabilityZonesResponse'
{ $sel:customAvailabilityZones:DescribeCustomAvailabilityZonesResponse' :: Maybe [CustomAvailabilityZone]
customAvailabilityZones =
Maybe [CustomAvailabilityZone]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeCustomAvailabilityZonesResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeCustomAvailabilityZonesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeCustomAvailabilityZonesResponse_customAvailabilityZones :: Lens.Lens' DescribeCustomAvailabilityZonesResponse (Prelude.Maybe [CustomAvailabilityZone])
describeCustomAvailabilityZonesResponse_customAvailabilityZones :: (Maybe [CustomAvailabilityZone]
-> f (Maybe [CustomAvailabilityZone]))
-> DescribeCustomAvailabilityZonesResponse
-> f DescribeCustomAvailabilityZonesResponse
describeCustomAvailabilityZonesResponse_customAvailabilityZones = (DescribeCustomAvailabilityZonesResponse
-> Maybe [CustomAvailabilityZone])
-> (DescribeCustomAvailabilityZonesResponse
-> Maybe [CustomAvailabilityZone]
-> DescribeCustomAvailabilityZonesResponse)
-> Lens'
DescribeCustomAvailabilityZonesResponse
(Maybe [CustomAvailabilityZone])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomAvailabilityZonesResponse' {Maybe [CustomAvailabilityZone]
customAvailabilityZones :: Maybe [CustomAvailabilityZone]
$sel:customAvailabilityZones:DescribeCustomAvailabilityZonesResponse' :: DescribeCustomAvailabilityZonesResponse
-> Maybe [CustomAvailabilityZone]
customAvailabilityZones} -> Maybe [CustomAvailabilityZone]
customAvailabilityZones) (\s :: DescribeCustomAvailabilityZonesResponse
s@DescribeCustomAvailabilityZonesResponse' {} Maybe [CustomAvailabilityZone]
a -> DescribeCustomAvailabilityZonesResponse
s {$sel:customAvailabilityZones:DescribeCustomAvailabilityZonesResponse' :: Maybe [CustomAvailabilityZone]
customAvailabilityZones = Maybe [CustomAvailabilityZone]
a} :: DescribeCustomAvailabilityZonesResponse) ((Maybe [CustomAvailabilityZone]
-> f (Maybe [CustomAvailabilityZone]))
-> DescribeCustomAvailabilityZonesResponse
-> f DescribeCustomAvailabilityZonesResponse)
-> ((Maybe [CustomAvailabilityZone]
-> f (Maybe [CustomAvailabilityZone]))
-> Maybe [CustomAvailabilityZone]
-> f (Maybe [CustomAvailabilityZone]))
-> (Maybe [CustomAvailabilityZone]
-> f (Maybe [CustomAvailabilityZone]))
-> DescribeCustomAvailabilityZonesResponse
-> f DescribeCustomAvailabilityZonesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CustomAvailabilityZone]
[CustomAvailabilityZone]
[CustomAvailabilityZone]
[CustomAvailabilityZone]
-> Iso
(Maybe [CustomAvailabilityZone])
(Maybe [CustomAvailabilityZone])
(Maybe [CustomAvailabilityZone])
(Maybe [CustomAvailabilityZone])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[CustomAvailabilityZone]
[CustomAvailabilityZone]
[CustomAvailabilityZone]
[CustomAvailabilityZone]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeCustomAvailabilityZonesResponse_marker :: Lens.Lens' DescribeCustomAvailabilityZonesResponse (Prelude.Maybe Prelude.Text)
describeCustomAvailabilityZonesResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomAvailabilityZonesResponse
-> f DescribeCustomAvailabilityZonesResponse
describeCustomAvailabilityZonesResponse_marker = (DescribeCustomAvailabilityZonesResponse -> Maybe Text)
-> (DescribeCustomAvailabilityZonesResponse
-> Maybe Text -> DescribeCustomAvailabilityZonesResponse)
-> Lens' DescribeCustomAvailabilityZonesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomAvailabilityZonesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeCustomAvailabilityZonesResponse' :: DescribeCustomAvailabilityZonesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeCustomAvailabilityZonesResponse
s@DescribeCustomAvailabilityZonesResponse' {} Maybe Text
a -> DescribeCustomAvailabilityZonesResponse
s {$sel:marker:DescribeCustomAvailabilityZonesResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeCustomAvailabilityZonesResponse)
describeCustomAvailabilityZonesResponse_httpStatus :: Lens.Lens' DescribeCustomAvailabilityZonesResponse Prelude.Int
describeCustomAvailabilityZonesResponse_httpStatus :: (Int -> f Int)
-> DescribeCustomAvailabilityZonesResponse
-> f DescribeCustomAvailabilityZonesResponse
describeCustomAvailabilityZonesResponse_httpStatus = (DescribeCustomAvailabilityZonesResponse -> Int)
-> (DescribeCustomAvailabilityZonesResponse
-> Int -> DescribeCustomAvailabilityZonesResponse)
-> Lens
DescribeCustomAvailabilityZonesResponse
DescribeCustomAvailabilityZonesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomAvailabilityZonesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeCustomAvailabilityZonesResponse' :: DescribeCustomAvailabilityZonesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeCustomAvailabilityZonesResponse
s@DescribeCustomAvailabilityZonesResponse' {} Int
a -> DescribeCustomAvailabilityZonesResponse
s {$sel:httpStatus:DescribeCustomAvailabilityZonesResponse' :: Int
httpStatus = Int
a} :: DescribeCustomAvailabilityZonesResponse)
instance
Prelude.NFData
DescribeCustomAvailabilityZonesResponse