{-# 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.IoTDeviceAdvisor.GetSuiteDefinition
(
GetSuiteDefinition (..),
newGetSuiteDefinition,
getSuiteDefinition_suiteDefinitionVersion,
getSuiteDefinition_suiteDefinitionId,
GetSuiteDefinitionResponse (..),
newGetSuiteDefinitionResponse,
getSuiteDefinitionResponse_createdAt,
getSuiteDefinitionResponse_suiteDefinitionConfiguration,
getSuiteDefinitionResponse_suiteDefinitionArn,
getSuiteDefinitionResponse_lastModifiedAt,
getSuiteDefinitionResponse_suiteDefinitionId,
getSuiteDefinitionResponse_suiteDefinitionVersion,
getSuiteDefinitionResponse_latestVersion,
getSuiteDefinitionResponse_tags,
getSuiteDefinitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTDeviceAdvisor.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 GetSuiteDefinition = GetSuiteDefinition'
{
GetSuiteDefinition -> Maybe Text
suiteDefinitionVersion :: Prelude.Maybe Prelude.Text,
GetSuiteDefinition -> Text
suiteDefinitionId :: Prelude.Text
}
deriving (GetSuiteDefinition -> GetSuiteDefinition -> Bool
(GetSuiteDefinition -> GetSuiteDefinition -> Bool)
-> (GetSuiteDefinition -> GetSuiteDefinition -> Bool)
-> Eq GetSuiteDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
$c/= :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
== :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
$c== :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
Prelude.Eq, ReadPrec [GetSuiteDefinition]
ReadPrec GetSuiteDefinition
Int -> ReadS GetSuiteDefinition
ReadS [GetSuiteDefinition]
(Int -> ReadS GetSuiteDefinition)
-> ReadS [GetSuiteDefinition]
-> ReadPrec GetSuiteDefinition
-> ReadPrec [GetSuiteDefinition]
-> Read GetSuiteDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSuiteDefinition]
$creadListPrec :: ReadPrec [GetSuiteDefinition]
readPrec :: ReadPrec GetSuiteDefinition
$creadPrec :: ReadPrec GetSuiteDefinition
readList :: ReadS [GetSuiteDefinition]
$creadList :: ReadS [GetSuiteDefinition]
readsPrec :: Int -> ReadS GetSuiteDefinition
$creadsPrec :: Int -> ReadS GetSuiteDefinition
Prelude.Read, Int -> GetSuiteDefinition -> ShowS
[GetSuiteDefinition] -> ShowS
GetSuiteDefinition -> String
(Int -> GetSuiteDefinition -> ShowS)
-> (GetSuiteDefinition -> String)
-> ([GetSuiteDefinition] -> ShowS)
-> Show GetSuiteDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSuiteDefinition] -> ShowS
$cshowList :: [GetSuiteDefinition] -> ShowS
show :: GetSuiteDefinition -> String
$cshow :: GetSuiteDefinition -> String
showsPrec :: Int -> GetSuiteDefinition -> ShowS
$cshowsPrec :: Int -> GetSuiteDefinition -> ShowS
Prelude.Show, (forall x. GetSuiteDefinition -> Rep GetSuiteDefinition x)
-> (forall x. Rep GetSuiteDefinition x -> GetSuiteDefinition)
-> Generic GetSuiteDefinition
forall x. Rep GetSuiteDefinition x -> GetSuiteDefinition
forall x. GetSuiteDefinition -> Rep GetSuiteDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetSuiteDefinition x -> GetSuiteDefinition
$cfrom :: forall x. GetSuiteDefinition -> Rep GetSuiteDefinition x
Prelude.Generic)
newGetSuiteDefinition ::
Prelude.Text ->
GetSuiteDefinition
newGetSuiteDefinition :: Text -> GetSuiteDefinition
newGetSuiteDefinition Text
pSuiteDefinitionId_ =
GetSuiteDefinition' :: Maybe Text -> Text -> GetSuiteDefinition
GetSuiteDefinition'
{ $sel:suiteDefinitionVersion:GetSuiteDefinition' :: Maybe Text
suiteDefinitionVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionId:GetSuiteDefinition' :: Text
suiteDefinitionId = Text
pSuiteDefinitionId_
}
getSuiteDefinition_suiteDefinitionVersion :: Lens.Lens' GetSuiteDefinition (Prelude.Maybe Prelude.Text)
getSuiteDefinition_suiteDefinitionVersion :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinition -> f GetSuiteDefinition
getSuiteDefinition_suiteDefinitionVersion = (GetSuiteDefinition -> Maybe Text)
-> (GetSuiteDefinition -> Maybe Text -> GetSuiteDefinition)
-> Lens
GetSuiteDefinition GetSuiteDefinition (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinition' {Maybe Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionVersion:GetSuiteDefinition' :: GetSuiteDefinition -> Maybe Text
suiteDefinitionVersion} -> Maybe Text
suiteDefinitionVersion) (\s :: GetSuiteDefinition
s@GetSuiteDefinition' {} Maybe Text
a -> GetSuiteDefinition
s {$sel:suiteDefinitionVersion:GetSuiteDefinition' :: Maybe Text
suiteDefinitionVersion = Maybe Text
a} :: GetSuiteDefinition)
getSuiteDefinition_suiteDefinitionId :: Lens.Lens' GetSuiteDefinition Prelude.Text
getSuiteDefinition_suiteDefinitionId :: (Text -> f Text) -> GetSuiteDefinition -> f GetSuiteDefinition
getSuiteDefinition_suiteDefinitionId = (GetSuiteDefinition -> Text)
-> (GetSuiteDefinition -> Text -> GetSuiteDefinition)
-> Lens GetSuiteDefinition GetSuiteDefinition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinition' {Text
suiteDefinitionId :: Text
$sel:suiteDefinitionId:GetSuiteDefinition' :: GetSuiteDefinition -> Text
suiteDefinitionId} -> Text
suiteDefinitionId) (\s :: GetSuiteDefinition
s@GetSuiteDefinition' {} Text
a -> GetSuiteDefinition
s {$sel:suiteDefinitionId:GetSuiteDefinition' :: Text
suiteDefinitionId = Text
a} :: GetSuiteDefinition)
instance Core.AWSRequest GetSuiteDefinition where
type
AWSResponse GetSuiteDefinition =
GetSuiteDefinitionResponse
request :: GetSuiteDefinition -> Request GetSuiteDefinition
request = Service -> GetSuiteDefinition -> Request GetSuiteDefinition
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetSuiteDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetSuiteDefinition)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetSuiteDefinition))
-> Logger
-> Service
-> Proxy GetSuiteDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetSuiteDefinition)))
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 POSIX
-> Maybe SuiteDefinitionConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse
GetSuiteDefinitionResponse'
(Maybe POSIX
-> Maybe SuiteDefinitionConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe SuiteDefinitionConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
forall (f :: * -> *) a b. Functor 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
"createdAt")
Either
String
(Maybe SuiteDefinitionConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
-> Either String (Maybe SuiteDefinitionConfiguration)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe SuiteDefinitionConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"suiteDefinitionConfiguration")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
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
"suiteDefinitionArn")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
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
"lastModifiedAt")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
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
"suiteDefinitionId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
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
"suiteDefinitionVersion")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
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 (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetSuiteDefinitionResponse)
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 -> GetSuiteDefinitionResponse)
-> Either String Int -> Either String GetSuiteDefinitionResponse
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 GetSuiteDefinition
instance Prelude.NFData GetSuiteDefinition
instance Core.ToHeaders GetSuiteDefinition where
toHeaders :: GetSuiteDefinition -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetSuiteDefinition -> 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 GetSuiteDefinition where
toPath :: GetSuiteDefinition -> ByteString
toPath GetSuiteDefinition' {Maybe Text
Text
suiteDefinitionId :: Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionId:GetSuiteDefinition' :: GetSuiteDefinition -> Text
$sel:suiteDefinitionVersion:GetSuiteDefinition' :: GetSuiteDefinition -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/suiteDefinitions/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
suiteDefinitionId]
instance Core.ToQuery GetSuiteDefinition where
toQuery :: GetSuiteDefinition -> QueryString
toQuery GetSuiteDefinition' {Maybe Text
Text
suiteDefinitionId :: Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionId:GetSuiteDefinition' :: GetSuiteDefinition -> Text
$sel:suiteDefinitionVersion:GetSuiteDefinition' :: GetSuiteDefinition -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"suiteDefinitionVersion"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
suiteDefinitionVersion
]
data GetSuiteDefinitionResponse = GetSuiteDefinitionResponse'
{
GetSuiteDefinitionResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
GetSuiteDefinitionResponse -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration :: Prelude.Maybe SuiteDefinitionConfiguration,
GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionArn :: Prelude.Maybe Prelude.Text,
GetSuiteDefinitionResponse -> Maybe POSIX
lastModifiedAt :: Prelude.Maybe Core.POSIX,
GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionId :: Prelude.Maybe Prelude.Text,
GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionVersion :: Prelude.Maybe Prelude.Text,
GetSuiteDefinitionResponse -> Maybe Text
latestVersion :: Prelude.Maybe Prelude.Text,
GetSuiteDefinitionResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetSuiteDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
(GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool)
-> (GetSuiteDefinitionResponse
-> GetSuiteDefinitionResponse -> Bool)
-> Eq GetSuiteDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
$c/= :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
== :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
$c== :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [GetSuiteDefinitionResponse]
ReadPrec GetSuiteDefinitionResponse
Int -> ReadS GetSuiteDefinitionResponse
ReadS [GetSuiteDefinitionResponse]
(Int -> ReadS GetSuiteDefinitionResponse)
-> ReadS [GetSuiteDefinitionResponse]
-> ReadPrec GetSuiteDefinitionResponse
-> ReadPrec [GetSuiteDefinitionResponse]
-> Read GetSuiteDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSuiteDefinitionResponse]
$creadListPrec :: ReadPrec [GetSuiteDefinitionResponse]
readPrec :: ReadPrec GetSuiteDefinitionResponse
$creadPrec :: ReadPrec GetSuiteDefinitionResponse
readList :: ReadS [GetSuiteDefinitionResponse]
$creadList :: ReadS [GetSuiteDefinitionResponse]
readsPrec :: Int -> ReadS GetSuiteDefinitionResponse
$creadsPrec :: Int -> ReadS GetSuiteDefinitionResponse
Prelude.Read, Int -> GetSuiteDefinitionResponse -> ShowS
[GetSuiteDefinitionResponse] -> ShowS
GetSuiteDefinitionResponse -> String
(Int -> GetSuiteDefinitionResponse -> ShowS)
-> (GetSuiteDefinitionResponse -> String)
-> ([GetSuiteDefinitionResponse] -> ShowS)
-> Show GetSuiteDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSuiteDefinitionResponse] -> ShowS
$cshowList :: [GetSuiteDefinitionResponse] -> ShowS
show :: GetSuiteDefinitionResponse -> String
$cshow :: GetSuiteDefinitionResponse -> String
showsPrec :: Int -> GetSuiteDefinitionResponse -> ShowS
$cshowsPrec :: Int -> GetSuiteDefinitionResponse -> ShowS
Prelude.Show, (forall x.
GetSuiteDefinitionResponse -> Rep GetSuiteDefinitionResponse x)
-> (forall x.
Rep GetSuiteDefinitionResponse x -> GetSuiteDefinitionResponse)
-> Generic GetSuiteDefinitionResponse
forall x.
Rep GetSuiteDefinitionResponse x -> GetSuiteDefinitionResponse
forall x.
GetSuiteDefinitionResponse -> Rep GetSuiteDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetSuiteDefinitionResponse x -> GetSuiteDefinitionResponse
$cfrom :: forall x.
GetSuiteDefinitionResponse -> Rep GetSuiteDefinitionResponse x
Prelude.Generic)
newGetSuiteDefinitionResponse ::
Prelude.Int ->
GetSuiteDefinitionResponse
newGetSuiteDefinitionResponse :: Int -> GetSuiteDefinitionResponse
newGetSuiteDefinitionResponse Int
pHttpStatus_ =
GetSuiteDefinitionResponse' :: Maybe POSIX
-> Maybe SuiteDefinitionConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse
GetSuiteDefinitionResponse'
{ $sel:createdAt:GetSuiteDefinitionResponse' :: Maybe POSIX
createdAt =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionConfiguration:GetSuiteDefinitionResponse' :: Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration = Maybe SuiteDefinitionConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionArn:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedAt:GetSuiteDefinitionResponse' :: Maybe POSIX
lastModifiedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionId:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionVersion:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latestVersion:GetSuiteDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetSuiteDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetSuiteDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getSuiteDefinitionResponse_createdAt :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.UTCTime)
getSuiteDefinitionResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_createdAt = (GetSuiteDefinitionResponse -> Maybe POSIX)
-> (GetSuiteDefinitionResponse
-> Maybe POSIX -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe POSIX
a -> GetSuiteDefinitionResponse
s {$sel:createdAt:GetSuiteDefinitionResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: GetSuiteDefinitionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse
-> f GetSuiteDefinitionResponse
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
getSuiteDefinitionResponse_suiteDefinitionConfiguration :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe SuiteDefinitionConfiguration)
getSuiteDefinitionResponse_suiteDefinitionConfiguration :: (Maybe SuiteDefinitionConfiguration
-> f (Maybe SuiteDefinitionConfiguration))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionConfiguration = (GetSuiteDefinitionResponse -> Maybe SuiteDefinitionConfiguration)
-> (GetSuiteDefinitionResponse
-> Maybe SuiteDefinitionConfiguration
-> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(Maybe SuiteDefinitionConfiguration)
(Maybe SuiteDefinitionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration :: Maybe SuiteDefinitionConfiguration
$sel:suiteDefinitionConfiguration:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration} -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe SuiteDefinitionConfiguration
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionConfiguration:GetSuiteDefinitionResponse' :: Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration = Maybe SuiteDefinitionConfiguration
a} :: GetSuiteDefinitionResponse)
getSuiteDefinitionResponse_suiteDefinitionArn :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_suiteDefinitionArn :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionArn = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
-> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
suiteDefinitionArn :: Maybe Text
$sel:suiteDefinitionArn:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionArn} -> Maybe Text
suiteDefinitionArn) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionArn:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionArn = Maybe Text
a} :: GetSuiteDefinitionResponse)
getSuiteDefinitionResponse_lastModifiedAt :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.UTCTime)
getSuiteDefinitionResponse_lastModifiedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_lastModifiedAt = (GetSuiteDefinitionResponse -> Maybe POSIX)
-> (GetSuiteDefinitionResponse
-> Maybe POSIX -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe POSIX
lastModifiedAt :: Maybe POSIX
$sel:lastModifiedAt:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe POSIX
lastModifiedAt} -> Maybe POSIX
lastModifiedAt) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe POSIX
a -> GetSuiteDefinitionResponse
s {$sel:lastModifiedAt:GetSuiteDefinitionResponse' :: Maybe POSIX
lastModifiedAt = Maybe POSIX
a} :: GetSuiteDefinitionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse
-> f GetSuiteDefinitionResponse
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
getSuiteDefinitionResponse_suiteDefinitionId :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_suiteDefinitionId :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionId = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
-> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
suiteDefinitionId :: Maybe Text
$sel:suiteDefinitionId:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionId} -> Maybe Text
suiteDefinitionId) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionId:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionId = Maybe Text
a} :: GetSuiteDefinitionResponse)
getSuiteDefinitionResponse_suiteDefinitionVersion :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_suiteDefinitionVersion :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionVersion = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
-> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionVersion:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionVersion} -> Maybe Text
suiteDefinitionVersion) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionVersion:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionVersion = Maybe Text
a} :: GetSuiteDefinitionResponse)
getSuiteDefinitionResponse_latestVersion :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_latestVersion :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_latestVersion = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
-> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
latestVersion :: Maybe Text
$sel:latestVersion:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
latestVersion} -> Maybe Text
latestVersion) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:latestVersion:GetSuiteDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
a} :: GetSuiteDefinitionResponse)
getSuiteDefinitionResponse_tags :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getSuiteDefinitionResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_tags = (GetSuiteDefinitionResponse -> Maybe (HashMap Text Text))
-> (GetSuiteDefinitionResponse
-> Maybe (HashMap Text Text) -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse
GetSuiteDefinitionResponse
(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 (\GetSuiteDefinitionResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe (HashMap Text Text)
a -> GetSuiteDefinitionResponse
s {$sel:tags:GetSuiteDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetSuiteDefinitionResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse)
-> ((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)))
-> GetSuiteDefinitionResponse
-> f GetSuiteDefinitionResponse
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
getSuiteDefinitionResponse_httpStatus :: Lens.Lens' GetSuiteDefinitionResponse Prelude.Int
getSuiteDefinitionResponse_httpStatus :: (Int -> f Int)
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_httpStatus = (GetSuiteDefinitionResponse -> Int)
-> (GetSuiteDefinitionResponse
-> Int -> GetSuiteDefinitionResponse)
-> Lens
GetSuiteDefinitionResponse GetSuiteDefinitionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Int
a -> GetSuiteDefinitionResponse
s {$sel:httpStatus:GetSuiteDefinitionResponse' :: Int
httpStatus = Int
a} :: GetSuiteDefinitionResponse)
instance Prelude.NFData GetSuiteDefinitionResponse