{-# 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.EC2.DescribeIpv6Pools
(
DescribeIpv6Pools (..),
newDescribeIpv6Pools,
describeIpv6Pools_dryRun,
describeIpv6Pools_filters,
describeIpv6Pools_maxResults,
describeIpv6Pools_nextToken,
describeIpv6Pools_poolIds,
DescribeIpv6PoolsResponse (..),
newDescribeIpv6PoolsResponse,
describeIpv6PoolsResponse_ipv6Pools,
describeIpv6PoolsResponse_nextToken,
describeIpv6PoolsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeIpv6Pools = DescribeIpv6Pools'
{
DescribeIpv6Pools -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
DescribeIpv6Pools -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeIpv6Pools -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeIpv6Pools -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeIpv6Pools -> Maybe [Text]
poolIds :: Prelude.Maybe [Prelude.Text]
}
deriving (DescribeIpv6Pools -> DescribeIpv6Pools -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeIpv6Pools -> DescribeIpv6Pools -> Bool
$c/= :: DescribeIpv6Pools -> DescribeIpv6Pools -> Bool
== :: DescribeIpv6Pools -> DescribeIpv6Pools -> Bool
$c== :: DescribeIpv6Pools -> DescribeIpv6Pools -> Bool
Prelude.Eq, ReadPrec [DescribeIpv6Pools]
ReadPrec DescribeIpv6Pools
Int -> ReadS DescribeIpv6Pools
ReadS [DescribeIpv6Pools]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeIpv6Pools]
$creadListPrec :: ReadPrec [DescribeIpv6Pools]
readPrec :: ReadPrec DescribeIpv6Pools
$creadPrec :: ReadPrec DescribeIpv6Pools
readList :: ReadS [DescribeIpv6Pools]
$creadList :: ReadS [DescribeIpv6Pools]
readsPrec :: Int -> ReadS DescribeIpv6Pools
$creadsPrec :: Int -> ReadS DescribeIpv6Pools
Prelude.Read, Int -> DescribeIpv6Pools -> ShowS
[DescribeIpv6Pools] -> ShowS
DescribeIpv6Pools -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeIpv6Pools] -> ShowS
$cshowList :: [DescribeIpv6Pools] -> ShowS
show :: DescribeIpv6Pools -> String
$cshow :: DescribeIpv6Pools -> String
showsPrec :: Int -> DescribeIpv6Pools -> ShowS
$cshowsPrec :: Int -> DescribeIpv6Pools -> ShowS
Prelude.Show, forall x. Rep DescribeIpv6Pools x -> DescribeIpv6Pools
forall x. DescribeIpv6Pools -> Rep DescribeIpv6Pools x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeIpv6Pools x -> DescribeIpv6Pools
$cfrom :: forall x. DescribeIpv6Pools -> Rep DescribeIpv6Pools x
Prelude.Generic)
newDescribeIpv6Pools ::
DescribeIpv6Pools
newDescribeIpv6Pools :: DescribeIpv6Pools
newDescribeIpv6Pools =
DescribeIpv6Pools'
{ $sel:dryRun:DescribeIpv6Pools' :: Maybe Bool
dryRun = forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeIpv6Pools' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeIpv6Pools' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeIpv6Pools' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:poolIds:DescribeIpv6Pools' :: Maybe [Text]
poolIds = forall a. Maybe a
Prelude.Nothing
}
describeIpv6Pools_dryRun :: Lens.Lens' DescribeIpv6Pools (Prelude.Maybe Prelude.Bool)
describeIpv6Pools_dryRun :: Lens' DescribeIpv6Pools (Maybe Bool)
describeIpv6Pools_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6Pools' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeIpv6Pools
s@DescribeIpv6Pools' {} Maybe Bool
a -> DescribeIpv6Pools
s {$sel:dryRun:DescribeIpv6Pools' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeIpv6Pools)
describeIpv6Pools_filters :: Lens.Lens' DescribeIpv6Pools (Prelude.Maybe [Filter])
describeIpv6Pools_filters :: Lens' DescribeIpv6Pools (Maybe [Filter])
describeIpv6Pools_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6Pools' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeIpv6Pools
s@DescribeIpv6Pools' {} Maybe [Filter]
a -> DescribeIpv6Pools
s {$sel:filters:DescribeIpv6Pools' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeIpv6Pools) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeIpv6Pools_maxResults :: Lens.Lens' DescribeIpv6Pools (Prelude.Maybe Prelude.Natural)
describeIpv6Pools_maxResults :: Lens' DescribeIpv6Pools (Maybe Natural)
describeIpv6Pools_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6Pools' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeIpv6Pools
s@DescribeIpv6Pools' {} Maybe Natural
a -> DescribeIpv6Pools
s {$sel:maxResults:DescribeIpv6Pools' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeIpv6Pools)
describeIpv6Pools_nextToken :: Lens.Lens' DescribeIpv6Pools (Prelude.Maybe Prelude.Text)
describeIpv6Pools_nextToken :: Lens' DescribeIpv6Pools (Maybe Text)
describeIpv6Pools_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6Pools' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeIpv6Pools
s@DescribeIpv6Pools' {} Maybe Text
a -> DescribeIpv6Pools
s {$sel:nextToken:DescribeIpv6Pools' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeIpv6Pools)
describeIpv6Pools_poolIds :: Lens.Lens' DescribeIpv6Pools (Prelude.Maybe [Prelude.Text])
describeIpv6Pools_poolIds :: Lens' DescribeIpv6Pools (Maybe [Text])
describeIpv6Pools_poolIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6Pools' {Maybe [Text]
poolIds :: Maybe [Text]
$sel:poolIds:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Text]
poolIds} -> Maybe [Text]
poolIds) (\s :: DescribeIpv6Pools
s@DescribeIpv6Pools' {} Maybe [Text]
a -> DescribeIpv6Pools
s {$sel:poolIds:DescribeIpv6Pools' :: Maybe [Text]
poolIds = Maybe [Text]
a} :: DescribeIpv6Pools) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSPager DescribeIpv6Pools where
page :: DescribeIpv6Pools
-> AWSResponse DescribeIpv6Pools -> Maybe DescribeIpv6Pools
page DescribeIpv6Pools
rq AWSResponse DescribeIpv6Pools
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeIpv6Pools
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeIpv6PoolsResponse (Maybe Text)
describeIpv6PoolsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeIpv6Pools
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeIpv6PoolsResponse (Maybe [Ipv6Pool])
describeIpv6PoolsResponse_ipv6Pools
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ DescribeIpv6Pools
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeIpv6Pools (Maybe Text)
describeIpv6Pools_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeIpv6Pools
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeIpv6PoolsResponse (Maybe Text)
describeIpv6PoolsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest DescribeIpv6Pools where
type
AWSResponse DescribeIpv6Pools =
DescribeIpv6PoolsResponse
request :: (Service -> Service)
-> DescribeIpv6Pools -> Request DescribeIpv6Pools
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeIpv6Pools
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeIpv6Pools)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [Ipv6Pool] -> Maybe Text -> Int -> DescribeIpv6PoolsResponse
DescribeIpv6PoolsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ipv6PoolSet"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeIpv6Pools where
hashWithSalt :: Int -> DescribeIpv6Pools -> Int
hashWithSalt Int
_salt DescribeIpv6Pools' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
poolIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:poolIds:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Text]
$sel:nextToken:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Text
$sel:maxResults:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Natural
$sel:filters:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Filter]
$sel:dryRun:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
poolIds
instance Prelude.NFData DescribeIpv6Pools where
rnf :: DescribeIpv6Pools -> ()
rnf DescribeIpv6Pools' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
poolIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:poolIds:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Text]
$sel:nextToken:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Text
$sel:maxResults:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Natural
$sel:filters:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Filter]
$sel:dryRun:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
dryRun
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
poolIds
instance Data.ToHeaders DescribeIpv6Pools where
toHeaders :: DescribeIpv6Pools -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath DescribeIpv6Pools where
toPath :: DescribeIpv6Pools -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DescribeIpv6Pools where
toQuery :: DescribeIpv6Pools -> QueryString
toQuery DescribeIpv6Pools' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
poolIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:poolIds:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Text]
$sel:nextToken:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Text
$sel:maxResults:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Natural
$sel:filters:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe [Filter]
$sel:dryRun:DescribeIpv6Pools' :: DescribeIpv6Pools -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"DescribeIpv6Pools" :: Prelude.ByteString),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
forall a. ToQuery a => a -> QueryString
Data.toQuery
(forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Filter" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
forall a. ToQuery a => a -> QueryString
Data.toQuery
(forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"PoolId" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
poolIds)
]
data DescribeIpv6PoolsResponse = DescribeIpv6PoolsResponse'
{
DescribeIpv6PoolsResponse -> Maybe [Ipv6Pool]
ipv6Pools :: Prelude.Maybe [Ipv6Pool],
DescribeIpv6PoolsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeIpv6PoolsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeIpv6PoolsResponse -> DescribeIpv6PoolsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeIpv6PoolsResponse -> DescribeIpv6PoolsResponse -> Bool
$c/= :: DescribeIpv6PoolsResponse -> DescribeIpv6PoolsResponse -> Bool
== :: DescribeIpv6PoolsResponse -> DescribeIpv6PoolsResponse -> Bool
$c== :: DescribeIpv6PoolsResponse -> DescribeIpv6PoolsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeIpv6PoolsResponse]
ReadPrec DescribeIpv6PoolsResponse
Int -> ReadS DescribeIpv6PoolsResponse
ReadS [DescribeIpv6PoolsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeIpv6PoolsResponse]
$creadListPrec :: ReadPrec [DescribeIpv6PoolsResponse]
readPrec :: ReadPrec DescribeIpv6PoolsResponse
$creadPrec :: ReadPrec DescribeIpv6PoolsResponse
readList :: ReadS [DescribeIpv6PoolsResponse]
$creadList :: ReadS [DescribeIpv6PoolsResponse]
readsPrec :: Int -> ReadS DescribeIpv6PoolsResponse
$creadsPrec :: Int -> ReadS DescribeIpv6PoolsResponse
Prelude.Read, Int -> DescribeIpv6PoolsResponse -> ShowS
[DescribeIpv6PoolsResponse] -> ShowS
DescribeIpv6PoolsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeIpv6PoolsResponse] -> ShowS
$cshowList :: [DescribeIpv6PoolsResponse] -> ShowS
show :: DescribeIpv6PoolsResponse -> String
$cshow :: DescribeIpv6PoolsResponse -> String
showsPrec :: Int -> DescribeIpv6PoolsResponse -> ShowS
$cshowsPrec :: Int -> DescribeIpv6PoolsResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeIpv6PoolsResponse x -> DescribeIpv6PoolsResponse
forall x.
DescribeIpv6PoolsResponse -> Rep DescribeIpv6PoolsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeIpv6PoolsResponse x -> DescribeIpv6PoolsResponse
$cfrom :: forall x.
DescribeIpv6PoolsResponse -> Rep DescribeIpv6PoolsResponse x
Prelude.Generic)
newDescribeIpv6PoolsResponse ::
Prelude.Int ->
DescribeIpv6PoolsResponse
newDescribeIpv6PoolsResponse :: Int -> DescribeIpv6PoolsResponse
newDescribeIpv6PoolsResponse Int
pHttpStatus_ =
DescribeIpv6PoolsResponse'
{ $sel:ipv6Pools:DescribeIpv6PoolsResponse' :: Maybe [Ipv6Pool]
ipv6Pools =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeIpv6PoolsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeIpv6PoolsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeIpv6PoolsResponse_ipv6Pools :: Lens.Lens' DescribeIpv6PoolsResponse (Prelude.Maybe [Ipv6Pool])
describeIpv6PoolsResponse_ipv6Pools :: Lens' DescribeIpv6PoolsResponse (Maybe [Ipv6Pool])
describeIpv6PoolsResponse_ipv6Pools = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6PoolsResponse' {Maybe [Ipv6Pool]
ipv6Pools :: Maybe [Ipv6Pool]
$sel:ipv6Pools:DescribeIpv6PoolsResponse' :: DescribeIpv6PoolsResponse -> Maybe [Ipv6Pool]
ipv6Pools} -> Maybe [Ipv6Pool]
ipv6Pools) (\s :: DescribeIpv6PoolsResponse
s@DescribeIpv6PoolsResponse' {} Maybe [Ipv6Pool]
a -> DescribeIpv6PoolsResponse
s {$sel:ipv6Pools:DescribeIpv6PoolsResponse' :: Maybe [Ipv6Pool]
ipv6Pools = Maybe [Ipv6Pool]
a} :: DescribeIpv6PoolsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeIpv6PoolsResponse_nextToken :: Lens.Lens' DescribeIpv6PoolsResponse (Prelude.Maybe Prelude.Text)
describeIpv6PoolsResponse_nextToken :: Lens' DescribeIpv6PoolsResponse (Maybe Text)
describeIpv6PoolsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6PoolsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeIpv6PoolsResponse' :: DescribeIpv6PoolsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeIpv6PoolsResponse
s@DescribeIpv6PoolsResponse' {} Maybe Text
a -> DescribeIpv6PoolsResponse
s {$sel:nextToken:DescribeIpv6PoolsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeIpv6PoolsResponse)
describeIpv6PoolsResponse_httpStatus :: Lens.Lens' DescribeIpv6PoolsResponse Prelude.Int
describeIpv6PoolsResponse_httpStatus :: Lens' DescribeIpv6PoolsResponse Int
describeIpv6PoolsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpv6PoolsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeIpv6PoolsResponse' :: DescribeIpv6PoolsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeIpv6PoolsResponse
s@DescribeIpv6PoolsResponse' {} Int
a -> DescribeIpv6PoolsResponse
s {$sel:httpStatus:DescribeIpv6PoolsResponse' :: Int
httpStatus = Int
a} :: DescribeIpv6PoolsResponse)
instance Prelude.NFData DescribeIpv6PoolsResponse where
rnf :: DescribeIpv6PoolsResponse -> ()
rnf DescribeIpv6PoolsResponse' {Int
Maybe [Ipv6Pool]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
ipv6Pools :: Maybe [Ipv6Pool]
$sel:httpStatus:DescribeIpv6PoolsResponse' :: DescribeIpv6PoolsResponse -> Int
$sel:nextToken:DescribeIpv6PoolsResponse' :: DescribeIpv6PoolsResponse -> Maybe Text
$sel:ipv6Pools:DescribeIpv6PoolsResponse' :: DescribeIpv6PoolsResponse -> Maybe [Ipv6Pool]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Ipv6Pool]
ipv6Pools
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus