{-# 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.MwAA.CreateEnvironment
(
CreateEnvironment (..),
newCreateEnvironment,
createEnvironment_schedulers,
createEnvironment_minWorkers,
createEnvironment_pluginsS3Path,
createEnvironment_webserverAccessMode,
createEnvironment_airflowVersion,
createEnvironment_kmsKey,
createEnvironment_weeklyMaintenanceWindowStart,
createEnvironment_requirementsS3ObjectVersion,
createEnvironment_pluginsS3ObjectVersion,
createEnvironment_airflowConfigurationOptions,
createEnvironment_loggingConfiguration,
createEnvironment_environmentClass,
createEnvironment_tags,
createEnvironment_requirementsS3Path,
createEnvironment_maxWorkers,
createEnvironment_dagS3Path,
createEnvironment_executionRoleArn,
createEnvironment_name,
createEnvironment_networkConfiguration,
createEnvironment_sourceBucketArn,
CreateEnvironmentResponse (..),
newCreateEnvironmentResponse,
createEnvironmentResponse_arn,
createEnvironmentResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MwAA.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateEnvironment = CreateEnvironment'
{
CreateEnvironment -> Maybe Int
schedulers :: Prelude.Maybe Prelude.Int,
CreateEnvironment -> Maybe Natural
minWorkers :: Prelude.Maybe Prelude.Natural,
CreateEnvironment -> Maybe Text
pluginsS3Path :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe WebserverAccessMode
webserverAccessMode :: Prelude.Maybe WebserverAccessMode,
CreateEnvironment -> Maybe Text
airflowVersion :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
weeklyMaintenanceWindowStart :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
requirementsS3ObjectVersion :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
pluginsS3ObjectVersion :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
CreateEnvironment -> Maybe LoggingConfigurationInput
loggingConfiguration :: Prelude.Maybe LoggingConfigurationInput,
CreateEnvironment -> Maybe Text
environmentClass :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateEnvironment -> Maybe Text
requirementsS3Path :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Natural
maxWorkers :: Prelude.Maybe Prelude.Natural,
CreateEnvironment -> Text
dagS3Path :: Prelude.Text,
CreateEnvironment -> Text
executionRoleArn :: Prelude.Text,
CreateEnvironment -> Text
name :: Prelude.Text,
CreateEnvironment -> NetworkConfiguration
networkConfiguration :: NetworkConfiguration,
CreateEnvironment -> Text
sourceBucketArn :: 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, 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 ->
Prelude.Text ->
Prelude.Text ->
NetworkConfiguration ->
Prelude.Text ->
CreateEnvironment
newCreateEnvironment :: Text
-> Text
-> Text
-> NetworkConfiguration
-> Text
-> CreateEnvironment
newCreateEnvironment
Text
pDagS3Path_
Text
pExecutionRoleArn_
Text
pName_
NetworkConfiguration
pNetworkConfiguration_
Text
pSourceBucketArn_ =
CreateEnvironment' :: Maybe Int
-> Maybe Natural
-> Maybe Text
-> Maybe WebserverAccessMode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe LoggingConfigurationInput
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe Natural
-> Text
-> Text
-> Text
-> NetworkConfiguration
-> Text
-> CreateEnvironment
CreateEnvironment'
{ $sel:schedulers:CreateEnvironment' :: Maybe Int
schedulers = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:minWorkers:CreateEnvironment' :: Maybe Natural
minWorkers = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:pluginsS3Path:CreateEnvironment' :: Maybe Text
pluginsS3Path = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:webserverAccessMode:CreateEnvironment' :: Maybe WebserverAccessMode
webserverAccessMode = Maybe WebserverAccessMode
forall a. Maybe a
Prelude.Nothing,
$sel:airflowVersion:CreateEnvironment' :: Maybe Text
airflowVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:CreateEnvironment' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:weeklyMaintenanceWindowStart:CreateEnvironment' :: Maybe Text
weeklyMaintenanceWindowStart = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:requirementsS3ObjectVersion:CreateEnvironment' :: Maybe Text
requirementsS3ObjectVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pluginsS3ObjectVersion:CreateEnvironment' :: Maybe Text
pluginsS3ObjectVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:airflowConfigurationOptions:CreateEnvironment' :: Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
$sel:loggingConfiguration:CreateEnvironment' :: Maybe LoggingConfigurationInput
loggingConfiguration = Maybe LoggingConfigurationInput
forall a. Maybe a
Prelude.Nothing,
$sel:environmentClass:CreateEnvironment' :: Maybe Text
environmentClass = 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:requirementsS3Path:CreateEnvironment' :: Maybe Text
requirementsS3Path = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxWorkers:CreateEnvironment' :: Maybe Natural
maxWorkers = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dagS3Path:CreateEnvironment' :: Text
dagS3Path = Text
pDagS3Path_,
$sel:executionRoleArn:CreateEnvironment' :: Text
executionRoleArn = Text
pExecutionRoleArn_,
$sel:name:CreateEnvironment' :: Text
name = Text
pName_,
$sel:networkConfiguration:CreateEnvironment' :: NetworkConfiguration
networkConfiguration = NetworkConfiguration
pNetworkConfiguration_,
$sel:sourceBucketArn:CreateEnvironment' :: Text
sourceBucketArn = Text
pSourceBucketArn_
}
createEnvironment_schedulers :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Int)
createEnvironment_schedulers :: (Maybe Int -> f (Maybe Int))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_schedulers = (CreateEnvironment -> Maybe Int)
-> (CreateEnvironment -> Maybe Int -> CreateEnvironment)
-> Lens CreateEnvironment CreateEnvironment (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Int
schedulers :: Maybe Int
$sel:schedulers:CreateEnvironment' :: CreateEnvironment -> Maybe Int
schedulers} -> Maybe Int
schedulers) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Int
a -> CreateEnvironment
s {$sel:schedulers:CreateEnvironment' :: Maybe Int
schedulers = Maybe Int
a} :: CreateEnvironment)
createEnvironment_minWorkers :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Natural)
createEnvironment_minWorkers :: (Maybe Natural -> f (Maybe Natural))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_minWorkers = (CreateEnvironment -> Maybe Natural)
-> (CreateEnvironment -> Maybe Natural -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Natural
minWorkers :: Maybe Natural
$sel:minWorkers:CreateEnvironment' :: CreateEnvironment -> Maybe Natural
minWorkers} -> Maybe Natural
minWorkers) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Natural
a -> CreateEnvironment
s {$sel:minWorkers:CreateEnvironment' :: Maybe Natural
minWorkers = Maybe Natural
a} :: CreateEnvironment)
createEnvironment_pluginsS3Path :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_pluginsS3Path :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_pluginsS3Path = (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
pluginsS3Path :: Maybe Text
$sel:pluginsS3Path:CreateEnvironment' :: CreateEnvironment -> Maybe Text
pluginsS3Path} -> Maybe Text
pluginsS3Path) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:pluginsS3Path:CreateEnvironment' :: Maybe Text
pluginsS3Path = Maybe Text
a} :: CreateEnvironment)
createEnvironment_webserverAccessMode :: Lens.Lens' CreateEnvironment (Prelude.Maybe WebserverAccessMode)
createEnvironment_webserverAccessMode :: (Maybe WebserverAccessMode -> f (Maybe WebserverAccessMode))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_webserverAccessMode = (CreateEnvironment -> Maybe WebserverAccessMode)
-> (CreateEnvironment
-> Maybe WebserverAccessMode -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe WebserverAccessMode)
(Maybe WebserverAccessMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe WebserverAccessMode
webserverAccessMode :: Maybe WebserverAccessMode
$sel:webserverAccessMode:CreateEnvironment' :: CreateEnvironment -> Maybe WebserverAccessMode
webserverAccessMode} -> Maybe WebserverAccessMode
webserverAccessMode) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe WebserverAccessMode
a -> CreateEnvironment
s {$sel:webserverAccessMode:CreateEnvironment' :: Maybe WebserverAccessMode
webserverAccessMode = Maybe WebserverAccessMode
a} :: CreateEnvironment)
createEnvironment_airflowVersion :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_airflowVersion :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_airflowVersion = (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
airflowVersion :: Maybe Text
$sel:airflowVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
airflowVersion} -> Maybe Text
airflowVersion) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:airflowVersion:CreateEnvironment' :: Maybe Text
airflowVersion = Maybe Text
a} :: CreateEnvironment)
createEnvironment_kmsKey :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_kmsKey :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_kmsKey = (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
kmsKey :: Maybe Text
$sel:kmsKey:CreateEnvironment' :: CreateEnvironment -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:kmsKey:CreateEnvironment' :: Maybe Text
kmsKey = Maybe Text
a} :: CreateEnvironment)
createEnvironment_weeklyMaintenanceWindowStart :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_weeklyMaintenanceWindowStart :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_weeklyMaintenanceWindowStart = (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
weeklyMaintenanceWindowStart :: Maybe Text
$sel:weeklyMaintenanceWindowStart:CreateEnvironment' :: CreateEnvironment -> Maybe Text
weeklyMaintenanceWindowStart} -> Maybe Text
weeklyMaintenanceWindowStart) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:weeklyMaintenanceWindowStart:CreateEnvironment' :: Maybe Text
weeklyMaintenanceWindowStart = Maybe Text
a} :: CreateEnvironment)
createEnvironment_requirementsS3ObjectVersion :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_requirementsS3ObjectVersion :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_requirementsS3ObjectVersion = (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
requirementsS3ObjectVersion :: Maybe Text
$sel:requirementsS3ObjectVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
requirementsS3ObjectVersion} -> Maybe Text
requirementsS3ObjectVersion) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:requirementsS3ObjectVersion:CreateEnvironment' :: Maybe Text
requirementsS3ObjectVersion = Maybe Text
a} :: CreateEnvironment)
createEnvironment_pluginsS3ObjectVersion :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_pluginsS3ObjectVersion :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_pluginsS3ObjectVersion = (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
pluginsS3ObjectVersion :: Maybe Text
$sel:pluginsS3ObjectVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
pluginsS3ObjectVersion} -> Maybe Text
pluginsS3ObjectVersion) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:pluginsS3ObjectVersion:CreateEnvironment' :: Maybe Text
pluginsS3ObjectVersion = Maybe Text
a} :: CreateEnvironment)
createEnvironment_airflowConfigurationOptions :: Lens.Lens' CreateEnvironment (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createEnvironment_airflowConfigurationOptions :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_airflowConfigurationOptions = (CreateEnvironment -> Maybe (Sensitive (HashMap Text Text)))
-> (CreateEnvironment
-> Maybe (Sensitive (HashMap Text Text)) -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (HashMap Text Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions :: Maybe (Sensitive (HashMap Text Text))
$sel:airflowConfigurationOptions:CreateEnvironment' :: CreateEnvironment -> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions} -> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe (Sensitive (HashMap Text Text))
a -> CreateEnvironment
s {$sel:airflowConfigurationOptions:CreateEnvironment' :: Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions = Maybe (Sensitive (HashMap Text Text))
a} :: CreateEnvironment) ((Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> CreateEnvironment -> f CreateEnvironment)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (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
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (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
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> (Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text)))
-> AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
createEnvironment_loggingConfiguration :: Lens.Lens' CreateEnvironment (Prelude.Maybe LoggingConfigurationInput)
createEnvironment_loggingConfiguration :: (Maybe LoggingConfigurationInput
-> f (Maybe LoggingConfigurationInput))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_loggingConfiguration = (CreateEnvironment -> Maybe LoggingConfigurationInput)
-> (CreateEnvironment
-> Maybe LoggingConfigurationInput -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe LoggingConfigurationInput)
(Maybe LoggingConfigurationInput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe LoggingConfigurationInput
loggingConfiguration :: Maybe LoggingConfigurationInput
$sel:loggingConfiguration:CreateEnvironment' :: CreateEnvironment -> Maybe LoggingConfigurationInput
loggingConfiguration} -> Maybe LoggingConfigurationInput
loggingConfiguration) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe LoggingConfigurationInput
a -> CreateEnvironment
s {$sel:loggingConfiguration:CreateEnvironment' :: Maybe LoggingConfigurationInput
loggingConfiguration = Maybe LoggingConfigurationInput
a} :: CreateEnvironment)
createEnvironment_environmentClass :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_environmentClass :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_environmentClass = (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
environmentClass :: Maybe Text
$sel:environmentClass:CreateEnvironment' :: CreateEnvironment -> Maybe Text
environmentClass} -> Maybe Text
environmentClass) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:environmentClass:CreateEnvironment' :: Maybe Text
environmentClass = 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.. (Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (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 Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createEnvironment_requirementsS3Path :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_requirementsS3Path :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_requirementsS3Path = (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
requirementsS3Path :: Maybe Text
$sel:requirementsS3Path:CreateEnvironment' :: CreateEnvironment -> Maybe Text
requirementsS3Path} -> Maybe Text
requirementsS3Path) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:requirementsS3Path:CreateEnvironment' :: Maybe Text
requirementsS3Path = Maybe Text
a} :: CreateEnvironment)
createEnvironment_maxWorkers :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Natural)
createEnvironment_maxWorkers :: (Maybe Natural -> f (Maybe Natural))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_maxWorkers = (CreateEnvironment -> Maybe Natural)
-> (CreateEnvironment -> Maybe Natural -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Natural
maxWorkers :: Maybe Natural
$sel:maxWorkers:CreateEnvironment' :: CreateEnvironment -> Maybe Natural
maxWorkers} -> Maybe Natural
maxWorkers) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Natural
a -> CreateEnvironment
s {$sel:maxWorkers:CreateEnvironment' :: Maybe Natural
maxWorkers = Maybe Natural
a} :: CreateEnvironment)
createEnvironment_dagS3Path :: Lens.Lens' CreateEnvironment Prelude.Text
createEnvironment_dagS3Path :: (Text -> f Text) -> CreateEnvironment -> f CreateEnvironment
createEnvironment_dagS3Path = (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
dagS3Path :: Text
$sel:dagS3Path:CreateEnvironment' :: CreateEnvironment -> Text
dagS3Path} -> Text
dagS3Path) (\s :: CreateEnvironment
s@CreateEnvironment' {} Text
a -> CreateEnvironment
s {$sel:dagS3Path:CreateEnvironment' :: Text
dagS3Path = Text
a} :: CreateEnvironment)
createEnvironment_executionRoleArn :: Lens.Lens' CreateEnvironment Prelude.Text
createEnvironment_executionRoleArn :: (Text -> f Text) -> CreateEnvironment -> f CreateEnvironment
createEnvironment_executionRoleArn = (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
executionRoleArn :: Text
$sel:executionRoleArn:CreateEnvironment' :: CreateEnvironment -> Text
executionRoleArn} -> Text
executionRoleArn) (\s :: CreateEnvironment
s@CreateEnvironment' {} Text
a -> CreateEnvironment
s {$sel:executionRoleArn:CreateEnvironment' :: Text
executionRoleArn = Text
a} :: CreateEnvironment)
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)
createEnvironment_networkConfiguration :: Lens.Lens' CreateEnvironment NetworkConfiguration
createEnvironment_networkConfiguration :: (NetworkConfiguration -> f NetworkConfiguration)
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_networkConfiguration = (CreateEnvironment -> NetworkConfiguration)
-> (CreateEnvironment -> NetworkConfiguration -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
NetworkConfiguration
NetworkConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {NetworkConfiguration
networkConfiguration :: NetworkConfiguration
$sel:networkConfiguration:CreateEnvironment' :: CreateEnvironment -> NetworkConfiguration
networkConfiguration} -> NetworkConfiguration
networkConfiguration) (\s :: CreateEnvironment
s@CreateEnvironment' {} NetworkConfiguration
a -> CreateEnvironment
s {$sel:networkConfiguration:CreateEnvironment' :: NetworkConfiguration
networkConfiguration = NetworkConfiguration
a} :: CreateEnvironment)
createEnvironment_sourceBucketArn :: Lens.Lens' CreateEnvironment Prelude.Text
createEnvironment_sourceBucketArn :: (Text -> f Text) -> CreateEnvironment -> f CreateEnvironment
createEnvironment_sourceBucketArn = (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
sourceBucketArn :: Text
$sel:sourceBucketArn:CreateEnvironment' :: CreateEnvironment -> Text
sourceBucketArn} -> Text
sourceBucketArn) (\s :: CreateEnvironment
s@CreateEnvironment' {} Text
a -> CreateEnvironment
s {$sel:sourceBucketArn:CreateEnvironment' :: Text
sourceBucketArn = 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.putJSON 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 -> Int -> CreateEnvironmentResponse
CreateEnvironmentResponse'
(Maybe Text -> Int -> CreateEnvironmentResponse)
-> Either String (Maybe Text)
-> Either String (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
"Arn")
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 Int
Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive (HashMap Text Text))
Maybe LoggingConfigurationInput
Maybe WebserverAccessMode
Text
NetworkConfiguration
sourceBucketArn :: Text
networkConfiguration :: NetworkConfiguration
name :: Text
executionRoleArn :: Text
dagS3Path :: Text
maxWorkers :: Maybe Natural
requirementsS3Path :: Maybe Text
tags :: Maybe (HashMap Text Text)
environmentClass :: Maybe Text
loggingConfiguration :: Maybe LoggingConfigurationInput
airflowConfigurationOptions :: Maybe (Sensitive (HashMap Text Text))
pluginsS3ObjectVersion :: Maybe Text
requirementsS3ObjectVersion :: Maybe Text
weeklyMaintenanceWindowStart :: Maybe Text
kmsKey :: Maybe Text
airflowVersion :: Maybe Text
webserverAccessMode :: Maybe WebserverAccessMode
pluginsS3Path :: Maybe Text
minWorkers :: Maybe Natural
schedulers :: Maybe Int
$sel:sourceBucketArn:CreateEnvironment' :: CreateEnvironment -> Text
$sel:networkConfiguration:CreateEnvironment' :: CreateEnvironment -> NetworkConfiguration
$sel:name:CreateEnvironment' :: CreateEnvironment -> Text
$sel:executionRoleArn:CreateEnvironment' :: CreateEnvironment -> Text
$sel:dagS3Path:CreateEnvironment' :: CreateEnvironment -> Text
$sel:maxWorkers:CreateEnvironment' :: CreateEnvironment -> Maybe Natural
$sel:requirementsS3Path:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:tags:CreateEnvironment' :: CreateEnvironment -> Maybe (HashMap Text Text)
$sel:environmentClass:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:loggingConfiguration:CreateEnvironment' :: CreateEnvironment -> Maybe LoggingConfigurationInput
$sel:airflowConfigurationOptions:CreateEnvironment' :: CreateEnvironment -> Maybe (Sensitive (HashMap Text Text))
$sel:pluginsS3ObjectVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:requirementsS3ObjectVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:weeklyMaintenanceWindowStart:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:kmsKey:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:airflowVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:webserverAccessMode:CreateEnvironment' :: CreateEnvironment -> Maybe WebserverAccessMode
$sel:pluginsS3Path:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:minWorkers:CreateEnvironment' :: CreateEnvironment -> Maybe Natural
$sel:schedulers:CreateEnvironment' :: CreateEnvironment -> Maybe Int
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Schedulers" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
schedulers,
(Text
"MinWorkers" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
minWorkers,
(Text
"PluginsS3Path" 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
pluginsS3Path,
(Text
"WebserverAccessMode" Text -> WebserverAccessMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(WebserverAccessMode -> Pair)
-> Maybe WebserverAccessMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe WebserverAccessMode
webserverAccessMode,
(Text
"AirflowVersion" 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
airflowVersion,
(Text
"KmsKey" 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
kmsKey,
(Text
"WeeklyMaintenanceWindowStart" 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
weeklyMaintenanceWindowStart,
(Text
"RequirementsS3ObjectVersion" 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
requirementsS3ObjectVersion,
(Text
"PluginsS3ObjectVersion" 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
pluginsS3ObjectVersion,
(Text
"AirflowConfigurationOptions" Text -> Sensitive (HashMap Text Text) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Sensitive (HashMap Text Text) -> Pair)
-> Maybe (Sensitive (HashMap Text Text)) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions,
(Text
"LoggingConfiguration" Text -> LoggingConfigurationInput -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(LoggingConfigurationInput -> Pair)
-> Maybe LoggingConfigurationInput -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoggingConfigurationInput
loggingConfiguration,
(Text
"EnvironmentClass" 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
environmentClass,
(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,
(Text
"RequirementsS3Path" 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
requirementsS3Path,
(Text
"MaxWorkers" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxWorkers,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DagS3Path" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
dagS3Path),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ExecutionRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
executionRoleArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"NetworkConfiguration"
Text -> NetworkConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NetworkConfiguration
networkConfiguration
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"SourceBucketArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
sourceBucketArn)
]
)
instance Core.ToPath CreateEnvironment where
toPath :: CreateEnvironment -> ByteString
toPath CreateEnvironment' {Maybe Int
Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive (HashMap Text Text))
Maybe LoggingConfigurationInput
Maybe WebserverAccessMode
Text
NetworkConfiguration
sourceBucketArn :: Text
networkConfiguration :: NetworkConfiguration
name :: Text
executionRoleArn :: Text
dagS3Path :: Text
maxWorkers :: Maybe Natural
requirementsS3Path :: Maybe Text
tags :: Maybe (HashMap Text Text)
environmentClass :: Maybe Text
loggingConfiguration :: Maybe LoggingConfigurationInput
airflowConfigurationOptions :: Maybe (Sensitive (HashMap Text Text))
pluginsS3ObjectVersion :: Maybe Text
requirementsS3ObjectVersion :: Maybe Text
weeklyMaintenanceWindowStart :: Maybe Text
kmsKey :: Maybe Text
airflowVersion :: Maybe Text
webserverAccessMode :: Maybe WebserverAccessMode
pluginsS3Path :: Maybe Text
minWorkers :: Maybe Natural
schedulers :: Maybe Int
$sel:sourceBucketArn:CreateEnvironment' :: CreateEnvironment -> Text
$sel:networkConfiguration:CreateEnvironment' :: CreateEnvironment -> NetworkConfiguration
$sel:name:CreateEnvironment' :: CreateEnvironment -> Text
$sel:executionRoleArn:CreateEnvironment' :: CreateEnvironment -> Text
$sel:dagS3Path:CreateEnvironment' :: CreateEnvironment -> Text
$sel:maxWorkers:CreateEnvironment' :: CreateEnvironment -> Maybe Natural
$sel:requirementsS3Path:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:tags:CreateEnvironment' :: CreateEnvironment -> Maybe (HashMap Text Text)
$sel:environmentClass:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:loggingConfiguration:CreateEnvironment' :: CreateEnvironment -> Maybe LoggingConfigurationInput
$sel:airflowConfigurationOptions:CreateEnvironment' :: CreateEnvironment -> Maybe (Sensitive (HashMap Text Text))
$sel:pluginsS3ObjectVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:requirementsS3ObjectVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:weeklyMaintenanceWindowStart:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:kmsKey:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:airflowVersion:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:webserverAccessMode:CreateEnvironment' :: CreateEnvironment -> Maybe WebserverAccessMode
$sel:pluginsS3Path:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:minWorkers:CreateEnvironment' :: CreateEnvironment -> Maybe Natural
$sel:schedulers:CreateEnvironment' :: CreateEnvironment -> Maybe Int
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/environments/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name]
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
arn :: 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 -> Int -> CreateEnvironmentResponse
CreateEnvironmentResponse'
{ $sel:arn:CreateEnvironmentResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateEnvironmentResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createEnvironmentResponse_arn :: Lens.Lens' CreateEnvironmentResponse (Prelude.Maybe Prelude.Text)
createEnvironmentResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironmentResponse -> f CreateEnvironmentResponse
createEnvironmentResponse_arn = (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
arn :: Maybe Text
$sel:arn:CreateEnvironmentResponse' :: CreateEnvironmentResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateEnvironmentResponse
s@CreateEnvironmentResponse' {} Maybe Text
a -> CreateEnvironmentResponse
s {$sel:arn:CreateEnvironmentResponse' :: Maybe Text
arn = 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