{-# 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.NetworkManager.DescribeGlobalNetworks
(
DescribeGlobalNetworks (..),
newDescribeGlobalNetworks,
describeGlobalNetworks_nextToken,
describeGlobalNetworks_globalNetworkIds,
describeGlobalNetworks_maxResults,
DescribeGlobalNetworksResponse (..),
newDescribeGlobalNetworksResponse,
describeGlobalNetworksResponse_globalNetworks,
describeGlobalNetworksResponse_nextToken,
describeGlobalNetworksResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.NetworkManager.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeGlobalNetworks = DescribeGlobalNetworks'
{
DescribeGlobalNetworks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeGlobalNetworks -> Maybe [Text]
globalNetworkIds :: Prelude.Maybe [Prelude.Text],
DescribeGlobalNetworks -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeGlobalNetworks -> DescribeGlobalNetworks -> Bool
(DescribeGlobalNetworks -> DescribeGlobalNetworks -> Bool)
-> (DescribeGlobalNetworks -> DescribeGlobalNetworks -> Bool)
-> Eq DescribeGlobalNetworks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeGlobalNetworks -> DescribeGlobalNetworks -> Bool
$c/= :: DescribeGlobalNetworks -> DescribeGlobalNetworks -> Bool
== :: DescribeGlobalNetworks -> DescribeGlobalNetworks -> Bool
$c== :: DescribeGlobalNetworks -> DescribeGlobalNetworks -> Bool
Prelude.Eq, ReadPrec [DescribeGlobalNetworks]
ReadPrec DescribeGlobalNetworks
Int -> ReadS DescribeGlobalNetworks
ReadS [DescribeGlobalNetworks]
(Int -> ReadS DescribeGlobalNetworks)
-> ReadS [DescribeGlobalNetworks]
-> ReadPrec DescribeGlobalNetworks
-> ReadPrec [DescribeGlobalNetworks]
-> Read DescribeGlobalNetworks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeGlobalNetworks]
$creadListPrec :: ReadPrec [DescribeGlobalNetworks]
readPrec :: ReadPrec DescribeGlobalNetworks
$creadPrec :: ReadPrec DescribeGlobalNetworks
readList :: ReadS [DescribeGlobalNetworks]
$creadList :: ReadS [DescribeGlobalNetworks]
readsPrec :: Int -> ReadS DescribeGlobalNetworks
$creadsPrec :: Int -> ReadS DescribeGlobalNetworks
Prelude.Read, Int -> DescribeGlobalNetworks -> ShowS
[DescribeGlobalNetworks] -> ShowS
DescribeGlobalNetworks -> String
(Int -> DescribeGlobalNetworks -> ShowS)
-> (DescribeGlobalNetworks -> String)
-> ([DescribeGlobalNetworks] -> ShowS)
-> Show DescribeGlobalNetworks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeGlobalNetworks] -> ShowS
$cshowList :: [DescribeGlobalNetworks] -> ShowS
show :: DescribeGlobalNetworks -> String
$cshow :: DescribeGlobalNetworks -> String
showsPrec :: Int -> DescribeGlobalNetworks -> ShowS
$cshowsPrec :: Int -> DescribeGlobalNetworks -> ShowS
Prelude.Show, (forall x. DescribeGlobalNetworks -> Rep DescribeGlobalNetworks x)
-> (forall x.
Rep DescribeGlobalNetworks x -> DescribeGlobalNetworks)
-> Generic DescribeGlobalNetworks
forall x. Rep DescribeGlobalNetworks x -> DescribeGlobalNetworks
forall x. DescribeGlobalNetworks -> Rep DescribeGlobalNetworks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeGlobalNetworks x -> DescribeGlobalNetworks
$cfrom :: forall x. DescribeGlobalNetworks -> Rep DescribeGlobalNetworks x
Prelude.Generic)
newDescribeGlobalNetworks ::
DescribeGlobalNetworks
newDescribeGlobalNetworks :: DescribeGlobalNetworks
newDescribeGlobalNetworks =
DescribeGlobalNetworks' :: Maybe Text
-> Maybe [Text] -> Maybe Natural -> DescribeGlobalNetworks
DescribeGlobalNetworks'
{ $sel:nextToken:DescribeGlobalNetworks' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:globalNetworkIds:DescribeGlobalNetworks' :: Maybe [Text]
globalNetworkIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeGlobalNetworks' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeGlobalNetworks_nextToken :: Lens.Lens' DescribeGlobalNetworks (Prelude.Maybe Prelude.Text)
describeGlobalNetworks_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeGlobalNetworks -> f DescribeGlobalNetworks
describeGlobalNetworks_nextToken = (DescribeGlobalNetworks -> Maybe Text)
-> (DescribeGlobalNetworks -> Maybe Text -> DescribeGlobalNetworks)
-> Lens
DescribeGlobalNetworks
DescribeGlobalNetworks
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGlobalNetworks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeGlobalNetworks' :: DescribeGlobalNetworks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeGlobalNetworks
s@DescribeGlobalNetworks' {} Maybe Text
a -> DescribeGlobalNetworks
s {$sel:nextToken:DescribeGlobalNetworks' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeGlobalNetworks)
describeGlobalNetworks_globalNetworkIds :: Lens.Lens' DescribeGlobalNetworks (Prelude.Maybe [Prelude.Text])
describeGlobalNetworks_globalNetworkIds :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeGlobalNetworks -> f DescribeGlobalNetworks
describeGlobalNetworks_globalNetworkIds = (DescribeGlobalNetworks -> Maybe [Text])
-> (DescribeGlobalNetworks
-> Maybe [Text] -> DescribeGlobalNetworks)
-> Lens
DescribeGlobalNetworks
DescribeGlobalNetworks
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGlobalNetworks' {Maybe [Text]
globalNetworkIds :: Maybe [Text]
$sel:globalNetworkIds:DescribeGlobalNetworks' :: DescribeGlobalNetworks -> Maybe [Text]
globalNetworkIds} -> Maybe [Text]
globalNetworkIds) (\s :: DescribeGlobalNetworks
s@DescribeGlobalNetworks' {} Maybe [Text]
a -> DescribeGlobalNetworks
s {$sel:globalNetworkIds:DescribeGlobalNetworks' :: Maybe [Text]
globalNetworkIds = Maybe [Text]
a} :: DescribeGlobalNetworks) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeGlobalNetworks -> f DescribeGlobalNetworks)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeGlobalNetworks
-> f DescribeGlobalNetworks
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeGlobalNetworks_maxResults :: Lens.Lens' DescribeGlobalNetworks (Prelude.Maybe Prelude.Natural)
describeGlobalNetworks_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeGlobalNetworks -> f DescribeGlobalNetworks
describeGlobalNetworks_maxResults = (DescribeGlobalNetworks -> Maybe Natural)
-> (DescribeGlobalNetworks
-> Maybe Natural -> DescribeGlobalNetworks)
-> Lens
DescribeGlobalNetworks
DescribeGlobalNetworks
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGlobalNetworks' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeGlobalNetworks' :: DescribeGlobalNetworks -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeGlobalNetworks
s@DescribeGlobalNetworks' {} Maybe Natural
a -> DescribeGlobalNetworks
s {$sel:maxResults:DescribeGlobalNetworks' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeGlobalNetworks)
instance Core.AWSPager DescribeGlobalNetworks where
page :: DescribeGlobalNetworks
-> AWSResponse DescribeGlobalNetworks
-> Maybe DescribeGlobalNetworks
page DescribeGlobalNetworks
rq AWSResponse DescribeGlobalNetworks
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeGlobalNetworks
DescribeGlobalNetworksResponse
rs
DescribeGlobalNetworksResponse
-> Getting (First Text) DescribeGlobalNetworksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeGlobalNetworksResponse
-> Const (First Text) DescribeGlobalNetworksResponse
Lens' DescribeGlobalNetworksResponse (Maybe Text)
describeGlobalNetworksResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeGlobalNetworksResponse
-> Const (First Text) DescribeGlobalNetworksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeGlobalNetworksResponse 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 DescribeGlobalNetworks
forall a. Maybe a
Prelude.Nothing
| Maybe [GlobalNetwork] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeGlobalNetworks
DescribeGlobalNetworksResponse
rs
DescribeGlobalNetworksResponse
-> Getting
(First [GlobalNetwork])
DescribeGlobalNetworksResponse
[GlobalNetwork]
-> Maybe [GlobalNetwork]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [GlobalNetwork]
-> Const (First [GlobalNetwork]) (Maybe [GlobalNetwork]))
-> DescribeGlobalNetworksResponse
-> Const (First [GlobalNetwork]) DescribeGlobalNetworksResponse
Lens' DescribeGlobalNetworksResponse (Maybe [GlobalNetwork])
describeGlobalNetworksResponse_globalNetworks
((Maybe [GlobalNetwork]
-> Const (First [GlobalNetwork]) (Maybe [GlobalNetwork]))
-> DescribeGlobalNetworksResponse
-> Const (First [GlobalNetwork]) DescribeGlobalNetworksResponse)
-> (([GlobalNetwork]
-> Const (First [GlobalNetwork]) [GlobalNetwork])
-> Maybe [GlobalNetwork]
-> Const (First [GlobalNetwork]) (Maybe [GlobalNetwork]))
-> Getting
(First [GlobalNetwork])
DescribeGlobalNetworksResponse
[GlobalNetwork]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([GlobalNetwork] -> Const (First [GlobalNetwork]) [GlobalNetwork])
-> Maybe [GlobalNetwork]
-> Const (First [GlobalNetwork]) (Maybe [GlobalNetwork])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeGlobalNetworks
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeGlobalNetworks -> Maybe DescribeGlobalNetworks
forall a. a -> Maybe a
Prelude.Just (DescribeGlobalNetworks -> Maybe DescribeGlobalNetworks)
-> DescribeGlobalNetworks -> Maybe DescribeGlobalNetworks
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeGlobalNetworks
rq
DescribeGlobalNetworks
-> (DescribeGlobalNetworks -> DescribeGlobalNetworks)
-> DescribeGlobalNetworks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeGlobalNetworks -> Identity DescribeGlobalNetworks
Lens
DescribeGlobalNetworks
DescribeGlobalNetworks
(Maybe Text)
(Maybe Text)
describeGlobalNetworks_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeGlobalNetworks -> Identity DescribeGlobalNetworks)
-> Maybe Text -> DescribeGlobalNetworks -> DescribeGlobalNetworks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeGlobalNetworks
DescribeGlobalNetworksResponse
rs
DescribeGlobalNetworksResponse
-> Getting (First Text) DescribeGlobalNetworksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeGlobalNetworksResponse
-> Const (First Text) DescribeGlobalNetworksResponse
Lens' DescribeGlobalNetworksResponse (Maybe Text)
describeGlobalNetworksResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeGlobalNetworksResponse
-> Const (First Text) DescribeGlobalNetworksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeGlobalNetworksResponse 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 DescribeGlobalNetworks where
type
AWSResponse DescribeGlobalNetworks =
DescribeGlobalNetworksResponse
request :: DescribeGlobalNetworks -> Request DescribeGlobalNetworks
request = Service -> DescribeGlobalNetworks -> Request DescribeGlobalNetworks
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeGlobalNetworks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeGlobalNetworks)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeGlobalNetworks))
-> Logger
-> Service
-> Proxy DescribeGlobalNetworks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeGlobalNetworks)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [GlobalNetwork]
-> Maybe Text -> Int -> DescribeGlobalNetworksResponse
DescribeGlobalNetworksResponse'
(Maybe [GlobalNetwork]
-> Maybe Text -> Int -> DescribeGlobalNetworksResponse)
-> Either String (Maybe [GlobalNetwork])
-> Either
String (Maybe Text -> Int -> DescribeGlobalNetworksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [GlobalNetwork]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"GlobalNetworks" Either String (Maybe (Maybe [GlobalNetwork]))
-> Maybe [GlobalNetwork] -> Either String (Maybe [GlobalNetwork])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [GlobalNetwork]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> DescribeGlobalNetworksResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeGlobalNetworksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> DescribeGlobalNetworksResponse)
-> Either String Int
-> Either String DescribeGlobalNetworksResponse
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 DescribeGlobalNetworks
instance Prelude.NFData DescribeGlobalNetworks
instance Core.ToHeaders DescribeGlobalNetworks where
toHeaders :: DescribeGlobalNetworks -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeGlobalNetworks -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeGlobalNetworks where
toPath :: DescribeGlobalNetworks -> ByteString
toPath = ByteString -> DescribeGlobalNetworks -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/global-networks"
instance Core.ToQuery DescribeGlobalNetworks where
toQuery :: DescribeGlobalNetworks -> QueryString
toQuery DescribeGlobalNetworks' {Maybe Natural
Maybe [Text]
Maybe Text
maxResults :: Maybe Natural
globalNetworkIds :: Maybe [Text]
nextToken :: Maybe Text
$sel:maxResults:DescribeGlobalNetworks' :: DescribeGlobalNetworks -> Maybe Natural
$sel:globalNetworkIds:DescribeGlobalNetworks' :: DescribeGlobalNetworks -> Maybe [Text]
$sel:nextToken:DescribeGlobalNetworks' :: DescribeGlobalNetworks -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"globalNetworkIds"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
globalNetworkIds
),
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data DescribeGlobalNetworksResponse = DescribeGlobalNetworksResponse'
{
DescribeGlobalNetworksResponse -> Maybe [GlobalNetwork]
globalNetworks :: Prelude.Maybe [GlobalNetwork],
DescribeGlobalNetworksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeGlobalNetworksResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeGlobalNetworksResponse
-> DescribeGlobalNetworksResponse -> Bool
(DescribeGlobalNetworksResponse
-> DescribeGlobalNetworksResponse -> Bool)
-> (DescribeGlobalNetworksResponse
-> DescribeGlobalNetworksResponse -> Bool)
-> Eq DescribeGlobalNetworksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeGlobalNetworksResponse
-> DescribeGlobalNetworksResponse -> Bool
$c/= :: DescribeGlobalNetworksResponse
-> DescribeGlobalNetworksResponse -> Bool
== :: DescribeGlobalNetworksResponse
-> DescribeGlobalNetworksResponse -> Bool
$c== :: DescribeGlobalNetworksResponse
-> DescribeGlobalNetworksResponse -> Bool
Prelude.Eq, ReadPrec [DescribeGlobalNetworksResponse]
ReadPrec DescribeGlobalNetworksResponse
Int -> ReadS DescribeGlobalNetworksResponse
ReadS [DescribeGlobalNetworksResponse]
(Int -> ReadS DescribeGlobalNetworksResponse)
-> ReadS [DescribeGlobalNetworksResponse]
-> ReadPrec DescribeGlobalNetworksResponse
-> ReadPrec [DescribeGlobalNetworksResponse]
-> Read DescribeGlobalNetworksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeGlobalNetworksResponse]
$creadListPrec :: ReadPrec [DescribeGlobalNetworksResponse]
readPrec :: ReadPrec DescribeGlobalNetworksResponse
$creadPrec :: ReadPrec DescribeGlobalNetworksResponse
readList :: ReadS [DescribeGlobalNetworksResponse]
$creadList :: ReadS [DescribeGlobalNetworksResponse]
readsPrec :: Int -> ReadS DescribeGlobalNetworksResponse
$creadsPrec :: Int -> ReadS DescribeGlobalNetworksResponse
Prelude.Read, Int -> DescribeGlobalNetworksResponse -> ShowS
[DescribeGlobalNetworksResponse] -> ShowS
DescribeGlobalNetworksResponse -> String
(Int -> DescribeGlobalNetworksResponse -> ShowS)
-> (DescribeGlobalNetworksResponse -> String)
-> ([DescribeGlobalNetworksResponse] -> ShowS)
-> Show DescribeGlobalNetworksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeGlobalNetworksResponse] -> ShowS
$cshowList :: [DescribeGlobalNetworksResponse] -> ShowS
show :: DescribeGlobalNetworksResponse -> String
$cshow :: DescribeGlobalNetworksResponse -> String
showsPrec :: Int -> DescribeGlobalNetworksResponse -> ShowS
$cshowsPrec :: Int -> DescribeGlobalNetworksResponse -> ShowS
Prelude.Show, (forall x.
DescribeGlobalNetworksResponse
-> Rep DescribeGlobalNetworksResponse x)
-> (forall x.
Rep DescribeGlobalNetworksResponse x
-> DescribeGlobalNetworksResponse)
-> Generic DescribeGlobalNetworksResponse
forall x.
Rep DescribeGlobalNetworksResponse x
-> DescribeGlobalNetworksResponse
forall x.
DescribeGlobalNetworksResponse
-> Rep DescribeGlobalNetworksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeGlobalNetworksResponse x
-> DescribeGlobalNetworksResponse
$cfrom :: forall x.
DescribeGlobalNetworksResponse
-> Rep DescribeGlobalNetworksResponse x
Prelude.Generic)
newDescribeGlobalNetworksResponse ::
Prelude.Int ->
DescribeGlobalNetworksResponse
newDescribeGlobalNetworksResponse :: Int -> DescribeGlobalNetworksResponse
newDescribeGlobalNetworksResponse Int
pHttpStatus_ =
DescribeGlobalNetworksResponse' :: Maybe [GlobalNetwork]
-> Maybe Text -> Int -> DescribeGlobalNetworksResponse
DescribeGlobalNetworksResponse'
{ $sel:globalNetworks:DescribeGlobalNetworksResponse' :: Maybe [GlobalNetwork]
globalNetworks =
Maybe [GlobalNetwork]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeGlobalNetworksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeGlobalNetworksResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeGlobalNetworksResponse_globalNetworks :: Lens.Lens' DescribeGlobalNetworksResponse (Prelude.Maybe [GlobalNetwork])
describeGlobalNetworksResponse_globalNetworks :: (Maybe [GlobalNetwork] -> f (Maybe [GlobalNetwork]))
-> DescribeGlobalNetworksResponse
-> f DescribeGlobalNetworksResponse
describeGlobalNetworksResponse_globalNetworks = (DescribeGlobalNetworksResponse -> Maybe [GlobalNetwork])
-> (DescribeGlobalNetworksResponse
-> Maybe [GlobalNetwork] -> DescribeGlobalNetworksResponse)
-> Lens' DescribeGlobalNetworksResponse (Maybe [GlobalNetwork])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGlobalNetworksResponse' {Maybe [GlobalNetwork]
globalNetworks :: Maybe [GlobalNetwork]
$sel:globalNetworks:DescribeGlobalNetworksResponse' :: DescribeGlobalNetworksResponse -> Maybe [GlobalNetwork]
globalNetworks} -> Maybe [GlobalNetwork]
globalNetworks) (\s :: DescribeGlobalNetworksResponse
s@DescribeGlobalNetworksResponse' {} Maybe [GlobalNetwork]
a -> DescribeGlobalNetworksResponse
s {$sel:globalNetworks:DescribeGlobalNetworksResponse' :: Maybe [GlobalNetwork]
globalNetworks = Maybe [GlobalNetwork]
a} :: DescribeGlobalNetworksResponse) ((Maybe [GlobalNetwork] -> f (Maybe [GlobalNetwork]))
-> DescribeGlobalNetworksResponse
-> f DescribeGlobalNetworksResponse)
-> ((Maybe [GlobalNetwork] -> f (Maybe [GlobalNetwork]))
-> Maybe [GlobalNetwork] -> f (Maybe [GlobalNetwork]))
-> (Maybe [GlobalNetwork] -> f (Maybe [GlobalNetwork]))
-> DescribeGlobalNetworksResponse
-> f DescribeGlobalNetworksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[GlobalNetwork] [GlobalNetwork] [GlobalNetwork] [GlobalNetwork]
-> Iso
(Maybe [GlobalNetwork])
(Maybe [GlobalNetwork])
(Maybe [GlobalNetwork])
(Maybe [GlobalNetwork])
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
[GlobalNetwork] [GlobalNetwork] [GlobalNetwork] [GlobalNetwork]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeGlobalNetworksResponse_nextToken :: Lens.Lens' DescribeGlobalNetworksResponse (Prelude.Maybe Prelude.Text)
describeGlobalNetworksResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeGlobalNetworksResponse
-> f DescribeGlobalNetworksResponse
describeGlobalNetworksResponse_nextToken = (DescribeGlobalNetworksResponse -> Maybe Text)
-> (DescribeGlobalNetworksResponse
-> Maybe Text -> DescribeGlobalNetworksResponse)
-> Lens' DescribeGlobalNetworksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGlobalNetworksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeGlobalNetworksResponse' :: DescribeGlobalNetworksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeGlobalNetworksResponse
s@DescribeGlobalNetworksResponse' {} Maybe Text
a -> DescribeGlobalNetworksResponse
s {$sel:nextToken:DescribeGlobalNetworksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeGlobalNetworksResponse)
describeGlobalNetworksResponse_httpStatus :: Lens.Lens' DescribeGlobalNetworksResponse Prelude.Int
describeGlobalNetworksResponse_httpStatus :: (Int -> f Int)
-> DescribeGlobalNetworksResponse
-> f DescribeGlobalNetworksResponse
describeGlobalNetworksResponse_httpStatus = (DescribeGlobalNetworksResponse -> Int)
-> (DescribeGlobalNetworksResponse
-> Int -> DescribeGlobalNetworksResponse)
-> Lens
DescribeGlobalNetworksResponse
DescribeGlobalNetworksResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGlobalNetworksResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeGlobalNetworksResponse' :: DescribeGlobalNetworksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeGlobalNetworksResponse
s@DescribeGlobalNetworksResponse' {} Int
a -> DescribeGlobalNetworksResponse
s {$sel:httpStatus:DescribeGlobalNetworksResponse' :: Int
httpStatus = Int
a} :: DescribeGlobalNetworksResponse)
instance
Prelude.NFData
DescribeGlobalNetworksResponse