{-# 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.UpdateEnvironment
(
UpdateEnvironment (..),
newUpdateEnvironment,
updateEnvironment_schedulers,
updateEnvironment_minWorkers,
updateEnvironment_pluginsS3Path,
updateEnvironment_webserverAccessMode,
updateEnvironment_airflowVersion,
updateEnvironment_weeklyMaintenanceWindowStart,
updateEnvironment_executionRoleArn,
updateEnvironment_requirementsS3ObjectVersion,
updateEnvironment_sourceBucketArn,
updateEnvironment_dagS3Path,
updateEnvironment_pluginsS3ObjectVersion,
updateEnvironment_airflowConfigurationOptions,
updateEnvironment_loggingConfiguration,
updateEnvironment_environmentClass,
updateEnvironment_networkConfiguration,
updateEnvironment_requirementsS3Path,
updateEnvironment_maxWorkers,
updateEnvironment_name,
UpdateEnvironmentResponse (..),
newUpdateEnvironmentResponse,
updateEnvironmentResponse_arn,
updateEnvironmentResponse_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 UpdateEnvironment = UpdateEnvironment'
{
UpdateEnvironment -> Maybe Int
schedulers :: Prelude.Maybe Prelude.Int,
UpdateEnvironment -> Maybe Natural
minWorkers :: Prelude.Maybe Prelude.Natural,
UpdateEnvironment -> Maybe Text
pluginsS3Path :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe WebserverAccessMode
webserverAccessMode :: Prelude.Maybe WebserverAccessMode,
UpdateEnvironment -> Maybe Text
airflowVersion :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe Text
weeklyMaintenanceWindowStart :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe Text
executionRoleArn :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe Text
requirementsS3ObjectVersion :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe Text
sourceBucketArn :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe Text
dagS3Path :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe Text
pluginsS3ObjectVersion :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
UpdateEnvironment -> Maybe LoggingConfigurationInput
loggingConfiguration :: Prelude.Maybe LoggingConfigurationInput,
UpdateEnvironment -> Maybe Text
environmentClass :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe UpdateNetworkConfigurationInput
networkConfiguration :: Prelude.Maybe UpdateNetworkConfigurationInput,
UpdateEnvironment -> Maybe Text
requirementsS3Path :: Prelude.Maybe Prelude.Text,
UpdateEnvironment -> Maybe Natural
maxWorkers :: Prelude.Maybe Prelude.Natural,
UpdateEnvironment -> Text
name :: Prelude.Text
}
deriving (UpdateEnvironment -> UpdateEnvironment -> Bool
(UpdateEnvironment -> UpdateEnvironment -> Bool)
-> (UpdateEnvironment -> UpdateEnvironment -> Bool)
-> Eq UpdateEnvironment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEnvironment -> UpdateEnvironment -> Bool
$c/= :: UpdateEnvironment -> UpdateEnvironment -> Bool
== :: UpdateEnvironment -> UpdateEnvironment -> Bool
$c== :: UpdateEnvironment -> UpdateEnvironment -> Bool
Prelude.Eq, Int -> UpdateEnvironment -> ShowS
[UpdateEnvironment] -> ShowS
UpdateEnvironment -> String
(Int -> UpdateEnvironment -> ShowS)
-> (UpdateEnvironment -> String)
-> ([UpdateEnvironment] -> ShowS)
-> Show UpdateEnvironment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEnvironment] -> ShowS
$cshowList :: [UpdateEnvironment] -> ShowS
show :: UpdateEnvironment -> String
$cshow :: UpdateEnvironment -> String
showsPrec :: Int -> UpdateEnvironment -> ShowS
$cshowsPrec :: Int -> UpdateEnvironment -> ShowS
Prelude.Show, (forall x. UpdateEnvironment -> Rep UpdateEnvironment x)
-> (forall x. Rep UpdateEnvironment x -> UpdateEnvironment)
-> Generic UpdateEnvironment
forall x. Rep UpdateEnvironment x -> UpdateEnvironment
forall x. UpdateEnvironment -> Rep UpdateEnvironment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateEnvironment x -> UpdateEnvironment
$cfrom :: forall x. UpdateEnvironment -> Rep UpdateEnvironment x
Prelude.Generic)
newUpdateEnvironment ::
Prelude.Text ->
UpdateEnvironment
newUpdateEnvironment :: Text -> UpdateEnvironment
newUpdateEnvironment Text
pName_ =
UpdateEnvironment' :: Maybe Int
-> Maybe Natural
-> Maybe Text
-> Maybe WebserverAccessMode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe LoggingConfigurationInput
-> Maybe Text
-> Maybe UpdateNetworkConfigurationInput
-> Maybe Text
-> Maybe Natural
-> Text
-> UpdateEnvironment
UpdateEnvironment'
{ $sel:schedulers:UpdateEnvironment' :: Maybe Int
schedulers = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:minWorkers:UpdateEnvironment' :: Maybe Natural
minWorkers = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:pluginsS3Path:UpdateEnvironment' :: Maybe Text
pluginsS3Path = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:webserverAccessMode:UpdateEnvironment' :: Maybe WebserverAccessMode
webserverAccessMode = Maybe WebserverAccessMode
forall a. Maybe a
Prelude.Nothing,
$sel:airflowVersion:UpdateEnvironment' :: Maybe Text
airflowVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:weeklyMaintenanceWindowStart:UpdateEnvironment' :: Maybe Text
weeklyMaintenanceWindowStart = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionRoleArn:UpdateEnvironment' :: Maybe Text
executionRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:requirementsS3ObjectVersion:UpdateEnvironment' :: Maybe Text
requirementsS3ObjectVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceBucketArn:UpdateEnvironment' :: Maybe Text
sourceBucketArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dagS3Path:UpdateEnvironment' :: Maybe Text
dagS3Path = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pluginsS3ObjectVersion:UpdateEnvironment' :: Maybe Text
pluginsS3ObjectVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:airflowConfigurationOptions:UpdateEnvironment' :: Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
$sel:loggingConfiguration:UpdateEnvironment' :: Maybe LoggingConfigurationInput
loggingConfiguration = Maybe LoggingConfigurationInput
forall a. Maybe a
Prelude.Nothing,
$sel:environmentClass:UpdateEnvironment' :: Maybe Text
environmentClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkConfiguration:UpdateEnvironment' :: Maybe UpdateNetworkConfigurationInput
networkConfiguration = Maybe UpdateNetworkConfigurationInput
forall a. Maybe a
Prelude.Nothing,
$sel:requirementsS3Path:UpdateEnvironment' :: Maybe Text
requirementsS3Path = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxWorkers:UpdateEnvironment' :: Maybe Natural
maxWorkers = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateEnvironment' :: Text
name = Text
pName_
}
updateEnvironment_schedulers :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Int)
updateEnvironment_schedulers :: (Maybe Int -> f (Maybe Int))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_schedulers = (UpdateEnvironment -> Maybe Int)
-> (UpdateEnvironment -> Maybe Int -> UpdateEnvironment)
-> Lens UpdateEnvironment UpdateEnvironment (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Int
schedulers :: Maybe Int
$sel:schedulers:UpdateEnvironment' :: UpdateEnvironment -> Maybe Int
schedulers} -> Maybe Int
schedulers) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Int
a -> UpdateEnvironment
s {$sel:schedulers:UpdateEnvironment' :: Maybe Int
schedulers = Maybe Int
a} :: UpdateEnvironment)
updateEnvironment_minWorkers :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Natural)
updateEnvironment_minWorkers :: (Maybe Natural -> f (Maybe Natural))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_minWorkers = (UpdateEnvironment -> Maybe Natural)
-> (UpdateEnvironment -> Maybe Natural -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Natural
minWorkers :: Maybe Natural
$sel:minWorkers:UpdateEnvironment' :: UpdateEnvironment -> Maybe Natural
minWorkers} -> Maybe Natural
minWorkers) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Natural
a -> UpdateEnvironment
s {$sel:minWorkers:UpdateEnvironment' :: Maybe Natural
minWorkers = Maybe Natural
a} :: UpdateEnvironment)
updateEnvironment_pluginsS3Path :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_pluginsS3Path :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_pluginsS3Path = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
pluginsS3Path :: Maybe Text
$sel:pluginsS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
pluginsS3Path} -> Maybe Text
pluginsS3Path) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:pluginsS3Path:UpdateEnvironment' :: Maybe Text
pluginsS3Path = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_webserverAccessMode :: Lens.Lens' UpdateEnvironment (Prelude.Maybe WebserverAccessMode)
updateEnvironment_webserverAccessMode :: (Maybe WebserverAccessMode -> f (Maybe WebserverAccessMode))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_webserverAccessMode = (UpdateEnvironment -> Maybe WebserverAccessMode)
-> (UpdateEnvironment
-> Maybe WebserverAccessMode -> UpdateEnvironment)
-> Lens
UpdateEnvironment
UpdateEnvironment
(Maybe WebserverAccessMode)
(Maybe WebserverAccessMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe WebserverAccessMode
webserverAccessMode :: Maybe WebserverAccessMode
$sel:webserverAccessMode:UpdateEnvironment' :: UpdateEnvironment -> Maybe WebserverAccessMode
webserverAccessMode} -> Maybe WebserverAccessMode
webserverAccessMode) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe WebserverAccessMode
a -> UpdateEnvironment
s {$sel:webserverAccessMode:UpdateEnvironment' :: Maybe WebserverAccessMode
webserverAccessMode = Maybe WebserverAccessMode
a} :: UpdateEnvironment)
updateEnvironment_airflowVersion :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_airflowVersion :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_airflowVersion = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
airflowVersion :: Maybe Text
$sel:airflowVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
airflowVersion} -> Maybe Text
airflowVersion) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:airflowVersion:UpdateEnvironment' :: Maybe Text
airflowVersion = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_weeklyMaintenanceWindowStart :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_weeklyMaintenanceWindowStart :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_weeklyMaintenanceWindowStart = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
weeklyMaintenanceWindowStart :: Maybe Text
$sel:weeklyMaintenanceWindowStart:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
weeklyMaintenanceWindowStart} -> Maybe Text
weeklyMaintenanceWindowStart) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:weeklyMaintenanceWindowStart:UpdateEnvironment' :: Maybe Text
weeklyMaintenanceWindowStart = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_executionRoleArn :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_executionRoleArn :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_executionRoleArn = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
executionRoleArn :: Maybe Text
$sel:executionRoleArn:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
executionRoleArn} -> Maybe Text
executionRoleArn) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:executionRoleArn:UpdateEnvironment' :: Maybe Text
executionRoleArn = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_requirementsS3ObjectVersion :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_requirementsS3ObjectVersion :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_requirementsS3ObjectVersion = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
requirementsS3ObjectVersion :: Maybe Text
$sel:requirementsS3ObjectVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
requirementsS3ObjectVersion} -> Maybe Text
requirementsS3ObjectVersion) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:requirementsS3ObjectVersion:UpdateEnvironment' :: Maybe Text
requirementsS3ObjectVersion = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_sourceBucketArn :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_sourceBucketArn :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_sourceBucketArn = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
sourceBucketArn :: Maybe Text
$sel:sourceBucketArn:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
sourceBucketArn} -> Maybe Text
sourceBucketArn) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:sourceBucketArn:UpdateEnvironment' :: Maybe Text
sourceBucketArn = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_dagS3Path :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_dagS3Path :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_dagS3Path = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
dagS3Path :: Maybe Text
$sel:dagS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
dagS3Path} -> Maybe Text
dagS3Path) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:dagS3Path:UpdateEnvironment' :: Maybe Text
dagS3Path = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_pluginsS3ObjectVersion :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_pluginsS3ObjectVersion :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_pluginsS3ObjectVersion = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
pluginsS3ObjectVersion :: Maybe Text
$sel:pluginsS3ObjectVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
pluginsS3ObjectVersion} -> Maybe Text
pluginsS3ObjectVersion) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:pluginsS3ObjectVersion:UpdateEnvironment' :: Maybe Text
pluginsS3ObjectVersion = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_airflowConfigurationOptions :: Lens.Lens' UpdateEnvironment (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateEnvironment_airflowConfigurationOptions :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_airflowConfigurationOptions = (UpdateEnvironment -> Maybe (Sensitive (HashMap Text Text)))
-> (UpdateEnvironment
-> Maybe (Sensitive (HashMap Text Text)) -> UpdateEnvironment)
-> Lens
UpdateEnvironment
UpdateEnvironment
(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 (\UpdateEnvironment' {Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions :: Maybe (Sensitive (HashMap Text Text))
$sel:airflowConfigurationOptions:UpdateEnvironment' :: UpdateEnvironment -> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions} -> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe (Sensitive (HashMap Text Text))
a -> UpdateEnvironment
s {$sel:airflowConfigurationOptions:UpdateEnvironment' :: Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions = Maybe (Sensitive (HashMap Text Text))
a} :: UpdateEnvironment) ((Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> UpdateEnvironment -> f UpdateEnvironment)
-> ((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)))
-> UpdateEnvironment
-> f UpdateEnvironment
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)
updateEnvironment_loggingConfiguration :: Lens.Lens' UpdateEnvironment (Prelude.Maybe LoggingConfigurationInput)
updateEnvironment_loggingConfiguration :: (Maybe LoggingConfigurationInput
-> f (Maybe LoggingConfigurationInput))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_loggingConfiguration = (UpdateEnvironment -> Maybe LoggingConfigurationInput)
-> (UpdateEnvironment
-> Maybe LoggingConfigurationInput -> UpdateEnvironment)
-> Lens
UpdateEnvironment
UpdateEnvironment
(Maybe LoggingConfigurationInput)
(Maybe LoggingConfigurationInput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe LoggingConfigurationInput
loggingConfiguration :: Maybe LoggingConfigurationInput
$sel:loggingConfiguration:UpdateEnvironment' :: UpdateEnvironment -> Maybe LoggingConfigurationInput
loggingConfiguration} -> Maybe LoggingConfigurationInput
loggingConfiguration) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe LoggingConfigurationInput
a -> UpdateEnvironment
s {$sel:loggingConfiguration:UpdateEnvironment' :: Maybe LoggingConfigurationInput
loggingConfiguration = Maybe LoggingConfigurationInput
a} :: UpdateEnvironment)
updateEnvironment_environmentClass :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_environmentClass :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_environmentClass = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
environmentClass :: Maybe Text
$sel:environmentClass:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
environmentClass} -> Maybe Text
environmentClass) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:environmentClass:UpdateEnvironment' :: Maybe Text
environmentClass = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_networkConfiguration :: Lens.Lens' UpdateEnvironment (Prelude.Maybe UpdateNetworkConfigurationInput)
updateEnvironment_networkConfiguration :: (Maybe UpdateNetworkConfigurationInput
-> f (Maybe UpdateNetworkConfigurationInput))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_networkConfiguration = (UpdateEnvironment -> Maybe UpdateNetworkConfigurationInput)
-> (UpdateEnvironment
-> Maybe UpdateNetworkConfigurationInput -> UpdateEnvironment)
-> Lens
UpdateEnvironment
UpdateEnvironment
(Maybe UpdateNetworkConfigurationInput)
(Maybe UpdateNetworkConfigurationInput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe UpdateNetworkConfigurationInput
networkConfiguration :: Maybe UpdateNetworkConfigurationInput
$sel:networkConfiguration:UpdateEnvironment' :: UpdateEnvironment -> Maybe UpdateNetworkConfigurationInput
networkConfiguration} -> Maybe UpdateNetworkConfigurationInput
networkConfiguration) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe UpdateNetworkConfigurationInput
a -> UpdateEnvironment
s {$sel:networkConfiguration:UpdateEnvironment' :: Maybe UpdateNetworkConfigurationInput
networkConfiguration = Maybe UpdateNetworkConfigurationInput
a} :: UpdateEnvironment)
updateEnvironment_requirementsS3Path :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Text)
updateEnvironment_requirementsS3Path :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_requirementsS3Path = (UpdateEnvironment -> Maybe Text)
-> (UpdateEnvironment -> Maybe Text -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Text
requirementsS3Path :: Maybe Text
$sel:requirementsS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
requirementsS3Path} -> Maybe Text
requirementsS3Path) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Text
a -> UpdateEnvironment
s {$sel:requirementsS3Path:UpdateEnvironment' :: Maybe Text
requirementsS3Path = Maybe Text
a} :: UpdateEnvironment)
updateEnvironment_maxWorkers :: Lens.Lens' UpdateEnvironment (Prelude.Maybe Prelude.Natural)
updateEnvironment_maxWorkers :: (Maybe Natural -> f (Maybe Natural))
-> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_maxWorkers = (UpdateEnvironment -> Maybe Natural)
-> (UpdateEnvironment -> Maybe Natural -> UpdateEnvironment)
-> Lens
UpdateEnvironment UpdateEnvironment (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Maybe Natural
maxWorkers :: Maybe Natural
$sel:maxWorkers:UpdateEnvironment' :: UpdateEnvironment -> Maybe Natural
maxWorkers} -> Maybe Natural
maxWorkers) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Maybe Natural
a -> UpdateEnvironment
s {$sel:maxWorkers:UpdateEnvironment' :: Maybe Natural
maxWorkers = Maybe Natural
a} :: UpdateEnvironment)
updateEnvironment_name :: Lens.Lens' UpdateEnvironment Prelude.Text
updateEnvironment_name :: (Text -> f Text) -> UpdateEnvironment -> f UpdateEnvironment
updateEnvironment_name = (UpdateEnvironment -> Text)
-> (UpdateEnvironment -> Text -> UpdateEnvironment)
-> Lens UpdateEnvironment UpdateEnvironment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironment' {Text
name :: Text
$sel:name:UpdateEnvironment' :: UpdateEnvironment -> Text
name} -> Text
name) (\s :: UpdateEnvironment
s@UpdateEnvironment' {} Text
a -> UpdateEnvironment
s {$sel:name:UpdateEnvironment' :: Text
name = Text
a} :: UpdateEnvironment)
instance Core.AWSRequest UpdateEnvironment where
type
AWSResponse UpdateEnvironment =
UpdateEnvironmentResponse
request :: UpdateEnvironment -> Request UpdateEnvironment
request = Service -> UpdateEnvironment -> Request UpdateEnvironment
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateEnvironment)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateEnvironment))
-> Logger
-> Service
-> Proxy UpdateEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateEnvironment)))
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 -> UpdateEnvironmentResponse
UpdateEnvironmentResponse'
(Maybe Text -> Int -> UpdateEnvironmentResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateEnvironmentResponse)
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 -> UpdateEnvironmentResponse)
-> Either String Int -> Either String UpdateEnvironmentResponse
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 UpdateEnvironment
instance Prelude.NFData UpdateEnvironment
instance Core.ToHeaders UpdateEnvironment where
toHeaders :: UpdateEnvironment -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateEnvironment -> 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 UpdateEnvironment where
toJSON :: UpdateEnvironment -> Value
toJSON UpdateEnvironment' {Maybe Int
Maybe Natural
Maybe Text
Maybe (Sensitive (HashMap Text Text))
Maybe LoggingConfigurationInput
Maybe UpdateNetworkConfigurationInput
Maybe WebserverAccessMode
Text
name :: Text
maxWorkers :: Maybe Natural
requirementsS3Path :: Maybe Text
networkConfiguration :: Maybe UpdateNetworkConfigurationInput
environmentClass :: Maybe Text
loggingConfiguration :: Maybe LoggingConfigurationInput
airflowConfigurationOptions :: Maybe (Sensitive (HashMap Text Text))
pluginsS3ObjectVersion :: Maybe Text
dagS3Path :: Maybe Text
sourceBucketArn :: Maybe Text
requirementsS3ObjectVersion :: Maybe Text
executionRoleArn :: Maybe Text
weeklyMaintenanceWindowStart :: Maybe Text
airflowVersion :: Maybe Text
webserverAccessMode :: Maybe WebserverAccessMode
pluginsS3Path :: Maybe Text
minWorkers :: Maybe Natural
schedulers :: Maybe Int
$sel:name:UpdateEnvironment' :: UpdateEnvironment -> Text
$sel:maxWorkers:UpdateEnvironment' :: UpdateEnvironment -> Maybe Natural
$sel:requirementsS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:networkConfiguration:UpdateEnvironment' :: UpdateEnvironment -> Maybe UpdateNetworkConfigurationInput
$sel:environmentClass:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:loggingConfiguration:UpdateEnvironment' :: UpdateEnvironment -> Maybe LoggingConfigurationInput
$sel:airflowConfigurationOptions:UpdateEnvironment' :: UpdateEnvironment -> Maybe (Sensitive (HashMap Text Text))
$sel:pluginsS3ObjectVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:dagS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:sourceBucketArn:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:requirementsS3ObjectVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:executionRoleArn:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:weeklyMaintenanceWindowStart:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:airflowVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:webserverAccessMode:UpdateEnvironment' :: UpdateEnvironment -> Maybe WebserverAccessMode
$sel:pluginsS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:minWorkers:UpdateEnvironment' :: UpdateEnvironment -> Maybe Natural
$sel:schedulers:UpdateEnvironment' :: UpdateEnvironment -> 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
"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
"ExecutionRoleArn" 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
executionRoleArn,
(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
"SourceBucketArn" 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
sourceBucketArn,
(Text
"DagS3Path" 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
dagS3Path,
(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
"NetworkConfiguration" Text -> UpdateNetworkConfigurationInput -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(UpdateNetworkConfigurationInput -> Pair)
-> Maybe UpdateNetworkConfigurationInput -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateNetworkConfigurationInput
networkConfiguration,
(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
]
)
instance Core.ToPath UpdateEnvironment where
toPath :: UpdateEnvironment -> ByteString
toPath UpdateEnvironment' {Maybe Int
Maybe Natural
Maybe Text
Maybe (Sensitive (HashMap Text Text))
Maybe LoggingConfigurationInput
Maybe UpdateNetworkConfigurationInput
Maybe WebserverAccessMode
Text
name :: Text
maxWorkers :: Maybe Natural
requirementsS3Path :: Maybe Text
networkConfiguration :: Maybe UpdateNetworkConfigurationInput
environmentClass :: Maybe Text
loggingConfiguration :: Maybe LoggingConfigurationInput
airflowConfigurationOptions :: Maybe (Sensitive (HashMap Text Text))
pluginsS3ObjectVersion :: Maybe Text
dagS3Path :: Maybe Text
sourceBucketArn :: Maybe Text
requirementsS3ObjectVersion :: Maybe Text
executionRoleArn :: Maybe Text
weeklyMaintenanceWindowStart :: Maybe Text
airflowVersion :: Maybe Text
webserverAccessMode :: Maybe WebserverAccessMode
pluginsS3Path :: Maybe Text
minWorkers :: Maybe Natural
schedulers :: Maybe Int
$sel:name:UpdateEnvironment' :: UpdateEnvironment -> Text
$sel:maxWorkers:UpdateEnvironment' :: UpdateEnvironment -> Maybe Natural
$sel:requirementsS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:networkConfiguration:UpdateEnvironment' :: UpdateEnvironment -> Maybe UpdateNetworkConfigurationInput
$sel:environmentClass:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:loggingConfiguration:UpdateEnvironment' :: UpdateEnvironment -> Maybe LoggingConfigurationInput
$sel:airflowConfigurationOptions:UpdateEnvironment' :: UpdateEnvironment -> Maybe (Sensitive (HashMap Text Text))
$sel:pluginsS3ObjectVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:dagS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:sourceBucketArn:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:requirementsS3ObjectVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:executionRoleArn:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:weeklyMaintenanceWindowStart:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:airflowVersion:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:webserverAccessMode:UpdateEnvironment' :: UpdateEnvironment -> Maybe WebserverAccessMode
$sel:pluginsS3Path:UpdateEnvironment' :: UpdateEnvironment -> Maybe Text
$sel:minWorkers:UpdateEnvironment' :: UpdateEnvironment -> Maybe Natural
$sel:schedulers:UpdateEnvironment' :: UpdateEnvironment -> 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 UpdateEnvironment where
toQuery :: UpdateEnvironment -> QueryString
toQuery = QueryString -> UpdateEnvironment -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateEnvironmentResponse = UpdateEnvironmentResponse'
{
UpdateEnvironmentResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateEnvironmentResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateEnvironmentResponse -> UpdateEnvironmentResponse -> Bool
(UpdateEnvironmentResponse -> UpdateEnvironmentResponse -> Bool)
-> (UpdateEnvironmentResponse -> UpdateEnvironmentResponse -> Bool)
-> Eq UpdateEnvironmentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEnvironmentResponse -> UpdateEnvironmentResponse -> Bool
$c/= :: UpdateEnvironmentResponse -> UpdateEnvironmentResponse -> Bool
== :: UpdateEnvironmentResponse -> UpdateEnvironmentResponse -> Bool
$c== :: UpdateEnvironmentResponse -> UpdateEnvironmentResponse -> Bool
Prelude.Eq, ReadPrec [UpdateEnvironmentResponse]
ReadPrec UpdateEnvironmentResponse
Int -> ReadS UpdateEnvironmentResponse
ReadS [UpdateEnvironmentResponse]
(Int -> ReadS UpdateEnvironmentResponse)
-> ReadS [UpdateEnvironmentResponse]
-> ReadPrec UpdateEnvironmentResponse
-> ReadPrec [UpdateEnvironmentResponse]
-> Read UpdateEnvironmentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateEnvironmentResponse]
$creadListPrec :: ReadPrec [UpdateEnvironmentResponse]
readPrec :: ReadPrec UpdateEnvironmentResponse
$creadPrec :: ReadPrec UpdateEnvironmentResponse
readList :: ReadS [UpdateEnvironmentResponse]
$creadList :: ReadS [UpdateEnvironmentResponse]
readsPrec :: Int -> ReadS UpdateEnvironmentResponse
$creadsPrec :: Int -> ReadS UpdateEnvironmentResponse
Prelude.Read, Int -> UpdateEnvironmentResponse -> ShowS
[UpdateEnvironmentResponse] -> ShowS
UpdateEnvironmentResponse -> String
(Int -> UpdateEnvironmentResponse -> ShowS)
-> (UpdateEnvironmentResponse -> String)
-> ([UpdateEnvironmentResponse] -> ShowS)
-> Show UpdateEnvironmentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEnvironmentResponse] -> ShowS
$cshowList :: [UpdateEnvironmentResponse] -> ShowS
show :: UpdateEnvironmentResponse -> String
$cshow :: UpdateEnvironmentResponse -> String
showsPrec :: Int -> UpdateEnvironmentResponse -> ShowS
$cshowsPrec :: Int -> UpdateEnvironmentResponse -> ShowS
Prelude.Show, (forall x.
UpdateEnvironmentResponse -> Rep UpdateEnvironmentResponse x)
-> (forall x.
Rep UpdateEnvironmentResponse x -> UpdateEnvironmentResponse)
-> Generic UpdateEnvironmentResponse
forall x.
Rep UpdateEnvironmentResponse x -> UpdateEnvironmentResponse
forall x.
UpdateEnvironmentResponse -> Rep UpdateEnvironmentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateEnvironmentResponse x -> UpdateEnvironmentResponse
$cfrom :: forall x.
UpdateEnvironmentResponse -> Rep UpdateEnvironmentResponse x
Prelude.Generic)
newUpdateEnvironmentResponse ::
Prelude.Int ->
UpdateEnvironmentResponse
newUpdateEnvironmentResponse :: Int -> UpdateEnvironmentResponse
newUpdateEnvironmentResponse Int
pHttpStatus_ =
UpdateEnvironmentResponse' :: Maybe Text -> Int -> UpdateEnvironmentResponse
UpdateEnvironmentResponse'
{ $sel:arn:UpdateEnvironmentResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateEnvironmentResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateEnvironmentResponse_arn :: Lens.Lens' UpdateEnvironmentResponse (Prelude.Maybe Prelude.Text)
updateEnvironmentResponse_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironmentResponse -> f UpdateEnvironmentResponse
updateEnvironmentResponse_arn = (UpdateEnvironmentResponse -> Maybe Text)
-> (UpdateEnvironmentResponse
-> Maybe Text -> UpdateEnvironmentResponse)
-> Lens
UpdateEnvironmentResponse
UpdateEnvironmentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateEnvironmentResponse' :: UpdateEnvironmentResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateEnvironmentResponse
s@UpdateEnvironmentResponse' {} Maybe Text
a -> UpdateEnvironmentResponse
s {$sel:arn:UpdateEnvironmentResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateEnvironmentResponse)
updateEnvironmentResponse_httpStatus :: Lens.Lens' UpdateEnvironmentResponse Prelude.Int
updateEnvironmentResponse_httpStatus :: (Int -> f Int)
-> UpdateEnvironmentResponse -> f UpdateEnvironmentResponse
updateEnvironmentResponse_httpStatus = (UpdateEnvironmentResponse -> Int)
-> (UpdateEnvironmentResponse -> Int -> UpdateEnvironmentResponse)
-> Lens UpdateEnvironmentResponse UpdateEnvironmentResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateEnvironmentResponse' :: UpdateEnvironmentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateEnvironmentResponse
s@UpdateEnvironmentResponse' {} Int
a -> UpdateEnvironmentResponse
s {$sel:httpStatus:UpdateEnvironmentResponse' :: Int
httpStatus = Int
a} :: UpdateEnvironmentResponse)
instance Prelude.NFData UpdateEnvironmentResponse