{-# 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.GreengrassV2.DescribeComponent
(
DescribeComponent (..),
newDescribeComponent,
describeComponent_arn,
DescribeComponentResponse (..),
newDescribeComponentResponse,
describeComponentResponse_platforms,
describeComponentResponse_status,
describeComponentResponse_arn,
describeComponentResponse_componentVersion,
describeComponentResponse_creationTimestamp,
describeComponentResponse_componentName,
describeComponentResponse_publisher,
describeComponentResponse_description,
describeComponentResponse_tags,
describeComponentResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GreengrassV2.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 DescribeComponent = DescribeComponent'
{
DescribeComponent -> Text
arn :: Prelude.Text
}
deriving (DescribeComponent -> DescribeComponent -> Bool
(DescribeComponent -> DescribeComponent -> Bool)
-> (DescribeComponent -> DescribeComponent -> Bool)
-> Eq DescribeComponent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeComponent -> DescribeComponent -> Bool
$c/= :: DescribeComponent -> DescribeComponent -> Bool
== :: DescribeComponent -> DescribeComponent -> Bool
$c== :: DescribeComponent -> DescribeComponent -> Bool
Prelude.Eq, ReadPrec [DescribeComponent]
ReadPrec DescribeComponent
Int -> ReadS DescribeComponent
ReadS [DescribeComponent]
(Int -> ReadS DescribeComponent)
-> ReadS [DescribeComponent]
-> ReadPrec DescribeComponent
-> ReadPrec [DescribeComponent]
-> Read DescribeComponent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeComponent]
$creadListPrec :: ReadPrec [DescribeComponent]
readPrec :: ReadPrec DescribeComponent
$creadPrec :: ReadPrec DescribeComponent
readList :: ReadS [DescribeComponent]
$creadList :: ReadS [DescribeComponent]
readsPrec :: Int -> ReadS DescribeComponent
$creadsPrec :: Int -> ReadS DescribeComponent
Prelude.Read, Int -> DescribeComponent -> ShowS
[DescribeComponent] -> ShowS
DescribeComponent -> String
(Int -> DescribeComponent -> ShowS)
-> (DescribeComponent -> String)
-> ([DescribeComponent] -> ShowS)
-> Show DescribeComponent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeComponent] -> ShowS
$cshowList :: [DescribeComponent] -> ShowS
show :: DescribeComponent -> String
$cshow :: DescribeComponent -> String
showsPrec :: Int -> DescribeComponent -> ShowS
$cshowsPrec :: Int -> DescribeComponent -> ShowS
Prelude.Show, (forall x. DescribeComponent -> Rep DescribeComponent x)
-> (forall x. Rep DescribeComponent x -> DescribeComponent)
-> Generic DescribeComponent
forall x. Rep DescribeComponent x -> DescribeComponent
forall x. DescribeComponent -> Rep DescribeComponent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeComponent x -> DescribeComponent
$cfrom :: forall x. DescribeComponent -> Rep DescribeComponent x
Prelude.Generic)
newDescribeComponent ::
Prelude.Text ->
DescribeComponent
newDescribeComponent :: Text -> DescribeComponent
newDescribeComponent Text
pArn_ =
DescribeComponent' :: Text -> DescribeComponent
DescribeComponent' {$sel:arn:DescribeComponent' :: Text
arn = Text
pArn_}
describeComponent_arn :: Lens.Lens' DescribeComponent Prelude.Text
describeComponent_arn :: (Text -> f Text) -> DescribeComponent -> f DescribeComponent
describeComponent_arn = (DescribeComponent -> Text)
-> (DescribeComponent -> Text -> DescribeComponent)
-> Lens DescribeComponent DescribeComponent Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponent' {Text
arn :: Text
$sel:arn:DescribeComponent' :: DescribeComponent -> Text
arn} -> Text
arn) (\s :: DescribeComponent
s@DescribeComponent' {} Text
a -> DescribeComponent
s {$sel:arn:DescribeComponent' :: Text
arn = Text
a} :: DescribeComponent)
instance Core.AWSRequest DescribeComponent where
type
AWSResponse DescribeComponent =
DescribeComponentResponse
request :: DescribeComponent -> Request DescribeComponent
request = Service -> DescribeComponent -> Request DescribeComponent
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeComponent
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeComponent)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeComponent))
-> Logger
-> Service
-> Proxy DescribeComponent
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeComponent)))
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 [ComponentPlatform]
-> Maybe CloudComponentStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse
DescribeComponentResponse'
(Maybe [ComponentPlatform]
-> Maybe CloudComponentStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
-> Either String (Maybe [ComponentPlatform])
-> Either
String
(Maybe CloudComponentStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [ComponentPlatform]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"platforms" Either String (Maybe (Maybe [ComponentPlatform]))
-> Maybe [ComponentPlatform]
-> Either String (Maybe [ComponentPlatform])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ComponentPlatform]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe CloudComponentStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
-> Either String (Maybe CloudComponentStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CloudComponentStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
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 POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
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
"componentVersion")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
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
-> DescribeComponentResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
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
"componentName")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> DescribeComponentResponse)
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
"publisher")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> DescribeComponentResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeComponentResponse)
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
"description")
Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeComponentResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeComponentResponse)
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 -> DescribeComponentResponse)
-> Either String Int -> Either String DescribeComponentResponse
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 DescribeComponent
instance Prelude.NFData DescribeComponent
instance Core.ToHeaders DescribeComponent where
toHeaders :: DescribeComponent -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeComponent -> 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 DescribeComponent where
toPath :: DescribeComponent -> ByteString
toPath DescribeComponent' {Text
arn :: Text
$sel:arn:DescribeComponent' :: DescribeComponent -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/v2/components/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
arn,
ByteString
"/metadata"
]
instance Core.ToQuery DescribeComponent where
toQuery :: DescribeComponent -> QueryString
toQuery = QueryString -> DescribeComponent -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeComponentResponse = DescribeComponentResponse'
{
DescribeComponentResponse -> Maybe [ComponentPlatform]
platforms :: Prelude.Maybe [ComponentPlatform],
DescribeComponentResponse -> Maybe CloudComponentStatus
status :: Prelude.Maybe CloudComponentStatus,
DescribeComponentResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeComponentResponse -> Maybe Text
componentVersion :: Prelude.Maybe Prelude.Text,
DescribeComponentResponse -> Maybe POSIX
creationTimestamp :: Prelude.Maybe Core.POSIX,
DescribeComponentResponse -> Maybe Text
componentName :: Prelude.Maybe Prelude.Text,
DescribeComponentResponse -> Maybe Text
publisher :: Prelude.Maybe Prelude.Text,
DescribeComponentResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeComponentResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeComponentResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeComponentResponse -> DescribeComponentResponse -> Bool
(DescribeComponentResponse -> DescribeComponentResponse -> Bool)
-> (DescribeComponentResponse -> DescribeComponentResponse -> Bool)
-> Eq DescribeComponentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeComponentResponse -> DescribeComponentResponse -> Bool
$c/= :: DescribeComponentResponse -> DescribeComponentResponse -> Bool
== :: DescribeComponentResponse -> DescribeComponentResponse -> Bool
$c== :: DescribeComponentResponse -> DescribeComponentResponse -> Bool
Prelude.Eq, ReadPrec [DescribeComponentResponse]
ReadPrec DescribeComponentResponse
Int -> ReadS DescribeComponentResponse
ReadS [DescribeComponentResponse]
(Int -> ReadS DescribeComponentResponse)
-> ReadS [DescribeComponentResponse]
-> ReadPrec DescribeComponentResponse
-> ReadPrec [DescribeComponentResponse]
-> Read DescribeComponentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeComponentResponse]
$creadListPrec :: ReadPrec [DescribeComponentResponse]
readPrec :: ReadPrec DescribeComponentResponse
$creadPrec :: ReadPrec DescribeComponentResponse
readList :: ReadS [DescribeComponentResponse]
$creadList :: ReadS [DescribeComponentResponse]
readsPrec :: Int -> ReadS DescribeComponentResponse
$creadsPrec :: Int -> ReadS DescribeComponentResponse
Prelude.Read, Int -> DescribeComponentResponse -> ShowS
[DescribeComponentResponse] -> ShowS
DescribeComponentResponse -> String
(Int -> DescribeComponentResponse -> ShowS)
-> (DescribeComponentResponse -> String)
-> ([DescribeComponentResponse] -> ShowS)
-> Show DescribeComponentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeComponentResponse] -> ShowS
$cshowList :: [DescribeComponentResponse] -> ShowS
show :: DescribeComponentResponse -> String
$cshow :: DescribeComponentResponse -> String
showsPrec :: Int -> DescribeComponentResponse -> ShowS
$cshowsPrec :: Int -> DescribeComponentResponse -> ShowS
Prelude.Show, (forall x.
DescribeComponentResponse -> Rep DescribeComponentResponse x)
-> (forall x.
Rep DescribeComponentResponse x -> DescribeComponentResponse)
-> Generic DescribeComponentResponse
forall x.
Rep DescribeComponentResponse x -> DescribeComponentResponse
forall x.
DescribeComponentResponse -> Rep DescribeComponentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeComponentResponse x -> DescribeComponentResponse
$cfrom :: forall x.
DescribeComponentResponse -> Rep DescribeComponentResponse x
Prelude.Generic)
newDescribeComponentResponse ::
Prelude.Int ->
DescribeComponentResponse
newDescribeComponentResponse :: Int -> DescribeComponentResponse
newDescribeComponentResponse Int
pHttpStatus_ =
DescribeComponentResponse' :: Maybe [ComponentPlatform]
-> Maybe CloudComponentStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeComponentResponse
DescribeComponentResponse'
{ $sel:platforms:DescribeComponentResponse' :: Maybe [ComponentPlatform]
platforms =
Maybe [ComponentPlatform]
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeComponentResponse' :: Maybe CloudComponentStatus
status = Maybe CloudComponentStatus
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeComponentResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:componentVersion:DescribeComponentResponse' :: Maybe Text
componentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:DescribeComponentResponse' :: Maybe POSIX
creationTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:componentName:DescribeComponentResponse' :: Maybe Text
componentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:publisher:DescribeComponentResponse' :: Maybe Text
publisher = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeComponentResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeComponentResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeComponentResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeComponentResponse_platforms :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe [ComponentPlatform])
describeComponentResponse_platforms :: (Maybe [ComponentPlatform] -> f (Maybe [ComponentPlatform]))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_platforms = (DescribeComponentResponse -> Maybe [ComponentPlatform])
-> (DescribeComponentResponse
-> Maybe [ComponentPlatform] -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe [ComponentPlatform])
(Maybe [ComponentPlatform])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe [ComponentPlatform]
platforms :: Maybe [ComponentPlatform]
$sel:platforms:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe [ComponentPlatform]
platforms} -> Maybe [ComponentPlatform]
platforms) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe [ComponentPlatform]
a -> DescribeComponentResponse
s {$sel:platforms:DescribeComponentResponse' :: Maybe [ComponentPlatform]
platforms = Maybe [ComponentPlatform]
a} :: DescribeComponentResponse) ((Maybe [ComponentPlatform] -> f (Maybe [ComponentPlatform]))
-> DescribeComponentResponse -> f DescribeComponentResponse)
-> ((Maybe [ComponentPlatform] -> f (Maybe [ComponentPlatform]))
-> Maybe [ComponentPlatform] -> f (Maybe [ComponentPlatform]))
-> (Maybe [ComponentPlatform] -> f (Maybe [ComponentPlatform]))
-> DescribeComponentResponse
-> f DescribeComponentResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ComponentPlatform]
[ComponentPlatform]
[ComponentPlatform]
[ComponentPlatform]
-> Iso
(Maybe [ComponentPlatform])
(Maybe [ComponentPlatform])
(Maybe [ComponentPlatform])
(Maybe [ComponentPlatform])
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
[ComponentPlatform]
[ComponentPlatform]
[ComponentPlatform]
[ComponentPlatform]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeComponentResponse_status :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe CloudComponentStatus)
describeComponentResponse_status :: (Maybe CloudComponentStatus -> f (Maybe CloudComponentStatus))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_status = (DescribeComponentResponse -> Maybe CloudComponentStatus)
-> (DescribeComponentResponse
-> Maybe CloudComponentStatus -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe CloudComponentStatus)
(Maybe CloudComponentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe CloudComponentStatus
status :: Maybe CloudComponentStatus
$sel:status:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe CloudComponentStatus
status} -> Maybe CloudComponentStatus
status) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe CloudComponentStatus
a -> DescribeComponentResponse
s {$sel:status:DescribeComponentResponse' :: Maybe CloudComponentStatus
status = Maybe CloudComponentStatus
a} :: DescribeComponentResponse)
describeComponentResponse_arn :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe Prelude.Text)
describeComponentResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_arn = (DescribeComponentResponse -> Maybe Text)
-> (DescribeComponentResponse
-> Maybe Text -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe Text
a -> DescribeComponentResponse
s {$sel:arn:DescribeComponentResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeComponentResponse)
describeComponentResponse_componentVersion :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe Prelude.Text)
describeComponentResponse_componentVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_componentVersion = (DescribeComponentResponse -> Maybe Text)
-> (DescribeComponentResponse
-> Maybe Text -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe Text
componentVersion :: Maybe Text
$sel:componentVersion:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe Text
componentVersion} -> Maybe Text
componentVersion) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe Text
a -> DescribeComponentResponse
s {$sel:componentVersion:DescribeComponentResponse' :: Maybe Text
componentVersion = Maybe Text
a} :: DescribeComponentResponse)
describeComponentResponse_creationTimestamp :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe Prelude.UTCTime)
describeComponentResponse_creationTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_creationTimestamp = (DescribeComponentResponse -> Maybe POSIX)
-> (DescribeComponentResponse
-> Maybe POSIX -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe POSIX
creationTimestamp :: Maybe POSIX
$sel:creationTimestamp:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe POSIX
creationTimestamp} -> Maybe POSIX
creationTimestamp) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe POSIX
a -> DescribeComponentResponse
s {$sel:creationTimestamp:DescribeComponentResponse' :: Maybe POSIX
creationTimestamp = Maybe POSIX
a} :: DescribeComponentResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeComponentResponse -> f DescribeComponentResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeComponentResponse
-> f DescribeComponentResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeComponentResponse_componentName :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe Prelude.Text)
describeComponentResponse_componentName :: (Maybe Text -> f (Maybe Text))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_componentName = (DescribeComponentResponse -> Maybe Text)
-> (DescribeComponentResponse
-> Maybe Text -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe Text
componentName :: Maybe Text
$sel:componentName:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe Text
componentName} -> Maybe Text
componentName) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe Text
a -> DescribeComponentResponse
s {$sel:componentName:DescribeComponentResponse' :: Maybe Text
componentName = Maybe Text
a} :: DescribeComponentResponse)
describeComponentResponse_publisher :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe Prelude.Text)
describeComponentResponse_publisher :: (Maybe Text -> f (Maybe Text))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_publisher = (DescribeComponentResponse -> Maybe Text)
-> (DescribeComponentResponse
-> Maybe Text -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe Text
publisher :: Maybe Text
$sel:publisher:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe Text
publisher} -> Maybe Text
publisher) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe Text
a -> DescribeComponentResponse
s {$sel:publisher:DescribeComponentResponse' :: Maybe Text
publisher = Maybe Text
a} :: DescribeComponentResponse)
describeComponentResponse_description :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe Prelude.Text)
describeComponentResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_description = (DescribeComponentResponse -> Maybe Text)
-> (DescribeComponentResponse
-> Maybe Text -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe Text
a -> DescribeComponentResponse
s {$sel:description:DescribeComponentResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeComponentResponse)
describeComponentResponse_tags :: Lens.Lens' DescribeComponentResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeComponentResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_tags = (DescribeComponentResponse -> Maybe (HashMap Text Text))
-> (DescribeComponentResponse
-> Maybe (HashMap Text Text) -> DescribeComponentResponse)
-> Lens
DescribeComponentResponse
DescribeComponentResponse
(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 (\DescribeComponentResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeComponentResponse' :: DescribeComponentResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Maybe (HashMap Text Text)
a -> DescribeComponentResponse
s {$sel:tags:DescribeComponentResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeComponentResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeComponentResponse -> f DescribeComponentResponse)
-> ((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)))
-> DescribeComponentResponse
-> f DescribeComponentResponse
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
describeComponentResponse_httpStatus :: Lens.Lens' DescribeComponentResponse Prelude.Int
describeComponentResponse_httpStatus :: (Int -> f Int)
-> DescribeComponentResponse -> f DescribeComponentResponse
describeComponentResponse_httpStatus = (DescribeComponentResponse -> Int)
-> (DescribeComponentResponse -> Int -> DescribeComponentResponse)
-> Lens DescribeComponentResponse DescribeComponentResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeComponentResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeComponentResponse' :: DescribeComponentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeComponentResponse
s@DescribeComponentResponse' {} Int
a -> DescribeComponentResponse
s {$sel:httpStatus:DescribeComponentResponse' :: Int
httpStatus = Int
a} :: DescribeComponentResponse)
instance Prelude.NFData DescribeComponentResponse