{-# 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.GetResourceDefinition
(
GetResourceDefinition (..),
newGetResourceDefinition,
getResourceDefinition_resourceDefinitionId,
GetResourceDefinitionResponse (..),
newGetResourceDefinitionResponse,
getResourceDefinitionResponse_latestVersionArn,
getResourceDefinitionResponse_arn,
getResourceDefinitionResponse_name,
getResourceDefinitionResponse_creationTimestamp,
getResourceDefinitionResponse_id,
getResourceDefinitionResponse_latestVersion,
getResourceDefinitionResponse_lastUpdatedTimestamp,
getResourceDefinitionResponse_tags,
getResourceDefinitionResponse_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 GetResourceDefinition = GetResourceDefinition'
{
GetResourceDefinition -> Text
resourceDefinitionId :: Prelude.Text
}
deriving (GetResourceDefinition -> GetResourceDefinition -> Bool
(GetResourceDefinition -> GetResourceDefinition -> Bool)
-> (GetResourceDefinition -> GetResourceDefinition -> Bool)
-> Eq GetResourceDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResourceDefinition -> GetResourceDefinition -> Bool
$c/= :: GetResourceDefinition -> GetResourceDefinition -> Bool
== :: GetResourceDefinition -> GetResourceDefinition -> Bool
$c== :: GetResourceDefinition -> GetResourceDefinition -> Bool
Prelude.Eq, ReadPrec [GetResourceDefinition]
ReadPrec GetResourceDefinition
Int -> ReadS GetResourceDefinition
ReadS [GetResourceDefinition]
(Int -> ReadS GetResourceDefinition)
-> ReadS [GetResourceDefinition]
-> ReadPrec GetResourceDefinition
-> ReadPrec [GetResourceDefinition]
-> Read GetResourceDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResourceDefinition]
$creadListPrec :: ReadPrec [GetResourceDefinition]
readPrec :: ReadPrec GetResourceDefinition
$creadPrec :: ReadPrec GetResourceDefinition
readList :: ReadS [GetResourceDefinition]
$creadList :: ReadS [GetResourceDefinition]
readsPrec :: Int -> ReadS GetResourceDefinition
$creadsPrec :: Int -> ReadS GetResourceDefinition
Prelude.Read, Int -> GetResourceDefinition -> ShowS
[GetResourceDefinition] -> ShowS
GetResourceDefinition -> String
(Int -> GetResourceDefinition -> ShowS)
-> (GetResourceDefinition -> String)
-> ([GetResourceDefinition] -> ShowS)
-> Show GetResourceDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResourceDefinition] -> ShowS
$cshowList :: [GetResourceDefinition] -> ShowS
show :: GetResourceDefinition -> String
$cshow :: GetResourceDefinition -> String
showsPrec :: Int -> GetResourceDefinition -> ShowS
$cshowsPrec :: Int -> GetResourceDefinition -> ShowS
Prelude.Show, (forall x. GetResourceDefinition -> Rep GetResourceDefinition x)
-> (forall x. Rep GetResourceDefinition x -> GetResourceDefinition)
-> Generic GetResourceDefinition
forall x. Rep GetResourceDefinition x -> GetResourceDefinition
forall x. GetResourceDefinition -> Rep GetResourceDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetResourceDefinition x -> GetResourceDefinition
$cfrom :: forall x. GetResourceDefinition -> Rep GetResourceDefinition x
Prelude.Generic)
newGetResourceDefinition ::
Prelude.Text ->
GetResourceDefinition
newGetResourceDefinition :: Text -> GetResourceDefinition
newGetResourceDefinition Text
pResourceDefinitionId_ =
GetResourceDefinition' :: Text -> GetResourceDefinition
GetResourceDefinition'
{ $sel:resourceDefinitionId:GetResourceDefinition' :: Text
resourceDefinitionId =
Text
pResourceDefinitionId_
}
getResourceDefinition_resourceDefinitionId :: Lens.Lens' GetResourceDefinition Prelude.Text
getResourceDefinition_resourceDefinitionId :: (Text -> f Text)
-> GetResourceDefinition -> f GetResourceDefinition
getResourceDefinition_resourceDefinitionId = (GetResourceDefinition -> Text)
-> (GetResourceDefinition -> Text -> GetResourceDefinition)
-> Lens GetResourceDefinition GetResourceDefinition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinition' {Text
resourceDefinitionId :: Text
$sel:resourceDefinitionId:GetResourceDefinition' :: GetResourceDefinition -> Text
resourceDefinitionId} -> Text
resourceDefinitionId) (\s :: GetResourceDefinition
s@GetResourceDefinition' {} Text
a -> GetResourceDefinition
s {$sel:resourceDefinitionId:GetResourceDefinition' :: Text
resourceDefinitionId = Text
a} :: GetResourceDefinition)
instance Core.AWSRequest GetResourceDefinition where
type
AWSResponse GetResourceDefinition =
GetResourceDefinitionResponse
request :: GetResourceDefinition -> Request GetResourceDefinition
request = Service -> GetResourceDefinition -> Request GetResourceDefinition
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetResourceDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetResourceDefinition)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetResourceDefinition))
-> Logger
-> Service
-> Proxy GetResourceDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetResourceDefinition)))
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
-> GetResourceDefinitionResponse
GetResourceDefinitionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse)
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
-> GetResourceDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse)
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
-> GetResourceDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse)
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
-> GetResourceDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse)
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
-> GetResourceDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse)
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
-> GetResourceDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse)
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
-> GetResourceDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> GetResourceDefinitionResponse)
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 -> GetResourceDefinitionResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetResourceDefinitionResponse)
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 -> GetResourceDefinitionResponse)
-> Either String Int -> Either String GetResourceDefinitionResponse
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 GetResourceDefinition
instance Prelude.NFData GetResourceDefinition
instance Core.ToHeaders GetResourceDefinition where
toHeaders :: GetResourceDefinition -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetResourceDefinition -> 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 GetResourceDefinition where
toPath :: GetResourceDefinition -> ByteString
toPath GetResourceDefinition' {Text
resourceDefinitionId :: Text
$sel:resourceDefinitionId:GetResourceDefinition' :: GetResourceDefinition -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/definition/resources/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
resourceDefinitionId
]
instance Core.ToQuery GetResourceDefinition where
toQuery :: GetResourceDefinition -> QueryString
toQuery = QueryString -> GetResourceDefinition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetResourceDefinitionResponse = GetResourceDefinitionResponse'
{
GetResourceDefinitionResponse -> Maybe Text
latestVersionArn :: Prelude.Maybe Prelude.Text,
GetResourceDefinitionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetResourceDefinitionResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetResourceDefinitionResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
GetResourceDefinitionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetResourceDefinitionResponse -> Maybe Text
latestVersion :: Prelude.Maybe Prelude.Text,
GetResourceDefinitionResponse -> Maybe Text
lastUpdatedTimestamp :: Prelude.Maybe Prelude.Text,
GetResourceDefinitionResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetResourceDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetResourceDefinitionResponse
-> GetResourceDefinitionResponse -> Bool
(GetResourceDefinitionResponse
-> GetResourceDefinitionResponse -> Bool)
-> (GetResourceDefinitionResponse
-> GetResourceDefinitionResponse -> Bool)
-> Eq GetResourceDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResourceDefinitionResponse
-> GetResourceDefinitionResponse -> Bool
$c/= :: GetResourceDefinitionResponse
-> GetResourceDefinitionResponse -> Bool
== :: GetResourceDefinitionResponse
-> GetResourceDefinitionResponse -> Bool
$c== :: GetResourceDefinitionResponse
-> GetResourceDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [GetResourceDefinitionResponse]
ReadPrec GetResourceDefinitionResponse
Int -> ReadS GetResourceDefinitionResponse
ReadS [GetResourceDefinitionResponse]
(Int -> ReadS GetResourceDefinitionResponse)
-> ReadS [GetResourceDefinitionResponse]
-> ReadPrec GetResourceDefinitionResponse
-> ReadPrec [GetResourceDefinitionResponse]
-> Read GetResourceDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResourceDefinitionResponse]
$creadListPrec :: ReadPrec [GetResourceDefinitionResponse]
readPrec :: ReadPrec GetResourceDefinitionResponse
$creadPrec :: ReadPrec GetResourceDefinitionResponse
readList :: ReadS [GetResourceDefinitionResponse]
$creadList :: ReadS [GetResourceDefinitionResponse]
readsPrec :: Int -> ReadS GetResourceDefinitionResponse
$creadsPrec :: Int -> ReadS GetResourceDefinitionResponse
Prelude.Read, Int -> GetResourceDefinitionResponse -> ShowS
[GetResourceDefinitionResponse] -> ShowS
GetResourceDefinitionResponse -> String
(Int -> GetResourceDefinitionResponse -> ShowS)
-> (GetResourceDefinitionResponse -> String)
-> ([GetResourceDefinitionResponse] -> ShowS)
-> Show GetResourceDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResourceDefinitionResponse] -> ShowS
$cshowList :: [GetResourceDefinitionResponse] -> ShowS
show :: GetResourceDefinitionResponse -> String
$cshow :: GetResourceDefinitionResponse -> String
showsPrec :: Int -> GetResourceDefinitionResponse -> ShowS
$cshowsPrec :: Int -> GetResourceDefinitionResponse -> ShowS
Prelude.Show, (forall x.
GetResourceDefinitionResponse
-> Rep GetResourceDefinitionResponse x)
-> (forall x.
Rep GetResourceDefinitionResponse x
-> GetResourceDefinitionResponse)
-> Generic GetResourceDefinitionResponse
forall x.
Rep GetResourceDefinitionResponse x
-> GetResourceDefinitionResponse
forall x.
GetResourceDefinitionResponse
-> Rep GetResourceDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetResourceDefinitionResponse x
-> GetResourceDefinitionResponse
$cfrom :: forall x.
GetResourceDefinitionResponse
-> Rep GetResourceDefinitionResponse x
Prelude.Generic)
newGetResourceDefinitionResponse ::
Prelude.Int ->
GetResourceDefinitionResponse
newGetResourceDefinitionResponse :: Int -> GetResourceDefinitionResponse
newGetResourceDefinitionResponse Int
pHttpStatus_ =
GetResourceDefinitionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetResourceDefinitionResponse
GetResourceDefinitionResponse'
{ $sel:latestVersionArn:GetResourceDefinitionResponse' :: Maybe Text
latestVersionArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetResourceDefinitionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetResourceDefinitionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:GetResourceDefinitionResponse' :: Maybe Text
creationTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:GetResourceDefinitionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latestVersion:GetResourceDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimestamp:GetResourceDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetResourceDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetResourceDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getResourceDefinitionResponse_latestVersionArn :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe Prelude.Text)
getResourceDefinitionResponse_latestVersionArn :: (Maybe Text -> f (Maybe Text))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_latestVersionArn = (GetResourceDefinitionResponse -> Maybe Text)
-> (GetResourceDefinitionResponse
-> Maybe Text -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Maybe Text
latestVersionArn :: Maybe Text
$sel:latestVersionArn:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe Text
latestVersionArn} -> Maybe Text
latestVersionArn) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe Text
a -> GetResourceDefinitionResponse
s {$sel:latestVersionArn:GetResourceDefinitionResponse' :: Maybe Text
latestVersionArn = Maybe Text
a} :: GetResourceDefinitionResponse)
getResourceDefinitionResponse_arn :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe Prelude.Text)
getResourceDefinitionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_arn = (GetResourceDefinitionResponse -> Maybe Text)
-> (GetResourceDefinitionResponse
-> Maybe Text -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe Text
a -> GetResourceDefinitionResponse
s {$sel:arn:GetResourceDefinitionResponse' :: Maybe Text
arn = Maybe Text
a} :: GetResourceDefinitionResponse)
getResourceDefinitionResponse_name :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe Prelude.Text)
getResourceDefinitionResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_name = (GetResourceDefinitionResponse -> Maybe Text)
-> (GetResourceDefinitionResponse
-> Maybe Text -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe Text
a -> GetResourceDefinitionResponse
s {$sel:name:GetResourceDefinitionResponse' :: Maybe Text
name = Maybe Text
a} :: GetResourceDefinitionResponse)
getResourceDefinitionResponse_creationTimestamp :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe Prelude.Text)
getResourceDefinitionResponse_creationTimestamp :: (Maybe Text -> f (Maybe Text))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_creationTimestamp = (GetResourceDefinitionResponse -> Maybe Text)
-> (GetResourceDefinitionResponse
-> Maybe Text -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe Text
a -> GetResourceDefinitionResponse
s {$sel:creationTimestamp:GetResourceDefinitionResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: GetResourceDefinitionResponse)
getResourceDefinitionResponse_id :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe Prelude.Text)
getResourceDefinitionResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_id = (GetResourceDefinitionResponse -> Maybe Text)
-> (GetResourceDefinitionResponse
-> Maybe Text -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe Text
a -> GetResourceDefinitionResponse
s {$sel:id:GetResourceDefinitionResponse' :: Maybe Text
id = Maybe Text
a} :: GetResourceDefinitionResponse)
getResourceDefinitionResponse_latestVersion :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe Prelude.Text)
getResourceDefinitionResponse_latestVersion :: (Maybe Text -> f (Maybe Text))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_latestVersion = (GetResourceDefinitionResponse -> Maybe Text)
-> (GetResourceDefinitionResponse
-> Maybe Text -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Maybe Text
latestVersion :: Maybe Text
$sel:latestVersion:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe Text
latestVersion} -> Maybe Text
latestVersion) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe Text
a -> GetResourceDefinitionResponse
s {$sel:latestVersion:GetResourceDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
a} :: GetResourceDefinitionResponse)
getResourceDefinitionResponse_lastUpdatedTimestamp :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe Prelude.Text)
getResourceDefinitionResponse_lastUpdatedTimestamp :: (Maybe Text -> f (Maybe Text))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_lastUpdatedTimestamp = (GetResourceDefinitionResponse -> Maybe Text)
-> (GetResourceDefinitionResponse
-> Maybe Text -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Maybe Text
lastUpdatedTimestamp :: Maybe Text
$sel:lastUpdatedTimestamp:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe Text
lastUpdatedTimestamp} -> Maybe Text
lastUpdatedTimestamp) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe Text
a -> GetResourceDefinitionResponse
s {$sel:lastUpdatedTimestamp:GetResourceDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
a} :: GetResourceDefinitionResponse)
getResourceDefinitionResponse_tags :: Lens.Lens' GetResourceDefinitionResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getResourceDefinitionResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_tags = (GetResourceDefinitionResponse -> Maybe (HashMap Text Text))
-> (GetResourceDefinitionResponse
-> Maybe (HashMap Text Text) -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse
GetResourceDefinitionResponse
(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 (\GetResourceDefinitionResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Maybe (HashMap Text Text)
a -> GetResourceDefinitionResponse
s {$sel:tags:GetResourceDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetResourceDefinitionResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetResourceDefinitionResponse
-> f GetResourceDefinitionResponse)
-> ((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)))
-> GetResourceDefinitionResponse
-> f GetResourceDefinitionResponse
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
getResourceDefinitionResponse_httpStatus :: Lens.Lens' GetResourceDefinitionResponse Prelude.Int
getResourceDefinitionResponse_httpStatus :: (Int -> f Int)
-> GetResourceDefinitionResponse -> f GetResourceDefinitionResponse
getResourceDefinitionResponse_httpStatus = (GetResourceDefinitionResponse -> Int)
-> (GetResourceDefinitionResponse
-> Int -> GetResourceDefinitionResponse)
-> Lens
GetResourceDefinitionResponse GetResourceDefinitionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourceDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetResourceDefinitionResponse' :: GetResourceDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetResourceDefinitionResponse
s@GetResourceDefinitionResponse' {} Int
a -> GetResourceDefinitionResponse
s {$sel:httpStatus:GetResourceDefinitionResponse' :: Int
httpStatus = Int
a} :: GetResourceDefinitionResponse)
instance Prelude.NFData GetResourceDefinitionResponse