{-# 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.DescribeWorkspacesConnectionStatus
(
DescribeWorkspacesConnectionStatus (..),
newDescribeWorkspacesConnectionStatus,
describeWorkspacesConnectionStatus_workspaceIds,
describeWorkspacesConnectionStatus_nextToken,
DescribeWorkspacesConnectionStatusResponse (..),
newDescribeWorkspacesConnectionStatusResponse,
describeWorkspacesConnectionStatusResponse_nextToken,
describeWorkspacesConnectionStatusResponse_workspacesConnectionStatus,
describeWorkspacesConnectionStatusResponse_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 DescribeWorkspacesConnectionStatus = DescribeWorkspacesConnectionStatus'
{
DescribeWorkspacesConnectionStatus -> Maybe (NonEmpty Text)
workspaceIds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
DescribeWorkspacesConnectionStatus -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus -> Bool
(DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus -> Bool)
-> (DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus -> Bool)
-> Eq DescribeWorkspacesConnectionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus -> Bool
$c/= :: DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus -> Bool
== :: DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus -> Bool
$c== :: DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus -> Bool
Prelude.Eq, ReadPrec [DescribeWorkspacesConnectionStatus]
ReadPrec DescribeWorkspacesConnectionStatus
Int -> ReadS DescribeWorkspacesConnectionStatus
ReadS [DescribeWorkspacesConnectionStatus]
(Int -> ReadS DescribeWorkspacesConnectionStatus)
-> ReadS [DescribeWorkspacesConnectionStatus]
-> ReadPrec DescribeWorkspacesConnectionStatus
-> ReadPrec [DescribeWorkspacesConnectionStatus]
-> Read DescribeWorkspacesConnectionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkspacesConnectionStatus]
$creadListPrec :: ReadPrec [DescribeWorkspacesConnectionStatus]
readPrec :: ReadPrec DescribeWorkspacesConnectionStatus
$creadPrec :: ReadPrec DescribeWorkspacesConnectionStatus
readList :: ReadS [DescribeWorkspacesConnectionStatus]
$creadList :: ReadS [DescribeWorkspacesConnectionStatus]
readsPrec :: Int -> ReadS DescribeWorkspacesConnectionStatus
$creadsPrec :: Int -> ReadS DescribeWorkspacesConnectionStatus
Prelude.Read, Int -> DescribeWorkspacesConnectionStatus -> ShowS
[DescribeWorkspacesConnectionStatus] -> ShowS
DescribeWorkspacesConnectionStatus -> String
(Int -> DescribeWorkspacesConnectionStatus -> ShowS)
-> (DescribeWorkspacesConnectionStatus -> String)
-> ([DescribeWorkspacesConnectionStatus] -> ShowS)
-> Show DescribeWorkspacesConnectionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkspacesConnectionStatus] -> ShowS
$cshowList :: [DescribeWorkspacesConnectionStatus] -> ShowS
show :: DescribeWorkspacesConnectionStatus -> String
$cshow :: DescribeWorkspacesConnectionStatus -> String
showsPrec :: Int -> DescribeWorkspacesConnectionStatus -> ShowS
$cshowsPrec :: Int -> DescribeWorkspacesConnectionStatus -> ShowS
Prelude.Show, (forall x.
DescribeWorkspacesConnectionStatus
-> Rep DescribeWorkspacesConnectionStatus x)
-> (forall x.
Rep DescribeWorkspacesConnectionStatus x
-> DescribeWorkspacesConnectionStatus)
-> Generic DescribeWorkspacesConnectionStatus
forall x.
Rep DescribeWorkspacesConnectionStatus x
-> DescribeWorkspacesConnectionStatus
forall x.
DescribeWorkspacesConnectionStatus
-> Rep DescribeWorkspacesConnectionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkspacesConnectionStatus x
-> DescribeWorkspacesConnectionStatus
$cfrom :: forall x.
DescribeWorkspacesConnectionStatus
-> Rep DescribeWorkspacesConnectionStatus x
Prelude.Generic)
newDescribeWorkspacesConnectionStatus ::
DescribeWorkspacesConnectionStatus
newDescribeWorkspacesConnectionStatus :: DescribeWorkspacesConnectionStatus
newDescribeWorkspacesConnectionStatus =
DescribeWorkspacesConnectionStatus' :: Maybe (NonEmpty Text)
-> Maybe Text -> DescribeWorkspacesConnectionStatus
DescribeWorkspacesConnectionStatus'
{ $sel:workspaceIds:DescribeWorkspacesConnectionStatus' :: Maybe (NonEmpty Text)
workspaceIds =
Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeWorkspacesConnectionStatus' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeWorkspacesConnectionStatus_workspaceIds :: Lens.Lens' DescribeWorkspacesConnectionStatus (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
describeWorkspacesConnectionStatus_workspaceIds :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeWorkspacesConnectionStatus
-> f DescribeWorkspacesConnectionStatus
describeWorkspacesConnectionStatus_workspaceIds = (DescribeWorkspacesConnectionStatus -> Maybe (NonEmpty Text))
-> (DescribeWorkspacesConnectionStatus
-> Maybe (NonEmpty Text) -> DescribeWorkspacesConnectionStatus)
-> Lens
DescribeWorkspacesConnectionStatus
DescribeWorkspacesConnectionStatus
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspacesConnectionStatus' {Maybe (NonEmpty Text)
workspaceIds :: Maybe (NonEmpty Text)
$sel:workspaceIds:DescribeWorkspacesConnectionStatus' :: DescribeWorkspacesConnectionStatus -> Maybe (NonEmpty Text)
workspaceIds} -> Maybe (NonEmpty Text)
workspaceIds) (\s :: DescribeWorkspacesConnectionStatus
s@DescribeWorkspacesConnectionStatus' {} Maybe (NonEmpty Text)
a -> DescribeWorkspacesConnectionStatus
s {$sel:workspaceIds:DescribeWorkspacesConnectionStatus' :: Maybe (NonEmpty Text)
workspaceIds = Maybe (NonEmpty Text)
a} :: DescribeWorkspacesConnectionStatus) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeWorkspacesConnectionStatus
-> f DescribeWorkspacesConnectionStatus)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeWorkspacesConnectionStatus
-> f DescribeWorkspacesConnectionStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeWorkspacesConnectionStatus_nextToken :: Lens.Lens' DescribeWorkspacesConnectionStatus (Prelude.Maybe Prelude.Text)
describeWorkspacesConnectionStatus_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkspacesConnectionStatus
-> f DescribeWorkspacesConnectionStatus
describeWorkspacesConnectionStatus_nextToken = (DescribeWorkspacesConnectionStatus -> Maybe Text)
-> (DescribeWorkspacesConnectionStatus
-> Maybe Text -> DescribeWorkspacesConnectionStatus)
-> Lens
DescribeWorkspacesConnectionStatus
DescribeWorkspacesConnectionStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspacesConnectionStatus' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeWorkspacesConnectionStatus' :: DescribeWorkspacesConnectionStatus -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeWorkspacesConnectionStatus
s@DescribeWorkspacesConnectionStatus' {} Maybe Text
a -> DescribeWorkspacesConnectionStatus
s {$sel:nextToken:DescribeWorkspacesConnectionStatus' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeWorkspacesConnectionStatus)
instance
Core.AWSPager
DescribeWorkspacesConnectionStatus
where
page :: DescribeWorkspacesConnectionStatus
-> AWSResponse DescribeWorkspacesConnectionStatus
-> Maybe DescribeWorkspacesConnectionStatus
page DescribeWorkspacesConnectionStatus
rq AWSResponse DescribeWorkspacesConnectionStatus
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeWorkspacesConnectionStatus
DescribeWorkspacesConnectionStatusResponse
rs
DescribeWorkspacesConnectionStatusResponse
-> Getting
(First Text) DescribeWorkspacesConnectionStatusResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeWorkspacesConnectionStatusResponse
-> Const (First Text) DescribeWorkspacesConnectionStatusResponse
Lens' DescribeWorkspacesConnectionStatusResponse (Maybe Text)
describeWorkspacesConnectionStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeWorkspacesConnectionStatusResponse
-> Const (First Text) DescribeWorkspacesConnectionStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeWorkspacesConnectionStatusResponse 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 DescribeWorkspacesConnectionStatus
forall a. Maybe a
Prelude.Nothing
| Maybe [WorkspaceConnectionStatus] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeWorkspacesConnectionStatus
DescribeWorkspacesConnectionStatusResponse
rs
DescribeWorkspacesConnectionStatusResponse
-> Getting
(First [WorkspaceConnectionStatus])
DescribeWorkspacesConnectionStatusResponse
[WorkspaceConnectionStatus]
-> Maybe [WorkspaceConnectionStatus]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [WorkspaceConnectionStatus]
-> Const
(First [WorkspaceConnectionStatus])
(Maybe [WorkspaceConnectionStatus]))
-> DescribeWorkspacesConnectionStatusResponse
-> Const
(First [WorkspaceConnectionStatus])
DescribeWorkspacesConnectionStatusResponse
Lens'
DescribeWorkspacesConnectionStatusResponse
(Maybe [WorkspaceConnectionStatus])
describeWorkspacesConnectionStatusResponse_workspacesConnectionStatus
((Maybe [WorkspaceConnectionStatus]
-> Const
(First [WorkspaceConnectionStatus])
(Maybe [WorkspaceConnectionStatus]))
-> DescribeWorkspacesConnectionStatusResponse
-> Const
(First [WorkspaceConnectionStatus])
DescribeWorkspacesConnectionStatusResponse)
-> (([WorkspaceConnectionStatus]
-> Const
(First [WorkspaceConnectionStatus]) [WorkspaceConnectionStatus])
-> Maybe [WorkspaceConnectionStatus]
-> Const
(First [WorkspaceConnectionStatus])
(Maybe [WorkspaceConnectionStatus]))
-> Getting
(First [WorkspaceConnectionStatus])
DescribeWorkspacesConnectionStatusResponse
[WorkspaceConnectionStatus]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([WorkspaceConnectionStatus]
-> Const
(First [WorkspaceConnectionStatus]) [WorkspaceConnectionStatus])
-> Maybe [WorkspaceConnectionStatus]
-> Const
(First [WorkspaceConnectionStatus])
(Maybe [WorkspaceConnectionStatus])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeWorkspacesConnectionStatus
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeWorkspacesConnectionStatus
-> Maybe DescribeWorkspacesConnectionStatus
forall a. a -> Maybe a
Prelude.Just (DescribeWorkspacesConnectionStatus
-> Maybe DescribeWorkspacesConnectionStatus)
-> DescribeWorkspacesConnectionStatus
-> Maybe DescribeWorkspacesConnectionStatus
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeWorkspacesConnectionStatus
rq
DescribeWorkspacesConnectionStatus
-> (DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus)
-> DescribeWorkspacesConnectionStatus
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeWorkspacesConnectionStatus
-> Identity DescribeWorkspacesConnectionStatus
Lens
DescribeWorkspacesConnectionStatus
DescribeWorkspacesConnectionStatus
(Maybe Text)
(Maybe Text)
describeWorkspacesConnectionStatus_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeWorkspacesConnectionStatus
-> Identity DescribeWorkspacesConnectionStatus)
-> Maybe Text
-> DescribeWorkspacesConnectionStatus
-> DescribeWorkspacesConnectionStatus
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeWorkspacesConnectionStatus
DescribeWorkspacesConnectionStatusResponse
rs
DescribeWorkspacesConnectionStatusResponse
-> Getting
(First Text) DescribeWorkspacesConnectionStatusResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeWorkspacesConnectionStatusResponse
-> Const (First Text) DescribeWorkspacesConnectionStatusResponse
Lens' DescribeWorkspacesConnectionStatusResponse (Maybe Text)
describeWorkspacesConnectionStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeWorkspacesConnectionStatusResponse
-> Const (First Text) DescribeWorkspacesConnectionStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeWorkspacesConnectionStatusResponse 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
DescribeWorkspacesConnectionStatus
where
type
AWSResponse DescribeWorkspacesConnectionStatus =
DescribeWorkspacesConnectionStatusResponse
request :: DescribeWorkspacesConnectionStatus
-> Request DescribeWorkspacesConnectionStatus
request = Service
-> DescribeWorkspacesConnectionStatus
-> Request DescribeWorkspacesConnectionStatus
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeWorkspacesConnectionStatus
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeWorkspacesConnectionStatus)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeWorkspacesConnectionStatus))
-> Logger
-> Service
-> Proxy DescribeWorkspacesConnectionStatus
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeWorkspacesConnectionStatus)))
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 Text
-> Maybe [WorkspaceConnectionStatus]
-> Int
-> DescribeWorkspacesConnectionStatusResponse
DescribeWorkspacesConnectionStatusResponse'
(Maybe Text
-> Maybe [WorkspaceConnectionStatus]
-> Int
-> DescribeWorkspacesConnectionStatusResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [WorkspaceConnectionStatus]
-> Int -> DescribeWorkspacesConnectionStatusResponse)
forall (f :: * -> *) a b. Functor 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
(Maybe [WorkspaceConnectionStatus]
-> Int -> DescribeWorkspacesConnectionStatusResponse)
-> Either String (Maybe [WorkspaceConnectionStatus])
-> Either
String (Int -> DescribeWorkspacesConnectionStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [WorkspaceConnectionStatus]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"WorkspacesConnectionStatus"
Either String (Maybe (Maybe [WorkspaceConnectionStatus]))
-> Maybe [WorkspaceConnectionStatus]
-> Either String (Maybe [WorkspaceConnectionStatus])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [WorkspaceConnectionStatus]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeWorkspacesConnectionStatusResponse)
-> Either String Int
-> Either String DescribeWorkspacesConnectionStatusResponse
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
DescribeWorkspacesConnectionStatus
instance
Prelude.NFData
DescribeWorkspacesConnectionStatus
instance
Core.ToHeaders
DescribeWorkspacesConnectionStatus
where
toHeaders :: DescribeWorkspacesConnectionStatus -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeWorkspacesConnectionStatus -> 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.DescribeWorkspacesConnectionStatus" ::
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
DescribeWorkspacesConnectionStatus
where
toJSON :: DescribeWorkspacesConnectionStatus -> Value
toJSON DescribeWorkspacesConnectionStatus' {Maybe (NonEmpty Text)
Maybe Text
nextToken :: Maybe Text
workspaceIds :: Maybe (NonEmpty Text)
$sel:nextToken:DescribeWorkspacesConnectionStatus' :: DescribeWorkspacesConnectionStatus -> Maybe Text
$sel:workspaceIds:DescribeWorkspacesConnectionStatus' :: DescribeWorkspacesConnectionStatus -> Maybe (NonEmpty Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"WorkspaceIds" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
workspaceIds,
(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
]
)
instance
Core.ToPath
DescribeWorkspacesConnectionStatus
where
toPath :: DescribeWorkspacesConnectionStatus -> ByteString
toPath = ByteString -> DescribeWorkspacesConnectionStatus -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeWorkspacesConnectionStatus
where
toQuery :: DescribeWorkspacesConnectionStatus -> QueryString
toQuery = QueryString -> DescribeWorkspacesConnectionStatus -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeWorkspacesConnectionStatusResponse = DescribeWorkspacesConnectionStatusResponse'
{
DescribeWorkspacesConnectionStatusResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeWorkspacesConnectionStatusResponse
-> Maybe [WorkspaceConnectionStatus]
workspacesConnectionStatus :: Prelude.Maybe [WorkspaceConnectionStatus],
DescribeWorkspacesConnectionStatusResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeWorkspacesConnectionStatusResponse
-> DescribeWorkspacesConnectionStatusResponse -> Bool
(DescribeWorkspacesConnectionStatusResponse
-> DescribeWorkspacesConnectionStatusResponse -> Bool)
-> (DescribeWorkspacesConnectionStatusResponse
-> DescribeWorkspacesConnectionStatusResponse -> Bool)
-> Eq DescribeWorkspacesConnectionStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkspacesConnectionStatusResponse
-> DescribeWorkspacesConnectionStatusResponse -> Bool
$c/= :: DescribeWorkspacesConnectionStatusResponse
-> DescribeWorkspacesConnectionStatusResponse -> Bool
== :: DescribeWorkspacesConnectionStatusResponse
-> DescribeWorkspacesConnectionStatusResponse -> Bool
$c== :: DescribeWorkspacesConnectionStatusResponse
-> DescribeWorkspacesConnectionStatusResponse -> Bool
Prelude.Eq, ReadPrec [DescribeWorkspacesConnectionStatusResponse]
ReadPrec DescribeWorkspacesConnectionStatusResponse
Int -> ReadS DescribeWorkspacesConnectionStatusResponse
ReadS [DescribeWorkspacesConnectionStatusResponse]
(Int -> ReadS DescribeWorkspacesConnectionStatusResponse)
-> ReadS [DescribeWorkspacesConnectionStatusResponse]
-> ReadPrec DescribeWorkspacesConnectionStatusResponse
-> ReadPrec [DescribeWorkspacesConnectionStatusResponse]
-> Read DescribeWorkspacesConnectionStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkspacesConnectionStatusResponse]
$creadListPrec :: ReadPrec [DescribeWorkspacesConnectionStatusResponse]
readPrec :: ReadPrec DescribeWorkspacesConnectionStatusResponse
$creadPrec :: ReadPrec DescribeWorkspacesConnectionStatusResponse
readList :: ReadS [DescribeWorkspacesConnectionStatusResponse]
$creadList :: ReadS [DescribeWorkspacesConnectionStatusResponse]
readsPrec :: Int -> ReadS DescribeWorkspacesConnectionStatusResponse
$creadsPrec :: Int -> ReadS DescribeWorkspacesConnectionStatusResponse
Prelude.Read, Int -> DescribeWorkspacesConnectionStatusResponse -> ShowS
[DescribeWorkspacesConnectionStatusResponse] -> ShowS
DescribeWorkspacesConnectionStatusResponse -> String
(Int -> DescribeWorkspacesConnectionStatusResponse -> ShowS)
-> (DescribeWorkspacesConnectionStatusResponse -> String)
-> ([DescribeWorkspacesConnectionStatusResponse] -> ShowS)
-> Show DescribeWorkspacesConnectionStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkspacesConnectionStatusResponse] -> ShowS
$cshowList :: [DescribeWorkspacesConnectionStatusResponse] -> ShowS
show :: DescribeWorkspacesConnectionStatusResponse -> String
$cshow :: DescribeWorkspacesConnectionStatusResponse -> String
showsPrec :: Int -> DescribeWorkspacesConnectionStatusResponse -> ShowS
$cshowsPrec :: Int -> DescribeWorkspacesConnectionStatusResponse -> ShowS
Prelude.Show, (forall x.
DescribeWorkspacesConnectionStatusResponse
-> Rep DescribeWorkspacesConnectionStatusResponse x)
-> (forall x.
Rep DescribeWorkspacesConnectionStatusResponse x
-> DescribeWorkspacesConnectionStatusResponse)
-> Generic DescribeWorkspacesConnectionStatusResponse
forall x.
Rep DescribeWorkspacesConnectionStatusResponse x
-> DescribeWorkspacesConnectionStatusResponse
forall x.
DescribeWorkspacesConnectionStatusResponse
-> Rep DescribeWorkspacesConnectionStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkspacesConnectionStatusResponse x
-> DescribeWorkspacesConnectionStatusResponse
$cfrom :: forall x.
DescribeWorkspacesConnectionStatusResponse
-> Rep DescribeWorkspacesConnectionStatusResponse x
Prelude.Generic)
newDescribeWorkspacesConnectionStatusResponse ::
Prelude.Int ->
DescribeWorkspacesConnectionStatusResponse
newDescribeWorkspacesConnectionStatusResponse :: Int -> DescribeWorkspacesConnectionStatusResponse
newDescribeWorkspacesConnectionStatusResponse
Int
pHttpStatus_ =
DescribeWorkspacesConnectionStatusResponse' :: Maybe Text
-> Maybe [WorkspaceConnectionStatus]
-> Int
-> DescribeWorkspacesConnectionStatusResponse
DescribeWorkspacesConnectionStatusResponse'
{ $sel:nextToken:DescribeWorkspacesConnectionStatusResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:workspacesConnectionStatus:DescribeWorkspacesConnectionStatusResponse' :: Maybe [WorkspaceConnectionStatus]
workspacesConnectionStatus =
Maybe [WorkspaceConnectionStatus]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeWorkspacesConnectionStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeWorkspacesConnectionStatusResponse_nextToken :: Lens.Lens' DescribeWorkspacesConnectionStatusResponse (Prelude.Maybe Prelude.Text)
describeWorkspacesConnectionStatusResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkspacesConnectionStatusResponse
-> f DescribeWorkspacesConnectionStatusResponse
describeWorkspacesConnectionStatusResponse_nextToken = (DescribeWorkspacesConnectionStatusResponse -> Maybe Text)
-> (DescribeWorkspacesConnectionStatusResponse
-> Maybe Text -> DescribeWorkspacesConnectionStatusResponse)
-> Lens' DescribeWorkspacesConnectionStatusResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspacesConnectionStatusResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeWorkspacesConnectionStatusResponse' :: DescribeWorkspacesConnectionStatusResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeWorkspacesConnectionStatusResponse
s@DescribeWorkspacesConnectionStatusResponse' {} Maybe Text
a -> DescribeWorkspacesConnectionStatusResponse
s {$sel:nextToken:DescribeWorkspacesConnectionStatusResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeWorkspacesConnectionStatusResponse)
describeWorkspacesConnectionStatusResponse_workspacesConnectionStatus :: Lens.Lens' DescribeWorkspacesConnectionStatusResponse (Prelude.Maybe [WorkspaceConnectionStatus])
describeWorkspacesConnectionStatusResponse_workspacesConnectionStatus :: (Maybe [WorkspaceConnectionStatus]
-> f (Maybe [WorkspaceConnectionStatus]))
-> DescribeWorkspacesConnectionStatusResponse
-> f DescribeWorkspacesConnectionStatusResponse
describeWorkspacesConnectionStatusResponse_workspacesConnectionStatus = (DescribeWorkspacesConnectionStatusResponse
-> Maybe [WorkspaceConnectionStatus])
-> (DescribeWorkspacesConnectionStatusResponse
-> Maybe [WorkspaceConnectionStatus]
-> DescribeWorkspacesConnectionStatusResponse)
-> Lens'
DescribeWorkspacesConnectionStatusResponse
(Maybe [WorkspaceConnectionStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspacesConnectionStatusResponse' {Maybe [WorkspaceConnectionStatus]
workspacesConnectionStatus :: Maybe [WorkspaceConnectionStatus]
$sel:workspacesConnectionStatus:DescribeWorkspacesConnectionStatusResponse' :: DescribeWorkspacesConnectionStatusResponse
-> Maybe [WorkspaceConnectionStatus]
workspacesConnectionStatus} -> Maybe [WorkspaceConnectionStatus]
workspacesConnectionStatus) (\s :: DescribeWorkspacesConnectionStatusResponse
s@DescribeWorkspacesConnectionStatusResponse' {} Maybe [WorkspaceConnectionStatus]
a -> DescribeWorkspacesConnectionStatusResponse
s {$sel:workspacesConnectionStatus:DescribeWorkspacesConnectionStatusResponse' :: Maybe [WorkspaceConnectionStatus]
workspacesConnectionStatus = Maybe [WorkspaceConnectionStatus]
a} :: DescribeWorkspacesConnectionStatusResponse) ((Maybe [WorkspaceConnectionStatus]
-> f (Maybe [WorkspaceConnectionStatus]))
-> DescribeWorkspacesConnectionStatusResponse
-> f DescribeWorkspacesConnectionStatusResponse)
-> ((Maybe [WorkspaceConnectionStatus]
-> f (Maybe [WorkspaceConnectionStatus]))
-> Maybe [WorkspaceConnectionStatus]
-> f (Maybe [WorkspaceConnectionStatus]))
-> (Maybe [WorkspaceConnectionStatus]
-> f (Maybe [WorkspaceConnectionStatus]))
-> DescribeWorkspacesConnectionStatusResponse
-> f DescribeWorkspacesConnectionStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[WorkspaceConnectionStatus]
[WorkspaceConnectionStatus]
[WorkspaceConnectionStatus]
[WorkspaceConnectionStatus]
-> Iso
(Maybe [WorkspaceConnectionStatus])
(Maybe [WorkspaceConnectionStatus])
(Maybe [WorkspaceConnectionStatus])
(Maybe [WorkspaceConnectionStatus])
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
[WorkspaceConnectionStatus]
[WorkspaceConnectionStatus]
[WorkspaceConnectionStatus]
[WorkspaceConnectionStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeWorkspacesConnectionStatusResponse_httpStatus :: Lens.Lens' DescribeWorkspacesConnectionStatusResponse Prelude.Int
describeWorkspacesConnectionStatusResponse_httpStatus :: (Int -> f Int)
-> DescribeWorkspacesConnectionStatusResponse
-> f DescribeWorkspacesConnectionStatusResponse
describeWorkspacesConnectionStatusResponse_httpStatus = (DescribeWorkspacesConnectionStatusResponse -> Int)
-> (DescribeWorkspacesConnectionStatusResponse
-> Int -> DescribeWorkspacesConnectionStatusResponse)
-> Lens
DescribeWorkspacesConnectionStatusResponse
DescribeWorkspacesConnectionStatusResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspacesConnectionStatusResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeWorkspacesConnectionStatusResponse' :: DescribeWorkspacesConnectionStatusResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeWorkspacesConnectionStatusResponse
s@DescribeWorkspacesConnectionStatusResponse' {} Int
a -> DescribeWorkspacesConnectionStatusResponse
s {$sel:httpStatus:DescribeWorkspacesConnectionStatusResponse' :: Int
httpStatus = Int
a} :: DescribeWorkspacesConnectionStatusResponse)
instance
Prelude.NFData
DescribeWorkspacesConnectionStatusResponse