{-# 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.SageMaker.DescribeContext
(
DescribeContext (..),
newDescribeContext,
describeContext_contextName,
DescribeContextResponse (..),
newDescribeContextResponse,
describeContextResponse_contextArn,
describeContextResponse_contextName,
describeContextResponse_contextType,
describeContextResponse_createdBy,
describeContextResponse_creationTime,
describeContextResponse_description,
describeContextResponse_lastModifiedBy,
describeContextResponse_lastModifiedTime,
describeContextResponse_lineageGroupArn,
describeContextResponse_properties,
describeContextResponse_source,
describeContextResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data DescribeContext = DescribeContext'
{
DescribeContext -> Text
contextName :: Prelude.Text
}
deriving (DescribeContext -> DescribeContext -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeContext -> DescribeContext -> Bool
$c/= :: DescribeContext -> DescribeContext -> Bool
== :: DescribeContext -> DescribeContext -> Bool
$c== :: DescribeContext -> DescribeContext -> Bool
Prelude.Eq, ReadPrec [DescribeContext]
ReadPrec DescribeContext
Int -> ReadS DescribeContext
ReadS [DescribeContext]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeContext]
$creadListPrec :: ReadPrec [DescribeContext]
readPrec :: ReadPrec DescribeContext
$creadPrec :: ReadPrec DescribeContext
readList :: ReadS [DescribeContext]
$creadList :: ReadS [DescribeContext]
readsPrec :: Int -> ReadS DescribeContext
$creadsPrec :: Int -> ReadS DescribeContext
Prelude.Read, Int -> DescribeContext -> ShowS
[DescribeContext] -> ShowS
DescribeContext -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeContext] -> ShowS
$cshowList :: [DescribeContext] -> ShowS
show :: DescribeContext -> String
$cshow :: DescribeContext -> String
showsPrec :: Int -> DescribeContext -> ShowS
$cshowsPrec :: Int -> DescribeContext -> ShowS
Prelude.Show, forall x. Rep DescribeContext x -> DescribeContext
forall x. DescribeContext -> Rep DescribeContext x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeContext x -> DescribeContext
$cfrom :: forall x. DescribeContext -> Rep DescribeContext x
Prelude.Generic)
newDescribeContext ::
Prelude.Text ->
DescribeContext
newDescribeContext :: Text -> DescribeContext
newDescribeContext Text
pContextName_ =
DescribeContext' {$sel:contextName:DescribeContext' :: Text
contextName = Text
pContextName_}
describeContext_contextName :: Lens.Lens' DescribeContext Prelude.Text
describeContext_contextName :: Lens' DescribeContext Text
describeContext_contextName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContext' {Text
contextName :: Text
$sel:contextName:DescribeContext' :: DescribeContext -> Text
contextName} -> Text
contextName) (\s :: DescribeContext
s@DescribeContext' {} Text
a -> DescribeContext
s {$sel:contextName:DescribeContext' :: Text
contextName = Text
a} :: DescribeContext)
instance Core.AWSRequest DescribeContext where
type
AWSResponse DescribeContext =
DescribeContextResponse
request :: (Service -> Service) -> DescribeContext -> Request DescribeContext
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeContext
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeContext)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe UserContext
-> Maybe POSIX
-> Maybe Text
-> Maybe UserContext
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe ContextSource
-> Int
-> DescribeContextResponse
DescribeContextResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ContextArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ContextName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ContextType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreatedBy")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedBy")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LineageGroupArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Properties" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Source")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeContext where
hashWithSalt :: Int -> DescribeContext -> Int
hashWithSalt Int
_salt DescribeContext' {Text
contextName :: Text
$sel:contextName:DescribeContext' :: DescribeContext -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
contextName
instance Prelude.NFData DescribeContext where
rnf :: DescribeContext -> ()
rnf DescribeContext' {Text
contextName :: Text
$sel:contextName:DescribeContext' :: DescribeContext -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
contextName
instance Data.ToHeaders DescribeContext where
toHeaders :: DescribeContext -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# (ByteString
"SageMaker.DescribeContext" :: Prelude.ByteString),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON DescribeContext where
toJSON :: DescribeContext -> Value
toJSON DescribeContext' {Text
contextName :: Text
$sel:contextName:DescribeContext' :: DescribeContext -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"ContextName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
contextName)]
)
instance Data.ToPath DescribeContext where
toPath :: DescribeContext -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DescribeContext where
toQuery :: DescribeContext -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DescribeContextResponse = DescribeContextResponse'
{
DescribeContextResponse -> Maybe Text
contextArn :: Prelude.Maybe Prelude.Text,
DescribeContextResponse -> Maybe Text
contextName :: Prelude.Maybe Prelude.Text,
DescribeContextResponse -> Maybe Text
contextType :: Prelude.Maybe Prelude.Text,
DescribeContextResponse -> Maybe UserContext
createdBy :: Prelude.Maybe UserContext,
DescribeContextResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
DescribeContextResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeContextResponse -> Maybe UserContext
lastModifiedBy :: Prelude.Maybe UserContext,
DescribeContextResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
DescribeContextResponse -> Maybe Text
lineageGroupArn :: Prelude.Maybe Prelude.Text,
DescribeContextResponse -> Maybe (HashMap Text Text)
properties :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeContextResponse -> Maybe ContextSource
source :: Prelude.Maybe ContextSource,
DescribeContextResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeContextResponse -> DescribeContextResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeContextResponse -> DescribeContextResponse -> Bool
$c/= :: DescribeContextResponse -> DescribeContextResponse -> Bool
== :: DescribeContextResponse -> DescribeContextResponse -> Bool
$c== :: DescribeContextResponse -> DescribeContextResponse -> Bool
Prelude.Eq, ReadPrec [DescribeContextResponse]
ReadPrec DescribeContextResponse
Int -> ReadS DescribeContextResponse
ReadS [DescribeContextResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeContextResponse]
$creadListPrec :: ReadPrec [DescribeContextResponse]
readPrec :: ReadPrec DescribeContextResponse
$creadPrec :: ReadPrec DescribeContextResponse
readList :: ReadS [DescribeContextResponse]
$creadList :: ReadS [DescribeContextResponse]
readsPrec :: Int -> ReadS DescribeContextResponse
$creadsPrec :: Int -> ReadS DescribeContextResponse
Prelude.Read, Int -> DescribeContextResponse -> ShowS
[DescribeContextResponse] -> ShowS
DescribeContextResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeContextResponse] -> ShowS
$cshowList :: [DescribeContextResponse] -> ShowS
show :: DescribeContextResponse -> String
$cshow :: DescribeContextResponse -> String
showsPrec :: Int -> DescribeContextResponse -> ShowS
$cshowsPrec :: Int -> DescribeContextResponse -> ShowS
Prelude.Show, forall x. Rep DescribeContextResponse x -> DescribeContextResponse
forall x. DescribeContextResponse -> Rep DescribeContextResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeContextResponse x -> DescribeContextResponse
$cfrom :: forall x. DescribeContextResponse -> Rep DescribeContextResponse x
Prelude.Generic)
newDescribeContextResponse ::
Prelude.Int ->
DescribeContextResponse
newDescribeContextResponse :: Int -> DescribeContextResponse
newDescribeContextResponse Int
pHttpStatus_ =
DescribeContextResponse'
{ $sel:contextArn:DescribeContextResponse' :: Maybe Text
contextArn =
forall a. Maybe a
Prelude.Nothing,
$sel:contextName:DescribeContextResponse' :: Maybe Text
contextName = forall a. Maybe a
Prelude.Nothing,
$sel:contextType:DescribeContextResponse' :: Maybe Text
contextType = forall a. Maybe a
Prelude.Nothing,
$sel:createdBy:DescribeContextResponse' :: Maybe UserContext
createdBy = forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:DescribeContextResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeContextResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedBy:DescribeContextResponse' :: Maybe UserContext
lastModifiedBy = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:DescribeContextResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
$sel:lineageGroupArn:DescribeContextResponse' :: Maybe Text
lineageGroupArn = forall a. Maybe a
Prelude.Nothing,
$sel:properties:DescribeContextResponse' :: Maybe (HashMap Text Text)
properties = forall a. Maybe a
Prelude.Nothing,
$sel:source:DescribeContextResponse' :: Maybe ContextSource
source = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeContextResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeContextResponse_contextArn :: Lens.Lens' DescribeContextResponse (Prelude.Maybe Prelude.Text)
describeContextResponse_contextArn :: Lens' DescribeContextResponse (Maybe Text)
describeContextResponse_contextArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe Text
contextArn :: Maybe Text
$sel:contextArn:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
contextArn} -> Maybe Text
contextArn) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe Text
a -> DescribeContextResponse
s {$sel:contextArn:DescribeContextResponse' :: Maybe Text
contextArn = Maybe Text
a} :: DescribeContextResponse)
describeContextResponse_contextName :: Lens.Lens' DescribeContextResponse (Prelude.Maybe Prelude.Text)
describeContextResponse_contextName :: Lens' DescribeContextResponse (Maybe Text)
describeContextResponse_contextName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe Text
contextName :: Maybe Text
$sel:contextName:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
contextName} -> Maybe Text
contextName) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe Text
a -> DescribeContextResponse
s {$sel:contextName:DescribeContextResponse' :: Maybe Text
contextName = Maybe Text
a} :: DescribeContextResponse)
describeContextResponse_contextType :: Lens.Lens' DescribeContextResponse (Prelude.Maybe Prelude.Text)
describeContextResponse_contextType :: Lens' DescribeContextResponse (Maybe Text)
describeContextResponse_contextType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe Text
contextType :: Maybe Text
$sel:contextType:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
contextType} -> Maybe Text
contextType) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe Text
a -> DescribeContextResponse
s {$sel:contextType:DescribeContextResponse' :: Maybe Text
contextType = Maybe Text
a} :: DescribeContextResponse)
describeContextResponse_createdBy :: Lens.Lens' DescribeContextResponse (Prelude.Maybe UserContext)
describeContextResponse_createdBy :: Lens' DescribeContextResponse (Maybe UserContext)
describeContextResponse_createdBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe UserContext
createdBy :: Maybe UserContext
$sel:createdBy:DescribeContextResponse' :: DescribeContextResponse -> Maybe UserContext
createdBy} -> Maybe UserContext
createdBy) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe UserContext
a -> DescribeContextResponse
s {$sel:createdBy:DescribeContextResponse' :: Maybe UserContext
createdBy = Maybe UserContext
a} :: DescribeContextResponse)
describeContextResponse_creationTime :: Lens.Lens' DescribeContextResponse (Prelude.Maybe Prelude.UTCTime)
describeContextResponse_creationTime :: Lens' DescribeContextResponse (Maybe UTCTime)
describeContextResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeContextResponse' :: DescribeContextResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe POSIX
a -> DescribeContextResponse
s {$sel:creationTime:DescribeContextResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeContextResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
describeContextResponse_description :: Lens.Lens' DescribeContextResponse (Prelude.Maybe Prelude.Text)
describeContextResponse_description :: Lens' DescribeContextResponse (Maybe Text)
describeContextResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe Text
a -> DescribeContextResponse
s {$sel:description:DescribeContextResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeContextResponse)
describeContextResponse_lastModifiedBy :: Lens.Lens' DescribeContextResponse (Prelude.Maybe UserContext)
describeContextResponse_lastModifiedBy :: Lens' DescribeContextResponse (Maybe UserContext)
describeContextResponse_lastModifiedBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe UserContext
lastModifiedBy :: Maybe UserContext
$sel:lastModifiedBy:DescribeContextResponse' :: DescribeContextResponse -> Maybe UserContext
lastModifiedBy} -> Maybe UserContext
lastModifiedBy) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe UserContext
a -> DescribeContextResponse
s {$sel:lastModifiedBy:DescribeContextResponse' :: Maybe UserContext
lastModifiedBy = Maybe UserContext
a} :: DescribeContextResponse)
describeContextResponse_lastModifiedTime :: Lens.Lens' DescribeContextResponse (Prelude.Maybe Prelude.UTCTime)
describeContextResponse_lastModifiedTime :: Lens' DescribeContextResponse (Maybe UTCTime)
describeContextResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeContextResponse' :: DescribeContextResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe POSIX
a -> DescribeContextResponse
s {$sel:lastModifiedTime:DescribeContextResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeContextResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
describeContextResponse_lineageGroupArn :: Lens.Lens' DescribeContextResponse (Prelude.Maybe Prelude.Text)
describeContextResponse_lineageGroupArn :: Lens' DescribeContextResponse (Maybe Text)
describeContextResponse_lineageGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe Text
lineageGroupArn :: Maybe Text
$sel:lineageGroupArn:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
lineageGroupArn} -> Maybe Text
lineageGroupArn) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe Text
a -> DescribeContextResponse
s {$sel:lineageGroupArn:DescribeContextResponse' :: Maybe Text
lineageGroupArn = Maybe Text
a} :: DescribeContextResponse)
describeContextResponse_properties :: Lens.Lens' DescribeContextResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeContextResponse_properties :: Lens' DescribeContextResponse (Maybe (HashMap Text Text))
describeContextResponse_properties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe (HashMap Text Text)
properties :: Maybe (HashMap Text Text)
$sel:properties:DescribeContextResponse' :: DescribeContextResponse -> Maybe (HashMap Text Text)
properties} -> Maybe (HashMap Text Text)
properties) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe (HashMap Text Text)
a -> DescribeContextResponse
s {$sel:properties:DescribeContextResponse' :: Maybe (HashMap Text Text)
properties = Maybe (HashMap Text Text)
a} :: DescribeContextResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeContextResponse_source :: Lens.Lens' DescribeContextResponse (Prelude.Maybe ContextSource)
describeContextResponse_source :: Lens' DescribeContextResponse (Maybe ContextSource)
describeContextResponse_source = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Maybe ContextSource
source :: Maybe ContextSource
$sel:source:DescribeContextResponse' :: DescribeContextResponse -> Maybe ContextSource
source} -> Maybe ContextSource
source) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Maybe ContextSource
a -> DescribeContextResponse
s {$sel:source:DescribeContextResponse' :: Maybe ContextSource
source = Maybe ContextSource
a} :: DescribeContextResponse)
describeContextResponse_httpStatus :: Lens.Lens' DescribeContextResponse Prelude.Int
describeContextResponse_httpStatus :: Lens' DescribeContextResponse Int
describeContextResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeContextResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeContextResponse' :: DescribeContextResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeContextResponse
s@DescribeContextResponse' {} Int
a -> DescribeContextResponse
s {$sel:httpStatus:DescribeContextResponse' :: Int
httpStatus = Int
a} :: DescribeContextResponse)
instance Prelude.NFData DescribeContextResponse where
rnf :: DescribeContextResponse -> ()
rnf DescribeContextResponse' {Int
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe ContextSource
Maybe UserContext
httpStatus :: Int
source :: Maybe ContextSource
properties :: Maybe (HashMap Text Text)
lineageGroupArn :: Maybe Text
lastModifiedTime :: Maybe POSIX
lastModifiedBy :: Maybe UserContext
description :: Maybe Text
creationTime :: Maybe POSIX
createdBy :: Maybe UserContext
contextType :: Maybe Text
contextName :: Maybe Text
contextArn :: Maybe Text
$sel:httpStatus:DescribeContextResponse' :: DescribeContextResponse -> Int
$sel:source:DescribeContextResponse' :: DescribeContextResponse -> Maybe ContextSource
$sel:properties:DescribeContextResponse' :: DescribeContextResponse -> Maybe (HashMap Text Text)
$sel:lineageGroupArn:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
$sel:lastModifiedTime:DescribeContextResponse' :: DescribeContextResponse -> Maybe POSIX
$sel:lastModifiedBy:DescribeContextResponse' :: DescribeContextResponse -> Maybe UserContext
$sel:description:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
$sel:creationTime:DescribeContextResponse' :: DescribeContextResponse -> Maybe POSIX
$sel:createdBy:DescribeContextResponse' :: DescribeContextResponse -> Maybe UserContext
$sel:contextType:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
$sel:contextName:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
$sel:contextArn:DescribeContextResponse' :: DescribeContextResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
contextArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
contextName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
contextType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserContext
createdBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserContext
lastModifiedBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lineageGroupArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
properties
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ContextSource
source
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus