{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.AutoScaling.Types.ProcessType -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.AutoScaling.Types.ProcessType where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | Describes a process type. -- -- For more information, see -- -- in the /Amazon EC2 Auto Scaling User Guide/. -- -- /See:/ 'newProcessType' smart constructor. data ProcessType = ProcessType' { -- | One of the following processes: -- -- - @Launch@ -- -- - @Terminate@ -- -- - @AddToLoadBalancer@ -- -- - @AlarmNotification@ -- -- - @AZRebalance@ -- -- - @HealthCheck@ -- -- - @InstanceRefresh@ -- -- - @ReplaceUnhealthy@ -- -- - @ScheduledActions@ processName :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ProcessType' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'processName', 'processType_processName' - One of the following processes: -- -- - @Launch@ -- -- - @Terminate@ -- -- - @AddToLoadBalancer@ -- -- - @AlarmNotification@ -- -- - @AZRebalance@ -- -- - @HealthCheck@ -- -- - @InstanceRefresh@ -- -- - @ReplaceUnhealthy@ -- -- - @ScheduledActions@ newProcessType :: -- | 'processName' Prelude.Text -> ProcessType newProcessType pProcessName_ = ProcessType' {processName = pProcessName_} -- | One of the following processes: -- -- - @Launch@ -- -- - @Terminate@ -- -- - @AddToLoadBalancer@ -- -- - @AlarmNotification@ -- -- - @AZRebalance@ -- -- - @HealthCheck@ -- -- - @InstanceRefresh@ -- -- - @ReplaceUnhealthy@ -- -- - @ScheduledActions@ processType_processName :: Lens.Lens' ProcessType Prelude.Text processType_processName = Lens.lens (\ProcessType' {processName} -> processName) (\s@ProcessType' {} a -> s {processName = a} :: ProcessType) instance Data.FromXML ProcessType where parseXML x = ProcessType' Prelude.<$> (x Data..@ "ProcessName") instance Prelude.Hashable ProcessType where hashWithSalt _salt ProcessType' {..} = _salt `Prelude.hashWithSalt` processName instance Prelude.NFData ProcessType where rnf ProcessType' {..} = Prelude.rnf processName