{-# 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.FinSpace.CreateEnvironment
(
CreateEnvironment (..),
newCreateEnvironment,
createEnvironment_federationParameters,
createEnvironment_federationMode,
createEnvironment_kmsKeyId,
createEnvironment_description,
createEnvironment_tags,
createEnvironment_name,
CreateEnvironmentResponse (..),
newCreateEnvironmentResponse,
createEnvironmentResponse_environmentUrl,
createEnvironmentResponse_environmentId,
createEnvironmentResponse_environmentArn,
createEnvironmentResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.FinSpace.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 CreateEnvironment = CreateEnvironment'
{
CreateEnvironment -> Maybe FederationParameters
federationParameters :: Prelude.Maybe FederationParameters,
CreateEnvironment -> Maybe FederationMode
federationMode :: Prelude.Maybe FederationMode,
CreateEnvironment -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateEnvironment -> Text
name :: Prelude.Text
}
deriving (CreateEnvironment -> CreateEnvironment -> Bool
(CreateEnvironment -> CreateEnvironment -> Bool)
-> (CreateEnvironment -> CreateEnvironment -> Bool)
-> Eq CreateEnvironment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEnvironment -> CreateEnvironment -> Bool
$c/= :: CreateEnvironment -> CreateEnvironment -> Bool
== :: CreateEnvironment -> CreateEnvironment -> Bool
$c== :: CreateEnvironment -> CreateEnvironment -> Bool
Prelude.Eq, ReadPrec [CreateEnvironment]
ReadPrec CreateEnvironment
Int -> ReadS CreateEnvironment
ReadS [CreateEnvironment]
(Int -> ReadS CreateEnvironment)
-> ReadS [CreateEnvironment]
-> ReadPrec CreateEnvironment
-> ReadPrec [CreateEnvironment]
-> Read CreateEnvironment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEnvironment]
$creadListPrec :: ReadPrec [CreateEnvironment]
readPrec :: ReadPrec CreateEnvironment
$creadPrec :: ReadPrec CreateEnvironment
readList :: ReadS [CreateEnvironment]
$creadList :: ReadS [CreateEnvironment]
readsPrec :: Int -> ReadS CreateEnvironment
$creadsPrec :: Int -> ReadS CreateEnvironment
Prelude.Read, Int -> CreateEnvironment -> ShowS
[CreateEnvironment] -> ShowS
CreateEnvironment -> String
(Int -> CreateEnvironment -> ShowS)
-> (CreateEnvironment -> String)
-> ([CreateEnvironment] -> ShowS)
-> Show CreateEnvironment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEnvironment] -> ShowS
$cshowList :: [CreateEnvironment] -> ShowS
show :: CreateEnvironment -> String
$cshow :: CreateEnvironment -> String
showsPrec :: Int -> CreateEnvironment -> ShowS
$cshowsPrec :: Int -> CreateEnvironment -> ShowS
Prelude.Show, (forall x. CreateEnvironment -> Rep CreateEnvironment x)
-> (forall x. Rep CreateEnvironment x -> CreateEnvironment)
-> Generic CreateEnvironment
forall x. Rep CreateEnvironment x -> CreateEnvironment
forall x. CreateEnvironment -> Rep CreateEnvironment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateEnvironment x -> CreateEnvironment
$cfrom :: forall x. CreateEnvironment -> Rep CreateEnvironment x
Prelude.Generic)
newCreateEnvironment ::
Prelude.Text ->
CreateEnvironment
newCreateEnvironment :: Text -> CreateEnvironment
newCreateEnvironment Text
pName_ =
CreateEnvironment' :: Maybe FederationParameters
-> Maybe FederationMode
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> CreateEnvironment
CreateEnvironment'
{ $sel:federationParameters:CreateEnvironment' :: Maybe FederationParameters
federationParameters =
Maybe FederationParameters
forall a. Maybe a
Prelude.Nothing,
$sel:federationMode:CreateEnvironment' :: Maybe FederationMode
federationMode = Maybe FederationMode
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:CreateEnvironment' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateEnvironment' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateEnvironment' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateEnvironment' :: Text
name = Text
pName_
}
createEnvironment_federationParameters :: Lens.Lens' CreateEnvironment (Prelude.Maybe FederationParameters)
createEnvironment_federationParameters :: (Maybe FederationParameters -> f (Maybe FederationParameters))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_federationParameters = (CreateEnvironment -> Maybe FederationParameters)
-> (CreateEnvironment
-> Maybe FederationParameters -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe FederationParameters)
(Maybe FederationParameters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe FederationParameters
federationParameters :: Maybe FederationParameters
$sel:federationParameters:CreateEnvironment' :: CreateEnvironment -> Maybe FederationParameters
federationParameters} -> Maybe FederationParameters
federationParameters) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe FederationParameters
a -> CreateEnvironment
s {$sel:federationParameters:CreateEnvironment' :: Maybe FederationParameters
federationParameters = Maybe FederationParameters
a} :: CreateEnvironment)
createEnvironment_federationMode :: Lens.Lens' CreateEnvironment (Prelude.Maybe FederationMode)
createEnvironment_federationMode :: (Maybe FederationMode -> f (Maybe FederationMode))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_federationMode = (CreateEnvironment -> Maybe FederationMode)
-> (CreateEnvironment -> Maybe FederationMode -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe FederationMode)
(Maybe FederationMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe FederationMode
federationMode :: Maybe FederationMode
$sel:federationMode:CreateEnvironment' :: CreateEnvironment -> Maybe FederationMode
federationMode} -> Maybe FederationMode
federationMode) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe FederationMode
a -> CreateEnvironment
s {$sel:federationMode:CreateEnvironment' :: Maybe FederationMode
federationMode = Maybe FederationMode
a} :: CreateEnvironment)
createEnvironment_kmsKeyId :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_kmsKeyId = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:CreateEnvironment' :: CreateEnvironment -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:kmsKeyId:CreateEnvironment' :: Maybe Text
kmsKeyId = Maybe Text
a} :: CreateEnvironment)
createEnvironment_description :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_description :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_description = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
description :: Maybe Text
$sel:description:CreateEnvironment' :: CreateEnvironment -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:description:CreateEnvironment' :: Maybe Text
description = Maybe Text
a} :: CreateEnvironment)
createEnvironment_tags :: Lens.Lens' CreateEnvironment (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createEnvironment_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_tags = (CreateEnvironment -> Maybe (HashMap Text Text))
-> (CreateEnvironment
-> Maybe (HashMap Text Text) -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(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 (\CreateEnvironment' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateEnvironment' :: CreateEnvironment -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe (HashMap Text Text)
a -> CreateEnvironment
s {$sel:tags:CreateEnvironment' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateEnvironment) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateEnvironment -> f CreateEnvironment)
-> ((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)))
-> CreateEnvironment
-> f CreateEnvironment
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
createEnvironment_name :: Lens.Lens' CreateEnvironment Prelude.Text
createEnvironment_name :: (Text -> f Text) -> CreateEnvironment -> f CreateEnvironment
createEnvironment_name = (CreateEnvironment -> Text)
-> (CreateEnvironment -> Text -> CreateEnvironment)
-> Lens CreateEnvironment CreateEnvironment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Text
name :: Text
$sel:name:CreateEnvironment' :: CreateEnvironment -> Text
name} -> Text
name) (\s :: CreateEnvironment
s@CreateEnvironment' {} Text
a -> CreateEnvironment
s {$sel:name:CreateEnvironment' :: Text
name = Text
a} :: CreateEnvironment)
instance Core.AWSRequest CreateEnvironment where
type
AWSResponse CreateEnvironment =
CreateEnvironmentResponse
request :: CreateEnvironment -> Request CreateEnvironment
request = Service -> CreateEnvironment -> Request CreateEnvironment
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEnvironment)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateEnvironment))
-> Logger
-> Service
-> Proxy CreateEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEnvironment)))
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 -> Maybe Text -> Int -> CreateEnvironmentResponse
CreateEnvironmentResponse'
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CreateEnvironmentResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> CreateEnvironmentResponse)
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
"environmentUrl")
Either
String
(Maybe Text -> Maybe Text -> Int -> CreateEnvironmentResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> CreateEnvironmentResponse)
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
"environmentId")
Either String (Maybe Text -> Int -> CreateEnvironmentResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateEnvironmentResponse)
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
"environmentArn")
Either String (Int -> CreateEnvironmentResponse)
-> Either String Int -> Either String CreateEnvironmentResponse
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 CreateEnvironment
instance Prelude.NFData CreateEnvironment
instance Core.ToHeaders CreateEnvironment where
toHeaders :: CreateEnvironment -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateEnvironment -> 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 CreateEnvironment where
toJSON :: CreateEnvironment -> Value
toJSON CreateEnvironment' {Maybe Text
Maybe (HashMap Text Text)
Maybe FederationMode
Maybe FederationParameters
Text
name :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
kmsKeyId :: Maybe Text
federationMode :: Maybe FederationMode
federationParameters :: Maybe FederationParameters
$sel:name:CreateEnvironment' :: CreateEnvironment -> Text
$sel:tags:CreateEnvironment' :: CreateEnvironment -> Maybe (HashMap Text Text)
$sel:description:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:kmsKeyId:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:federationMode:CreateEnvironment' :: CreateEnvironment -> Maybe FederationMode
$sel:federationParameters:CreateEnvironment' :: CreateEnvironment -> Maybe FederationParameters
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"federationParameters" Text -> FederationParameters -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(FederationParameters -> Pair)
-> Maybe FederationParameters -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FederationParameters
federationParameters,
(Text
"federationMode" Text -> FederationMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(FederationMode -> Pair) -> Maybe FederationMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FederationMode
federationMode,
(Text
"kmsKeyId" 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
kmsKeyId,
(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
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
]
)
instance Core.ToPath CreateEnvironment where
toPath :: CreateEnvironment -> ByteString
toPath = ByteString -> CreateEnvironment -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/environment"
instance Core.ToQuery CreateEnvironment where
toQuery :: CreateEnvironment -> QueryString
toQuery = QueryString -> CreateEnvironment -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateEnvironmentResponse = CreateEnvironmentResponse'
{
CreateEnvironmentResponse -> Maybe Text
environmentUrl :: Prelude.Maybe Prelude.Text,
CreateEnvironmentResponse -> Maybe Text
environmentId :: Prelude.Maybe Prelude.Text,
CreateEnvironmentResponse -> Maybe Text
environmentArn :: Prelude.Maybe Prelude.Text,
CreateEnvironmentResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateEnvironmentResponse -> CreateEnvironmentResponse -> Bool
(CreateEnvironmentResponse -> CreateEnvironmentResponse -> Bool)
-> (CreateEnvironmentResponse -> CreateEnvironmentResponse -> Bool)
-> Eq CreateEnvironmentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEnvironmentResponse -> CreateEnvironmentResponse -> Bool
$c/= :: CreateEnvironmentResponse -> CreateEnvironmentResponse -> Bool
== :: CreateEnvironmentResponse -> CreateEnvironmentResponse -> Bool
$c== :: CreateEnvironmentResponse -> CreateEnvironmentResponse -> Bool
Prelude.Eq, ReadPrec [CreateEnvironmentResponse]
ReadPrec CreateEnvironmentResponse
Int -> ReadS CreateEnvironmentResponse
ReadS [CreateEnvironmentResponse]
(Int -> ReadS CreateEnvironmentResponse)
-> ReadS [CreateEnvironmentResponse]
-> ReadPrec CreateEnvironmentResponse
-> ReadPrec [CreateEnvironmentResponse]
-> Read CreateEnvironmentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEnvironmentResponse]
$creadListPrec :: ReadPrec [CreateEnvironmentResponse]
readPrec :: ReadPrec CreateEnvironmentResponse
$creadPrec :: ReadPrec CreateEnvironmentResponse
readList :: ReadS [CreateEnvironmentResponse]
$creadList :: ReadS [CreateEnvironmentResponse]
readsPrec :: Int -> ReadS CreateEnvironmentResponse
$creadsPrec :: Int -> ReadS CreateEnvironmentResponse
Prelude.Read, Int -> CreateEnvironmentResponse -> ShowS
[CreateEnvironmentResponse] -> ShowS
CreateEnvironmentResponse -> String
(Int -> CreateEnvironmentResponse -> ShowS)
-> (CreateEnvironmentResponse -> String)
-> ([CreateEnvironmentResponse] -> ShowS)
-> Show CreateEnvironmentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEnvironmentResponse] -> ShowS
$cshowList :: [CreateEnvironmentResponse] -> ShowS
show :: CreateEnvironmentResponse -> String
$cshow :: CreateEnvironmentResponse -> String
showsPrec :: Int -> CreateEnvironmentResponse -> ShowS
$cshowsPrec :: Int -> CreateEnvironmentResponse -> ShowS
Prelude.Show, (forall x.
CreateEnvironmentResponse -> Rep CreateEnvironmentResponse x)
-> (forall x.
Rep CreateEnvironmentResponse x -> CreateEnvironmentResponse)
-> Generic CreateEnvironmentResponse
forall x.
Rep CreateEnvironmentResponse x -> CreateEnvironmentResponse
forall x.
CreateEnvironmentResponse -> Rep CreateEnvironmentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateEnvironmentResponse x -> CreateEnvironmentResponse
$cfrom :: forall x.
CreateEnvironmentResponse -> Rep CreateEnvironmentResponse x
Prelude.Generic)
newCreateEnvironmentResponse ::
Prelude.Int ->
CreateEnvironmentResponse
newCreateEnvironmentResponse :: Int -> CreateEnvironmentResponse
newCreateEnvironmentResponse Int
pHttpStatus_ =
CreateEnvironmentResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CreateEnvironmentResponse
CreateEnvironmentResponse'
{ $sel:environmentUrl:CreateEnvironmentResponse' :: Maybe Text
environmentUrl =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:environmentId:CreateEnvironmentResponse' :: Maybe Text
environmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:environmentArn:CreateEnvironmentResponse' :: Maybe Text
environmentArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateEnvironmentResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createEnvironmentResponse_environmentUrl :: Lens.Lens' CreateEnvironmentResponse (Prelude.Maybe Prelude.Text)
createEnvironmentResponse_environmentUrl :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironmentResponse -> f CreateEnvironmentResponse
createEnvironmentResponse_environmentUrl = (CreateEnvironmentResponse -> Maybe Text)
-> (CreateEnvironmentResponse
-> Maybe Text -> CreateEnvironmentResponse)
-> Lens
CreateEnvironmentResponse
CreateEnvironmentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironmentResponse' {Maybe Text
environmentUrl :: Maybe Text
$sel:environmentUrl:CreateEnvironmentResponse' :: CreateEnvironmentResponse -> Maybe Text
environmentUrl} -> Maybe Text
environmentUrl) (\s :: CreateEnvironmentResponse
s@CreateEnvironmentResponse' {} Maybe Text
a -> CreateEnvironmentResponse
s {$sel:environmentUrl:CreateEnvironmentResponse' :: Maybe Text
environmentUrl = Maybe Text
a} :: CreateEnvironmentResponse)
createEnvironmentResponse_environmentId :: Lens.Lens' CreateEnvironmentResponse (Prelude.Maybe Prelude.Text)
createEnvironmentResponse_environmentId :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironmentResponse -> f CreateEnvironmentResponse
createEnvironmentResponse_environmentId = (CreateEnvironmentResponse -> Maybe Text)
-> (CreateEnvironmentResponse
-> Maybe Text -> CreateEnvironmentResponse)
-> Lens
CreateEnvironmentResponse
CreateEnvironmentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironmentResponse' {Maybe Text
environmentId :: Maybe Text
$sel:environmentId:CreateEnvironmentResponse' :: CreateEnvironmentResponse -> Maybe Text
environmentId} -> Maybe Text
environmentId) (\s :: CreateEnvironmentResponse
s@CreateEnvironmentResponse' {} Maybe Text
a -> CreateEnvironmentResponse
s {$sel:environmentId:CreateEnvironmentResponse' :: Maybe Text
environmentId = Maybe Text
a} :: CreateEnvironmentResponse)
createEnvironmentResponse_environmentArn :: Lens.Lens' CreateEnvironmentResponse (Prelude.Maybe Prelude.Text)
createEnvironmentResponse_environmentArn :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironmentResponse -> f CreateEnvironmentResponse
createEnvironmentResponse_environmentArn = (CreateEnvironmentResponse -> Maybe Text)
-> (CreateEnvironmentResponse
-> Maybe Text -> CreateEnvironmentResponse)
-> Lens
CreateEnvironmentResponse
CreateEnvironmentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironmentResponse' {Maybe Text
environmentArn :: Maybe Text
$sel:environmentArn:CreateEnvironmentResponse' :: CreateEnvironmentResponse -> Maybe Text
environmentArn} -> Maybe Text
environmentArn) (\s :: CreateEnvironmentResponse
s@CreateEnvironmentResponse' {} Maybe Text
a -> CreateEnvironmentResponse
s {$sel:environmentArn:CreateEnvironmentResponse' :: Maybe Text
environmentArn = Maybe Text
a} :: CreateEnvironmentResponse)
createEnvironmentResponse_httpStatus :: Lens.Lens' CreateEnvironmentResponse Prelude.Int
createEnvironmentResponse_httpStatus :: (Int -> f Int)
-> CreateEnvironmentResponse -> f CreateEnvironmentResponse
createEnvironmentResponse_httpStatus = (CreateEnvironmentResponse -> Int)
-> (CreateEnvironmentResponse -> Int -> CreateEnvironmentResponse)
-> Lens CreateEnvironmentResponse CreateEnvironmentResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironmentResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateEnvironmentResponse' :: CreateEnvironmentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateEnvironmentResponse
s@CreateEnvironmentResponse' {} Int
a -> CreateEnvironmentResponse
s {$sel:httpStatus:CreateEnvironmentResponse' :: Int
httpStatus = Int
a} :: CreateEnvironmentResponse)
instance Prelude.NFData CreateEnvironmentResponse