module Stratosphere.ARCRegionSwitch.Plan.LambdasProperty (
        LambdasProperty(..), mkLambdasProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdasProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-arcregionswitch-plan-lambdas.html>
    LambdasProperty {LambdasProperty -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-arcregionswitch-plan-lambdas.html#cfn-arcregionswitch-plan-lambdas-arn>
                     LambdasProperty -> Maybe (Value Text)
arn :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-arcregionswitch-plan-lambdas.html#cfn-arcregionswitch-plan-lambdas-crossaccountrole>
                     LambdasProperty -> Maybe (Value Text)
crossAccountRole :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-arcregionswitch-plan-lambdas.html#cfn-arcregionswitch-plan-lambdas-externalid>
                     LambdasProperty -> Maybe (Value Text)
externalId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LambdasProperty -> LambdasProperty -> Bool
(LambdasProperty -> LambdasProperty -> Bool)
-> (LambdasProperty -> LambdasProperty -> Bool)
-> Eq LambdasProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LambdasProperty -> LambdasProperty -> Bool
== :: LambdasProperty -> LambdasProperty -> Bool
$c/= :: LambdasProperty -> LambdasProperty -> Bool
/= :: LambdasProperty -> LambdasProperty -> Bool
Prelude.Eq, Int -> LambdasProperty -> ShowS
[LambdasProperty] -> ShowS
LambdasProperty -> String
(Int -> LambdasProperty -> ShowS)
-> (LambdasProperty -> String)
-> ([LambdasProperty] -> ShowS)
-> Show LambdasProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LambdasProperty -> ShowS
showsPrec :: Int -> LambdasProperty -> ShowS
$cshow :: LambdasProperty -> String
show :: LambdasProperty -> String
$cshowList :: [LambdasProperty] -> ShowS
showList :: [LambdasProperty] -> ShowS
Prelude.Show)
mkLambdasProperty :: LambdasProperty
mkLambdasProperty :: LambdasProperty
mkLambdasProperty
  = LambdasProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Maybe (Value Text)
arn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       crossAccountRole :: Maybe (Value Text)
crossAccountRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, externalId :: Maybe (Value Text)
externalId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LambdasProperty where
  toResourceProperties :: LambdasProperty -> ResourceProperties
toResourceProperties LambdasProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdasProperty -> ()
arn :: LambdasProperty -> Maybe (Value Text)
crossAccountRole :: LambdasProperty -> Maybe (Value Text)
externalId :: LambdasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ARCRegionSwitch::Plan.Lambdas",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Arn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
arn,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrossAccountRole" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
crossAccountRole,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExternalId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
externalId])}
instance JSON.ToJSON LambdasProperty where
  toJSON :: LambdasProperty -> Value
toJSON LambdasProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdasProperty -> ()
arn :: LambdasProperty -> Maybe (Value Text)
crossAccountRole :: LambdasProperty -> Maybe (Value Text)
externalId :: LambdasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Arn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
arn,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrossAccountRole" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
crossAccountRole,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExternalId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
externalId]))
instance Property "Arn" LambdasProperty where
  type PropertyType "Arn" LambdasProperty = Value Prelude.Text
  set :: PropertyType "Arn" LambdasProperty
-> LambdasProperty -> LambdasProperty
set PropertyType "Arn" LambdasProperty
newValue LambdasProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdasProperty -> ()
arn :: LambdasProperty -> Maybe (Value Text)
crossAccountRole :: LambdasProperty -> Maybe (Value Text)
externalId :: LambdasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}
    = LambdasProperty {arn :: Maybe (Value Text)
arn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Arn" LambdasProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
haddock_workaround_ :: ()
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}
instance Property "CrossAccountRole" LambdasProperty where
  type PropertyType "CrossAccountRole" LambdasProperty = Value Prelude.Text
  set :: PropertyType "CrossAccountRole" LambdasProperty
-> LambdasProperty -> LambdasProperty
set PropertyType "CrossAccountRole" LambdasProperty
newValue LambdasProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdasProperty -> ()
arn :: LambdasProperty -> Maybe (Value Text)
crossAccountRole :: LambdasProperty -> Maybe (Value Text)
externalId :: LambdasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}
    = LambdasProperty {crossAccountRole :: Maybe (Value Text)
crossAccountRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CrossAccountRole" LambdasProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
externalId :: Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}
instance Property "ExternalId" LambdasProperty where
  type PropertyType "ExternalId" LambdasProperty = Value Prelude.Text
  set :: PropertyType "ExternalId" LambdasProperty
-> LambdasProperty -> LambdasProperty
set PropertyType "ExternalId" LambdasProperty
newValue LambdasProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdasProperty -> ()
arn :: LambdasProperty -> Maybe (Value Text)
crossAccountRole :: LambdasProperty -> Maybe (Value Text)
externalId :: LambdasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}
    = LambdasProperty {externalId :: Maybe (Value Text)
externalId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExternalId" LambdasProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
..}