{-# 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.CreateComputeEnvironment
(
CreateComputeEnvironment (..),
newCreateComputeEnvironment,
createComputeEnvironment_state,
createComputeEnvironment_computeResources,
createComputeEnvironment_serviceRole,
createComputeEnvironment_tags,
createComputeEnvironment_computeEnvironmentName,
createComputeEnvironment_type,
CreateComputeEnvironmentResponse (..),
newCreateComputeEnvironmentResponse,
createComputeEnvironmentResponse_computeEnvironmentName,
createComputeEnvironmentResponse_computeEnvironmentArn,
createComputeEnvironmentResponse_httpStatus,
)
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 CreateComputeEnvironment = CreateComputeEnvironment'
{
CreateComputeEnvironment -> Maybe CEState
state :: Prelude.Maybe CEState,
CreateComputeEnvironment -> Maybe ComputeResource
computeResources :: Prelude.Maybe ComputeResource,
CreateComputeEnvironment -> Maybe Text
serviceRole :: Prelude.Maybe Prelude.Text,
CreateComputeEnvironment -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateComputeEnvironment -> Text
computeEnvironmentName :: Prelude.Text,
CreateComputeEnvironment -> CEType
type' :: CEType
}
deriving (CreateComputeEnvironment -> CreateComputeEnvironment -> Bool
(CreateComputeEnvironment -> CreateComputeEnvironment -> Bool)
-> (CreateComputeEnvironment -> CreateComputeEnvironment -> Bool)
-> Eq CreateComputeEnvironment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateComputeEnvironment -> CreateComputeEnvironment -> Bool
$c/= :: CreateComputeEnvironment -> CreateComputeEnvironment -> Bool
== :: CreateComputeEnvironment -> CreateComputeEnvironment -> Bool
$c== :: CreateComputeEnvironment -> CreateComputeEnvironment -> Bool
Prelude.Eq, ReadPrec [CreateComputeEnvironment]
ReadPrec CreateComputeEnvironment
Int -> ReadS CreateComputeEnvironment
ReadS [CreateComputeEnvironment]
(Int -> ReadS CreateComputeEnvironment)
-> ReadS [CreateComputeEnvironment]
-> ReadPrec CreateComputeEnvironment
-> ReadPrec [CreateComputeEnvironment]
-> Read CreateComputeEnvironment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateComputeEnvironment]
$creadListPrec :: ReadPrec [CreateComputeEnvironment]
readPrec :: ReadPrec CreateComputeEnvironment
$creadPrec :: ReadPrec CreateComputeEnvironment
readList :: ReadS [CreateComputeEnvironment]
$creadList :: ReadS [CreateComputeEnvironment]
readsPrec :: Int -> ReadS CreateComputeEnvironment
$creadsPrec :: Int -> ReadS CreateComputeEnvironment
Prelude.Read, Int -> CreateComputeEnvironment -> ShowS
[CreateComputeEnvironment] -> ShowS
CreateComputeEnvironment -> String
(Int -> CreateComputeEnvironment -> ShowS)
-> (CreateComputeEnvironment -> String)
-> ([CreateComputeEnvironment] -> ShowS)
-> Show CreateComputeEnvironment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateComputeEnvironment] -> ShowS
$cshowList :: [CreateComputeEnvironment] -> ShowS
show :: CreateComputeEnvironment -> String
$cshow :: CreateComputeEnvironment -> String
showsPrec :: Int -> CreateComputeEnvironment -> ShowS
$cshowsPrec :: Int -> CreateComputeEnvironment -> ShowS
Prelude.Show, (forall x.
CreateComputeEnvironment -> Rep CreateComputeEnvironment x)
-> (forall x.
Rep CreateComputeEnvironment x -> CreateComputeEnvironment)
-> Generic CreateComputeEnvironment
forall x.
Rep CreateComputeEnvironment x -> CreateComputeEnvironment
forall x.
CreateComputeEnvironment -> Rep CreateComputeEnvironment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateComputeEnvironment x -> CreateComputeEnvironment
$cfrom :: forall x.
CreateComputeEnvironment -> Rep CreateComputeEnvironment x
Prelude.Generic)
newCreateComputeEnvironment ::
Prelude.Text ->
CEType ->
CreateComputeEnvironment
newCreateComputeEnvironment :: Text -> CEType -> CreateComputeEnvironment
newCreateComputeEnvironment
Text
pComputeEnvironmentName_
CEType
pType_ =
CreateComputeEnvironment' :: Maybe CEState
-> Maybe ComputeResource
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> CEType
-> CreateComputeEnvironment
CreateComputeEnvironment'
{ $sel:state:CreateComputeEnvironment' :: Maybe CEState
state = Maybe CEState
forall a. Maybe a
Prelude.Nothing,
$sel:computeResources:CreateComputeEnvironment' :: Maybe ComputeResource
computeResources = Maybe ComputeResource
forall a. Maybe a
Prelude.Nothing,
$sel:serviceRole:CreateComputeEnvironment' :: Maybe Text
serviceRole = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateComputeEnvironment' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:computeEnvironmentName:CreateComputeEnvironment' :: Text
computeEnvironmentName = Text
pComputeEnvironmentName_,
$sel:type':CreateComputeEnvironment' :: CEType
type' = CEType
pType_
}
createComputeEnvironment_state :: Lens.Lens' CreateComputeEnvironment (Prelude.Maybe CEState)
createComputeEnvironment_state :: (Maybe CEState -> f (Maybe CEState))
-> CreateComputeEnvironment -> f CreateComputeEnvironment
createComputeEnvironment_state = (CreateComputeEnvironment -> Maybe CEState)
-> (CreateComputeEnvironment
-> Maybe CEState -> CreateComputeEnvironment)
-> Lens
CreateComputeEnvironment
CreateComputeEnvironment
(Maybe CEState)
(Maybe CEState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironment' {Maybe CEState
state :: Maybe CEState
$sel:state:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe CEState
state} -> Maybe CEState
state) (\s :: CreateComputeEnvironment
s@CreateComputeEnvironment' {} Maybe CEState
a -> CreateComputeEnvironment
s {$sel:state:CreateComputeEnvironment' :: Maybe CEState
state = Maybe CEState
a} :: CreateComputeEnvironment)
createComputeEnvironment_computeResources :: Lens.Lens' CreateComputeEnvironment (Prelude.Maybe ComputeResource)
createComputeEnvironment_computeResources :: (Maybe ComputeResource -> f (Maybe ComputeResource))
-> CreateComputeEnvironment -> f CreateComputeEnvironment
createComputeEnvironment_computeResources = (CreateComputeEnvironment -> Maybe ComputeResource)
-> (CreateComputeEnvironment
-> Maybe ComputeResource -> CreateComputeEnvironment)
-> Lens
CreateComputeEnvironment
CreateComputeEnvironment
(Maybe ComputeResource)
(Maybe ComputeResource)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironment' {Maybe ComputeResource
computeResources :: Maybe ComputeResource
$sel:computeResources:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe ComputeResource
computeResources} -> Maybe ComputeResource
computeResources) (\s :: CreateComputeEnvironment
s@CreateComputeEnvironment' {} Maybe ComputeResource
a -> CreateComputeEnvironment
s {$sel:computeResources:CreateComputeEnvironment' :: Maybe ComputeResource
computeResources = Maybe ComputeResource
a} :: CreateComputeEnvironment)
createComputeEnvironment_serviceRole :: Lens.Lens' CreateComputeEnvironment (Prelude.Maybe Prelude.Text)
createComputeEnvironment_serviceRole :: (Maybe Text -> f (Maybe Text))
-> CreateComputeEnvironment -> f CreateComputeEnvironment
createComputeEnvironment_serviceRole = (CreateComputeEnvironment -> Maybe Text)
-> (CreateComputeEnvironment
-> Maybe Text -> CreateComputeEnvironment)
-> Lens
CreateComputeEnvironment
CreateComputeEnvironment
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironment' {Maybe Text
serviceRole :: Maybe Text
$sel:serviceRole:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe Text
serviceRole} -> Maybe Text
serviceRole) (\s :: CreateComputeEnvironment
s@CreateComputeEnvironment' {} Maybe Text
a -> CreateComputeEnvironment
s {$sel:serviceRole:CreateComputeEnvironment' :: Maybe Text
serviceRole = Maybe Text
a} :: CreateComputeEnvironment)
createComputeEnvironment_tags :: Lens.Lens' CreateComputeEnvironment (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createComputeEnvironment_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateComputeEnvironment -> f CreateComputeEnvironment
createComputeEnvironment_tags = (CreateComputeEnvironment -> Maybe (HashMap Text Text))
-> (CreateComputeEnvironment
-> Maybe (HashMap Text Text) -> CreateComputeEnvironment)
-> Lens
CreateComputeEnvironment
CreateComputeEnvironment
(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 (\CreateComputeEnvironment' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateComputeEnvironment
s@CreateComputeEnvironment' {} Maybe (HashMap Text Text)
a -> CreateComputeEnvironment
s {$sel:tags:CreateComputeEnvironment' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateComputeEnvironment) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateComputeEnvironment -> f CreateComputeEnvironment)
-> ((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)))
-> CreateComputeEnvironment
-> f CreateComputeEnvironment
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
createComputeEnvironment_computeEnvironmentName :: Lens.Lens' CreateComputeEnvironment Prelude.Text
createComputeEnvironment_computeEnvironmentName :: (Text -> f Text)
-> CreateComputeEnvironment -> f CreateComputeEnvironment
createComputeEnvironment_computeEnvironmentName = (CreateComputeEnvironment -> Text)
-> (CreateComputeEnvironment -> Text -> CreateComputeEnvironment)
-> Lens CreateComputeEnvironment CreateComputeEnvironment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironment' {Text
computeEnvironmentName :: Text
$sel:computeEnvironmentName:CreateComputeEnvironment' :: CreateComputeEnvironment -> Text
computeEnvironmentName} -> Text
computeEnvironmentName) (\s :: CreateComputeEnvironment
s@CreateComputeEnvironment' {} Text
a -> CreateComputeEnvironment
s {$sel:computeEnvironmentName:CreateComputeEnvironment' :: Text
computeEnvironmentName = Text
a} :: CreateComputeEnvironment)
createComputeEnvironment_type :: Lens.Lens' CreateComputeEnvironment CEType
createComputeEnvironment_type :: (CEType -> f CEType)
-> CreateComputeEnvironment -> f CreateComputeEnvironment
createComputeEnvironment_type = (CreateComputeEnvironment -> CEType)
-> (CreateComputeEnvironment -> CEType -> CreateComputeEnvironment)
-> Lens
CreateComputeEnvironment CreateComputeEnvironment CEType CEType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironment' {CEType
type' :: CEType
$sel:type':CreateComputeEnvironment' :: CreateComputeEnvironment -> CEType
type'} -> CEType
type') (\s :: CreateComputeEnvironment
s@CreateComputeEnvironment' {} CEType
a -> CreateComputeEnvironment
s {$sel:type':CreateComputeEnvironment' :: CEType
type' = CEType
a} :: CreateComputeEnvironment)
instance Core.AWSRequest CreateComputeEnvironment where
type
AWSResponse CreateComputeEnvironment =
CreateComputeEnvironmentResponse
request :: CreateComputeEnvironment -> Request CreateComputeEnvironment
request = Service
-> CreateComputeEnvironment -> Request CreateComputeEnvironment
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateComputeEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateComputeEnvironment)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateComputeEnvironment))
-> Logger
-> Service
-> Proxy CreateComputeEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateComputeEnvironment)))
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 -> CreateComputeEnvironmentResponse
CreateComputeEnvironmentResponse'
(Maybe Text
-> Maybe Text -> Int -> CreateComputeEnvironmentResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateComputeEnvironmentResponse)
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
"computeEnvironmentName")
Either
String (Maybe Text -> Int -> CreateComputeEnvironmentResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateComputeEnvironmentResponse)
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
"computeEnvironmentArn")
Either String (Int -> CreateComputeEnvironmentResponse)
-> Either String Int
-> Either String CreateComputeEnvironmentResponse
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 CreateComputeEnvironment
instance Prelude.NFData CreateComputeEnvironment
instance Core.ToHeaders CreateComputeEnvironment where
toHeaders :: CreateComputeEnvironment -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateComputeEnvironment -> 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 CreateComputeEnvironment where
toJSON :: CreateComputeEnvironment -> Value
toJSON CreateComputeEnvironment' {Maybe Text
Maybe (HashMap Text Text)
Maybe CEState
Maybe ComputeResource
Text
CEType
type' :: CEType
computeEnvironmentName :: Text
tags :: Maybe (HashMap Text Text)
serviceRole :: Maybe Text
computeResources :: Maybe ComputeResource
state :: Maybe CEState
$sel:type':CreateComputeEnvironment' :: CreateComputeEnvironment -> CEType
$sel:computeEnvironmentName:CreateComputeEnvironment' :: CreateComputeEnvironment -> Text
$sel:tags:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe (HashMap Text Text)
$sel:serviceRole:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe Text
$sel:computeResources:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe ComputeResource
$sel:state:CreateComputeEnvironment' :: CreateComputeEnvironment -> Maybe CEState
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"state" Text -> CEState -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (CEState -> Pair) -> Maybe CEState -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CEState
state,
(Text
"computeResources" Text -> ComputeResource -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ComputeResource -> Pair) -> Maybe ComputeResource -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ComputeResource
computeResources,
(Text
"serviceRole" 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
serviceRole,
(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
"computeEnvironmentName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
computeEnvironmentName
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"type" Text -> CEType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= CEType
type')
]
)
instance Core.ToPath CreateComputeEnvironment where
toPath :: CreateComputeEnvironment -> ByteString
toPath = ByteString -> CreateComputeEnvironment -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v1/createcomputeenvironment"
instance Core.ToQuery CreateComputeEnvironment where
toQuery :: CreateComputeEnvironment -> QueryString
toQuery = QueryString -> CreateComputeEnvironment -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateComputeEnvironmentResponse = CreateComputeEnvironmentResponse'
{
CreateComputeEnvironmentResponse -> Maybe Text
computeEnvironmentName :: Prelude.Maybe Prelude.Text,
CreateComputeEnvironmentResponse -> Maybe Text
computeEnvironmentArn :: Prelude.Maybe Prelude.Text,
CreateComputeEnvironmentResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateComputeEnvironmentResponse
-> CreateComputeEnvironmentResponse -> Bool
(CreateComputeEnvironmentResponse
-> CreateComputeEnvironmentResponse -> Bool)
-> (CreateComputeEnvironmentResponse
-> CreateComputeEnvironmentResponse -> Bool)
-> Eq CreateComputeEnvironmentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateComputeEnvironmentResponse
-> CreateComputeEnvironmentResponse -> Bool
$c/= :: CreateComputeEnvironmentResponse
-> CreateComputeEnvironmentResponse -> Bool
== :: CreateComputeEnvironmentResponse
-> CreateComputeEnvironmentResponse -> Bool
$c== :: CreateComputeEnvironmentResponse
-> CreateComputeEnvironmentResponse -> Bool
Prelude.Eq, ReadPrec [CreateComputeEnvironmentResponse]
ReadPrec CreateComputeEnvironmentResponse
Int -> ReadS CreateComputeEnvironmentResponse
ReadS [CreateComputeEnvironmentResponse]
(Int -> ReadS CreateComputeEnvironmentResponse)
-> ReadS [CreateComputeEnvironmentResponse]
-> ReadPrec CreateComputeEnvironmentResponse
-> ReadPrec [CreateComputeEnvironmentResponse]
-> Read CreateComputeEnvironmentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateComputeEnvironmentResponse]
$creadListPrec :: ReadPrec [CreateComputeEnvironmentResponse]
readPrec :: ReadPrec CreateComputeEnvironmentResponse
$creadPrec :: ReadPrec CreateComputeEnvironmentResponse
readList :: ReadS [CreateComputeEnvironmentResponse]
$creadList :: ReadS [CreateComputeEnvironmentResponse]
readsPrec :: Int -> ReadS CreateComputeEnvironmentResponse
$creadsPrec :: Int -> ReadS CreateComputeEnvironmentResponse
Prelude.Read, Int -> CreateComputeEnvironmentResponse -> ShowS
[CreateComputeEnvironmentResponse] -> ShowS
CreateComputeEnvironmentResponse -> String
(Int -> CreateComputeEnvironmentResponse -> ShowS)
-> (CreateComputeEnvironmentResponse -> String)
-> ([CreateComputeEnvironmentResponse] -> ShowS)
-> Show CreateComputeEnvironmentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateComputeEnvironmentResponse] -> ShowS
$cshowList :: [CreateComputeEnvironmentResponse] -> ShowS
show :: CreateComputeEnvironmentResponse -> String
$cshow :: CreateComputeEnvironmentResponse -> String
showsPrec :: Int -> CreateComputeEnvironmentResponse -> ShowS
$cshowsPrec :: Int -> CreateComputeEnvironmentResponse -> ShowS
Prelude.Show, (forall x.
CreateComputeEnvironmentResponse
-> Rep CreateComputeEnvironmentResponse x)
-> (forall x.
Rep CreateComputeEnvironmentResponse x
-> CreateComputeEnvironmentResponse)
-> Generic CreateComputeEnvironmentResponse
forall x.
Rep CreateComputeEnvironmentResponse x
-> CreateComputeEnvironmentResponse
forall x.
CreateComputeEnvironmentResponse
-> Rep CreateComputeEnvironmentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateComputeEnvironmentResponse x
-> CreateComputeEnvironmentResponse
$cfrom :: forall x.
CreateComputeEnvironmentResponse
-> Rep CreateComputeEnvironmentResponse x
Prelude.Generic)
newCreateComputeEnvironmentResponse ::
Prelude.Int ->
CreateComputeEnvironmentResponse
newCreateComputeEnvironmentResponse :: Int -> CreateComputeEnvironmentResponse
newCreateComputeEnvironmentResponse Int
pHttpStatus_ =
CreateComputeEnvironmentResponse' :: Maybe Text -> Maybe Text -> Int -> CreateComputeEnvironmentResponse
CreateComputeEnvironmentResponse'
{ $sel:computeEnvironmentName:CreateComputeEnvironmentResponse' :: Maybe Text
computeEnvironmentName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:computeEnvironmentArn:CreateComputeEnvironmentResponse' :: Maybe Text
computeEnvironmentArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateComputeEnvironmentResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createComputeEnvironmentResponse_computeEnvironmentName :: Lens.Lens' CreateComputeEnvironmentResponse (Prelude.Maybe Prelude.Text)
createComputeEnvironmentResponse_computeEnvironmentName :: (Maybe Text -> f (Maybe Text))
-> CreateComputeEnvironmentResponse
-> f CreateComputeEnvironmentResponse
createComputeEnvironmentResponse_computeEnvironmentName = (CreateComputeEnvironmentResponse -> Maybe Text)
-> (CreateComputeEnvironmentResponse
-> Maybe Text -> CreateComputeEnvironmentResponse)
-> Lens
CreateComputeEnvironmentResponse
CreateComputeEnvironmentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironmentResponse' {Maybe Text
computeEnvironmentName :: Maybe Text
$sel:computeEnvironmentName:CreateComputeEnvironmentResponse' :: CreateComputeEnvironmentResponse -> Maybe Text
computeEnvironmentName} -> Maybe Text
computeEnvironmentName) (\s :: CreateComputeEnvironmentResponse
s@CreateComputeEnvironmentResponse' {} Maybe Text
a -> CreateComputeEnvironmentResponse
s {$sel:computeEnvironmentName:CreateComputeEnvironmentResponse' :: Maybe Text
computeEnvironmentName = Maybe Text
a} :: CreateComputeEnvironmentResponse)
createComputeEnvironmentResponse_computeEnvironmentArn :: Lens.Lens' CreateComputeEnvironmentResponse (Prelude.Maybe Prelude.Text)
createComputeEnvironmentResponse_computeEnvironmentArn :: (Maybe Text -> f (Maybe Text))
-> CreateComputeEnvironmentResponse
-> f CreateComputeEnvironmentResponse
createComputeEnvironmentResponse_computeEnvironmentArn = (CreateComputeEnvironmentResponse -> Maybe Text)
-> (CreateComputeEnvironmentResponse
-> Maybe Text -> CreateComputeEnvironmentResponse)
-> Lens
CreateComputeEnvironmentResponse
CreateComputeEnvironmentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironmentResponse' {Maybe Text
computeEnvironmentArn :: Maybe Text
$sel:computeEnvironmentArn:CreateComputeEnvironmentResponse' :: CreateComputeEnvironmentResponse -> Maybe Text
computeEnvironmentArn} -> Maybe Text
computeEnvironmentArn) (\s :: CreateComputeEnvironmentResponse
s@CreateComputeEnvironmentResponse' {} Maybe Text
a -> CreateComputeEnvironmentResponse
s {$sel:computeEnvironmentArn:CreateComputeEnvironmentResponse' :: Maybe Text
computeEnvironmentArn = Maybe Text
a} :: CreateComputeEnvironmentResponse)
createComputeEnvironmentResponse_httpStatus :: Lens.Lens' CreateComputeEnvironmentResponse Prelude.Int
createComputeEnvironmentResponse_httpStatus :: (Int -> f Int)
-> CreateComputeEnvironmentResponse
-> f CreateComputeEnvironmentResponse
createComputeEnvironmentResponse_httpStatus = (CreateComputeEnvironmentResponse -> Int)
-> (CreateComputeEnvironmentResponse
-> Int -> CreateComputeEnvironmentResponse)
-> Lens
CreateComputeEnvironmentResponse
CreateComputeEnvironmentResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateComputeEnvironmentResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateComputeEnvironmentResponse' :: CreateComputeEnvironmentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateComputeEnvironmentResponse
s@CreateComputeEnvironmentResponse' {} Int
a -> CreateComputeEnvironmentResponse
s {$sel:httpStatus:CreateComputeEnvironmentResponse' :: Int
httpStatus = Int
a} :: CreateComputeEnvironmentResponse)
instance
Prelude.NFData
CreateComputeEnvironmentResponse