{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MwAA.UpdateEnvironment
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates an Amazon Managed Workflows for Apache Airflow (MWAA)
-- environment.
module Amazonka.MwAA.UpdateEnvironment
  ( -- * Creating a Request
    UpdateEnvironment (..),
    newUpdateEnvironment,

    -- * Request Lenses
    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,

    -- * Destructuring the Response
    UpdateEnvironmentResponse (..),
    newUpdateEnvironmentResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newUpdateEnvironment' smart constructor.
data UpdateEnvironment = UpdateEnvironment'
  { -- | The number of Apache Airflow schedulers to run in your Amazon MWAA
    -- environment.
    UpdateEnvironment -> Maybe Int
schedulers :: Prelude.Maybe Prelude.Int,
    -- | The minimum number of workers that you want to run in your environment.
    -- MWAA scales the number of Apache Airflow workers up to the number you
    -- specify in the @MaxWorkers@ field. When there are no more tasks running,
    -- and no more in the queue, MWAA disposes of the extra workers leaving the
    -- worker count you specify in the @MinWorkers@ field. For example, @2@.
    UpdateEnvironment -> Maybe Natural
minWorkers :: Prelude.Maybe Prelude.Natural,
    -- | The relative path to the @plugins.zip@ file on your Amazon S3 bucket.
    -- For example, @plugins.zip@. If specified, then the plugins.zip version
    -- is required. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html Installing custom plugins>.
    UpdateEnvironment -> Maybe Text
pluginsS3Path :: Prelude.Maybe Prelude.Text,
    -- | The Apache Airflow /Web server/ access mode. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html Apache Airflow access modes>.
    UpdateEnvironment -> Maybe WebserverAccessMode
webserverAccessMode :: Prelude.Maybe WebserverAccessMode,
    -- | The Apache Airflow version for your environment. For example,
    -- @v1.10.12@. If no value is specified, defaults to the latest version.
    -- Valid values: @v1.10.12@.
    UpdateEnvironment -> Maybe Text
airflowVersion :: Prelude.Maybe Prelude.Text,
    -- | The day and time of the week to start weekly maintenance updates of your
    -- environment in the following format: @DAY:HH:MM@. For example:
    -- @TUE:03:30@. You can specify a start time in 30 minute increments only.
    -- Supported input includes the following:
    --
    -- -   MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\\\d|2[0-3]):(00|30)
    UpdateEnvironment -> Maybe Text
weeklyMaintenanceWindowStart :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the execution role in IAM that allows
    -- MWAA to access AWS resources in your environment. For example,
    -- @arn:aws:iam::123456789:role\/my-execution-role@. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html Amazon MWAA Execution role>.
    UpdateEnvironment -> Maybe Text
executionRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The version of the requirements.txt file on your Amazon S3 bucket. A
    -- version must be specified each time a requirements.txt file is updated.
    -- To learn more, see
    -- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html How S3 Versioning works>.
    UpdateEnvironment -> Maybe Text
requirementsS3ObjectVersion :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG
    -- code and supporting files are stored. For example,
    -- @arn:aws:s3:::my-airflow-bucket-unique-name@. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html Create an Amazon S3 bucket for Amazon MWAA>.
    UpdateEnvironment -> Maybe Text
sourceBucketArn :: Prelude.Maybe Prelude.Text,
    -- | The relative path to the DAGs folder on your Amazon S3 bucket. For
    -- example, @dags@. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html Adding or updating DAGs>.
    UpdateEnvironment -> Maybe Text
dagS3Path :: Prelude.Maybe Prelude.Text,
    -- | The version of the plugins.zip file on your Amazon S3 bucket. A version
    -- must be specified each time a plugins.zip file is updated. To learn
    -- more, see
    -- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html How S3 Versioning works>.
    UpdateEnvironment -> Maybe Text
pluginsS3ObjectVersion :: Prelude.Maybe Prelude.Text,
    -- | A list of key-value pairs containing the Apache Airflow configuration
    -- options you want to attach to your environment. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html Apache Airflow configuration options>.
    UpdateEnvironment -> Maybe (Sensitive (HashMap Text Text))
airflowConfigurationOptions :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
    -- | Defines the Apache Airflow logs to send to CloudWatch Logs:
    -- @DagProcessingLogs@, @SchedulerLogs@, @TaskLogs@, @WebserverLogs@,
    -- @WorkerLogs@.
    UpdateEnvironment -> Maybe LoggingConfigurationInput
loggingConfiguration :: Prelude.Maybe LoggingConfigurationInput,
    -- | The environment class type. Valid values: @mw1.small@, @mw1.medium@,
    -- @mw1.large@. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html Amazon MWAA environment class>.
    UpdateEnvironment -> Maybe Text
environmentClass :: Prelude.Maybe Prelude.Text,
    -- | The VPC networking components used to secure and enable network traffic
    -- between the AWS resources for your environment. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html About networking on Amazon MWAA>.
    UpdateEnvironment -> Maybe UpdateNetworkConfigurationInput
networkConfiguration :: Prelude.Maybe UpdateNetworkConfigurationInput,
    -- | The relative path to the @requirements.txt@ file on your Amazon S3
    -- bucket. For example, @requirements.txt@. If specified, then a file
    -- version is required. To learn more, see
    -- <https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html Installing Python dependencies>.
    UpdateEnvironment -> Maybe Text
requirementsS3Path :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of workers that you want to run in your environment.
    -- MWAA scales the number of Apache Airflow workers up to the number you
    -- specify in the @MaxWorkers@ field. For example, @20@. When there are no
    -- more tasks running, and no more in the queue, MWAA disposes of the extra
    -- workers leaving the one worker that is included with your environment,
    -- or the number you specify in @MinWorkers@.
    UpdateEnvironment -> Maybe Natural
maxWorkers :: Prelude.Maybe Prelude.Natural,
    -- | The name of your Amazon MWAA environment. For example,
    -- @MyMWAAEnvironment@.
    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)

-- |
-- Create a value of 'UpdateEnvironment' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'schedulers', 'updateEnvironment_schedulers' - The number of Apache Airflow schedulers to run in your Amazon MWAA
-- environment.
--
-- 'minWorkers', 'updateEnvironment_minWorkers' - The minimum number of workers that you want to run in your environment.
-- MWAA scales the number of Apache Airflow workers up to the number you
-- specify in the @MaxWorkers@ field. When there are no more tasks running,
-- and no more in the queue, MWAA disposes of the extra workers leaving the
-- worker count you specify in the @MinWorkers@ field. For example, @2@.
--
-- 'pluginsS3Path', 'updateEnvironment_pluginsS3Path' - The relative path to the @plugins.zip@ file on your Amazon S3 bucket.
-- For example, @plugins.zip@. If specified, then the plugins.zip version
-- is required. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html Installing custom plugins>.
--
-- 'webserverAccessMode', 'updateEnvironment_webserverAccessMode' - The Apache Airflow /Web server/ access mode. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html Apache Airflow access modes>.
--
-- 'airflowVersion', 'updateEnvironment_airflowVersion' - The Apache Airflow version for your environment. For example,
-- @v1.10.12@. If no value is specified, defaults to the latest version.
-- Valid values: @v1.10.12@.
--
-- 'weeklyMaintenanceWindowStart', 'updateEnvironment_weeklyMaintenanceWindowStart' - The day and time of the week to start weekly maintenance updates of your
-- environment in the following format: @DAY:HH:MM@. For example:
-- @TUE:03:30@. You can specify a start time in 30 minute increments only.
-- Supported input includes the following:
--
-- -   MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\\\d|2[0-3]):(00|30)
--
-- 'executionRoleArn', 'updateEnvironment_executionRoleArn' - The Amazon Resource Name (ARN) of the execution role in IAM that allows
-- MWAA to access AWS resources in your environment. For example,
-- @arn:aws:iam::123456789:role\/my-execution-role@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html Amazon MWAA Execution role>.
--
-- 'requirementsS3ObjectVersion', 'updateEnvironment_requirementsS3ObjectVersion' - The version of the requirements.txt file on your Amazon S3 bucket. A
-- version must be specified each time a requirements.txt file is updated.
-- To learn more, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html How S3 Versioning works>.
--
-- 'sourceBucketArn', 'updateEnvironment_sourceBucketArn' - The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG
-- code and supporting files are stored. For example,
-- @arn:aws:s3:::my-airflow-bucket-unique-name@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html Create an Amazon S3 bucket for Amazon MWAA>.
--
-- 'dagS3Path', 'updateEnvironment_dagS3Path' - The relative path to the DAGs folder on your Amazon S3 bucket. For
-- example, @dags@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html Adding or updating DAGs>.
--
-- 'pluginsS3ObjectVersion', 'updateEnvironment_pluginsS3ObjectVersion' - The version of the plugins.zip file on your Amazon S3 bucket. A version
-- must be specified each time a plugins.zip file is updated. To learn
-- more, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html How S3 Versioning works>.
--
-- 'airflowConfigurationOptions', 'updateEnvironment_airflowConfigurationOptions' - A list of key-value pairs containing the Apache Airflow configuration
-- options you want to attach to your environment. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html Apache Airflow configuration options>.
--
-- 'loggingConfiguration', 'updateEnvironment_loggingConfiguration' - Defines the Apache Airflow logs to send to CloudWatch Logs:
-- @DagProcessingLogs@, @SchedulerLogs@, @TaskLogs@, @WebserverLogs@,
-- @WorkerLogs@.
--
-- 'environmentClass', 'updateEnvironment_environmentClass' - The environment class type. Valid values: @mw1.small@, @mw1.medium@,
-- @mw1.large@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html Amazon MWAA environment class>.
--
-- 'networkConfiguration', 'updateEnvironment_networkConfiguration' - The VPC networking components used to secure and enable network traffic
-- between the AWS resources for your environment. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html About networking on Amazon MWAA>.
--
-- 'requirementsS3Path', 'updateEnvironment_requirementsS3Path' - The relative path to the @requirements.txt@ file on your Amazon S3
-- bucket. For example, @requirements.txt@. If specified, then a file
-- version is required. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html Installing Python dependencies>.
--
-- 'maxWorkers', 'updateEnvironment_maxWorkers' - The maximum number of workers that you want to run in your environment.
-- MWAA scales the number of Apache Airflow workers up to the number you
-- specify in the @MaxWorkers@ field. For example, @20@. When there are no
-- more tasks running, and no more in the queue, MWAA disposes of the extra
-- workers leaving the one worker that is included with your environment,
-- or the number you specify in @MinWorkers@.
--
-- 'name', 'updateEnvironment_name' - The name of your Amazon MWAA environment. For example,
-- @MyMWAAEnvironment@.
newUpdateEnvironment ::
  -- | 'name'
  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_
    }

-- | The number of Apache Airflow schedulers to run in your Amazon MWAA
-- environment.
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)

-- | The minimum number of workers that you want to run in your environment.
-- MWAA scales the number of Apache Airflow workers up to the number you
-- specify in the @MaxWorkers@ field. When there are no more tasks running,
-- and no more in the queue, MWAA disposes of the extra workers leaving the
-- worker count you specify in the @MinWorkers@ field. For example, @2@.
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)

-- | The relative path to the @plugins.zip@ file on your Amazon S3 bucket.
-- For example, @plugins.zip@. If specified, then the plugins.zip version
-- is required. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html Installing custom plugins>.
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)

-- | The Apache Airflow /Web server/ access mode. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html Apache Airflow access modes>.
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)

-- | The Apache Airflow version for your environment. For example,
-- @v1.10.12@. If no value is specified, defaults to the latest version.
-- Valid values: @v1.10.12@.
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)

-- | The day and time of the week to start weekly maintenance updates of your
-- environment in the following format: @DAY:HH:MM@. For example:
-- @TUE:03:30@. You can specify a start time in 30 minute increments only.
-- Supported input includes the following:
--
-- -   MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\\\d|2[0-3]):(00|30)
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)

-- | The Amazon Resource Name (ARN) of the execution role in IAM that allows
-- MWAA to access AWS resources in your environment. For example,
-- @arn:aws:iam::123456789:role\/my-execution-role@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html Amazon MWAA Execution role>.
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)

-- | The version of the requirements.txt file on your Amazon S3 bucket. A
-- version must be specified each time a requirements.txt file is updated.
-- To learn more, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html How S3 Versioning works>.
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)

-- | The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG
-- code and supporting files are stored. For example,
-- @arn:aws:s3:::my-airflow-bucket-unique-name@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html Create an Amazon S3 bucket for Amazon MWAA>.
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)

-- | The relative path to the DAGs folder on your Amazon S3 bucket. For
-- example, @dags@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html Adding or updating DAGs>.
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)

-- | The version of the plugins.zip file on your Amazon S3 bucket. A version
-- must be specified each time a plugins.zip file is updated. To learn
-- more, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html How S3 Versioning works>.
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)

-- | A list of key-value pairs containing the Apache Airflow configuration
-- options you want to attach to your environment. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html Apache Airflow configuration options>.
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)

-- | Defines the Apache Airflow logs to send to CloudWatch Logs:
-- @DagProcessingLogs@, @SchedulerLogs@, @TaskLogs@, @WebserverLogs@,
-- @WorkerLogs@.
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)

-- | The environment class type. Valid values: @mw1.small@, @mw1.medium@,
-- @mw1.large@. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html Amazon MWAA environment class>.
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)

-- | The VPC networking components used to secure and enable network traffic
-- between the AWS resources for your environment. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html About networking on Amazon MWAA>.
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)

-- | The relative path to the @requirements.txt@ file on your Amazon S3
-- bucket. For example, @requirements.txt@. If specified, then a file
-- version is required. To learn more, see
-- <https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html Installing Python dependencies>.
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)

-- | The maximum number of workers that you want to run in your environment.
-- MWAA scales the number of Apache Airflow workers up to the number you
-- specify in the @MaxWorkers@ field. For example, @20@. When there are no
-- more tasks running, and no more in the queue, MWAA disposes of the extra
-- workers leaving the one worker that is included with your environment,
-- or the number you specify in @MinWorkers@.
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)

-- | The name of your Amazon MWAA environment. For example,
-- @MyMWAAEnvironment@.
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

-- | /See:/ 'newUpdateEnvironmentResponse' smart constructor.
data UpdateEnvironmentResponse = UpdateEnvironmentResponse'
  { -- | The Amazon Resource Name (ARN) of the Amazon MWAA environment. For
    -- example,
    -- @arn:aws:airflow:us-east-1:123456789012:environment\/MyMWAAEnvironment@.
    UpdateEnvironmentResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'UpdateEnvironmentResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'arn', 'updateEnvironmentResponse_arn' - The Amazon Resource Name (ARN) of the Amazon MWAA environment. For
-- example,
-- @arn:aws:airflow:us-east-1:123456789012:environment\/MyMWAAEnvironment@.
--
-- 'httpStatus', 'updateEnvironmentResponse_httpStatus' - The response's http status code.
newUpdateEnvironmentResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The Amazon Resource Name (ARN) of the Amazon MWAA environment. For
-- example,
-- @arn:aws:airflow:us-east-1:123456789012:environment\/MyMWAAEnvironment@.
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)

-- | The response's http status code.
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