{-# 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.WorkSpaces.DescribeIpGroups
(
DescribeIpGroups (..),
newDescribeIpGroups,
describeIpGroups_groupIds,
describeIpGroups_nextToken,
describeIpGroups_maxResults,
DescribeIpGroupsResponse (..),
newDescribeIpGroupsResponse,
describeIpGroupsResponse_result,
describeIpGroupsResponse_nextToken,
describeIpGroupsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WorkSpaces.Types
data DescribeIpGroups = DescribeIpGroups'
{
DescribeIpGroups -> Maybe [Text]
groupIds :: Prelude.Maybe [Prelude.Text],
DescribeIpGroups -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeIpGroups -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeIpGroups -> DescribeIpGroups -> Bool
(DescribeIpGroups -> DescribeIpGroups -> Bool)
-> (DescribeIpGroups -> DescribeIpGroups -> Bool)
-> Eq DescribeIpGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeIpGroups -> DescribeIpGroups -> Bool
$c/= :: DescribeIpGroups -> DescribeIpGroups -> Bool
== :: DescribeIpGroups -> DescribeIpGroups -> Bool
$c== :: DescribeIpGroups -> DescribeIpGroups -> Bool
Prelude.Eq, ReadPrec [DescribeIpGroups]
ReadPrec DescribeIpGroups
Int -> ReadS DescribeIpGroups
ReadS [DescribeIpGroups]
(Int -> ReadS DescribeIpGroups)
-> ReadS [DescribeIpGroups]
-> ReadPrec DescribeIpGroups
-> ReadPrec [DescribeIpGroups]
-> Read DescribeIpGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeIpGroups]
$creadListPrec :: ReadPrec [DescribeIpGroups]
readPrec :: ReadPrec DescribeIpGroups
$creadPrec :: ReadPrec DescribeIpGroups
readList :: ReadS [DescribeIpGroups]
$creadList :: ReadS [DescribeIpGroups]
readsPrec :: Int -> ReadS DescribeIpGroups
$creadsPrec :: Int -> ReadS DescribeIpGroups
Prelude.Read, Int -> DescribeIpGroups -> ShowS
[DescribeIpGroups] -> ShowS
DescribeIpGroups -> String
(Int -> DescribeIpGroups -> ShowS)
-> (DescribeIpGroups -> String)
-> ([DescribeIpGroups] -> ShowS)
-> Show DescribeIpGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeIpGroups] -> ShowS
$cshowList :: [DescribeIpGroups] -> ShowS
show :: DescribeIpGroups -> String
$cshow :: DescribeIpGroups -> String
showsPrec :: Int -> DescribeIpGroups -> ShowS
$cshowsPrec :: Int -> DescribeIpGroups -> ShowS
Prelude.Show, (forall x. DescribeIpGroups -> Rep DescribeIpGroups x)
-> (forall x. Rep DescribeIpGroups x -> DescribeIpGroups)
-> Generic DescribeIpGroups
forall x. Rep DescribeIpGroups x -> DescribeIpGroups
forall x. DescribeIpGroups -> Rep DescribeIpGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeIpGroups x -> DescribeIpGroups
$cfrom :: forall x. DescribeIpGroups -> Rep DescribeIpGroups x
Prelude.Generic)
newDescribeIpGroups ::
DescribeIpGroups
newDescribeIpGroups :: DescribeIpGroups
newDescribeIpGroups =
DescribeIpGroups' :: Maybe [Text] -> Maybe Text -> Maybe Natural -> DescribeIpGroups
DescribeIpGroups'
{ $sel:groupIds:DescribeIpGroups' :: Maybe [Text]
groupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeIpGroups' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeIpGroups' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeIpGroups_groupIds :: Lens.Lens' DescribeIpGroups (Prelude.Maybe [Prelude.Text])
describeIpGroups_groupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeIpGroups -> f DescribeIpGroups
describeIpGroups_groupIds = (DescribeIpGroups -> Maybe [Text])
-> (DescribeIpGroups -> Maybe [Text] -> DescribeIpGroups)
-> Lens
DescribeIpGroups DescribeIpGroups (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpGroups' {Maybe [Text]
groupIds :: Maybe [Text]
$sel:groupIds:DescribeIpGroups' :: DescribeIpGroups -> Maybe [Text]
groupIds} -> Maybe [Text]
groupIds) (\s :: DescribeIpGroups
s@DescribeIpGroups' {} Maybe [Text]
a -> DescribeIpGroups
s {$sel:groupIds:DescribeIpGroups' :: Maybe [Text]
groupIds = Maybe [Text]
a} :: DescribeIpGroups) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeIpGroups -> f DescribeIpGroups)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeIpGroups
-> f DescribeIpGroups
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
describeIpGroups_nextToken :: Lens.Lens' DescribeIpGroups (Prelude.Maybe Prelude.Text)
describeIpGroups_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeIpGroups -> f DescribeIpGroups
describeIpGroups_nextToken = (DescribeIpGroups -> Maybe Text)
-> (DescribeIpGroups -> Maybe Text -> DescribeIpGroups)
-> Lens DescribeIpGroups DescribeIpGroups (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpGroups' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeIpGroups' :: DescribeIpGroups -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeIpGroups
s@DescribeIpGroups' {} Maybe Text
a -> DescribeIpGroups
s {$sel:nextToken:DescribeIpGroups' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeIpGroups)
describeIpGroups_maxResults :: Lens.Lens' DescribeIpGroups (Prelude.Maybe Prelude.Natural)
describeIpGroups_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeIpGroups -> f DescribeIpGroups
describeIpGroups_maxResults = (DescribeIpGroups -> Maybe Natural)
-> (DescribeIpGroups -> Maybe Natural -> DescribeIpGroups)
-> Lens
DescribeIpGroups DescribeIpGroups (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpGroups' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeIpGroups' :: DescribeIpGroups -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeIpGroups
s@DescribeIpGroups' {} Maybe Natural
a -> DescribeIpGroups
s {$sel:maxResults:DescribeIpGroups' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeIpGroups)
instance Core.AWSPager DescribeIpGroups where
page :: DescribeIpGroups
-> AWSResponse DescribeIpGroups -> Maybe DescribeIpGroups
page DescribeIpGroups
rq AWSResponse DescribeIpGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeIpGroups
DescribeIpGroupsResponse
rs
DescribeIpGroupsResponse
-> Getting (First Text) DescribeIpGroupsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeIpGroupsResponse
-> Const (First Text) DescribeIpGroupsResponse
Lens' DescribeIpGroupsResponse (Maybe Text)
describeIpGroupsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeIpGroupsResponse
-> Const (First Text) DescribeIpGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeIpGroupsResponse 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 DescribeIpGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [WorkspacesIpGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeIpGroups
DescribeIpGroupsResponse
rs
DescribeIpGroupsResponse
-> Getting
(First [WorkspacesIpGroup])
DescribeIpGroupsResponse
[WorkspacesIpGroup]
-> Maybe [WorkspacesIpGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [WorkspacesIpGroup]
-> Const (First [WorkspacesIpGroup]) (Maybe [WorkspacesIpGroup]))
-> DescribeIpGroupsResponse
-> Const (First [WorkspacesIpGroup]) DescribeIpGroupsResponse
Lens' DescribeIpGroupsResponse (Maybe [WorkspacesIpGroup])
describeIpGroupsResponse_result ((Maybe [WorkspacesIpGroup]
-> Const (First [WorkspacesIpGroup]) (Maybe [WorkspacesIpGroup]))
-> DescribeIpGroupsResponse
-> Const (First [WorkspacesIpGroup]) DescribeIpGroupsResponse)
-> (([WorkspacesIpGroup]
-> Const (First [WorkspacesIpGroup]) [WorkspacesIpGroup])
-> Maybe [WorkspacesIpGroup]
-> Const (First [WorkspacesIpGroup]) (Maybe [WorkspacesIpGroup]))
-> Getting
(First [WorkspacesIpGroup])
DescribeIpGroupsResponse
[WorkspacesIpGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([WorkspacesIpGroup]
-> Const (First [WorkspacesIpGroup]) [WorkspacesIpGroup])
-> Maybe [WorkspacesIpGroup]
-> Const (First [WorkspacesIpGroup]) (Maybe [WorkspacesIpGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeIpGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeIpGroups -> Maybe DescribeIpGroups
forall a. a -> Maybe a
Prelude.Just (DescribeIpGroups -> Maybe DescribeIpGroups)
-> DescribeIpGroups -> Maybe DescribeIpGroups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeIpGroups
rq
DescribeIpGroups
-> (DescribeIpGroups -> DescribeIpGroups) -> DescribeIpGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeIpGroups -> Identity DescribeIpGroups
Lens DescribeIpGroups DescribeIpGroups (Maybe Text) (Maybe Text)
describeIpGroups_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeIpGroups -> Identity DescribeIpGroups)
-> Maybe Text -> DescribeIpGroups -> DescribeIpGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeIpGroups
DescribeIpGroupsResponse
rs
DescribeIpGroupsResponse
-> Getting (First Text) DescribeIpGroupsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeIpGroupsResponse
-> Const (First Text) DescribeIpGroupsResponse
Lens' DescribeIpGroupsResponse (Maybe Text)
describeIpGroupsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeIpGroupsResponse
-> Const (First Text) DescribeIpGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeIpGroupsResponse 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 DescribeIpGroups where
type
AWSResponse DescribeIpGroups =
DescribeIpGroupsResponse
request :: DescribeIpGroups -> Request DescribeIpGroups
request = Service -> DescribeIpGroups -> Request DescribeIpGroups
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeIpGroups
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeIpGroups)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeIpGroups))
-> Logger
-> Service
-> Proxy DescribeIpGroups
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeIpGroups)))
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 [WorkspacesIpGroup]
-> Maybe Text -> Int -> DescribeIpGroupsResponse
DescribeIpGroupsResponse'
(Maybe [WorkspacesIpGroup]
-> Maybe Text -> Int -> DescribeIpGroupsResponse)
-> Either String (Maybe [WorkspacesIpGroup])
-> Either String (Maybe Text -> Int -> DescribeIpGroupsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [WorkspacesIpGroup]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Result" Either String (Maybe (Maybe [WorkspacesIpGroup]))
-> Maybe [WorkspacesIpGroup]
-> Either String (Maybe [WorkspacesIpGroup])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [WorkspacesIpGroup]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> DescribeIpGroupsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeIpGroupsResponse)
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 -> DescribeIpGroupsResponse)
-> Either String Int -> Either String DescribeIpGroupsResponse
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 DescribeIpGroups
instance Prelude.NFData DescribeIpGroups
instance Core.ToHeaders DescribeIpGroups where
toHeaders :: DescribeIpGroups -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeIpGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"WorkspacesService.DescribeIpGroups" ::
Prelude.ByteString
),
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.ToJSON DescribeIpGroups where
toJSON :: DescribeIpGroups -> Value
toJSON DescribeIpGroups' {Maybe Natural
Maybe [Text]
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
groupIds :: Maybe [Text]
$sel:maxResults:DescribeIpGroups' :: DescribeIpGroups -> Maybe Natural
$sel:nextToken:DescribeIpGroups' :: DescribeIpGroups -> Maybe Text
$sel:groupIds:DescribeIpGroups' :: DescribeIpGroups -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"GroupIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
groupIds,
(Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath DescribeIpGroups where
toPath :: DescribeIpGroups -> ByteString
toPath = ByteString -> DescribeIpGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeIpGroups where
toQuery :: DescribeIpGroups -> QueryString
toQuery = QueryString -> DescribeIpGroups -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeIpGroupsResponse = DescribeIpGroupsResponse'
{
DescribeIpGroupsResponse -> Maybe [WorkspacesIpGroup]
result :: Prelude.Maybe [WorkspacesIpGroup],
DescribeIpGroupsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeIpGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeIpGroupsResponse -> DescribeIpGroupsResponse -> Bool
(DescribeIpGroupsResponse -> DescribeIpGroupsResponse -> Bool)
-> (DescribeIpGroupsResponse -> DescribeIpGroupsResponse -> Bool)
-> Eq DescribeIpGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeIpGroupsResponse -> DescribeIpGroupsResponse -> Bool
$c/= :: DescribeIpGroupsResponse -> DescribeIpGroupsResponse -> Bool
== :: DescribeIpGroupsResponse -> DescribeIpGroupsResponse -> Bool
$c== :: DescribeIpGroupsResponse -> DescribeIpGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeIpGroupsResponse]
ReadPrec DescribeIpGroupsResponse
Int -> ReadS DescribeIpGroupsResponse
ReadS [DescribeIpGroupsResponse]
(Int -> ReadS DescribeIpGroupsResponse)
-> ReadS [DescribeIpGroupsResponse]
-> ReadPrec DescribeIpGroupsResponse
-> ReadPrec [DescribeIpGroupsResponse]
-> Read DescribeIpGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeIpGroupsResponse]
$creadListPrec :: ReadPrec [DescribeIpGroupsResponse]
readPrec :: ReadPrec DescribeIpGroupsResponse
$creadPrec :: ReadPrec DescribeIpGroupsResponse
readList :: ReadS [DescribeIpGroupsResponse]
$creadList :: ReadS [DescribeIpGroupsResponse]
readsPrec :: Int -> ReadS DescribeIpGroupsResponse
$creadsPrec :: Int -> ReadS DescribeIpGroupsResponse
Prelude.Read, Int -> DescribeIpGroupsResponse -> ShowS
[DescribeIpGroupsResponse] -> ShowS
DescribeIpGroupsResponse -> String
(Int -> DescribeIpGroupsResponse -> ShowS)
-> (DescribeIpGroupsResponse -> String)
-> ([DescribeIpGroupsResponse] -> ShowS)
-> Show DescribeIpGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeIpGroupsResponse] -> ShowS
$cshowList :: [DescribeIpGroupsResponse] -> ShowS
show :: DescribeIpGroupsResponse -> String
$cshow :: DescribeIpGroupsResponse -> String
showsPrec :: Int -> DescribeIpGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeIpGroupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeIpGroupsResponse -> Rep DescribeIpGroupsResponse x)
-> (forall x.
Rep DescribeIpGroupsResponse x -> DescribeIpGroupsResponse)
-> Generic DescribeIpGroupsResponse
forall x.
Rep DescribeIpGroupsResponse x -> DescribeIpGroupsResponse
forall x.
DescribeIpGroupsResponse -> Rep DescribeIpGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeIpGroupsResponse x -> DescribeIpGroupsResponse
$cfrom :: forall x.
DescribeIpGroupsResponse -> Rep DescribeIpGroupsResponse x
Prelude.Generic)
newDescribeIpGroupsResponse ::
Prelude.Int ->
DescribeIpGroupsResponse
newDescribeIpGroupsResponse :: Int -> DescribeIpGroupsResponse
newDescribeIpGroupsResponse Int
pHttpStatus_ =
DescribeIpGroupsResponse' :: Maybe [WorkspacesIpGroup]
-> Maybe Text -> Int -> DescribeIpGroupsResponse
DescribeIpGroupsResponse'
{ $sel:result:DescribeIpGroupsResponse' :: Maybe [WorkspacesIpGroup]
result = Maybe [WorkspacesIpGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeIpGroupsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeIpGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeIpGroupsResponse_result :: Lens.Lens' DescribeIpGroupsResponse (Prelude.Maybe [WorkspacesIpGroup])
describeIpGroupsResponse_result :: (Maybe [WorkspacesIpGroup] -> f (Maybe [WorkspacesIpGroup]))
-> DescribeIpGroupsResponse -> f DescribeIpGroupsResponse
describeIpGroupsResponse_result = (DescribeIpGroupsResponse -> Maybe [WorkspacesIpGroup])
-> (DescribeIpGroupsResponse
-> Maybe [WorkspacesIpGroup] -> DescribeIpGroupsResponse)
-> Lens' DescribeIpGroupsResponse (Maybe [WorkspacesIpGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpGroupsResponse' {Maybe [WorkspacesIpGroup]
result :: Maybe [WorkspacesIpGroup]
$sel:result:DescribeIpGroupsResponse' :: DescribeIpGroupsResponse -> Maybe [WorkspacesIpGroup]
result} -> Maybe [WorkspacesIpGroup]
result) (\s :: DescribeIpGroupsResponse
s@DescribeIpGroupsResponse' {} Maybe [WorkspacesIpGroup]
a -> DescribeIpGroupsResponse
s {$sel:result:DescribeIpGroupsResponse' :: Maybe [WorkspacesIpGroup]
result = Maybe [WorkspacesIpGroup]
a} :: DescribeIpGroupsResponse) ((Maybe [WorkspacesIpGroup] -> f (Maybe [WorkspacesIpGroup]))
-> DescribeIpGroupsResponse -> f DescribeIpGroupsResponse)
-> ((Maybe [WorkspacesIpGroup] -> f (Maybe [WorkspacesIpGroup]))
-> Maybe [WorkspacesIpGroup] -> f (Maybe [WorkspacesIpGroup]))
-> (Maybe [WorkspacesIpGroup] -> f (Maybe [WorkspacesIpGroup]))
-> DescribeIpGroupsResponse
-> f DescribeIpGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[WorkspacesIpGroup]
[WorkspacesIpGroup]
[WorkspacesIpGroup]
[WorkspacesIpGroup]
-> Iso
(Maybe [WorkspacesIpGroup])
(Maybe [WorkspacesIpGroup])
(Maybe [WorkspacesIpGroup])
(Maybe [WorkspacesIpGroup])
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
[WorkspacesIpGroup]
[WorkspacesIpGroup]
[WorkspacesIpGroup]
[WorkspacesIpGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeIpGroupsResponse_nextToken :: Lens.Lens' DescribeIpGroupsResponse (Prelude.Maybe Prelude.Text)
describeIpGroupsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeIpGroupsResponse -> f DescribeIpGroupsResponse
describeIpGroupsResponse_nextToken = (DescribeIpGroupsResponse -> Maybe Text)
-> (DescribeIpGroupsResponse
-> Maybe Text -> DescribeIpGroupsResponse)
-> Lens' DescribeIpGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpGroupsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeIpGroupsResponse' :: DescribeIpGroupsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeIpGroupsResponse
s@DescribeIpGroupsResponse' {} Maybe Text
a -> DescribeIpGroupsResponse
s {$sel:nextToken:DescribeIpGroupsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeIpGroupsResponse)
describeIpGroupsResponse_httpStatus :: Lens.Lens' DescribeIpGroupsResponse Prelude.Int
describeIpGroupsResponse_httpStatus :: (Int -> f Int)
-> DescribeIpGroupsResponse -> f DescribeIpGroupsResponse
describeIpGroupsResponse_httpStatus = (DescribeIpGroupsResponse -> Int)
-> (DescribeIpGroupsResponse -> Int -> DescribeIpGroupsResponse)
-> Lens DescribeIpGroupsResponse DescribeIpGroupsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeIpGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeIpGroupsResponse' :: DescribeIpGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeIpGroupsResponse
s@DescribeIpGroupsResponse' {} Int
a -> DescribeIpGroupsResponse
s {$sel:httpStatus:DescribeIpGroupsResponse' :: Int
httpStatus = Int
a} :: DescribeIpGroupsResponse)
instance Prelude.NFData DescribeIpGroupsResponse