{-# 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.CreateSuiteDefinition
(
CreateSuiteDefinition (..),
newCreateSuiteDefinition,
createSuiteDefinition_suiteDefinitionConfiguration,
createSuiteDefinition_tags,
CreateSuiteDefinitionResponse (..),
newCreateSuiteDefinitionResponse,
createSuiteDefinitionResponse_createdAt,
createSuiteDefinitionResponse_suiteDefinitionArn,
createSuiteDefinitionResponse_suiteDefinitionId,
createSuiteDefinitionResponse_suiteDefinitionName,
createSuiteDefinitionResponse_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 CreateSuiteDefinition = CreateSuiteDefinition'
{
CreateSuiteDefinition -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration :: Prelude.Maybe SuiteDefinitionConfiguration,
CreateSuiteDefinition -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
}
deriving (CreateSuiteDefinition -> CreateSuiteDefinition -> Bool
(CreateSuiteDefinition -> CreateSuiteDefinition -> Bool)
-> (CreateSuiteDefinition -> CreateSuiteDefinition -> Bool)
-> Eq CreateSuiteDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSuiteDefinition -> CreateSuiteDefinition -> Bool
$c/= :: CreateSuiteDefinition -> CreateSuiteDefinition -> Bool
== :: CreateSuiteDefinition -> CreateSuiteDefinition -> Bool
$c== :: CreateSuiteDefinition -> CreateSuiteDefinition -> Bool
Prelude.Eq, ReadPrec [CreateSuiteDefinition]
ReadPrec CreateSuiteDefinition
Int -> ReadS CreateSuiteDefinition
ReadS [CreateSuiteDefinition]
(Int -> ReadS CreateSuiteDefinition)
-> ReadS [CreateSuiteDefinition]
-> ReadPrec CreateSuiteDefinition
-> ReadPrec [CreateSuiteDefinition]
-> Read CreateSuiteDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSuiteDefinition]
$creadListPrec :: ReadPrec [CreateSuiteDefinition]
readPrec :: ReadPrec CreateSuiteDefinition
$creadPrec :: ReadPrec CreateSuiteDefinition
readList :: ReadS [CreateSuiteDefinition]
$creadList :: ReadS [CreateSuiteDefinition]
readsPrec :: Int -> ReadS CreateSuiteDefinition
$creadsPrec :: Int -> ReadS CreateSuiteDefinition
Prelude.Read, Int -> CreateSuiteDefinition -> ShowS
[CreateSuiteDefinition] -> ShowS
CreateSuiteDefinition -> String
(Int -> CreateSuiteDefinition -> ShowS)
-> (CreateSuiteDefinition -> String)
-> ([CreateSuiteDefinition] -> ShowS)
-> Show CreateSuiteDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSuiteDefinition] -> ShowS
$cshowList :: [CreateSuiteDefinition] -> ShowS
show :: CreateSuiteDefinition -> String
$cshow :: CreateSuiteDefinition -> String
showsPrec :: Int -> CreateSuiteDefinition -> ShowS
$cshowsPrec :: Int -> CreateSuiteDefinition -> ShowS
Prelude.Show, (forall x. CreateSuiteDefinition -> Rep CreateSuiteDefinition x)
-> (forall x. Rep CreateSuiteDefinition x -> CreateSuiteDefinition)
-> Generic CreateSuiteDefinition
forall x. Rep CreateSuiteDefinition x -> CreateSuiteDefinition
forall x. CreateSuiteDefinition -> Rep CreateSuiteDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateSuiteDefinition x -> CreateSuiteDefinition
$cfrom :: forall x. CreateSuiteDefinition -> Rep CreateSuiteDefinition x
Prelude.Generic)
newCreateSuiteDefinition ::
CreateSuiteDefinition
newCreateSuiteDefinition :: CreateSuiteDefinition
newCreateSuiteDefinition =
CreateSuiteDefinition' :: Maybe SuiteDefinitionConfiguration
-> Maybe (HashMap Text Text) -> CreateSuiteDefinition
CreateSuiteDefinition'
{ $sel:suiteDefinitionConfiguration:CreateSuiteDefinition' :: Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration =
Maybe SuiteDefinitionConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateSuiteDefinition' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
}
createSuiteDefinition_suiteDefinitionConfiguration :: Lens.Lens' CreateSuiteDefinition (Prelude.Maybe SuiteDefinitionConfiguration)
createSuiteDefinition_suiteDefinitionConfiguration :: (Maybe SuiteDefinitionConfiguration
-> f (Maybe SuiteDefinitionConfiguration))
-> CreateSuiteDefinition -> f CreateSuiteDefinition
createSuiteDefinition_suiteDefinitionConfiguration = (CreateSuiteDefinition -> Maybe SuiteDefinitionConfiguration)
-> (CreateSuiteDefinition
-> Maybe SuiteDefinitionConfiguration -> CreateSuiteDefinition)
-> Lens
CreateSuiteDefinition
CreateSuiteDefinition
(Maybe SuiteDefinitionConfiguration)
(Maybe SuiteDefinitionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSuiteDefinition' {Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration :: Maybe SuiteDefinitionConfiguration
$sel:suiteDefinitionConfiguration:CreateSuiteDefinition' :: CreateSuiteDefinition -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration} -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration) (\s :: CreateSuiteDefinition
s@CreateSuiteDefinition' {} Maybe SuiteDefinitionConfiguration
a -> CreateSuiteDefinition
s {$sel:suiteDefinitionConfiguration:CreateSuiteDefinition' :: Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration = Maybe SuiteDefinitionConfiguration
a} :: CreateSuiteDefinition)
createSuiteDefinition_tags :: Lens.Lens' CreateSuiteDefinition (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createSuiteDefinition_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateSuiteDefinition -> f CreateSuiteDefinition
createSuiteDefinition_tags = (CreateSuiteDefinition -> Maybe (HashMap Text Text))
-> (CreateSuiteDefinition
-> Maybe (HashMap Text Text) -> CreateSuiteDefinition)
-> Lens
CreateSuiteDefinition
CreateSuiteDefinition
(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 (\CreateSuiteDefinition' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateSuiteDefinition' :: CreateSuiteDefinition -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateSuiteDefinition
s@CreateSuiteDefinition' {} Maybe (HashMap Text Text)
a -> CreateSuiteDefinition
s {$sel:tags:CreateSuiteDefinition' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateSuiteDefinition) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateSuiteDefinition -> f CreateSuiteDefinition)
-> ((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)))
-> CreateSuiteDefinition
-> f CreateSuiteDefinition
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
instance Core.AWSRequest CreateSuiteDefinition where
type
AWSResponse CreateSuiteDefinition =
CreateSuiteDefinitionResponse
request :: CreateSuiteDefinition -> Request CreateSuiteDefinition
request = Service -> CreateSuiteDefinition -> Request CreateSuiteDefinition
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateSuiteDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateSuiteDefinition)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateSuiteDefinition))
-> Logger
-> Service
-> Proxy CreateSuiteDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateSuiteDefinition)))
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 Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSuiteDefinitionResponse
CreateSuiteDefinitionResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSuiteDefinitionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSuiteDefinitionResponse)
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 Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> CreateSuiteDefinitionResponse)
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 Text -> Maybe Text -> Int -> CreateSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateSuiteDefinitionResponse)
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 -> Int -> CreateSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateSuiteDefinitionResponse)
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
"suiteDefinitionName")
Either String (Int -> CreateSuiteDefinitionResponse)
-> Either String Int -> Either String CreateSuiteDefinitionResponse
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 CreateSuiteDefinition
instance Prelude.NFData CreateSuiteDefinition
instance Core.ToHeaders CreateSuiteDefinition where
toHeaders :: CreateSuiteDefinition -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateSuiteDefinition -> 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.ToJSON CreateSuiteDefinition where
toJSON :: CreateSuiteDefinition -> Value
toJSON CreateSuiteDefinition' {Maybe (HashMap Text Text)
Maybe SuiteDefinitionConfiguration
tags :: Maybe (HashMap Text Text)
suiteDefinitionConfiguration :: Maybe SuiteDefinitionConfiguration
$sel:tags:CreateSuiteDefinition' :: CreateSuiteDefinition -> Maybe (HashMap Text Text)
$sel:suiteDefinitionConfiguration:CreateSuiteDefinition' :: CreateSuiteDefinition -> Maybe SuiteDefinitionConfiguration
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"suiteDefinitionConfiguration" Text -> SuiteDefinitionConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SuiteDefinitionConfiguration -> Pair)
-> Maybe SuiteDefinitionConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags
]
)
instance Core.ToPath CreateSuiteDefinition where
toPath :: CreateSuiteDefinition -> ByteString
toPath = ByteString -> CreateSuiteDefinition -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/suiteDefinitions"
instance Core.ToQuery CreateSuiteDefinition where
toQuery :: CreateSuiteDefinition -> QueryString
toQuery = QueryString -> CreateSuiteDefinition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateSuiteDefinitionResponse = CreateSuiteDefinitionResponse'
{
CreateSuiteDefinitionResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
CreateSuiteDefinitionResponse -> Maybe Text
suiteDefinitionArn :: Prelude.Maybe Prelude.Text,
CreateSuiteDefinitionResponse -> Maybe Text
suiteDefinitionId :: Prelude.Maybe Prelude.Text,
CreateSuiteDefinitionResponse -> Maybe Text
suiteDefinitionName :: Prelude.Maybe Prelude.Text,
CreateSuiteDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateSuiteDefinitionResponse
-> CreateSuiteDefinitionResponse -> Bool
(CreateSuiteDefinitionResponse
-> CreateSuiteDefinitionResponse -> Bool)
-> (CreateSuiteDefinitionResponse
-> CreateSuiteDefinitionResponse -> Bool)
-> Eq CreateSuiteDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSuiteDefinitionResponse
-> CreateSuiteDefinitionResponse -> Bool
$c/= :: CreateSuiteDefinitionResponse
-> CreateSuiteDefinitionResponse -> Bool
== :: CreateSuiteDefinitionResponse
-> CreateSuiteDefinitionResponse -> Bool
$c== :: CreateSuiteDefinitionResponse
-> CreateSuiteDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [CreateSuiteDefinitionResponse]
ReadPrec CreateSuiteDefinitionResponse
Int -> ReadS CreateSuiteDefinitionResponse
ReadS [CreateSuiteDefinitionResponse]
(Int -> ReadS CreateSuiteDefinitionResponse)
-> ReadS [CreateSuiteDefinitionResponse]
-> ReadPrec CreateSuiteDefinitionResponse
-> ReadPrec [CreateSuiteDefinitionResponse]
-> Read CreateSuiteDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSuiteDefinitionResponse]
$creadListPrec :: ReadPrec [CreateSuiteDefinitionResponse]
readPrec :: ReadPrec CreateSuiteDefinitionResponse
$creadPrec :: ReadPrec CreateSuiteDefinitionResponse
readList :: ReadS [CreateSuiteDefinitionResponse]
$creadList :: ReadS [CreateSuiteDefinitionResponse]
readsPrec :: Int -> ReadS CreateSuiteDefinitionResponse
$creadsPrec :: Int -> ReadS CreateSuiteDefinitionResponse
Prelude.Read, Int -> CreateSuiteDefinitionResponse -> ShowS
[CreateSuiteDefinitionResponse] -> ShowS
CreateSuiteDefinitionResponse -> String
(Int -> CreateSuiteDefinitionResponse -> ShowS)
-> (CreateSuiteDefinitionResponse -> String)
-> ([CreateSuiteDefinitionResponse] -> ShowS)
-> Show CreateSuiteDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSuiteDefinitionResponse] -> ShowS
$cshowList :: [CreateSuiteDefinitionResponse] -> ShowS
show :: CreateSuiteDefinitionResponse -> String
$cshow :: CreateSuiteDefinitionResponse -> String
showsPrec :: Int -> CreateSuiteDefinitionResponse -> ShowS
$cshowsPrec :: Int -> CreateSuiteDefinitionResponse -> ShowS
Prelude.Show, (forall x.
CreateSuiteDefinitionResponse
-> Rep CreateSuiteDefinitionResponse x)
-> (forall x.
Rep CreateSuiteDefinitionResponse x
-> CreateSuiteDefinitionResponse)
-> Generic CreateSuiteDefinitionResponse
forall x.
Rep CreateSuiteDefinitionResponse x
-> CreateSuiteDefinitionResponse
forall x.
CreateSuiteDefinitionResponse
-> Rep CreateSuiteDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSuiteDefinitionResponse x
-> CreateSuiteDefinitionResponse
$cfrom :: forall x.
CreateSuiteDefinitionResponse
-> Rep CreateSuiteDefinitionResponse x
Prelude.Generic)
newCreateSuiteDefinitionResponse ::
Prelude.Int ->
CreateSuiteDefinitionResponse
newCreateSuiteDefinitionResponse :: Int -> CreateSuiteDefinitionResponse
newCreateSuiteDefinitionResponse Int
pHttpStatus_ =
CreateSuiteDefinitionResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateSuiteDefinitionResponse
CreateSuiteDefinitionResponse'
{ $sel:createdAt:CreateSuiteDefinitionResponse' :: Maybe POSIX
createdAt =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionArn:CreateSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionId:CreateSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionName:CreateSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateSuiteDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createSuiteDefinitionResponse_createdAt :: Lens.Lens' CreateSuiteDefinitionResponse (Prelude.Maybe Prelude.UTCTime)
createSuiteDefinitionResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateSuiteDefinitionResponse -> f CreateSuiteDefinitionResponse
createSuiteDefinitionResponse_createdAt = (CreateSuiteDefinitionResponse -> Maybe POSIX)
-> (CreateSuiteDefinitionResponse
-> Maybe POSIX -> CreateSuiteDefinitionResponse)
-> Lens
CreateSuiteDefinitionResponse
CreateSuiteDefinitionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSuiteDefinitionResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:CreateSuiteDefinitionResponse' :: CreateSuiteDefinitionResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: CreateSuiteDefinitionResponse
s@CreateSuiteDefinitionResponse' {} Maybe POSIX
a -> CreateSuiteDefinitionResponse
s {$sel:createdAt:CreateSuiteDefinitionResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: CreateSuiteDefinitionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> CreateSuiteDefinitionResponse
-> f CreateSuiteDefinitionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateSuiteDefinitionResponse
-> f CreateSuiteDefinitionResponse
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
createSuiteDefinitionResponse_suiteDefinitionArn :: Lens.Lens' CreateSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
createSuiteDefinitionResponse_suiteDefinitionArn :: (Maybe Text -> f (Maybe Text))
-> CreateSuiteDefinitionResponse -> f CreateSuiteDefinitionResponse
createSuiteDefinitionResponse_suiteDefinitionArn = (CreateSuiteDefinitionResponse -> Maybe Text)
-> (CreateSuiteDefinitionResponse
-> Maybe Text -> CreateSuiteDefinitionResponse)
-> Lens
CreateSuiteDefinitionResponse
CreateSuiteDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSuiteDefinitionResponse' {Maybe Text
suiteDefinitionArn :: Maybe Text
$sel:suiteDefinitionArn:CreateSuiteDefinitionResponse' :: CreateSuiteDefinitionResponse -> Maybe Text
suiteDefinitionArn} -> Maybe Text
suiteDefinitionArn) (\s :: CreateSuiteDefinitionResponse
s@CreateSuiteDefinitionResponse' {} Maybe Text
a -> CreateSuiteDefinitionResponse
s {$sel:suiteDefinitionArn:CreateSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionArn = Maybe Text
a} :: CreateSuiteDefinitionResponse)
createSuiteDefinitionResponse_suiteDefinitionId :: Lens.Lens' CreateSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
createSuiteDefinitionResponse_suiteDefinitionId :: (Maybe Text -> f (Maybe Text))
-> CreateSuiteDefinitionResponse -> f CreateSuiteDefinitionResponse
createSuiteDefinitionResponse_suiteDefinitionId = (CreateSuiteDefinitionResponse -> Maybe Text)
-> (CreateSuiteDefinitionResponse
-> Maybe Text -> CreateSuiteDefinitionResponse)
-> Lens
CreateSuiteDefinitionResponse
CreateSuiteDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSuiteDefinitionResponse' {Maybe Text
suiteDefinitionId :: Maybe Text
$sel:suiteDefinitionId:CreateSuiteDefinitionResponse' :: CreateSuiteDefinitionResponse -> Maybe Text
suiteDefinitionId} -> Maybe Text
suiteDefinitionId) (\s :: CreateSuiteDefinitionResponse
s@CreateSuiteDefinitionResponse' {} Maybe Text
a -> CreateSuiteDefinitionResponse
s {$sel:suiteDefinitionId:CreateSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionId = Maybe Text
a} :: CreateSuiteDefinitionResponse)
createSuiteDefinitionResponse_suiteDefinitionName :: Lens.Lens' CreateSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
createSuiteDefinitionResponse_suiteDefinitionName :: (Maybe Text -> f (Maybe Text))
-> CreateSuiteDefinitionResponse -> f CreateSuiteDefinitionResponse
createSuiteDefinitionResponse_suiteDefinitionName = (CreateSuiteDefinitionResponse -> Maybe Text)
-> (CreateSuiteDefinitionResponse
-> Maybe Text -> CreateSuiteDefinitionResponse)
-> Lens
CreateSuiteDefinitionResponse
CreateSuiteDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSuiteDefinitionResponse' {Maybe Text
suiteDefinitionName :: Maybe Text
$sel:suiteDefinitionName:CreateSuiteDefinitionResponse' :: CreateSuiteDefinitionResponse -> Maybe Text
suiteDefinitionName} -> Maybe Text
suiteDefinitionName) (\s :: CreateSuiteDefinitionResponse
s@CreateSuiteDefinitionResponse' {} Maybe Text
a -> CreateSuiteDefinitionResponse
s {$sel:suiteDefinitionName:CreateSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionName = Maybe Text
a} :: CreateSuiteDefinitionResponse)
createSuiteDefinitionResponse_httpStatus :: Lens.Lens' CreateSuiteDefinitionResponse Prelude.Int
createSuiteDefinitionResponse_httpStatus :: (Int -> f Int)
-> CreateSuiteDefinitionResponse -> f CreateSuiteDefinitionResponse
createSuiteDefinitionResponse_httpStatus = (CreateSuiteDefinitionResponse -> Int)
-> (CreateSuiteDefinitionResponse
-> Int -> CreateSuiteDefinitionResponse)
-> Lens
CreateSuiteDefinitionResponse CreateSuiteDefinitionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSuiteDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateSuiteDefinitionResponse' :: CreateSuiteDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateSuiteDefinitionResponse
s@CreateSuiteDefinitionResponse' {} Int
a -> CreateSuiteDefinitionResponse
s {$sel:httpStatus:CreateSuiteDefinitionResponse' :: Int
httpStatus = Int
a} :: CreateSuiteDefinitionResponse)
instance Prelude.NFData CreateSuiteDefinitionResponse