{-# 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.Greengrass.GetCoreDefinition
(
GetCoreDefinition (..),
newGetCoreDefinition,
getCoreDefinition_coreDefinitionId,
GetCoreDefinitionResponse (..),
newGetCoreDefinitionResponse,
getCoreDefinitionResponse_latestVersionArn,
getCoreDefinitionResponse_arn,
getCoreDefinitionResponse_name,
getCoreDefinitionResponse_creationTimestamp,
getCoreDefinitionResponse_id,
getCoreDefinitionResponse_latestVersion,
getCoreDefinitionResponse_lastUpdatedTimestamp,
getCoreDefinitionResponse_tags,
getCoreDefinitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetCoreDefinition = GetCoreDefinition'
{
GetCoreDefinition -> Text
coreDefinitionId :: Prelude.Text
}
deriving (GetCoreDefinition -> GetCoreDefinition -> Bool
(GetCoreDefinition -> GetCoreDefinition -> Bool)
-> (GetCoreDefinition -> GetCoreDefinition -> Bool)
-> Eq GetCoreDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCoreDefinition -> GetCoreDefinition -> Bool
$c/= :: GetCoreDefinition -> GetCoreDefinition -> Bool
== :: GetCoreDefinition -> GetCoreDefinition -> Bool
$c== :: GetCoreDefinition -> GetCoreDefinition -> Bool
Prelude.Eq, ReadPrec [GetCoreDefinition]
ReadPrec GetCoreDefinition
Int -> ReadS GetCoreDefinition
ReadS [GetCoreDefinition]
(Int -> ReadS GetCoreDefinition)
-> ReadS [GetCoreDefinition]
-> ReadPrec GetCoreDefinition
-> ReadPrec [GetCoreDefinition]
-> Read GetCoreDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCoreDefinition]
$creadListPrec :: ReadPrec [GetCoreDefinition]
readPrec :: ReadPrec GetCoreDefinition
$creadPrec :: ReadPrec GetCoreDefinition
readList :: ReadS [GetCoreDefinition]
$creadList :: ReadS [GetCoreDefinition]
readsPrec :: Int -> ReadS GetCoreDefinition
$creadsPrec :: Int -> ReadS GetCoreDefinition
Prelude.Read, Int -> GetCoreDefinition -> ShowS
[GetCoreDefinition] -> ShowS
GetCoreDefinition -> String
(Int -> GetCoreDefinition -> ShowS)
-> (GetCoreDefinition -> String)
-> ([GetCoreDefinition] -> ShowS)
-> Show GetCoreDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCoreDefinition] -> ShowS
$cshowList :: [GetCoreDefinition] -> ShowS
show :: GetCoreDefinition -> String
$cshow :: GetCoreDefinition -> String
showsPrec :: Int -> GetCoreDefinition -> ShowS
$cshowsPrec :: Int -> GetCoreDefinition -> ShowS
Prelude.Show, (forall x. GetCoreDefinition -> Rep GetCoreDefinition x)
-> (forall x. Rep GetCoreDefinition x -> GetCoreDefinition)
-> Generic GetCoreDefinition
forall x. Rep GetCoreDefinition x -> GetCoreDefinition
forall x. GetCoreDefinition -> Rep GetCoreDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCoreDefinition x -> GetCoreDefinition
$cfrom :: forall x. GetCoreDefinition -> Rep GetCoreDefinition x
Prelude.Generic)
newGetCoreDefinition ::
Prelude.Text ->
GetCoreDefinition
newGetCoreDefinition :: Text -> GetCoreDefinition
newGetCoreDefinition Text
pCoreDefinitionId_ =
GetCoreDefinition' :: Text -> GetCoreDefinition
GetCoreDefinition'
{ $sel:coreDefinitionId:GetCoreDefinition' :: Text
coreDefinitionId =
Text
pCoreDefinitionId_
}
getCoreDefinition_coreDefinitionId :: Lens.Lens' GetCoreDefinition Prelude.Text
getCoreDefinition_coreDefinitionId :: (Text -> f Text) -> GetCoreDefinition -> f GetCoreDefinition
getCoreDefinition_coreDefinitionId = (GetCoreDefinition -> Text)
-> (GetCoreDefinition -> Text -> GetCoreDefinition)
-> Lens GetCoreDefinition GetCoreDefinition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinition' {Text
coreDefinitionId :: Text
$sel:coreDefinitionId:GetCoreDefinition' :: GetCoreDefinition -> Text
coreDefinitionId} -> Text
coreDefinitionId) (\s :: GetCoreDefinition
s@GetCoreDefinition' {} Text
a -> GetCoreDefinition
s {$sel:coreDefinitionId:GetCoreDefinition' :: Text
coreDefinitionId = Text
a} :: GetCoreDefinition)
instance Core.AWSRequest GetCoreDefinition where
type
AWSResponse GetCoreDefinition =
GetCoreDefinitionResponse
request :: GetCoreDefinition -> Request GetCoreDefinition
request = Service -> GetCoreDefinition -> Request GetCoreDefinition
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetCoreDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetCoreDefinition)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetCoreDefinition))
-> Logger
-> Service
-> Proxy GetCoreDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetCoreDefinition)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse
GetCoreDefinitionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
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
"LatestVersionArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
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
"Arn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
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
"Name")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
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
"CreationTimestamp")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
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
"Id")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetCoreDefinitionResponse)
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
"LatestVersion")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetCoreDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> GetCoreDefinitionResponse)
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
"LastUpdatedTimestamp")
Either
String
(Maybe (HashMap Text Text) -> Int -> GetCoreDefinitionResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetCoreDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetCoreDefinitionResponse)
-> Either String Int -> Either String GetCoreDefinitionResponse
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 GetCoreDefinition
instance Prelude.NFData GetCoreDefinition
instance Core.ToHeaders GetCoreDefinition where
toHeaders :: GetCoreDefinition -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetCoreDefinition -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath GetCoreDefinition where
toPath :: GetCoreDefinition -> ByteString
toPath GetCoreDefinition' {Text
coreDefinitionId :: Text
$sel:coreDefinitionId:GetCoreDefinition' :: GetCoreDefinition -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/definition/cores/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
coreDefinitionId
]
instance Core.ToQuery GetCoreDefinition where
toQuery :: GetCoreDefinition -> QueryString
toQuery = QueryString -> GetCoreDefinition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetCoreDefinitionResponse = GetCoreDefinitionResponse'
{
GetCoreDefinitionResponse -> Maybe Text
latestVersionArn :: Prelude.Maybe Prelude.Text,
GetCoreDefinitionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetCoreDefinitionResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetCoreDefinitionResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
GetCoreDefinitionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetCoreDefinitionResponse -> Maybe Text
latestVersion :: Prelude.Maybe Prelude.Text,
GetCoreDefinitionResponse -> Maybe Text
lastUpdatedTimestamp :: Prelude.Maybe Prelude.Text,
GetCoreDefinitionResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetCoreDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetCoreDefinitionResponse -> GetCoreDefinitionResponse -> Bool
(GetCoreDefinitionResponse -> GetCoreDefinitionResponse -> Bool)
-> (GetCoreDefinitionResponse -> GetCoreDefinitionResponse -> Bool)
-> Eq GetCoreDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCoreDefinitionResponse -> GetCoreDefinitionResponse -> Bool
$c/= :: GetCoreDefinitionResponse -> GetCoreDefinitionResponse -> Bool
== :: GetCoreDefinitionResponse -> GetCoreDefinitionResponse -> Bool
$c== :: GetCoreDefinitionResponse -> GetCoreDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [GetCoreDefinitionResponse]
ReadPrec GetCoreDefinitionResponse
Int -> ReadS GetCoreDefinitionResponse
ReadS [GetCoreDefinitionResponse]
(Int -> ReadS GetCoreDefinitionResponse)
-> ReadS [GetCoreDefinitionResponse]
-> ReadPrec GetCoreDefinitionResponse
-> ReadPrec [GetCoreDefinitionResponse]
-> Read GetCoreDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCoreDefinitionResponse]
$creadListPrec :: ReadPrec [GetCoreDefinitionResponse]
readPrec :: ReadPrec GetCoreDefinitionResponse
$creadPrec :: ReadPrec GetCoreDefinitionResponse
readList :: ReadS [GetCoreDefinitionResponse]
$creadList :: ReadS [GetCoreDefinitionResponse]
readsPrec :: Int -> ReadS GetCoreDefinitionResponse
$creadsPrec :: Int -> ReadS GetCoreDefinitionResponse
Prelude.Read, Int -> GetCoreDefinitionResponse -> ShowS
[GetCoreDefinitionResponse] -> ShowS
GetCoreDefinitionResponse -> String
(Int -> GetCoreDefinitionResponse -> ShowS)
-> (GetCoreDefinitionResponse -> String)
-> ([GetCoreDefinitionResponse] -> ShowS)
-> Show GetCoreDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCoreDefinitionResponse] -> ShowS
$cshowList :: [GetCoreDefinitionResponse] -> ShowS
show :: GetCoreDefinitionResponse -> String
$cshow :: GetCoreDefinitionResponse -> String
showsPrec :: Int -> GetCoreDefinitionResponse -> ShowS
$cshowsPrec :: Int -> GetCoreDefinitionResponse -> ShowS
Prelude.Show, (forall x.
GetCoreDefinitionResponse -> Rep GetCoreDefinitionResponse x)
-> (forall x.
Rep GetCoreDefinitionResponse x -> GetCoreDefinitionResponse)
-> Generic GetCoreDefinitionResponse
forall x.
Rep GetCoreDefinitionResponse x -> GetCoreDefinitionResponse
forall x.
GetCoreDefinitionResponse -> Rep GetCoreDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetCoreDefinitionResponse x -> GetCoreDefinitionResponse
$cfrom :: forall x.
GetCoreDefinitionResponse -> Rep GetCoreDefinitionResponse x
Prelude.Generic)
newGetCoreDefinitionResponse ::
Prelude.Int ->
GetCoreDefinitionResponse
newGetCoreDefinitionResponse :: Int -> GetCoreDefinitionResponse
newGetCoreDefinitionResponse Int
pHttpStatus_ =
GetCoreDefinitionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCoreDefinitionResponse
GetCoreDefinitionResponse'
{ $sel:latestVersionArn:GetCoreDefinitionResponse' :: Maybe Text
latestVersionArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetCoreDefinitionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetCoreDefinitionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:GetCoreDefinitionResponse' :: Maybe Text
creationTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:GetCoreDefinitionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latestVersion:GetCoreDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimestamp:GetCoreDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetCoreDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetCoreDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getCoreDefinitionResponse_latestVersionArn :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe Prelude.Text)
getCoreDefinitionResponse_latestVersionArn :: (Maybe Text -> f (Maybe Text))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_latestVersionArn = (GetCoreDefinitionResponse -> Maybe Text)
-> (GetCoreDefinitionResponse
-> Maybe Text -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe Text
latestVersionArn :: Maybe Text
$sel:latestVersionArn:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe Text
latestVersionArn} -> Maybe Text
latestVersionArn) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe Text
a -> GetCoreDefinitionResponse
s {$sel:latestVersionArn:GetCoreDefinitionResponse' :: Maybe Text
latestVersionArn = Maybe Text
a} :: GetCoreDefinitionResponse)
getCoreDefinitionResponse_arn :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe Prelude.Text)
getCoreDefinitionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_arn = (GetCoreDefinitionResponse -> Maybe Text)
-> (GetCoreDefinitionResponse
-> Maybe Text -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe Text
a -> GetCoreDefinitionResponse
s {$sel:arn:GetCoreDefinitionResponse' :: Maybe Text
arn = Maybe Text
a} :: GetCoreDefinitionResponse)
getCoreDefinitionResponse_name :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe Prelude.Text)
getCoreDefinitionResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_name = (GetCoreDefinitionResponse -> Maybe Text)
-> (GetCoreDefinitionResponse
-> Maybe Text -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe Text
a -> GetCoreDefinitionResponse
s {$sel:name:GetCoreDefinitionResponse' :: Maybe Text
name = Maybe Text
a} :: GetCoreDefinitionResponse)
getCoreDefinitionResponse_creationTimestamp :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe Prelude.Text)
getCoreDefinitionResponse_creationTimestamp :: (Maybe Text -> f (Maybe Text))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_creationTimestamp = (GetCoreDefinitionResponse -> Maybe Text)
-> (GetCoreDefinitionResponse
-> Maybe Text -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe Text
a -> GetCoreDefinitionResponse
s {$sel:creationTimestamp:GetCoreDefinitionResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: GetCoreDefinitionResponse)
getCoreDefinitionResponse_id :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe Prelude.Text)
getCoreDefinitionResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_id = (GetCoreDefinitionResponse -> Maybe Text)
-> (GetCoreDefinitionResponse
-> Maybe Text -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe Text
a -> GetCoreDefinitionResponse
s {$sel:id:GetCoreDefinitionResponse' :: Maybe Text
id = Maybe Text
a} :: GetCoreDefinitionResponse)
getCoreDefinitionResponse_latestVersion :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe Prelude.Text)
getCoreDefinitionResponse_latestVersion :: (Maybe Text -> f (Maybe Text))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_latestVersion = (GetCoreDefinitionResponse -> Maybe Text)
-> (GetCoreDefinitionResponse
-> Maybe Text -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe Text
latestVersion :: Maybe Text
$sel:latestVersion:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe Text
latestVersion} -> Maybe Text
latestVersion) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe Text
a -> GetCoreDefinitionResponse
s {$sel:latestVersion:GetCoreDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
a} :: GetCoreDefinitionResponse)
getCoreDefinitionResponse_lastUpdatedTimestamp :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe Prelude.Text)
getCoreDefinitionResponse_lastUpdatedTimestamp :: (Maybe Text -> f (Maybe Text))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_lastUpdatedTimestamp = (GetCoreDefinitionResponse -> Maybe Text)
-> (GetCoreDefinitionResponse
-> Maybe Text -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe Text
lastUpdatedTimestamp :: Maybe Text
$sel:lastUpdatedTimestamp:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe Text
lastUpdatedTimestamp} -> Maybe Text
lastUpdatedTimestamp) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe Text
a -> GetCoreDefinitionResponse
s {$sel:lastUpdatedTimestamp:GetCoreDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
a} :: GetCoreDefinitionResponse)
getCoreDefinitionResponse_tags :: Lens.Lens' GetCoreDefinitionResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getCoreDefinitionResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_tags = (GetCoreDefinitionResponse -> Maybe (HashMap Text Text))
-> (GetCoreDefinitionResponse
-> Maybe (HashMap Text Text) -> GetCoreDefinitionResponse)
-> Lens
GetCoreDefinitionResponse
GetCoreDefinitionResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Maybe (HashMap Text Text)
a -> GetCoreDefinitionResponse
s {$sel:tags:GetCoreDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetCoreDefinitionResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetCoreDefinitionResponse
-> f GetCoreDefinitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getCoreDefinitionResponse_httpStatus :: Lens.Lens' GetCoreDefinitionResponse Prelude.Int
getCoreDefinitionResponse_httpStatus :: (Int -> f Int)
-> GetCoreDefinitionResponse -> f GetCoreDefinitionResponse
getCoreDefinitionResponse_httpStatus = (GetCoreDefinitionResponse -> Int)
-> (GetCoreDefinitionResponse -> Int -> GetCoreDefinitionResponse)
-> Lens GetCoreDefinitionResponse GetCoreDefinitionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCoreDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetCoreDefinitionResponse' :: GetCoreDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetCoreDefinitionResponse
s@GetCoreDefinitionResponse' {} Int
a -> GetCoreDefinitionResponse
s {$sel:httpStatus:GetCoreDefinitionResponse' :: Int
httpStatus = Int
a} :: GetCoreDefinitionResponse)
instance Prelude.NFData GetCoreDefinitionResponse