{-# 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.DescribeWorkspaceImagePermissions
(
DescribeWorkspaceImagePermissions (..),
newDescribeWorkspaceImagePermissions,
describeWorkspaceImagePermissions_nextToken,
describeWorkspaceImagePermissions_maxResults,
describeWorkspaceImagePermissions_imageId,
DescribeWorkspaceImagePermissionsResponse (..),
newDescribeWorkspaceImagePermissionsResponse,
describeWorkspaceImagePermissionsResponse_imagePermissions,
describeWorkspaceImagePermissionsResponse_nextToken,
describeWorkspaceImagePermissionsResponse_imageId,
describeWorkspaceImagePermissionsResponse_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 DescribeWorkspaceImagePermissions = DescribeWorkspaceImagePermissions'
{
DescribeWorkspaceImagePermissions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeWorkspaceImagePermissions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeWorkspaceImagePermissions -> Text
imageId :: Prelude.Text
}
deriving (DescribeWorkspaceImagePermissions
-> DescribeWorkspaceImagePermissions -> Bool
(DescribeWorkspaceImagePermissions
-> DescribeWorkspaceImagePermissions -> Bool)
-> (DescribeWorkspaceImagePermissions
-> DescribeWorkspaceImagePermissions -> Bool)
-> Eq DescribeWorkspaceImagePermissions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkspaceImagePermissions
-> DescribeWorkspaceImagePermissions -> Bool
$c/= :: DescribeWorkspaceImagePermissions
-> DescribeWorkspaceImagePermissions -> Bool
== :: DescribeWorkspaceImagePermissions
-> DescribeWorkspaceImagePermissions -> Bool
$c== :: DescribeWorkspaceImagePermissions
-> DescribeWorkspaceImagePermissions -> Bool
Prelude.Eq, ReadPrec [DescribeWorkspaceImagePermissions]
ReadPrec DescribeWorkspaceImagePermissions
Int -> ReadS DescribeWorkspaceImagePermissions
ReadS [DescribeWorkspaceImagePermissions]
(Int -> ReadS DescribeWorkspaceImagePermissions)
-> ReadS [DescribeWorkspaceImagePermissions]
-> ReadPrec DescribeWorkspaceImagePermissions
-> ReadPrec [DescribeWorkspaceImagePermissions]
-> Read DescribeWorkspaceImagePermissions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkspaceImagePermissions]
$creadListPrec :: ReadPrec [DescribeWorkspaceImagePermissions]
readPrec :: ReadPrec DescribeWorkspaceImagePermissions
$creadPrec :: ReadPrec DescribeWorkspaceImagePermissions
readList :: ReadS [DescribeWorkspaceImagePermissions]
$creadList :: ReadS [DescribeWorkspaceImagePermissions]
readsPrec :: Int -> ReadS DescribeWorkspaceImagePermissions
$creadsPrec :: Int -> ReadS DescribeWorkspaceImagePermissions
Prelude.Read, Int -> DescribeWorkspaceImagePermissions -> ShowS
[DescribeWorkspaceImagePermissions] -> ShowS
DescribeWorkspaceImagePermissions -> String
(Int -> DescribeWorkspaceImagePermissions -> ShowS)
-> (DescribeWorkspaceImagePermissions -> String)
-> ([DescribeWorkspaceImagePermissions] -> ShowS)
-> Show DescribeWorkspaceImagePermissions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkspaceImagePermissions] -> ShowS
$cshowList :: [DescribeWorkspaceImagePermissions] -> ShowS
show :: DescribeWorkspaceImagePermissions -> String
$cshow :: DescribeWorkspaceImagePermissions -> String
showsPrec :: Int -> DescribeWorkspaceImagePermissions -> ShowS
$cshowsPrec :: Int -> DescribeWorkspaceImagePermissions -> ShowS
Prelude.Show, (forall x.
DescribeWorkspaceImagePermissions
-> Rep DescribeWorkspaceImagePermissions x)
-> (forall x.
Rep DescribeWorkspaceImagePermissions x
-> DescribeWorkspaceImagePermissions)
-> Generic DescribeWorkspaceImagePermissions
forall x.
Rep DescribeWorkspaceImagePermissions x
-> DescribeWorkspaceImagePermissions
forall x.
DescribeWorkspaceImagePermissions
-> Rep DescribeWorkspaceImagePermissions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkspaceImagePermissions x
-> DescribeWorkspaceImagePermissions
$cfrom :: forall x.
DescribeWorkspaceImagePermissions
-> Rep DescribeWorkspaceImagePermissions x
Prelude.Generic)
newDescribeWorkspaceImagePermissions ::
Prelude.Text ->
DescribeWorkspaceImagePermissions
newDescribeWorkspaceImagePermissions :: Text -> DescribeWorkspaceImagePermissions
newDescribeWorkspaceImagePermissions Text
pImageId_ =
DescribeWorkspaceImagePermissions' :: Maybe Text
-> Maybe Natural -> Text -> DescribeWorkspaceImagePermissions
DescribeWorkspaceImagePermissions'
{ $sel:nextToken:DescribeWorkspaceImagePermissions' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeWorkspaceImagePermissions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:imageId:DescribeWorkspaceImagePermissions' :: Text
imageId = Text
pImageId_
}
describeWorkspaceImagePermissions_nextToken :: Lens.Lens' DescribeWorkspaceImagePermissions (Prelude.Maybe Prelude.Text)
describeWorkspaceImagePermissions_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkspaceImagePermissions
-> f DescribeWorkspaceImagePermissions
describeWorkspaceImagePermissions_nextToken = (DescribeWorkspaceImagePermissions -> Maybe Text)
-> (DescribeWorkspaceImagePermissions
-> Maybe Text -> DescribeWorkspaceImagePermissions)
-> Lens
DescribeWorkspaceImagePermissions
DescribeWorkspaceImagePermissions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspaceImagePermissions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeWorkspaceImagePermissions' :: DescribeWorkspaceImagePermissions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeWorkspaceImagePermissions
s@DescribeWorkspaceImagePermissions' {} Maybe Text
a -> DescribeWorkspaceImagePermissions
s {$sel:nextToken:DescribeWorkspaceImagePermissions' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeWorkspaceImagePermissions)
describeWorkspaceImagePermissions_maxResults :: Lens.Lens' DescribeWorkspaceImagePermissions (Prelude.Maybe Prelude.Natural)
describeWorkspaceImagePermissions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeWorkspaceImagePermissions
-> f DescribeWorkspaceImagePermissions
describeWorkspaceImagePermissions_maxResults = (DescribeWorkspaceImagePermissions -> Maybe Natural)
-> (DescribeWorkspaceImagePermissions
-> Maybe Natural -> DescribeWorkspaceImagePermissions)
-> Lens
DescribeWorkspaceImagePermissions
DescribeWorkspaceImagePermissions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspaceImagePermissions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeWorkspaceImagePermissions' :: DescribeWorkspaceImagePermissions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeWorkspaceImagePermissions
s@DescribeWorkspaceImagePermissions' {} Maybe Natural
a -> DescribeWorkspaceImagePermissions
s {$sel:maxResults:DescribeWorkspaceImagePermissions' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeWorkspaceImagePermissions)
describeWorkspaceImagePermissions_imageId :: Lens.Lens' DescribeWorkspaceImagePermissions Prelude.Text
describeWorkspaceImagePermissions_imageId :: (Text -> f Text)
-> DescribeWorkspaceImagePermissions
-> f DescribeWorkspaceImagePermissions
describeWorkspaceImagePermissions_imageId = (DescribeWorkspaceImagePermissions -> Text)
-> (DescribeWorkspaceImagePermissions
-> Text -> DescribeWorkspaceImagePermissions)
-> Lens
DescribeWorkspaceImagePermissions
DescribeWorkspaceImagePermissions
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspaceImagePermissions' {Text
imageId :: Text
$sel:imageId:DescribeWorkspaceImagePermissions' :: DescribeWorkspaceImagePermissions -> Text
imageId} -> Text
imageId) (\s :: DescribeWorkspaceImagePermissions
s@DescribeWorkspaceImagePermissions' {} Text
a -> DescribeWorkspaceImagePermissions
s {$sel:imageId:DescribeWorkspaceImagePermissions' :: Text
imageId = Text
a} :: DescribeWorkspaceImagePermissions)
instance
Core.AWSRequest
DescribeWorkspaceImagePermissions
where
type
AWSResponse DescribeWorkspaceImagePermissions =
DescribeWorkspaceImagePermissionsResponse
request :: DescribeWorkspaceImagePermissions
-> Request DescribeWorkspaceImagePermissions
request = Service
-> DescribeWorkspaceImagePermissions
-> Request DescribeWorkspaceImagePermissions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeWorkspaceImagePermissions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeWorkspaceImagePermissions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeWorkspaceImagePermissions))
-> Logger
-> Service
-> Proxy DescribeWorkspaceImagePermissions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeWorkspaceImagePermissions)))
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 [ImagePermission]
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkspaceImagePermissionsResponse
DescribeWorkspaceImagePermissionsResponse'
(Maybe [ImagePermission]
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkspaceImagePermissionsResponse)
-> Either String (Maybe [ImagePermission])
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> DescribeWorkspaceImagePermissionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ImagePermission]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ImagePermissions"
Either String (Maybe (Maybe [ImagePermission]))
-> Maybe [ImagePermission]
-> Either String (Maybe [ImagePermission])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ImagePermission]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text
-> Maybe Text -> Int -> DescribeWorkspaceImagePermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Int -> DescribeWorkspaceImagePermissionsResponse)
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
(Maybe Text -> Int -> DescribeWorkspaceImagePermissionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeWorkspaceImagePermissionsResponse)
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
"ImageId")
Either String (Int -> DescribeWorkspaceImagePermissionsResponse)
-> Either String Int
-> Either String DescribeWorkspaceImagePermissionsResponse
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
DescribeWorkspaceImagePermissions
instance
Prelude.NFData
DescribeWorkspaceImagePermissions
instance
Core.ToHeaders
DescribeWorkspaceImagePermissions
where
toHeaders :: DescribeWorkspaceImagePermissions -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeWorkspaceImagePermissions -> 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.DescribeWorkspaceImagePermissions" ::
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
DescribeWorkspaceImagePermissions
where
toJSON :: DescribeWorkspaceImagePermissions -> Value
toJSON DescribeWorkspaceImagePermissions' {Maybe Natural
Maybe Text
Text
imageId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:imageId:DescribeWorkspaceImagePermissions' :: DescribeWorkspaceImagePermissions -> Text
$sel:maxResults:DescribeWorkspaceImagePermissions' :: DescribeWorkspaceImagePermissions -> Maybe Natural
$sel:nextToken:DescribeWorkspaceImagePermissions' :: DescribeWorkspaceImagePermissions -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ImageId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
imageId)
]
)
instance
Core.ToPath
DescribeWorkspaceImagePermissions
where
toPath :: DescribeWorkspaceImagePermissions -> ByteString
toPath = ByteString -> DescribeWorkspaceImagePermissions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeWorkspaceImagePermissions
where
toQuery :: DescribeWorkspaceImagePermissions -> QueryString
toQuery = QueryString -> DescribeWorkspaceImagePermissions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeWorkspaceImagePermissionsResponse = DescribeWorkspaceImagePermissionsResponse'
{
DescribeWorkspaceImagePermissionsResponse
-> Maybe [ImagePermission]
imagePermissions :: Prelude.Maybe [ImagePermission],
DescribeWorkspaceImagePermissionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeWorkspaceImagePermissionsResponse -> Maybe Text
imageId :: Prelude.Maybe Prelude.Text,
DescribeWorkspaceImagePermissionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeWorkspaceImagePermissionsResponse
-> DescribeWorkspaceImagePermissionsResponse -> Bool
(DescribeWorkspaceImagePermissionsResponse
-> DescribeWorkspaceImagePermissionsResponse -> Bool)
-> (DescribeWorkspaceImagePermissionsResponse
-> DescribeWorkspaceImagePermissionsResponse -> Bool)
-> Eq DescribeWorkspaceImagePermissionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkspaceImagePermissionsResponse
-> DescribeWorkspaceImagePermissionsResponse -> Bool
$c/= :: DescribeWorkspaceImagePermissionsResponse
-> DescribeWorkspaceImagePermissionsResponse -> Bool
== :: DescribeWorkspaceImagePermissionsResponse
-> DescribeWorkspaceImagePermissionsResponse -> Bool
$c== :: DescribeWorkspaceImagePermissionsResponse
-> DescribeWorkspaceImagePermissionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeWorkspaceImagePermissionsResponse]
ReadPrec DescribeWorkspaceImagePermissionsResponse
Int -> ReadS DescribeWorkspaceImagePermissionsResponse
ReadS [DescribeWorkspaceImagePermissionsResponse]
(Int -> ReadS DescribeWorkspaceImagePermissionsResponse)
-> ReadS [DescribeWorkspaceImagePermissionsResponse]
-> ReadPrec DescribeWorkspaceImagePermissionsResponse
-> ReadPrec [DescribeWorkspaceImagePermissionsResponse]
-> Read DescribeWorkspaceImagePermissionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkspaceImagePermissionsResponse]
$creadListPrec :: ReadPrec [DescribeWorkspaceImagePermissionsResponse]
readPrec :: ReadPrec DescribeWorkspaceImagePermissionsResponse
$creadPrec :: ReadPrec DescribeWorkspaceImagePermissionsResponse
readList :: ReadS [DescribeWorkspaceImagePermissionsResponse]
$creadList :: ReadS [DescribeWorkspaceImagePermissionsResponse]
readsPrec :: Int -> ReadS DescribeWorkspaceImagePermissionsResponse
$creadsPrec :: Int -> ReadS DescribeWorkspaceImagePermissionsResponse
Prelude.Read, Int -> DescribeWorkspaceImagePermissionsResponse -> ShowS
[DescribeWorkspaceImagePermissionsResponse] -> ShowS
DescribeWorkspaceImagePermissionsResponse -> String
(Int -> DescribeWorkspaceImagePermissionsResponse -> ShowS)
-> (DescribeWorkspaceImagePermissionsResponse -> String)
-> ([DescribeWorkspaceImagePermissionsResponse] -> ShowS)
-> Show DescribeWorkspaceImagePermissionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkspaceImagePermissionsResponse] -> ShowS
$cshowList :: [DescribeWorkspaceImagePermissionsResponse] -> ShowS
show :: DescribeWorkspaceImagePermissionsResponse -> String
$cshow :: DescribeWorkspaceImagePermissionsResponse -> String
showsPrec :: Int -> DescribeWorkspaceImagePermissionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeWorkspaceImagePermissionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeWorkspaceImagePermissionsResponse
-> Rep DescribeWorkspaceImagePermissionsResponse x)
-> (forall x.
Rep DescribeWorkspaceImagePermissionsResponse x
-> DescribeWorkspaceImagePermissionsResponse)
-> Generic DescribeWorkspaceImagePermissionsResponse
forall x.
Rep DescribeWorkspaceImagePermissionsResponse x
-> DescribeWorkspaceImagePermissionsResponse
forall x.
DescribeWorkspaceImagePermissionsResponse
-> Rep DescribeWorkspaceImagePermissionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkspaceImagePermissionsResponse x
-> DescribeWorkspaceImagePermissionsResponse
$cfrom :: forall x.
DescribeWorkspaceImagePermissionsResponse
-> Rep DescribeWorkspaceImagePermissionsResponse x
Prelude.Generic)
newDescribeWorkspaceImagePermissionsResponse ::
Prelude.Int ->
DescribeWorkspaceImagePermissionsResponse
newDescribeWorkspaceImagePermissionsResponse :: Int -> DescribeWorkspaceImagePermissionsResponse
newDescribeWorkspaceImagePermissionsResponse
Int
pHttpStatus_ =
DescribeWorkspaceImagePermissionsResponse' :: Maybe [ImagePermission]
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkspaceImagePermissionsResponse
DescribeWorkspaceImagePermissionsResponse'
{ $sel:imagePermissions:DescribeWorkspaceImagePermissionsResponse' :: Maybe [ImagePermission]
imagePermissions =
Maybe [ImagePermission]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeWorkspaceImagePermissionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageId:DescribeWorkspaceImagePermissionsResponse' :: Maybe Text
imageId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeWorkspaceImagePermissionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeWorkspaceImagePermissionsResponse_imagePermissions :: Lens.Lens' DescribeWorkspaceImagePermissionsResponse (Prelude.Maybe [ImagePermission])
describeWorkspaceImagePermissionsResponse_imagePermissions :: (Maybe [ImagePermission] -> f (Maybe [ImagePermission]))
-> DescribeWorkspaceImagePermissionsResponse
-> f DescribeWorkspaceImagePermissionsResponse
describeWorkspaceImagePermissionsResponse_imagePermissions = (DescribeWorkspaceImagePermissionsResponse
-> Maybe [ImagePermission])
-> (DescribeWorkspaceImagePermissionsResponse
-> Maybe [ImagePermission]
-> DescribeWorkspaceImagePermissionsResponse)
-> Lens
DescribeWorkspaceImagePermissionsResponse
DescribeWorkspaceImagePermissionsResponse
(Maybe [ImagePermission])
(Maybe [ImagePermission])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspaceImagePermissionsResponse' {Maybe [ImagePermission]
imagePermissions :: Maybe [ImagePermission]
$sel:imagePermissions:DescribeWorkspaceImagePermissionsResponse' :: DescribeWorkspaceImagePermissionsResponse
-> Maybe [ImagePermission]
imagePermissions} -> Maybe [ImagePermission]
imagePermissions) (\s :: DescribeWorkspaceImagePermissionsResponse
s@DescribeWorkspaceImagePermissionsResponse' {} Maybe [ImagePermission]
a -> DescribeWorkspaceImagePermissionsResponse
s {$sel:imagePermissions:DescribeWorkspaceImagePermissionsResponse' :: Maybe [ImagePermission]
imagePermissions = Maybe [ImagePermission]
a} :: DescribeWorkspaceImagePermissionsResponse) ((Maybe [ImagePermission] -> f (Maybe [ImagePermission]))
-> DescribeWorkspaceImagePermissionsResponse
-> f DescribeWorkspaceImagePermissionsResponse)
-> ((Maybe [ImagePermission] -> f (Maybe [ImagePermission]))
-> Maybe [ImagePermission] -> f (Maybe [ImagePermission]))
-> (Maybe [ImagePermission] -> f (Maybe [ImagePermission]))
-> DescribeWorkspaceImagePermissionsResponse
-> f DescribeWorkspaceImagePermissionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ImagePermission]
[ImagePermission]
[ImagePermission]
[ImagePermission]
-> Iso
(Maybe [ImagePermission])
(Maybe [ImagePermission])
(Maybe [ImagePermission])
(Maybe [ImagePermission])
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
[ImagePermission]
[ImagePermission]
[ImagePermission]
[ImagePermission]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeWorkspaceImagePermissionsResponse_nextToken :: Lens.Lens' DescribeWorkspaceImagePermissionsResponse (Prelude.Maybe Prelude.Text)
describeWorkspaceImagePermissionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkspaceImagePermissionsResponse
-> f DescribeWorkspaceImagePermissionsResponse
describeWorkspaceImagePermissionsResponse_nextToken = (DescribeWorkspaceImagePermissionsResponse -> Maybe Text)
-> (DescribeWorkspaceImagePermissionsResponse
-> Maybe Text -> DescribeWorkspaceImagePermissionsResponse)
-> Lens
DescribeWorkspaceImagePermissionsResponse
DescribeWorkspaceImagePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspaceImagePermissionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeWorkspaceImagePermissionsResponse' :: DescribeWorkspaceImagePermissionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeWorkspaceImagePermissionsResponse
s@DescribeWorkspaceImagePermissionsResponse' {} Maybe Text
a -> DescribeWorkspaceImagePermissionsResponse
s {$sel:nextToken:DescribeWorkspaceImagePermissionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeWorkspaceImagePermissionsResponse)
describeWorkspaceImagePermissionsResponse_imageId :: Lens.Lens' DescribeWorkspaceImagePermissionsResponse (Prelude.Maybe Prelude.Text)
describeWorkspaceImagePermissionsResponse_imageId :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkspaceImagePermissionsResponse
-> f DescribeWorkspaceImagePermissionsResponse
describeWorkspaceImagePermissionsResponse_imageId = (DescribeWorkspaceImagePermissionsResponse -> Maybe Text)
-> (DescribeWorkspaceImagePermissionsResponse
-> Maybe Text -> DescribeWorkspaceImagePermissionsResponse)
-> Lens
DescribeWorkspaceImagePermissionsResponse
DescribeWorkspaceImagePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspaceImagePermissionsResponse' {Maybe Text
imageId :: Maybe Text
$sel:imageId:DescribeWorkspaceImagePermissionsResponse' :: DescribeWorkspaceImagePermissionsResponse -> Maybe Text
imageId} -> Maybe Text
imageId) (\s :: DescribeWorkspaceImagePermissionsResponse
s@DescribeWorkspaceImagePermissionsResponse' {} Maybe Text
a -> DescribeWorkspaceImagePermissionsResponse
s {$sel:imageId:DescribeWorkspaceImagePermissionsResponse' :: Maybe Text
imageId = Maybe Text
a} :: DescribeWorkspaceImagePermissionsResponse)
describeWorkspaceImagePermissionsResponse_httpStatus :: Lens.Lens' DescribeWorkspaceImagePermissionsResponse Prelude.Int
describeWorkspaceImagePermissionsResponse_httpStatus :: (Int -> f Int)
-> DescribeWorkspaceImagePermissionsResponse
-> f DescribeWorkspaceImagePermissionsResponse
describeWorkspaceImagePermissionsResponse_httpStatus = (DescribeWorkspaceImagePermissionsResponse -> Int)
-> (DescribeWorkspaceImagePermissionsResponse
-> Int -> DescribeWorkspaceImagePermissionsResponse)
-> Lens
DescribeWorkspaceImagePermissionsResponse
DescribeWorkspaceImagePermissionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkspaceImagePermissionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeWorkspaceImagePermissionsResponse' :: DescribeWorkspaceImagePermissionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeWorkspaceImagePermissionsResponse
s@DescribeWorkspaceImagePermissionsResponse' {} Int
a -> DescribeWorkspaceImagePermissionsResponse
s {$sel:httpStatus:DescribeWorkspaceImagePermissionsResponse' :: Int
httpStatus = Int
a} :: DescribeWorkspaceImagePermissionsResponse)
instance
Prelude.NFData
DescribeWorkspaceImagePermissionsResponse