{-# 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 #-}
module Amazonka.ServiceCatalog.Types.UpdateProvisioningPreferences where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.ServiceCatalog.Types.StackSetOperationType
data UpdateProvisioningPreferences = UpdateProvisioningPreferences'
{
UpdateProvisioningPreferences -> Maybe [Text]
stackSetRegions :: Prelude.Maybe [Prelude.Text],
UpdateProvisioningPreferences -> Maybe Natural
stackSetMaxConcurrencyPercentage :: Prelude.Maybe Prelude.Natural,
UpdateProvisioningPreferences -> Maybe Natural
stackSetFailureToleranceCount :: Prelude.Maybe Prelude.Natural,
UpdateProvisioningPreferences -> Maybe Natural
stackSetFailureTolerancePercentage :: Prelude.Maybe Prelude.Natural,
UpdateProvisioningPreferences -> Maybe [Text]
stackSetAccounts :: Prelude.Maybe [Prelude.Text],
UpdateProvisioningPreferences -> Maybe Natural
stackSetMaxConcurrencyCount :: Prelude.Maybe Prelude.Natural,
UpdateProvisioningPreferences -> Maybe StackSetOperationType
stackSetOperationType :: Prelude.Maybe StackSetOperationType
}
deriving (UpdateProvisioningPreferences
-> UpdateProvisioningPreferences -> Bool
(UpdateProvisioningPreferences
-> UpdateProvisioningPreferences -> Bool)
-> (UpdateProvisioningPreferences
-> UpdateProvisioningPreferences -> Bool)
-> Eq UpdateProvisioningPreferences
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateProvisioningPreferences
-> UpdateProvisioningPreferences -> Bool
$c/= :: UpdateProvisioningPreferences
-> UpdateProvisioningPreferences -> Bool
== :: UpdateProvisioningPreferences
-> UpdateProvisioningPreferences -> Bool
$c== :: UpdateProvisioningPreferences
-> UpdateProvisioningPreferences -> Bool
Prelude.Eq, ReadPrec [UpdateProvisioningPreferences]
ReadPrec UpdateProvisioningPreferences
Int -> ReadS UpdateProvisioningPreferences
ReadS [UpdateProvisioningPreferences]
(Int -> ReadS UpdateProvisioningPreferences)
-> ReadS [UpdateProvisioningPreferences]
-> ReadPrec UpdateProvisioningPreferences
-> ReadPrec [UpdateProvisioningPreferences]
-> Read UpdateProvisioningPreferences
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateProvisioningPreferences]
$creadListPrec :: ReadPrec [UpdateProvisioningPreferences]
readPrec :: ReadPrec UpdateProvisioningPreferences
$creadPrec :: ReadPrec UpdateProvisioningPreferences
readList :: ReadS [UpdateProvisioningPreferences]
$creadList :: ReadS [UpdateProvisioningPreferences]
readsPrec :: Int -> ReadS UpdateProvisioningPreferences
$creadsPrec :: Int -> ReadS UpdateProvisioningPreferences
Prelude.Read, Int -> UpdateProvisioningPreferences -> ShowS
[UpdateProvisioningPreferences] -> ShowS
UpdateProvisioningPreferences -> String
(Int -> UpdateProvisioningPreferences -> ShowS)
-> (UpdateProvisioningPreferences -> String)
-> ([UpdateProvisioningPreferences] -> ShowS)
-> Show UpdateProvisioningPreferences
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateProvisioningPreferences] -> ShowS
$cshowList :: [UpdateProvisioningPreferences] -> ShowS
show :: UpdateProvisioningPreferences -> String
$cshow :: UpdateProvisioningPreferences -> String
showsPrec :: Int -> UpdateProvisioningPreferences -> ShowS
$cshowsPrec :: Int -> UpdateProvisioningPreferences -> ShowS
Prelude.Show, (forall x.
UpdateProvisioningPreferences
-> Rep UpdateProvisioningPreferences x)
-> (forall x.
Rep UpdateProvisioningPreferences x
-> UpdateProvisioningPreferences)
-> Generic UpdateProvisioningPreferences
forall x.
Rep UpdateProvisioningPreferences x
-> UpdateProvisioningPreferences
forall x.
UpdateProvisioningPreferences
-> Rep UpdateProvisioningPreferences x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateProvisioningPreferences x
-> UpdateProvisioningPreferences
$cfrom :: forall x.
UpdateProvisioningPreferences
-> Rep UpdateProvisioningPreferences x
Prelude.Generic)
newUpdateProvisioningPreferences ::
UpdateProvisioningPreferences
newUpdateProvisioningPreferences :: UpdateProvisioningPreferences
newUpdateProvisioningPreferences =
UpdateProvisioningPreferences' :: Maybe [Text]
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe [Text]
-> Maybe Natural
-> Maybe StackSetOperationType
-> UpdateProvisioningPreferences
UpdateProvisioningPreferences'
{ $sel:stackSetRegions:UpdateProvisioningPreferences' :: Maybe [Text]
stackSetRegions =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetMaxConcurrencyPercentage:UpdateProvisioningPreferences' :: Maybe Natural
stackSetMaxConcurrencyPercentage =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetFailureToleranceCount:UpdateProvisioningPreferences' :: Maybe Natural
stackSetFailureToleranceCount =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetFailureTolerancePercentage:UpdateProvisioningPreferences' :: Maybe Natural
stackSetFailureTolerancePercentage =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetAccounts:UpdateProvisioningPreferences' :: Maybe [Text]
stackSetAccounts = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetMaxConcurrencyCount:UpdateProvisioningPreferences' :: Maybe Natural
stackSetMaxConcurrencyCount =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetOperationType:UpdateProvisioningPreferences' :: Maybe StackSetOperationType
stackSetOperationType = Maybe StackSetOperationType
forall a. Maybe a
Prelude.Nothing
}
updateProvisioningPreferences_stackSetRegions :: Lens.Lens' UpdateProvisioningPreferences (Prelude.Maybe [Prelude.Text])
updateProvisioningPreferences_stackSetRegions :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateProvisioningPreferences -> f UpdateProvisioningPreferences
updateProvisioningPreferences_stackSetRegions = (UpdateProvisioningPreferences -> Maybe [Text])
-> (UpdateProvisioningPreferences
-> Maybe [Text] -> UpdateProvisioningPreferences)
-> Lens
UpdateProvisioningPreferences
UpdateProvisioningPreferences
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProvisioningPreferences' {Maybe [Text]
stackSetRegions :: Maybe [Text]
$sel:stackSetRegions:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe [Text]
stackSetRegions} -> Maybe [Text]
stackSetRegions) (\s :: UpdateProvisioningPreferences
s@UpdateProvisioningPreferences' {} Maybe [Text]
a -> UpdateProvisioningPreferences
s {$sel:stackSetRegions:UpdateProvisioningPreferences' :: Maybe [Text]
stackSetRegions = Maybe [Text]
a} :: UpdateProvisioningPreferences) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateProvisioningPreferences
-> f UpdateProvisioningPreferences)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateProvisioningPreferences
-> f UpdateProvisioningPreferences
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateProvisioningPreferences_stackSetMaxConcurrencyPercentage :: Lens.Lens' UpdateProvisioningPreferences (Prelude.Maybe Prelude.Natural)
updateProvisioningPreferences_stackSetMaxConcurrencyPercentage :: (Maybe Natural -> f (Maybe Natural))
-> UpdateProvisioningPreferences -> f UpdateProvisioningPreferences
updateProvisioningPreferences_stackSetMaxConcurrencyPercentage = (UpdateProvisioningPreferences -> Maybe Natural)
-> (UpdateProvisioningPreferences
-> Maybe Natural -> UpdateProvisioningPreferences)
-> Lens
UpdateProvisioningPreferences
UpdateProvisioningPreferences
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProvisioningPreferences' {Maybe Natural
stackSetMaxConcurrencyPercentage :: Maybe Natural
$sel:stackSetMaxConcurrencyPercentage:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
stackSetMaxConcurrencyPercentage} -> Maybe Natural
stackSetMaxConcurrencyPercentage) (\s :: UpdateProvisioningPreferences
s@UpdateProvisioningPreferences' {} Maybe Natural
a -> UpdateProvisioningPreferences
s {$sel:stackSetMaxConcurrencyPercentage:UpdateProvisioningPreferences' :: Maybe Natural
stackSetMaxConcurrencyPercentage = Maybe Natural
a} :: UpdateProvisioningPreferences)
updateProvisioningPreferences_stackSetFailureToleranceCount :: Lens.Lens' UpdateProvisioningPreferences (Prelude.Maybe Prelude.Natural)
updateProvisioningPreferences_stackSetFailureToleranceCount :: (Maybe Natural -> f (Maybe Natural))
-> UpdateProvisioningPreferences -> f UpdateProvisioningPreferences
updateProvisioningPreferences_stackSetFailureToleranceCount = (UpdateProvisioningPreferences -> Maybe Natural)
-> (UpdateProvisioningPreferences
-> Maybe Natural -> UpdateProvisioningPreferences)
-> Lens
UpdateProvisioningPreferences
UpdateProvisioningPreferences
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProvisioningPreferences' {Maybe Natural
stackSetFailureToleranceCount :: Maybe Natural
$sel:stackSetFailureToleranceCount:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
stackSetFailureToleranceCount} -> Maybe Natural
stackSetFailureToleranceCount) (\s :: UpdateProvisioningPreferences
s@UpdateProvisioningPreferences' {} Maybe Natural
a -> UpdateProvisioningPreferences
s {$sel:stackSetFailureToleranceCount:UpdateProvisioningPreferences' :: Maybe Natural
stackSetFailureToleranceCount = Maybe Natural
a} :: UpdateProvisioningPreferences)
updateProvisioningPreferences_stackSetFailureTolerancePercentage :: Lens.Lens' UpdateProvisioningPreferences (Prelude.Maybe Prelude.Natural)
updateProvisioningPreferences_stackSetFailureTolerancePercentage :: (Maybe Natural -> f (Maybe Natural))
-> UpdateProvisioningPreferences -> f UpdateProvisioningPreferences
updateProvisioningPreferences_stackSetFailureTolerancePercentage = (UpdateProvisioningPreferences -> Maybe Natural)
-> (UpdateProvisioningPreferences
-> Maybe Natural -> UpdateProvisioningPreferences)
-> Lens
UpdateProvisioningPreferences
UpdateProvisioningPreferences
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProvisioningPreferences' {Maybe Natural
stackSetFailureTolerancePercentage :: Maybe Natural
$sel:stackSetFailureTolerancePercentage:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
stackSetFailureTolerancePercentage} -> Maybe Natural
stackSetFailureTolerancePercentage) (\s :: UpdateProvisioningPreferences
s@UpdateProvisioningPreferences' {} Maybe Natural
a -> UpdateProvisioningPreferences
s {$sel:stackSetFailureTolerancePercentage:UpdateProvisioningPreferences' :: Maybe Natural
stackSetFailureTolerancePercentage = Maybe Natural
a} :: UpdateProvisioningPreferences)
updateProvisioningPreferences_stackSetAccounts :: Lens.Lens' UpdateProvisioningPreferences (Prelude.Maybe [Prelude.Text])
updateProvisioningPreferences_stackSetAccounts :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateProvisioningPreferences -> f UpdateProvisioningPreferences
updateProvisioningPreferences_stackSetAccounts = (UpdateProvisioningPreferences -> Maybe [Text])
-> (UpdateProvisioningPreferences
-> Maybe [Text] -> UpdateProvisioningPreferences)
-> Lens
UpdateProvisioningPreferences
UpdateProvisioningPreferences
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProvisioningPreferences' {Maybe [Text]
stackSetAccounts :: Maybe [Text]
$sel:stackSetAccounts:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe [Text]
stackSetAccounts} -> Maybe [Text]
stackSetAccounts) (\s :: UpdateProvisioningPreferences
s@UpdateProvisioningPreferences' {} Maybe [Text]
a -> UpdateProvisioningPreferences
s {$sel:stackSetAccounts:UpdateProvisioningPreferences' :: Maybe [Text]
stackSetAccounts = Maybe [Text]
a} :: UpdateProvisioningPreferences) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateProvisioningPreferences
-> f UpdateProvisioningPreferences)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateProvisioningPreferences
-> f UpdateProvisioningPreferences
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateProvisioningPreferences_stackSetMaxConcurrencyCount :: Lens.Lens' UpdateProvisioningPreferences (Prelude.Maybe Prelude.Natural)
updateProvisioningPreferences_stackSetMaxConcurrencyCount :: (Maybe Natural -> f (Maybe Natural))
-> UpdateProvisioningPreferences -> f UpdateProvisioningPreferences
updateProvisioningPreferences_stackSetMaxConcurrencyCount = (UpdateProvisioningPreferences -> Maybe Natural)
-> (UpdateProvisioningPreferences
-> Maybe Natural -> UpdateProvisioningPreferences)
-> Lens
UpdateProvisioningPreferences
UpdateProvisioningPreferences
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProvisioningPreferences' {Maybe Natural
stackSetMaxConcurrencyCount :: Maybe Natural
$sel:stackSetMaxConcurrencyCount:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
stackSetMaxConcurrencyCount} -> Maybe Natural
stackSetMaxConcurrencyCount) (\s :: UpdateProvisioningPreferences
s@UpdateProvisioningPreferences' {} Maybe Natural
a -> UpdateProvisioningPreferences
s {$sel:stackSetMaxConcurrencyCount:UpdateProvisioningPreferences' :: Maybe Natural
stackSetMaxConcurrencyCount = Maybe Natural
a} :: UpdateProvisioningPreferences)
updateProvisioningPreferences_stackSetOperationType :: Lens.Lens' UpdateProvisioningPreferences (Prelude.Maybe StackSetOperationType)
updateProvisioningPreferences_stackSetOperationType :: (Maybe StackSetOperationType -> f (Maybe StackSetOperationType))
-> UpdateProvisioningPreferences -> f UpdateProvisioningPreferences
updateProvisioningPreferences_stackSetOperationType = (UpdateProvisioningPreferences -> Maybe StackSetOperationType)
-> (UpdateProvisioningPreferences
-> Maybe StackSetOperationType -> UpdateProvisioningPreferences)
-> Lens
UpdateProvisioningPreferences
UpdateProvisioningPreferences
(Maybe StackSetOperationType)
(Maybe StackSetOperationType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateProvisioningPreferences' {Maybe StackSetOperationType
stackSetOperationType :: Maybe StackSetOperationType
$sel:stackSetOperationType:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe StackSetOperationType
stackSetOperationType} -> Maybe StackSetOperationType
stackSetOperationType) (\s :: UpdateProvisioningPreferences
s@UpdateProvisioningPreferences' {} Maybe StackSetOperationType
a -> UpdateProvisioningPreferences
s {$sel:stackSetOperationType:UpdateProvisioningPreferences' :: Maybe StackSetOperationType
stackSetOperationType = Maybe StackSetOperationType
a} :: UpdateProvisioningPreferences)
instance
Prelude.Hashable
UpdateProvisioningPreferences
instance Prelude.NFData UpdateProvisioningPreferences
instance Core.ToJSON UpdateProvisioningPreferences where
toJSON :: UpdateProvisioningPreferences -> Value
toJSON UpdateProvisioningPreferences' {Maybe Natural
Maybe [Text]
Maybe StackSetOperationType
stackSetOperationType :: Maybe StackSetOperationType
stackSetMaxConcurrencyCount :: Maybe Natural
stackSetAccounts :: Maybe [Text]
stackSetFailureTolerancePercentage :: Maybe Natural
stackSetFailureToleranceCount :: Maybe Natural
stackSetMaxConcurrencyPercentage :: Maybe Natural
stackSetRegions :: Maybe [Text]
$sel:stackSetOperationType:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe StackSetOperationType
$sel:stackSetMaxConcurrencyCount:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
$sel:stackSetAccounts:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe [Text]
$sel:stackSetFailureTolerancePercentage:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
$sel:stackSetFailureToleranceCount:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
$sel:stackSetMaxConcurrencyPercentage:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe Natural
$sel:stackSetRegions:UpdateProvisioningPreferences' :: UpdateProvisioningPreferences -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"StackSetRegions" 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]
stackSetRegions,
(Text
"StackSetMaxConcurrencyPercentage" 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
stackSetMaxConcurrencyPercentage,
(Text
"StackSetFailureToleranceCount" 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
stackSetFailureToleranceCount,
(Text
"StackSetFailureTolerancePercentage" 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
stackSetFailureTolerancePercentage,
(Text
"StackSetAccounts" 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]
stackSetAccounts,
(Text
"StackSetMaxConcurrencyCount" 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
stackSetMaxConcurrencyCount,
(Text
"StackSetOperationType" Text -> StackSetOperationType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(StackSetOperationType -> Pair)
-> Maybe StackSetOperationType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StackSetOperationType
stackSetOperationType
]
)