{-# 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.SnowDeviceManagement.CreateTask
(
CreateTask (..),
newCreateTask,
createTask_clientToken,
createTask_description,
createTask_tags,
createTask_command,
createTask_targets,
CreateTaskResponse (..),
newCreateTaskResponse,
createTaskResponse_taskId,
createTaskResponse_taskArn,
createTaskResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SnowDeviceManagement.Types
data CreateTask = CreateTask'
{
CreateTask -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateTask -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateTask -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateTask -> Command
command :: Command,
CreateTask -> NonEmpty Text
targets :: Prelude.NonEmpty Prelude.Text
}
deriving (CreateTask -> CreateTask -> Bool
(CreateTask -> CreateTask -> Bool)
-> (CreateTask -> CreateTask -> Bool) -> Eq CreateTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTask -> CreateTask -> Bool
$c/= :: CreateTask -> CreateTask -> Bool
== :: CreateTask -> CreateTask -> Bool
$c== :: CreateTask -> CreateTask -> Bool
Prelude.Eq, ReadPrec [CreateTask]
ReadPrec CreateTask
Int -> ReadS CreateTask
ReadS [CreateTask]
(Int -> ReadS CreateTask)
-> ReadS [CreateTask]
-> ReadPrec CreateTask
-> ReadPrec [CreateTask]
-> Read CreateTask
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateTask]
$creadListPrec :: ReadPrec [CreateTask]
readPrec :: ReadPrec CreateTask
$creadPrec :: ReadPrec CreateTask
readList :: ReadS [CreateTask]
$creadList :: ReadS [CreateTask]
readsPrec :: Int -> ReadS CreateTask
$creadsPrec :: Int -> ReadS CreateTask
Prelude.Read, Int -> CreateTask -> ShowS
[CreateTask] -> ShowS
CreateTask -> String
(Int -> CreateTask -> ShowS)
-> (CreateTask -> String)
-> ([CreateTask] -> ShowS)
-> Show CreateTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTask] -> ShowS
$cshowList :: [CreateTask] -> ShowS
show :: CreateTask -> String
$cshow :: CreateTask -> String
showsPrec :: Int -> CreateTask -> ShowS
$cshowsPrec :: Int -> CreateTask -> ShowS
Prelude.Show, (forall x. CreateTask -> Rep CreateTask x)
-> (forall x. Rep CreateTask x -> CreateTask) -> Generic CreateTask
forall x. Rep CreateTask x -> CreateTask
forall x. CreateTask -> Rep CreateTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateTask x -> CreateTask
$cfrom :: forall x. CreateTask -> Rep CreateTask x
Prelude.Generic)
newCreateTask ::
Command ->
Prelude.NonEmpty Prelude.Text ->
CreateTask
newCreateTask :: Command -> NonEmpty Text -> CreateTask
newCreateTask Command
pCommand_ NonEmpty Text
pTargets_ =
CreateTask' :: Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Command
-> NonEmpty Text
-> CreateTask
CreateTask'
{ $sel:clientToken:CreateTask' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateTask' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateTask' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:command:CreateTask' :: Command
command = Command
pCommand_,
$sel:targets:CreateTask' :: NonEmpty Text
targets = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pTargets_
}
createTask_clientToken :: Lens.Lens' CreateTask (Prelude.Maybe Prelude.Text)
createTask_clientToken :: (Maybe Text -> f (Maybe Text)) -> CreateTask -> f CreateTask
createTask_clientToken = (CreateTask -> Maybe Text)
-> (CreateTask -> Maybe Text -> CreateTask)
-> Lens CreateTask CreateTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTask' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateTask' :: CreateTask -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateTask
s@CreateTask' {} Maybe Text
a -> CreateTask
s {$sel:clientToken:CreateTask' :: Maybe Text
clientToken = Maybe Text
a} :: CreateTask)
createTask_description :: Lens.Lens' CreateTask (Prelude.Maybe Prelude.Text)
createTask_description :: (Maybe Text -> f (Maybe Text)) -> CreateTask -> f CreateTask
createTask_description = (CreateTask -> Maybe Text)
-> (CreateTask -> Maybe Text -> CreateTask)
-> Lens CreateTask CreateTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTask' {Maybe Text
description :: Maybe Text
$sel:description:CreateTask' :: CreateTask -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateTask
s@CreateTask' {} Maybe Text
a -> CreateTask
s {$sel:description:CreateTask' :: Maybe Text
description = Maybe Text
a} :: CreateTask)
createTask_tags :: Lens.Lens' CreateTask (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createTask_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTask -> f CreateTask
createTask_tags = (CreateTask -> Maybe (HashMap Text Text))
-> (CreateTask -> Maybe (HashMap Text Text) -> CreateTask)
-> Lens
CreateTask
CreateTask
(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 (\CreateTask' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateTask' :: CreateTask -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateTask
s@CreateTask' {} Maybe (HashMap Text Text)
a -> CreateTask
s {$sel:tags:CreateTask' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateTask) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTask -> f CreateTask)
-> ((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)))
-> CreateTask
-> f CreateTask
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
createTask_command :: Lens.Lens' CreateTask Command
createTask_command :: (Command -> f Command) -> CreateTask -> f CreateTask
createTask_command = (CreateTask -> Command)
-> (CreateTask -> Command -> CreateTask)
-> Lens CreateTask CreateTask Command Command
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTask' {Command
command :: Command
$sel:command:CreateTask' :: CreateTask -> Command
command} -> Command
command) (\s :: CreateTask
s@CreateTask' {} Command
a -> CreateTask
s {$sel:command:CreateTask' :: Command
command = Command
a} :: CreateTask)
createTask_targets :: Lens.Lens' CreateTask (Prelude.NonEmpty Prelude.Text)
createTask_targets :: (NonEmpty Text -> f (NonEmpty Text)) -> CreateTask -> f CreateTask
createTask_targets = (CreateTask -> NonEmpty Text)
-> (CreateTask -> NonEmpty Text -> CreateTask)
-> Lens CreateTask CreateTask (NonEmpty Text) (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTask' {NonEmpty Text
targets :: NonEmpty Text
$sel:targets:CreateTask' :: CreateTask -> NonEmpty Text
targets} -> NonEmpty Text
targets) (\s :: CreateTask
s@CreateTask' {} NonEmpty Text
a -> CreateTask
s {$sel:targets:CreateTask' :: NonEmpty Text
targets = NonEmpty Text
a} :: CreateTask) ((NonEmpty Text -> f (NonEmpty Text))
-> CreateTask -> f CreateTask)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> CreateTask
-> f CreateTask
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateTask where
type AWSResponse CreateTask = CreateTaskResponse
request :: CreateTask -> Request CreateTask
request = Service -> CreateTask -> Request CreateTask
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateTask
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateTask)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateTask))
-> Logger
-> Service
-> Proxy CreateTask
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateTask)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Maybe Text -> Int -> CreateTaskResponse
CreateTaskResponse'
(Maybe Text -> Maybe Text -> Int -> CreateTaskResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> CreateTaskResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"taskId")
Either String (Maybe Text -> Int -> CreateTaskResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateTaskResponse)
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
"taskArn")
Either String (Int -> CreateTaskResponse)
-> Either String Int -> Either String CreateTaskResponse
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 CreateTask
instance Prelude.NFData CreateTask
instance Core.ToHeaders CreateTask where
toHeaders :: CreateTask -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateTask -> 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 CreateTask where
toJSON :: CreateTask -> Value
toJSON CreateTask' {Maybe Text
Maybe (HashMap Text Text)
NonEmpty Text
Command
targets :: NonEmpty Text
command :: Command
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
clientToken :: Maybe Text
$sel:targets:CreateTask' :: CreateTask -> NonEmpty Text
$sel:command:CreateTask' :: CreateTask -> Command
$sel:tags:CreateTask' :: CreateTask -> Maybe (HashMap Text Text)
$sel:description:CreateTask' :: CreateTask -> Maybe Text
$sel:clientToken:CreateTask' :: CreateTask -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"clientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientToken,
(Text
"description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"command" Text -> Command -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Command
command),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"targets" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
targets)
]
)
instance Core.ToPath CreateTask where
toPath :: CreateTask -> ByteString
toPath = ByteString -> CreateTask -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/task"
instance Core.ToQuery CreateTask where
toQuery :: CreateTask -> QueryString
toQuery = QueryString -> CreateTask -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateTaskResponse = CreateTaskResponse'
{
CreateTaskResponse -> Maybe Text
taskId :: Prelude.Maybe Prelude.Text,
CreateTaskResponse -> Maybe Text
taskArn :: Prelude.Maybe Prelude.Text,
CreateTaskResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateTaskResponse -> CreateTaskResponse -> Bool
(CreateTaskResponse -> CreateTaskResponse -> Bool)
-> (CreateTaskResponse -> CreateTaskResponse -> Bool)
-> Eq CreateTaskResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTaskResponse -> CreateTaskResponse -> Bool
$c/= :: CreateTaskResponse -> CreateTaskResponse -> Bool
== :: CreateTaskResponse -> CreateTaskResponse -> Bool
$c== :: CreateTaskResponse -> CreateTaskResponse -> Bool
Prelude.Eq, ReadPrec [CreateTaskResponse]
ReadPrec CreateTaskResponse
Int -> ReadS CreateTaskResponse
ReadS [CreateTaskResponse]
(Int -> ReadS CreateTaskResponse)
-> ReadS [CreateTaskResponse]
-> ReadPrec CreateTaskResponse
-> ReadPrec [CreateTaskResponse]
-> Read CreateTaskResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateTaskResponse]
$creadListPrec :: ReadPrec [CreateTaskResponse]
readPrec :: ReadPrec CreateTaskResponse
$creadPrec :: ReadPrec CreateTaskResponse
readList :: ReadS [CreateTaskResponse]
$creadList :: ReadS [CreateTaskResponse]
readsPrec :: Int -> ReadS CreateTaskResponse
$creadsPrec :: Int -> ReadS CreateTaskResponse
Prelude.Read, Int -> CreateTaskResponse -> ShowS
[CreateTaskResponse] -> ShowS
CreateTaskResponse -> String
(Int -> CreateTaskResponse -> ShowS)
-> (CreateTaskResponse -> String)
-> ([CreateTaskResponse] -> ShowS)
-> Show CreateTaskResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTaskResponse] -> ShowS
$cshowList :: [CreateTaskResponse] -> ShowS
show :: CreateTaskResponse -> String
$cshow :: CreateTaskResponse -> String
showsPrec :: Int -> CreateTaskResponse -> ShowS
$cshowsPrec :: Int -> CreateTaskResponse -> ShowS
Prelude.Show, (forall x. CreateTaskResponse -> Rep CreateTaskResponse x)
-> (forall x. Rep CreateTaskResponse x -> CreateTaskResponse)
-> Generic CreateTaskResponse
forall x. Rep CreateTaskResponse x -> CreateTaskResponse
forall x. CreateTaskResponse -> Rep CreateTaskResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateTaskResponse x -> CreateTaskResponse
$cfrom :: forall x. CreateTaskResponse -> Rep CreateTaskResponse x
Prelude.Generic)
newCreateTaskResponse ::
Prelude.Int ->
CreateTaskResponse
newCreateTaskResponse :: Int -> CreateTaskResponse
newCreateTaskResponse Int
pHttpStatus_ =
CreateTaskResponse' :: Maybe Text -> Maybe Text -> Int -> CreateTaskResponse
CreateTaskResponse'
{ $sel:taskId:CreateTaskResponse' :: Maybe Text
taskId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:taskArn:CreateTaskResponse' :: Maybe Text
taskArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateTaskResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createTaskResponse_taskId :: Lens.Lens' CreateTaskResponse (Prelude.Maybe Prelude.Text)
createTaskResponse_taskId :: (Maybe Text -> f (Maybe Text))
-> CreateTaskResponse -> f CreateTaskResponse
createTaskResponse_taskId = (CreateTaskResponse -> Maybe Text)
-> (CreateTaskResponse -> Maybe Text -> CreateTaskResponse)
-> Lens
CreateTaskResponse CreateTaskResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTaskResponse' {Maybe Text
taskId :: Maybe Text
$sel:taskId:CreateTaskResponse' :: CreateTaskResponse -> Maybe Text
taskId} -> Maybe Text
taskId) (\s :: CreateTaskResponse
s@CreateTaskResponse' {} Maybe Text
a -> CreateTaskResponse
s {$sel:taskId:CreateTaskResponse' :: Maybe Text
taskId = Maybe Text
a} :: CreateTaskResponse)
createTaskResponse_taskArn :: Lens.Lens' CreateTaskResponse (Prelude.Maybe Prelude.Text)
createTaskResponse_taskArn :: (Maybe Text -> f (Maybe Text))
-> CreateTaskResponse -> f CreateTaskResponse
createTaskResponse_taskArn = (CreateTaskResponse -> Maybe Text)
-> (CreateTaskResponse -> Maybe Text -> CreateTaskResponse)
-> Lens
CreateTaskResponse CreateTaskResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTaskResponse' {Maybe Text
taskArn :: Maybe Text
$sel:taskArn:CreateTaskResponse' :: CreateTaskResponse -> Maybe Text
taskArn} -> Maybe Text
taskArn) (\s :: CreateTaskResponse
s@CreateTaskResponse' {} Maybe Text
a -> CreateTaskResponse
s {$sel:taskArn:CreateTaskResponse' :: Maybe Text
taskArn = Maybe Text
a} :: CreateTaskResponse)
createTaskResponse_httpStatus :: Lens.Lens' CreateTaskResponse Prelude.Int
createTaskResponse_httpStatus :: (Int -> f Int) -> CreateTaskResponse -> f CreateTaskResponse
createTaskResponse_httpStatus = (CreateTaskResponse -> Int)
-> (CreateTaskResponse -> Int -> CreateTaskResponse)
-> Lens CreateTaskResponse CreateTaskResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTaskResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateTaskResponse' :: CreateTaskResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateTaskResponse
s@CreateTaskResponse' {} Int
a -> CreateTaskResponse
s {$sel:httpStatus:CreateTaskResponse' :: Int
httpStatus = Int
a} :: CreateTaskResponse)
instance Prelude.NFData CreateTaskResponse