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