{-# 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.IoTSiteWise.DescribeAssetModel
(
DescribeAssetModel (..),
newDescribeAssetModel,
describeAssetModel_assetModelId,
DescribeAssetModelResponse (..),
newDescribeAssetModelResponse,
describeAssetModelResponse_assetModelCompositeModels,
describeAssetModelResponse_httpStatus,
describeAssetModelResponse_assetModelId,
describeAssetModelResponse_assetModelArn,
describeAssetModelResponse_assetModelName,
describeAssetModelResponse_assetModelDescription,
describeAssetModelResponse_assetModelProperties,
describeAssetModelResponse_assetModelHierarchies,
describeAssetModelResponse_assetModelCreationDate,
describeAssetModelResponse_assetModelLastUpdateDate,
describeAssetModelResponse_assetModelStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTSiteWise.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 DescribeAssetModel = DescribeAssetModel'
{
DescribeAssetModel -> Text
assetModelId :: Prelude.Text
}
deriving (DescribeAssetModel -> DescribeAssetModel -> Bool
(DescribeAssetModel -> DescribeAssetModel -> Bool)
-> (DescribeAssetModel -> DescribeAssetModel -> Bool)
-> Eq DescribeAssetModel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAssetModel -> DescribeAssetModel -> Bool
$c/= :: DescribeAssetModel -> DescribeAssetModel -> Bool
== :: DescribeAssetModel -> DescribeAssetModel -> Bool
$c== :: DescribeAssetModel -> DescribeAssetModel -> Bool
Prelude.Eq, ReadPrec [DescribeAssetModel]
ReadPrec DescribeAssetModel
Int -> ReadS DescribeAssetModel
ReadS [DescribeAssetModel]
(Int -> ReadS DescribeAssetModel)
-> ReadS [DescribeAssetModel]
-> ReadPrec DescribeAssetModel
-> ReadPrec [DescribeAssetModel]
-> Read DescribeAssetModel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAssetModel]
$creadListPrec :: ReadPrec [DescribeAssetModel]
readPrec :: ReadPrec DescribeAssetModel
$creadPrec :: ReadPrec DescribeAssetModel
readList :: ReadS [DescribeAssetModel]
$creadList :: ReadS [DescribeAssetModel]
readsPrec :: Int -> ReadS DescribeAssetModel
$creadsPrec :: Int -> ReadS DescribeAssetModel
Prelude.Read, Int -> DescribeAssetModel -> ShowS
[DescribeAssetModel] -> ShowS
DescribeAssetModel -> String
(Int -> DescribeAssetModel -> ShowS)
-> (DescribeAssetModel -> String)
-> ([DescribeAssetModel] -> ShowS)
-> Show DescribeAssetModel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAssetModel] -> ShowS
$cshowList :: [DescribeAssetModel] -> ShowS
show :: DescribeAssetModel -> String
$cshow :: DescribeAssetModel -> String
showsPrec :: Int -> DescribeAssetModel -> ShowS
$cshowsPrec :: Int -> DescribeAssetModel -> ShowS
Prelude.Show, (forall x. DescribeAssetModel -> Rep DescribeAssetModel x)
-> (forall x. Rep DescribeAssetModel x -> DescribeAssetModel)
-> Generic DescribeAssetModel
forall x. Rep DescribeAssetModel x -> DescribeAssetModel
forall x. DescribeAssetModel -> Rep DescribeAssetModel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeAssetModel x -> DescribeAssetModel
$cfrom :: forall x. DescribeAssetModel -> Rep DescribeAssetModel x
Prelude.Generic)
newDescribeAssetModel ::
Prelude.Text ->
DescribeAssetModel
newDescribeAssetModel :: Text -> DescribeAssetModel
newDescribeAssetModel Text
pAssetModelId_ =
DescribeAssetModel' :: Text -> DescribeAssetModel
DescribeAssetModel' {$sel:assetModelId:DescribeAssetModel' :: Text
assetModelId = Text
pAssetModelId_}
describeAssetModel_assetModelId :: Lens.Lens' DescribeAssetModel Prelude.Text
describeAssetModel_assetModelId :: (Text -> f Text) -> DescribeAssetModel -> f DescribeAssetModel
describeAssetModel_assetModelId = (DescribeAssetModel -> Text)
-> (DescribeAssetModel -> Text -> DescribeAssetModel)
-> Lens DescribeAssetModel DescribeAssetModel Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModel' {Text
assetModelId :: Text
$sel:assetModelId:DescribeAssetModel' :: DescribeAssetModel -> Text
assetModelId} -> Text
assetModelId) (\s :: DescribeAssetModel
s@DescribeAssetModel' {} Text
a -> DescribeAssetModel
s {$sel:assetModelId:DescribeAssetModel' :: Text
assetModelId = Text
a} :: DescribeAssetModel)
instance Core.AWSRequest DescribeAssetModel where
type
AWSResponse DescribeAssetModel =
DescribeAssetModelResponse
request :: DescribeAssetModel -> Request DescribeAssetModel
request = Service -> DescribeAssetModel -> Request DescribeAssetModel
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAssetModel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAssetModel)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAssetModel))
-> Logger
-> Service
-> Proxy DescribeAssetModel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAssetModel)))
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 [AssetModelCompositeModel]
-> Int
-> Text
-> Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse
DescribeAssetModelResponse'
(Maybe [AssetModelCompositeModel]
-> Int
-> Text
-> Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String (Maybe [AssetModelCompositeModel])
-> Either
String
(Int
-> Text
-> Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AssetModelCompositeModel]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"assetModelCompositeModels"
Either String (Maybe (Maybe [AssetModelCompositeModel]))
-> Maybe [AssetModelCompositeModel]
-> Either String (Maybe [AssetModelCompositeModel])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AssetModelCompositeModel]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Int
-> Text
-> Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String Int
-> Either
String
(Text
-> Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
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))
Either
String
(Text
-> Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelId")
Either
String
(Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelArn")
Either
String
(Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String Text
-> Either
String
(Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelName")
Either
String
(Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String Text
-> Either
String
([AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelDescription")
Either
String
([AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String [AssetModelProperty]
-> Either
String
([AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [AssetModelProperty])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"assetModelProperties"
Either String (Maybe [AssetModelProperty])
-> [AssetModelProperty] -> Either String [AssetModelProperty]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [AssetModelProperty]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
([AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse)
-> Either String [AssetModelHierarchy]
-> Either
String
(POSIX -> POSIX -> AssetModelStatus -> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [AssetModelHierarchy])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"assetModelHierarchies"
Either String (Maybe [AssetModelHierarchy])
-> [AssetModelHierarchy] -> Either String [AssetModelHierarchy]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [AssetModelHierarchy]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(POSIX -> POSIX -> AssetModelStatus -> DescribeAssetModelResponse)
-> Either String POSIX
-> Either
String (POSIX -> AssetModelStatus -> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelCreationDate")
Either
String (POSIX -> AssetModelStatus -> DescribeAssetModelResponse)
-> Either String POSIX
-> Either String (AssetModelStatus -> DescribeAssetModelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelLastUpdateDate")
Either String (AssetModelStatus -> DescribeAssetModelResponse)
-> Either String AssetModelStatus
-> Either String DescribeAssetModelResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String AssetModelStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelStatus")
)
instance Prelude.Hashable DescribeAssetModel
instance Prelude.NFData DescribeAssetModel
instance Core.ToHeaders DescribeAssetModel where
toHeaders :: DescribeAssetModel -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeAssetModel -> 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 DescribeAssetModel where
toPath :: DescribeAssetModel -> ByteString
toPath DescribeAssetModel' {Text
assetModelId :: Text
$sel:assetModelId:DescribeAssetModel' :: DescribeAssetModel -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/asset-models/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assetModelId]
instance Core.ToQuery DescribeAssetModel where
toQuery :: DescribeAssetModel -> QueryString
toQuery = QueryString -> DescribeAssetModel -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAssetModelResponse = DescribeAssetModelResponse'
{
DescribeAssetModelResponse -> Maybe [AssetModelCompositeModel]
assetModelCompositeModels :: Prelude.Maybe [AssetModelCompositeModel],
DescribeAssetModelResponse -> Int
httpStatus :: Prelude.Int,
DescribeAssetModelResponse -> Text
assetModelId :: Prelude.Text,
DescribeAssetModelResponse -> Text
assetModelArn :: Prelude.Text,
DescribeAssetModelResponse -> Text
assetModelName :: Prelude.Text,
DescribeAssetModelResponse -> Text
assetModelDescription :: Prelude.Text,
DescribeAssetModelResponse -> [AssetModelProperty]
assetModelProperties :: [AssetModelProperty],
DescribeAssetModelResponse -> [AssetModelHierarchy]
assetModelHierarchies :: [AssetModelHierarchy],
DescribeAssetModelResponse -> POSIX
assetModelCreationDate :: Core.POSIX,
DescribeAssetModelResponse -> POSIX
assetModelLastUpdateDate :: Core.POSIX,
DescribeAssetModelResponse -> AssetModelStatus
assetModelStatus :: AssetModelStatus
}
deriving (DescribeAssetModelResponse -> DescribeAssetModelResponse -> Bool
(DescribeAssetModelResponse -> DescribeAssetModelResponse -> Bool)
-> (DescribeAssetModelResponse
-> DescribeAssetModelResponse -> Bool)
-> Eq DescribeAssetModelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAssetModelResponse -> DescribeAssetModelResponse -> Bool
$c/= :: DescribeAssetModelResponse -> DescribeAssetModelResponse -> Bool
== :: DescribeAssetModelResponse -> DescribeAssetModelResponse -> Bool
$c== :: DescribeAssetModelResponse -> DescribeAssetModelResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAssetModelResponse]
ReadPrec DescribeAssetModelResponse
Int -> ReadS DescribeAssetModelResponse
ReadS [DescribeAssetModelResponse]
(Int -> ReadS DescribeAssetModelResponse)
-> ReadS [DescribeAssetModelResponse]
-> ReadPrec DescribeAssetModelResponse
-> ReadPrec [DescribeAssetModelResponse]
-> Read DescribeAssetModelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAssetModelResponse]
$creadListPrec :: ReadPrec [DescribeAssetModelResponse]
readPrec :: ReadPrec DescribeAssetModelResponse
$creadPrec :: ReadPrec DescribeAssetModelResponse
readList :: ReadS [DescribeAssetModelResponse]
$creadList :: ReadS [DescribeAssetModelResponse]
readsPrec :: Int -> ReadS DescribeAssetModelResponse
$creadsPrec :: Int -> ReadS DescribeAssetModelResponse
Prelude.Read, Int -> DescribeAssetModelResponse -> ShowS
[DescribeAssetModelResponse] -> ShowS
DescribeAssetModelResponse -> String
(Int -> DescribeAssetModelResponse -> ShowS)
-> (DescribeAssetModelResponse -> String)
-> ([DescribeAssetModelResponse] -> ShowS)
-> Show DescribeAssetModelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAssetModelResponse] -> ShowS
$cshowList :: [DescribeAssetModelResponse] -> ShowS
show :: DescribeAssetModelResponse -> String
$cshow :: DescribeAssetModelResponse -> String
showsPrec :: Int -> DescribeAssetModelResponse -> ShowS
$cshowsPrec :: Int -> DescribeAssetModelResponse -> ShowS
Prelude.Show, (forall x.
DescribeAssetModelResponse -> Rep DescribeAssetModelResponse x)
-> (forall x.
Rep DescribeAssetModelResponse x -> DescribeAssetModelResponse)
-> Generic DescribeAssetModelResponse
forall x.
Rep DescribeAssetModelResponse x -> DescribeAssetModelResponse
forall x.
DescribeAssetModelResponse -> Rep DescribeAssetModelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAssetModelResponse x -> DescribeAssetModelResponse
$cfrom :: forall x.
DescribeAssetModelResponse -> Rep DescribeAssetModelResponse x
Prelude.Generic)
newDescribeAssetModelResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
AssetModelStatus ->
DescribeAssetModelResponse
newDescribeAssetModelResponse :: Int
-> Text
-> Text
-> Text
-> Text
-> UTCTime
-> UTCTime
-> AssetModelStatus
-> DescribeAssetModelResponse
newDescribeAssetModelResponse
Int
pHttpStatus_
Text
pAssetModelId_
Text
pAssetModelArn_
Text
pAssetModelName_
Text
pAssetModelDescription_
UTCTime
pAssetModelCreationDate_
UTCTime
pAssetModelLastUpdateDate_
AssetModelStatus
pAssetModelStatus_ =
DescribeAssetModelResponse' :: Maybe [AssetModelCompositeModel]
-> Int
-> Text
-> Text
-> Text
-> Text
-> [AssetModelProperty]
-> [AssetModelHierarchy]
-> POSIX
-> POSIX
-> AssetModelStatus
-> DescribeAssetModelResponse
DescribeAssetModelResponse'
{ $sel:assetModelCompositeModels:DescribeAssetModelResponse' :: Maybe [AssetModelCompositeModel]
assetModelCompositeModels =
Maybe [AssetModelCompositeModel]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAssetModelResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:assetModelId:DescribeAssetModelResponse' :: Text
assetModelId = Text
pAssetModelId_,
$sel:assetModelArn:DescribeAssetModelResponse' :: Text
assetModelArn = Text
pAssetModelArn_,
$sel:assetModelName:DescribeAssetModelResponse' :: Text
assetModelName = Text
pAssetModelName_,
$sel:assetModelDescription:DescribeAssetModelResponse' :: Text
assetModelDescription = Text
pAssetModelDescription_,
$sel:assetModelProperties:DescribeAssetModelResponse' :: [AssetModelProperty]
assetModelProperties = [AssetModelProperty]
forall a. Monoid a => a
Prelude.mempty,
$sel:assetModelHierarchies:DescribeAssetModelResponse' :: [AssetModelHierarchy]
assetModelHierarchies = [AssetModelHierarchy]
forall a. Monoid a => a
Prelude.mempty,
$sel:assetModelCreationDate:DescribeAssetModelResponse' :: POSIX
assetModelCreationDate =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pAssetModelCreationDate_,
$sel:assetModelLastUpdateDate:DescribeAssetModelResponse' :: POSIX
assetModelLastUpdateDate =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pAssetModelLastUpdateDate_,
$sel:assetModelStatus:DescribeAssetModelResponse' :: AssetModelStatus
assetModelStatus = AssetModelStatus
pAssetModelStatus_
}
describeAssetModelResponse_assetModelCompositeModels :: Lens.Lens' DescribeAssetModelResponse (Prelude.Maybe [AssetModelCompositeModel])
describeAssetModelResponse_assetModelCompositeModels :: (Maybe [AssetModelCompositeModel]
-> f (Maybe [AssetModelCompositeModel]))
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelCompositeModels = (DescribeAssetModelResponse -> Maybe [AssetModelCompositeModel])
-> (DescribeAssetModelResponse
-> Maybe [AssetModelCompositeModel] -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse
DescribeAssetModelResponse
(Maybe [AssetModelCompositeModel])
(Maybe [AssetModelCompositeModel])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {Maybe [AssetModelCompositeModel]
assetModelCompositeModels :: Maybe [AssetModelCompositeModel]
$sel:assetModelCompositeModels:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> Maybe [AssetModelCompositeModel]
assetModelCompositeModels} -> Maybe [AssetModelCompositeModel]
assetModelCompositeModels) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} Maybe [AssetModelCompositeModel]
a -> DescribeAssetModelResponse
s {$sel:assetModelCompositeModels:DescribeAssetModelResponse' :: Maybe [AssetModelCompositeModel]
assetModelCompositeModels = Maybe [AssetModelCompositeModel]
a} :: DescribeAssetModelResponse) ((Maybe [AssetModelCompositeModel]
-> f (Maybe [AssetModelCompositeModel]))
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse)
-> ((Maybe [AssetModelCompositeModel]
-> f (Maybe [AssetModelCompositeModel]))
-> Maybe [AssetModelCompositeModel]
-> f (Maybe [AssetModelCompositeModel]))
-> (Maybe [AssetModelCompositeModel]
-> f (Maybe [AssetModelCompositeModel]))
-> DescribeAssetModelResponse
-> f DescribeAssetModelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AssetModelCompositeModel]
[AssetModelCompositeModel]
[AssetModelCompositeModel]
[AssetModelCompositeModel]
-> Iso
(Maybe [AssetModelCompositeModel])
(Maybe [AssetModelCompositeModel])
(Maybe [AssetModelCompositeModel])
(Maybe [AssetModelCompositeModel])
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
[AssetModelCompositeModel]
[AssetModelCompositeModel]
[AssetModelCompositeModel]
[AssetModelCompositeModel]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAssetModelResponse_httpStatus :: Lens.Lens' DescribeAssetModelResponse Prelude.Int
describeAssetModelResponse_httpStatus :: (Int -> f Int)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_httpStatus = (DescribeAssetModelResponse -> Int)
-> (DescribeAssetModelResponse
-> Int -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse DescribeAssetModelResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} Int
a -> DescribeAssetModelResponse
s {$sel:httpStatus:DescribeAssetModelResponse' :: Int
httpStatus = Int
a} :: DescribeAssetModelResponse)
describeAssetModelResponse_assetModelId :: Lens.Lens' DescribeAssetModelResponse Prelude.Text
describeAssetModelResponse_assetModelId :: (Text -> f Text)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelId = (DescribeAssetModelResponse -> Text)
-> (DescribeAssetModelResponse
-> Text -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse DescribeAssetModelResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {Text
assetModelId :: Text
$sel:assetModelId:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> Text
assetModelId} -> Text
assetModelId) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} Text
a -> DescribeAssetModelResponse
s {$sel:assetModelId:DescribeAssetModelResponse' :: Text
assetModelId = Text
a} :: DescribeAssetModelResponse)
describeAssetModelResponse_assetModelArn :: Lens.Lens' DescribeAssetModelResponse Prelude.Text
describeAssetModelResponse_assetModelArn :: (Text -> f Text)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelArn = (DescribeAssetModelResponse -> Text)
-> (DescribeAssetModelResponse
-> Text -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse DescribeAssetModelResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {Text
assetModelArn :: Text
$sel:assetModelArn:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> Text
assetModelArn} -> Text
assetModelArn) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} Text
a -> DescribeAssetModelResponse
s {$sel:assetModelArn:DescribeAssetModelResponse' :: Text
assetModelArn = Text
a} :: DescribeAssetModelResponse)
describeAssetModelResponse_assetModelName :: Lens.Lens' DescribeAssetModelResponse Prelude.Text
describeAssetModelResponse_assetModelName :: (Text -> f Text)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelName = (DescribeAssetModelResponse -> Text)
-> (DescribeAssetModelResponse
-> Text -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse DescribeAssetModelResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {Text
assetModelName :: Text
$sel:assetModelName:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> Text
assetModelName} -> Text
assetModelName) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} Text
a -> DescribeAssetModelResponse
s {$sel:assetModelName:DescribeAssetModelResponse' :: Text
assetModelName = Text
a} :: DescribeAssetModelResponse)
describeAssetModelResponse_assetModelDescription :: Lens.Lens' DescribeAssetModelResponse Prelude.Text
describeAssetModelResponse_assetModelDescription :: (Text -> f Text)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelDescription = (DescribeAssetModelResponse -> Text)
-> (DescribeAssetModelResponse
-> Text -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse DescribeAssetModelResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {Text
assetModelDescription :: Text
$sel:assetModelDescription:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> Text
assetModelDescription} -> Text
assetModelDescription) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} Text
a -> DescribeAssetModelResponse
s {$sel:assetModelDescription:DescribeAssetModelResponse' :: Text
assetModelDescription = Text
a} :: DescribeAssetModelResponse)
describeAssetModelResponse_assetModelProperties :: Lens.Lens' DescribeAssetModelResponse [AssetModelProperty]
describeAssetModelResponse_assetModelProperties :: ([AssetModelProperty] -> f [AssetModelProperty])
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelProperties = (DescribeAssetModelResponse -> [AssetModelProperty])
-> (DescribeAssetModelResponse
-> [AssetModelProperty] -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse
DescribeAssetModelResponse
[AssetModelProperty]
[AssetModelProperty]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {[AssetModelProperty]
assetModelProperties :: [AssetModelProperty]
$sel:assetModelProperties:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> [AssetModelProperty]
assetModelProperties} -> [AssetModelProperty]
assetModelProperties) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} [AssetModelProperty]
a -> DescribeAssetModelResponse
s {$sel:assetModelProperties:DescribeAssetModelResponse' :: [AssetModelProperty]
assetModelProperties = [AssetModelProperty]
a} :: DescribeAssetModelResponse) (([AssetModelProperty] -> f [AssetModelProperty])
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse)
-> (([AssetModelProperty] -> f [AssetModelProperty])
-> [AssetModelProperty] -> f [AssetModelProperty])
-> ([AssetModelProperty] -> f [AssetModelProperty])
-> DescribeAssetModelResponse
-> f DescribeAssetModelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AssetModelProperty] -> f [AssetModelProperty])
-> [AssetModelProperty] -> f [AssetModelProperty]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAssetModelResponse_assetModelHierarchies :: Lens.Lens' DescribeAssetModelResponse [AssetModelHierarchy]
describeAssetModelResponse_assetModelHierarchies :: ([AssetModelHierarchy] -> f [AssetModelHierarchy])
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelHierarchies = (DescribeAssetModelResponse -> [AssetModelHierarchy])
-> (DescribeAssetModelResponse
-> [AssetModelHierarchy] -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse
DescribeAssetModelResponse
[AssetModelHierarchy]
[AssetModelHierarchy]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {[AssetModelHierarchy]
assetModelHierarchies :: [AssetModelHierarchy]
$sel:assetModelHierarchies:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> [AssetModelHierarchy]
assetModelHierarchies} -> [AssetModelHierarchy]
assetModelHierarchies) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} [AssetModelHierarchy]
a -> DescribeAssetModelResponse
s {$sel:assetModelHierarchies:DescribeAssetModelResponse' :: [AssetModelHierarchy]
assetModelHierarchies = [AssetModelHierarchy]
a} :: DescribeAssetModelResponse) (([AssetModelHierarchy] -> f [AssetModelHierarchy])
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse)
-> (([AssetModelHierarchy] -> f [AssetModelHierarchy])
-> [AssetModelHierarchy] -> f [AssetModelHierarchy])
-> ([AssetModelHierarchy] -> f [AssetModelHierarchy])
-> DescribeAssetModelResponse
-> f DescribeAssetModelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AssetModelHierarchy] -> f [AssetModelHierarchy])
-> [AssetModelHierarchy] -> f [AssetModelHierarchy]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAssetModelResponse_assetModelCreationDate :: Lens.Lens' DescribeAssetModelResponse Prelude.UTCTime
describeAssetModelResponse_assetModelCreationDate :: (UTCTime -> f UTCTime)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelCreationDate = (DescribeAssetModelResponse -> POSIX)
-> (DescribeAssetModelResponse
-> POSIX -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse DescribeAssetModelResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {POSIX
assetModelCreationDate :: POSIX
$sel:assetModelCreationDate:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> POSIX
assetModelCreationDate} -> POSIX
assetModelCreationDate) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} POSIX
a -> DescribeAssetModelResponse
s {$sel:assetModelCreationDate:DescribeAssetModelResponse' :: POSIX
assetModelCreationDate = POSIX
a} :: DescribeAssetModelResponse) ((POSIX -> f POSIX)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeAssetModelResponse
-> f DescribeAssetModelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeAssetModelResponse_assetModelLastUpdateDate :: Lens.Lens' DescribeAssetModelResponse Prelude.UTCTime
describeAssetModelResponse_assetModelLastUpdateDate :: (UTCTime -> f UTCTime)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelLastUpdateDate = (DescribeAssetModelResponse -> POSIX)
-> (DescribeAssetModelResponse
-> POSIX -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse DescribeAssetModelResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {POSIX
assetModelLastUpdateDate :: POSIX
$sel:assetModelLastUpdateDate:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> POSIX
assetModelLastUpdateDate} -> POSIX
assetModelLastUpdateDate) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} POSIX
a -> DescribeAssetModelResponse
s {$sel:assetModelLastUpdateDate:DescribeAssetModelResponse' :: POSIX
assetModelLastUpdateDate = POSIX
a} :: DescribeAssetModelResponse) ((POSIX -> f POSIX)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeAssetModelResponse
-> f DescribeAssetModelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeAssetModelResponse_assetModelStatus :: Lens.Lens' DescribeAssetModelResponse AssetModelStatus
describeAssetModelResponse_assetModelStatus :: (AssetModelStatus -> f AssetModelStatus)
-> DescribeAssetModelResponse -> f DescribeAssetModelResponse
describeAssetModelResponse_assetModelStatus = (DescribeAssetModelResponse -> AssetModelStatus)
-> (DescribeAssetModelResponse
-> AssetModelStatus -> DescribeAssetModelResponse)
-> Lens
DescribeAssetModelResponse
DescribeAssetModelResponse
AssetModelStatus
AssetModelStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetModelResponse' {AssetModelStatus
assetModelStatus :: AssetModelStatus
$sel:assetModelStatus:DescribeAssetModelResponse' :: DescribeAssetModelResponse -> AssetModelStatus
assetModelStatus} -> AssetModelStatus
assetModelStatus) (\s :: DescribeAssetModelResponse
s@DescribeAssetModelResponse' {} AssetModelStatus
a -> DescribeAssetModelResponse
s {$sel:assetModelStatus:DescribeAssetModelResponse' :: AssetModelStatus
assetModelStatus = AssetModelStatus
a} :: DescribeAssetModelResponse)
instance Prelude.NFData DescribeAssetModelResponse