{-# 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.Batch.CreateJobQueue
(
CreateJobQueue (..),
newCreateJobQueue,
createJobQueue_state,
createJobQueue_tags,
createJobQueue_jobQueueName,
createJobQueue_priority,
createJobQueue_computeEnvironmentOrder,
CreateJobQueueResponse (..),
newCreateJobQueueResponse,
createJobQueueResponse_httpStatus,
createJobQueueResponse_jobQueueName,
createJobQueueResponse_jobQueueArn,
)
where
import Amazonka.Batch.Types
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
data CreateJobQueue = CreateJobQueue'
{
CreateJobQueue -> Maybe JQState
state :: Prelude.Maybe JQState,
CreateJobQueue -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateJobQueue -> Text
jobQueueName :: Prelude.Text,
CreateJobQueue -> Int
priority :: Prelude.Int,
CreateJobQueue -> [ComputeEnvironmentOrder]
computeEnvironmentOrder :: [ComputeEnvironmentOrder]
}
deriving (CreateJobQueue -> CreateJobQueue -> Bool
(CreateJobQueue -> CreateJobQueue -> Bool)
-> (CreateJobQueue -> CreateJobQueue -> Bool) -> Eq CreateJobQueue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateJobQueue -> CreateJobQueue -> Bool
$c/= :: CreateJobQueue -> CreateJobQueue -> Bool
== :: CreateJobQueue -> CreateJobQueue -> Bool
$c== :: CreateJobQueue -> CreateJobQueue -> Bool
Prelude.Eq, ReadPrec [CreateJobQueue]
ReadPrec CreateJobQueue
Int -> ReadS CreateJobQueue
ReadS [CreateJobQueue]
(Int -> ReadS CreateJobQueue)
-> ReadS [CreateJobQueue]
-> ReadPrec CreateJobQueue
-> ReadPrec [CreateJobQueue]
-> Read CreateJobQueue
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateJobQueue]
$creadListPrec :: ReadPrec [CreateJobQueue]
readPrec :: ReadPrec CreateJobQueue
$creadPrec :: ReadPrec CreateJobQueue
readList :: ReadS [CreateJobQueue]
$creadList :: ReadS [CreateJobQueue]
readsPrec :: Int -> ReadS CreateJobQueue
$creadsPrec :: Int -> ReadS CreateJobQueue
Prelude.Read, Int -> CreateJobQueue -> ShowS
[CreateJobQueue] -> ShowS
CreateJobQueue -> String
(Int -> CreateJobQueue -> ShowS)
-> (CreateJobQueue -> String)
-> ([CreateJobQueue] -> ShowS)
-> Show CreateJobQueue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateJobQueue] -> ShowS
$cshowList :: [CreateJobQueue] -> ShowS
show :: CreateJobQueue -> String
$cshow :: CreateJobQueue -> String
showsPrec :: Int -> CreateJobQueue -> ShowS
$cshowsPrec :: Int -> CreateJobQueue -> ShowS
Prelude.Show, (forall x. CreateJobQueue -> Rep CreateJobQueue x)
-> (forall x. Rep CreateJobQueue x -> CreateJobQueue)
-> Generic CreateJobQueue
forall x. Rep CreateJobQueue x -> CreateJobQueue
forall x. CreateJobQueue -> Rep CreateJobQueue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateJobQueue x -> CreateJobQueue
$cfrom :: forall x. CreateJobQueue -> Rep CreateJobQueue x
Prelude.Generic)
newCreateJobQueue ::
Prelude.Text ->
Prelude.Int ->
CreateJobQueue
newCreateJobQueue :: Text -> Int -> CreateJobQueue
newCreateJobQueue Text
pJobQueueName_ Int
pPriority_ =
CreateJobQueue' :: Maybe JQState
-> Maybe (HashMap Text Text)
-> Text
-> Int
-> [ComputeEnvironmentOrder]
-> CreateJobQueue
CreateJobQueue'
{ $sel:state:CreateJobQueue' :: Maybe JQState
state = Maybe JQState
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateJobQueue' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:jobQueueName:CreateJobQueue' :: Text
jobQueueName = Text
pJobQueueName_,
$sel:priority:CreateJobQueue' :: Int
priority = Int
pPriority_,
$sel:computeEnvironmentOrder:CreateJobQueue' :: [ComputeEnvironmentOrder]
computeEnvironmentOrder = [ComputeEnvironmentOrder]
forall a. Monoid a => a
Prelude.mempty
}
createJobQueue_state :: Lens.Lens' CreateJobQueue (Prelude.Maybe JQState)
createJobQueue_state :: (Maybe JQState -> f (Maybe JQState))
-> CreateJobQueue -> f CreateJobQueue
createJobQueue_state = (CreateJobQueue -> Maybe JQState)
-> (CreateJobQueue -> Maybe JQState -> CreateJobQueue)
-> Lens
CreateJobQueue CreateJobQueue (Maybe JQState) (Maybe JQState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobQueue' {Maybe JQState
state :: Maybe JQState
$sel:state:CreateJobQueue' :: CreateJobQueue -> Maybe JQState
state} -> Maybe JQState
state) (\s :: CreateJobQueue
s@CreateJobQueue' {} Maybe JQState
a -> CreateJobQueue
s {$sel:state:CreateJobQueue' :: Maybe JQState
state = Maybe JQState
a} :: CreateJobQueue)
createJobQueue_tags :: Lens.Lens' CreateJobQueue (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createJobQueue_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateJobQueue -> f CreateJobQueue
createJobQueue_tags = (CreateJobQueue -> Maybe (HashMap Text Text))
-> (CreateJobQueue -> Maybe (HashMap Text Text) -> CreateJobQueue)
-> Lens
CreateJobQueue
CreateJobQueue
(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 (\CreateJobQueue' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateJobQueue' :: CreateJobQueue -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateJobQueue
s@CreateJobQueue' {} Maybe (HashMap Text Text)
a -> CreateJobQueue
s {$sel:tags:CreateJobQueue' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateJobQueue) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateJobQueue -> f CreateJobQueue)
-> ((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)))
-> CreateJobQueue
-> f CreateJobQueue
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
createJobQueue_jobQueueName :: Lens.Lens' CreateJobQueue Prelude.Text
createJobQueue_jobQueueName :: (Text -> f Text) -> CreateJobQueue -> f CreateJobQueue
createJobQueue_jobQueueName = (CreateJobQueue -> Text)
-> (CreateJobQueue -> Text -> CreateJobQueue)
-> Lens CreateJobQueue CreateJobQueue Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobQueue' {Text
jobQueueName :: Text
$sel:jobQueueName:CreateJobQueue' :: CreateJobQueue -> Text
jobQueueName} -> Text
jobQueueName) (\s :: CreateJobQueue
s@CreateJobQueue' {} Text
a -> CreateJobQueue
s {$sel:jobQueueName:CreateJobQueue' :: Text
jobQueueName = Text
a} :: CreateJobQueue)
createJobQueue_priority :: Lens.Lens' CreateJobQueue Prelude.Int
createJobQueue_priority :: (Int -> f Int) -> CreateJobQueue -> f CreateJobQueue
createJobQueue_priority = (CreateJobQueue -> Int)
-> (CreateJobQueue -> Int -> CreateJobQueue)
-> Lens CreateJobQueue CreateJobQueue Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobQueue' {Int
priority :: Int
$sel:priority:CreateJobQueue' :: CreateJobQueue -> Int
priority} -> Int
priority) (\s :: CreateJobQueue
s@CreateJobQueue' {} Int
a -> CreateJobQueue
s {$sel:priority:CreateJobQueue' :: Int
priority = Int
a} :: CreateJobQueue)
createJobQueue_computeEnvironmentOrder :: Lens.Lens' CreateJobQueue [ComputeEnvironmentOrder]
createJobQueue_computeEnvironmentOrder :: ([ComputeEnvironmentOrder] -> f [ComputeEnvironmentOrder])
-> CreateJobQueue -> f CreateJobQueue
createJobQueue_computeEnvironmentOrder = (CreateJobQueue -> [ComputeEnvironmentOrder])
-> (CreateJobQueue -> [ComputeEnvironmentOrder] -> CreateJobQueue)
-> Lens
CreateJobQueue
CreateJobQueue
[ComputeEnvironmentOrder]
[ComputeEnvironmentOrder]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobQueue' {[ComputeEnvironmentOrder]
computeEnvironmentOrder :: [ComputeEnvironmentOrder]
$sel:computeEnvironmentOrder:CreateJobQueue' :: CreateJobQueue -> [ComputeEnvironmentOrder]
computeEnvironmentOrder} -> [ComputeEnvironmentOrder]
computeEnvironmentOrder) (\s :: CreateJobQueue
s@CreateJobQueue' {} [ComputeEnvironmentOrder]
a -> CreateJobQueue
s {$sel:computeEnvironmentOrder:CreateJobQueue' :: [ComputeEnvironmentOrder]
computeEnvironmentOrder = [ComputeEnvironmentOrder]
a} :: CreateJobQueue) (([ComputeEnvironmentOrder] -> f [ComputeEnvironmentOrder])
-> CreateJobQueue -> f CreateJobQueue)
-> (([ComputeEnvironmentOrder] -> f [ComputeEnvironmentOrder])
-> [ComputeEnvironmentOrder] -> f [ComputeEnvironmentOrder])
-> ([ComputeEnvironmentOrder] -> f [ComputeEnvironmentOrder])
-> CreateJobQueue
-> f CreateJobQueue
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ComputeEnvironmentOrder] -> f [ComputeEnvironmentOrder])
-> [ComputeEnvironmentOrder] -> f [ComputeEnvironmentOrder]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateJobQueue where
type
AWSResponse CreateJobQueue =
CreateJobQueueResponse
request :: CreateJobQueue -> Request CreateJobQueue
request = Service -> CreateJobQueue -> Request CreateJobQueue
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateJobQueue
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateJobQueue)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateJobQueue))
-> Logger
-> Service
-> Proxy CreateJobQueue
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateJobQueue)))
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 ->
Int -> Text -> Text -> CreateJobQueueResponse
CreateJobQueueResponse'
(Int -> Text -> Text -> CreateJobQueueResponse)
-> Either String Int
-> Either String (Text -> Text -> CreateJobQueueResponse)
forall (f :: * -> *) a b. Functor 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 -> CreateJobQueueResponse)
-> Either String Text
-> Either String (Text -> CreateJobQueueResponse)
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
"jobQueueName")
Either String (Text -> CreateJobQueueResponse)
-> Either String Text -> Either String CreateJobQueueResponse
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
"jobQueueArn")
)
instance Prelude.Hashable CreateJobQueue
instance Prelude.NFData CreateJobQueue
instance Core.ToHeaders CreateJobQueue where
toHeaders :: CreateJobQueue -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateJobQueue -> 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 CreateJobQueue where
toJSON :: CreateJobQueue -> Value
toJSON CreateJobQueue' {Int
[ComputeEnvironmentOrder]
Maybe (HashMap Text Text)
Maybe JQState
Text
computeEnvironmentOrder :: [ComputeEnvironmentOrder]
priority :: Int
jobQueueName :: Text
tags :: Maybe (HashMap Text Text)
state :: Maybe JQState
$sel:computeEnvironmentOrder:CreateJobQueue' :: CreateJobQueue -> [ComputeEnvironmentOrder]
$sel:priority:CreateJobQueue' :: CreateJobQueue -> Int
$sel:jobQueueName:CreateJobQueue' :: CreateJobQueue -> Text
$sel:tags:CreateJobQueue' :: CreateJobQueue -> Maybe (HashMap Text Text)
$sel:state:CreateJobQueue' :: CreateJobQueue -> Maybe JQState
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"state" Text -> JQState -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (JQState -> Pair) -> Maybe JQState -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe JQState
state,
(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
"jobQueueName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
jobQueueName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"priority" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Int
priority),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"computeEnvironmentOrder"
Text -> [ComputeEnvironmentOrder] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [ComputeEnvironmentOrder]
computeEnvironmentOrder
)
]
)
instance Core.ToPath CreateJobQueue where
toPath :: CreateJobQueue -> ByteString
toPath = ByteString -> CreateJobQueue -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v1/createjobqueue"
instance Core.ToQuery CreateJobQueue where
toQuery :: CreateJobQueue -> QueryString
toQuery = QueryString -> CreateJobQueue -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateJobQueueResponse = CreateJobQueueResponse'
{
CreateJobQueueResponse -> Int
httpStatus :: Prelude.Int,
CreateJobQueueResponse -> Text
jobQueueName :: Prelude.Text,
CreateJobQueueResponse -> Text
jobQueueArn :: Prelude.Text
}
deriving (CreateJobQueueResponse -> CreateJobQueueResponse -> Bool
(CreateJobQueueResponse -> CreateJobQueueResponse -> Bool)
-> (CreateJobQueueResponse -> CreateJobQueueResponse -> Bool)
-> Eq CreateJobQueueResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateJobQueueResponse -> CreateJobQueueResponse -> Bool
$c/= :: CreateJobQueueResponse -> CreateJobQueueResponse -> Bool
== :: CreateJobQueueResponse -> CreateJobQueueResponse -> Bool
$c== :: CreateJobQueueResponse -> CreateJobQueueResponse -> Bool
Prelude.Eq, ReadPrec [CreateJobQueueResponse]
ReadPrec CreateJobQueueResponse
Int -> ReadS CreateJobQueueResponse
ReadS [CreateJobQueueResponse]
(Int -> ReadS CreateJobQueueResponse)
-> ReadS [CreateJobQueueResponse]
-> ReadPrec CreateJobQueueResponse
-> ReadPrec [CreateJobQueueResponse]
-> Read CreateJobQueueResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateJobQueueResponse]
$creadListPrec :: ReadPrec [CreateJobQueueResponse]
readPrec :: ReadPrec CreateJobQueueResponse
$creadPrec :: ReadPrec CreateJobQueueResponse
readList :: ReadS [CreateJobQueueResponse]
$creadList :: ReadS [CreateJobQueueResponse]
readsPrec :: Int -> ReadS CreateJobQueueResponse
$creadsPrec :: Int -> ReadS CreateJobQueueResponse
Prelude.Read, Int -> CreateJobQueueResponse -> ShowS
[CreateJobQueueResponse] -> ShowS
CreateJobQueueResponse -> String
(Int -> CreateJobQueueResponse -> ShowS)
-> (CreateJobQueueResponse -> String)
-> ([CreateJobQueueResponse] -> ShowS)
-> Show CreateJobQueueResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateJobQueueResponse] -> ShowS
$cshowList :: [CreateJobQueueResponse] -> ShowS
show :: CreateJobQueueResponse -> String
$cshow :: CreateJobQueueResponse -> String
showsPrec :: Int -> CreateJobQueueResponse -> ShowS
$cshowsPrec :: Int -> CreateJobQueueResponse -> ShowS
Prelude.Show, (forall x. CreateJobQueueResponse -> Rep CreateJobQueueResponse x)
-> (forall x.
Rep CreateJobQueueResponse x -> CreateJobQueueResponse)
-> Generic CreateJobQueueResponse
forall x. Rep CreateJobQueueResponse x -> CreateJobQueueResponse
forall x. CreateJobQueueResponse -> Rep CreateJobQueueResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateJobQueueResponse x -> CreateJobQueueResponse
$cfrom :: forall x. CreateJobQueueResponse -> Rep CreateJobQueueResponse x
Prelude.Generic)
newCreateJobQueueResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
CreateJobQueueResponse
newCreateJobQueueResponse :: Int -> Text -> Text -> CreateJobQueueResponse
newCreateJobQueueResponse
Int
pHttpStatus_
Text
pJobQueueName_
Text
pJobQueueArn_ =
CreateJobQueueResponse' :: Int -> Text -> Text -> CreateJobQueueResponse
CreateJobQueueResponse'
{ $sel:httpStatus:CreateJobQueueResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:jobQueueName:CreateJobQueueResponse' :: Text
jobQueueName = Text
pJobQueueName_,
$sel:jobQueueArn:CreateJobQueueResponse' :: Text
jobQueueArn = Text
pJobQueueArn_
}
createJobQueueResponse_httpStatus :: Lens.Lens' CreateJobQueueResponse Prelude.Int
createJobQueueResponse_httpStatus :: (Int -> f Int)
-> CreateJobQueueResponse -> f CreateJobQueueResponse
createJobQueueResponse_httpStatus = (CreateJobQueueResponse -> Int)
-> (CreateJobQueueResponse -> Int -> CreateJobQueueResponse)
-> Lens CreateJobQueueResponse CreateJobQueueResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobQueueResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateJobQueueResponse' :: CreateJobQueueResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateJobQueueResponse
s@CreateJobQueueResponse' {} Int
a -> CreateJobQueueResponse
s {$sel:httpStatus:CreateJobQueueResponse' :: Int
httpStatus = Int
a} :: CreateJobQueueResponse)
createJobQueueResponse_jobQueueName :: Lens.Lens' CreateJobQueueResponse Prelude.Text
createJobQueueResponse_jobQueueName :: (Text -> f Text)
-> CreateJobQueueResponse -> f CreateJobQueueResponse
createJobQueueResponse_jobQueueName = (CreateJobQueueResponse -> Text)
-> (CreateJobQueueResponse -> Text -> CreateJobQueueResponse)
-> Lens CreateJobQueueResponse CreateJobQueueResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobQueueResponse' {Text
jobQueueName :: Text
$sel:jobQueueName:CreateJobQueueResponse' :: CreateJobQueueResponse -> Text
jobQueueName} -> Text
jobQueueName) (\s :: CreateJobQueueResponse
s@CreateJobQueueResponse' {} Text
a -> CreateJobQueueResponse
s {$sel:jobQueueName:CreateJobQueueResponse' :: Text
jobQueueName = Text
a} :: CreateJobQueueResponse)
createJobQueueResponse_jobQueueArn :: Lens.Lens' CreateJobQueueResponse Prelude.Text
createJobQueueResponse_jobQueueArn :: (Text -> f Text)
-> CreateJobQueueResponse -> f CreateJobQueueResponse
createJobQueueResponse_jobQueueArn = (CreateJobQueueResponse -> Text)
-> (CreateJobQueueResponse -> Text -> CreateJobQueueResponse)
-> Lens CreateJobQueueResponse CreateJobQueueResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateJobQueueResponse' {Text
jobQueueArn :: Text
$sel:jobQueueArn:CreateJobQueueResponse' :: CreateJobQueueResponse -> Text
jobQueueArn} -> Text
jobQueueArn) (\s :: CreateJobQueueResponse
s@CreateJobQueueResponse' {} Text
a -> CreateJobQueueResponse
s {$sel:jobQueueArn:CreateJobQueueResponse' :: Text
jobQueueArn = Text
a} :: CreateJobQueueResponse)
instance Prelude.NFData CreateJobQueueResponse