{-# 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.DescribeManagedPrefixLists
(
DescribeManagedPrefixLists (..),
newDescribeManagedPrefixLists,
describeManagedPrefixLists_dryRun,
describeManagedPrefixLists_filters,
describeManagedPrefixLists_maxResults,
describeManagedPrefixLists_nextToken,
describeManagedPrefixLists_prefixListIds,
DescribeManagedPrefixListsResponse (..),
newDescribeManagedPrefixListsResponse,
describeManagedPrefixListsResponse_nextToken,
describeManagedPrefixListsResponse_prefixLists,
describeManagedPrefixListsResponse_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 DescribeManagedPrefixLists = DescribeManagedPrefixLists'
{
DescribeManagedPrefixLists -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
DescribeManagedPrefixLists -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeManagedPrefixLists -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeManagedPrefixLists -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeManagedPrefixLists -> Maybe [Text]
prefixListIds :: Prelude.Maybe [Prelude.Text]
}
deriving (DescribeManagedPrefixLists -> DescribeManagedPrefixLists -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeManagedPrefixLists -> DescribeManagedPrefixLists -> Bool
$c/= :: DescribeManagedPrefixLists -> DescribeManagedPrefixLists -> Bool
== :: DescribeManagedPrefixLists -> DescribeManagedPrefixLists -> Bool
$c== :: DescribeManagedPrefixLists -> DescribeManagedPrefixLists -> Bool
Prelude.Eq, ReadPrec [DescribeManagedPrefixLists]
ReadPrec DescribeManagedPrefixLists
Int -> ReadS DescribeManagedPrefixLists
ReadS [DescribeManagedPrefixLists]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeManagedPrefixLists]
$creadListPrec :: ReadPrec [DescribeManagedPrefixLists]
readPrec :: ReadPrec DescribeManagedPrefixLists
$creadPrec :: ReadPrec DescribeManagedPrefixLists
readList :: ReadS [DescribeManagedPrefixLists]
$creadList :: ReadS [DescribeManagedPrefixLists]
readsPrec :: Int -> ReadS DescribeManagedPrefixLists
$creadsPrec :: Int -> ReadS DescribeManagedPrefixLists
Prelude.Read, Int -> DescribeManagedPrefixLists -> ShowS
[DescribeManagedPrefixLists] -> ShowS
DescribeManagedPrefixLists -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeManagedPrefixLists] -> ShowS
$cshowList :: [DescribeManagedPrefixLists] -> ShowS
show :: DescribeManagedPrefixLists -> String
$cshow :: DescribeManagedPrefixLists -> String
showsPrec :: Int -> DescribeManagedPrefixLists -> ShowS
$cshowsPrec :: Int -> DescribeManagedPrefixLists -> ShowS
Prelude.Show, forall x.
Rep DescribeManagedPrefixLists x -> DescribeManagedPrefixLists
forall x.
DescribeManagedPrefixLists -> Rep DescribeManagedPrefixLists x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeManagedPrefixLists x -> DescribeManagedPrefixLists
$cfrom :: forall x.
DescribeManagedPrefixLists -> Rep DescribeManagedPrefixLists x
Prelude.Generic)
newDescribeManagedPrefixLists ::
DescribeManagedPrefixLists
newDescribeManagedPrefixLists :: DescribeManagedPrefixLists
newDescribeManagedPrefixLists =
DescribeManagedPrefixLists'
{ $sel:dryRun:DescribeManagedPrefixLists' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeManagedPrefixLists' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeManagedPrefixLists' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeManagedPrefixLists' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:prefixListIds:DescribeManagedPrefixLists' :: Maybe [Text]
prefixListIds = forall a. Maybe a
Prelude.Nothing
}
describeManagedPrefixLists_dryRun :: Lens.Lens' DescribeManagedPrefixLists (Prelude.Maybe Prelude.Bool)
describeManagedPrefixLists_dryRun :: Lens' DescribeManagedPrefixLists (Maybe Bool)
describeManagedPrefixLists_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixLists' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeManagedPrefixLists
s@DescribeManagedPrefixLists' {} Maybe Bool
a -> DescribeManagedPrefixLists
s {$sel:dryRun:DescribeManagedPrefixLists' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeManagedPrefixLists)
describeManagedPrefixLists_filters :: Lens.Lens' DescribeManagedPrefixLists (Prelude.Maybe [Filter])
describeManagedPrefixLists_filters :: Lens' DescribeManagedPrefixLists (Maybe [Filter])
describeManagedPrefixLists_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixLists' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeManagedPrefixLists
s@DescribeManagedPrefixLists' {} Maybe [Filter]
a -> DescribeManagedPrefixLists
s {$sel:filters:DescribeManagedPrefixLists' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeManagedPrefixLists) 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
describeManagedPrefixLists_maxResults :: Lens.Lens' DescribeManagedPrefixLists (Prelude.Maybe Prelude.Natural)
describeManagedPrefixLists_maxResults :: Lens' DescribeManagedPrefixLists (Maybe Natural)
describeManagedPrefixLists_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixLists' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeManagedPrefixLists
s@DescribeManagedPrefixLists' {} Maybe Natural
a -> DescribeManagedPrefixLists
s {$sel:maxResults:DescribeManagedPrefixLists' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeManagedPrefixLists)
describeManagedPrefixLists_nextToken :: Lens.Lens' DescribeManagedPrefixLists (Prelude.Maybe Prelude.Text)
describeManagedPrefixLists_nextToken :: Lens' DescribeManagedPrefixLists (Maybe Text)
describeManagedPrefixLists_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixLists' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeManagedPrefixLists
s@DescribeManagedPrefixLists' {} Maybe Text
a -> DescribeManagedPrefixLists
s {$sel:nextToken:DescribeManagedPrefixLists' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeManagedPrefixLists)
describeManagedPrefixLists_prefixListIds :: Lens.Lens' DescribeManagedPrefixLists (Prelude.Maybe [Prelude.Text])
describeManagedPrefixLists_prefixListIds :: Lens' DescribeManagedPrefixLists (Maybe [Text])
describeManagedPrefixLists_prefixListIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixLists' {Maybe [Text]
prefixListIds :: Maybe [Text]
$sel:prefixListIds:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Text]
prefixListIds} -> Maybe [Text]
prefixListIds) (\s :: DescribeManagedPrefixLists
s@DescribeManagedPrefixLists' {} Maybe [Text]
a -> DescribeManagedPrefixLists
s {$sel:prefixListIds:DescribeManagedPrefixLists' :: Maybe [Text]
prefixListIds = Maybe [Text]
a} :: DescribeManagedPrefixLists) 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 DescribeManagedPrefixLists where
page :: DescribeManagedPrefixLists
-> AWSResponse DescribeManagedPrefixLists
-> Maybe DescribeManagedPrefixLists
page DescribeManagedPrefixLists
rq AWSResponse DescribeManagedPrefixLists
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeManagedPrefixLists
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeManagedPrefixListsResponse (Maybe Text)
describeManagedPrefixListsResponse_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 DescribeManagedPrefixLists
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
DescribeManagedPrefixListsResponse (Maybe [ManagedPrefixList])
describeManagedPrefixListsResponse_prefixLists
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.$ DescribeManagedPrefixLists
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeManagedPrefixLists (Maybe Text)
describeManagedPrefixLists_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeManagedPrefixLists
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeManagedPrefixListsResponse (Maybe Text)
describeManagedPrefixListsResponse_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 DescribeManagedPrefixLists where
type
AWSResponse DescribeManagedPrefixLists =
DescribeManagedPrefixListsResponse
request :: (Service -> Service)
-> DescribeManagedPrefixLists -> Request DescribeManagedPrefixLists
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 DescribeManagedPrefixLists
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeManagedPrefixLists)))
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 Text
-> Maybe [ManagedPrefixList]
-> Int
-> DescribeManagedPrefixListsResponse
DescribeManagedPrefixListsResponse'
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
"nextToken")
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
"prefixListSet"
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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeManagedPrefixLists where
hashWithSalt :: Int -> DescribeManagedPrefixLists -> Int
hashWithSalt Int
_salt DescribeManagedPrefixLists' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
prefixListIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:prefixListIds:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Text]
$sel:nextToken:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Text
$sel:maxResults:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Natural
$sel:filters:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Filter]
$sel:dryRun:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> 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]
prefixListIds
instance Prelude.NFData DescribeManagedPrefixLists where
rnf :: DescribeManagedPrefixLists -> ()
rnf DescribeManagedPrefixLists' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
prefixListIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:prefixListIds:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Text]
$sel:nextToken:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Text
$sel:maxResults:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Natural
$sel:filters:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Filter]
$sel:dryRun:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> 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]
prefixListIds
instance Data.ToHeaders DescribeManagedPrefixLists where
toHeaders :: DescribeManagedPrefixLists -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath DescribeManagedPrefixLists where
toPath :: DescribeManagedPrefixLists -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DescribeManagedPrefixLists where
toQuery :: DescribeManagedPrefixLists -> QueryString
toQuery DescribeManagedPrefixLists' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
prefixListIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:prefixListIds:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Text]
$sel:nextToken:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Text
$sel:maxResults:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Natural
$sel:filters:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe [Filter]
$sel:dryRun:DescribeManagedPrefixLists' :: DescribeManagedPrefixLists -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"DescribeManagedPrefixLists" :: 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
"PrefixListId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
prefixListIds
)
]
data DescribeManagedPrefixListsResponse = DescribeManagedPrefixListsResponse'
{
DescribeManagedPrefixListsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeManagedPrefixListsResponse -> Maybe [ManagedPrefixList]
prefixLists :: Prelude.Maybe [ManagedPrefixList],
DescribeManagedPrefixListsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeManagedPrefixListsResponse
-> DescribeManagedPrefixListsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeManagedPrefixListsResponse
-> DescribeManagedPrefixListsResponse -> Bool
$c/= :: DescribeManagedPrefixListsResponse
-> DescribeManagedPrefixListsResponse -> Bool
== :: DescribeManagedPrefixListsResponse
-> DescribeManagedPrefixListsResponse -> Bool
$c== :: DescribeManagedPrefixListsResponse
-> DescribeManagedPrefixListsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeManagedPrefixListsResponse]
ReadPrec DescribeManagedPrefixListsResponse
Int -> ReadS DescribeManagedPrefixListsResponse
ReadS [DescribeManagedPrefixListsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeManagedPrefixListsResponse]
$creadListPrec :: ReadPrec [DescribeManagedPrefixListsResponse]
readPrec :: ReadPrec DescribeManagedPrefixListsResponse
$creadPrec :: ReadPrec DescribeManagedPrefixListsResponse
readList :: ReadS [DescribeManagedPrefixListsResponse]
$creadList :: ReadS [DescribeManagedPrefixListsResponse]
readsPrec :: Int -> ReadS DescribeManagedPrefixListsResponse
$creadsPrec :: Int -> ReadS DescribeManagedPrefixListsResponse
Prelude.Read, Int -> DescribeManagedPrefixListsResponse -> ShowS
[DescribeManagedPrefixListsResponse] -> ShowS
DescribeManagedPrefixListsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeManagedPrefixListsResponse] -> ShowS
$cshowList :: [DescribeManagedPrefixListsResponse] -> ShowS
show :: DescribeManagedPrefixListsResponse -> String
$cshow :: DescribeManagedPrefixListsResponse -> String
showsPrec :: Int -> DescribeManagedPrefixListsResponse -> ShowS
$cshowsPrec :: Int -> DescribeManagedPrefixListsResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeManagedPrefixListsResponse x
-> DescribeManagedPrefixListsResponse
forall x.
DescribeManagedPrefixListsResponse
-> Rep DescribeManagedPrefixListsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeManagedPrefixListsResponse x
-> DescribeManagedPrefixListsResponse
$cfrom :: forall x.
DescribeManagedPrefixListsResponse
-> Rep DescribeManagedPrefixListsResponse x
Prelude.Generic)
newDescribeManagedPrefixListsResponse ::
Prelude.Int ->
DescribeManagedPrefixListsResponse
newDescribeManagedPrefixListsResponse :: Int -> DescribeManagedPrefixListsResponse
newDescribeManagedPrefixListsResponse Int
pHttpStatus_ =
DescribeManagedPrefixListsResponse'
{ $sel:nextToken:DescribeManagedPrefixListsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:prefixLists:DescribeManagedPrefixListsResponse' :: Maybe [ManagedPrefixList]
prefixLists = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeManagedPrefixListsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeManagedPrefixListsResponse_nextToken :: Lens.Lens' DescribeManagedPrefixListsResponse (Prelude.Maybe Prelude.Text)
describeManagedPrefixListsResponse_nextToken :: Lens' DescribeManagedPrefixListsResponse (Maybe Text)
describeManagedPrefixListsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixListsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeManagedPrefixListsResponse' :: DescribeManagedPrefixListsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeManagedPrefixListsResponse
s@DescribeManagedPrefixListsResponse' {} Maybe Text
a -> DescribeManagedPrefixListsResponse
s {$sel:nextToken:DescribeManagedPrefixListsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeManagedPrefixListsResponse)
describeManagedPrefixListsResponse_prefixLists :: Lens.Lens' DescribeManagedPrefixListsResponse (Prelude.Maybe [ManagedPrefixList])
describeManagedPrefixListsResponse_prefixLists :: Lens'
DescribeManagedPrefixListsResponse (Maybe [ManagedPrefixList])
describeManagedPrefixListsResponse_prefixLists = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixListsResponse' {Maybe [ManagedPrefixList]
prefixLists :: Maybe [ManagedPrefixList]
$sel:prefixLists:DescribeManagedPrefixListsResponse' :: DescribeManagedPrefixListsResponse -> Maybe [ManagedPrefixList]
prefixLists} -> Maybe [ManagedPrefixList]
prefixLists) (\s :: DescribeManagedPrefixListsResponse
s@DescribeManagedPrefixListsResponse' {} Maybe [ManagedPrefixList]
a -> DescribeManagedPrefixListsResponse
s {$sel:prefixLists:DescribeManagedPrefixListsResponse' :: Maybe [ManagedPrefixList]
prefixLists = Maybe [ManagedPrefixList]
a} :: DescribeManagedPrefixListsResponse) 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
describeManagedPrefixListsResponse_httpStatus :: Lens.Lens' DescribeManagedPrefixListsResponse Prelude.Int
describeManagedPrefixListsResponse_httpStatus :: Lens' DescribeManagedPrefixListsResponse Int
describeManagedPrefixListsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeManagedPrefixListsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeManagedPrefixListsResponse' :: DescribeManagedPrefixListsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeManagedPrefixListsResponse
s@DescribeManagedPrefixListsResponse' {} Int
a -> DescribeManagedPrefixListsResponse
s {$sel:httpStatus:DescribeManagedPrefixListsResponse' :: Int
httpStatus = Int
a} :: DescribeManagedPrefixListsResponse)
instance
Prelude.NFData
DescribeManagedPrefixListsResponse
where
rnf :: DescribeManagedPrefixListsResponse -> ()
rnf DescribeManagedPrefixListsResponse' {Int
Maybe [ManagedPrefixList]
Maybe Text
httpStatus :: Int
prefixLists :: Maybe [ManagedPrefixList]
nextToken :: Maybe Text
$sel:httpStatus:DescribeManagedPrefixListsResponse' :: DescribeManagedPrefixListsResponse -> Int
$sel:prefixLists:DescribeManagedPrefixListsResponse' :: DescribeManagedPrefixListsResponse -> Maybe [ManagedPrefixList]
$sel:nextToken:DescribeManagedPrefixListsResponse' :: DescribeManagedPrefixListsResponse -> Maybe Text
..} =
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 [ManagedPrefixList]
prefixLists
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus