module Stratosphere.ResilienceHub.App.PhysicalResourceIdProperty (
        PhysicalResourceIdProperty(..), mkPhysicalResourceIdProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PhysicalResourceIdProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-physicalresourceid.html>
    PhysicalResourceIdProperty {PhysicalResourceIdProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-physicalresourceid.html#cfn-resiliencehub-app-physicalresourceid-awsaccountid>
                                PhysicalResourceIdProperty -> Maybe (Value Text)
awsAccountId :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-physicalresourceid.html#cfn-resiliencehub-app-physicalresourceid-awsregion>
                                PhysicalResourceIdProperty -> Maybe (Value Text)
awsRegion :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-physicalresourceid.html#cfn-resiliencehub-app-physicalresourceid-identifier>
                                PhysicalResourceIdProperty -> Value Text
identifier :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-physicalresourceid.html#cfn-resiliencehub-app-physicalresourceid-type>
                                PhysicalResourceIdProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (PhysicalResourceIdProperty -> PhysicalResourceIdProperty -> Bool
(PhysicalResourceIdProperty -> PhysicalResourceIdProperty -> Bool)
-> (PhysicalResourceIdProperty
    -> PhysicalResourceIdProperty -> Bool)
-> Eq PhysicalResourceIdProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PhysicalResourceIdProperty -> PhysicalResourceIdProperty -> Bool
== :: PhysicalResourceIdProperty -> PhysicalResourceIdProperty -> Bool
$c/= :: PhysicalResourceIdProperty -> PhysicalResourceIdProperty -> Bool
/= :: PhysicalResourceIdProperty -> PhysicalResourceIdProperty -> Bool
Prelude.Eq, Int -> PhysicalResourceIdProperty -> ShowS
[PhysicalResourceIdProperty] -> ShowS
PhysicalResourceIdProperty -> String
(Int -> PhysicalResourceIdProperty -> ShowS)
-> (PhysicalResourceIdProperty -> String)
-> ([PhysicalResourceIdProperty] -> ShowS)
-> Show PhysicalResourceIdProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PhysicalResourceIdProperty -> ShowS
showsPrec :: Int -> PhysicalResourceIdProperty -> ShowS
$cshow :: PhysicalResourceIdProperty -> String
show :: PhysicalResourceIdProperty -> String
$cshowList :: [PhysicalResourceIdProperty] -> ShowS
showList :: [PhysicalResourceIdProperty] -> ShowS
Prelude.Show)
mkPhysicalResourceIdProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> PhysicalResourceIdProperty
mkPhysicalResourceIdProperty :: Value Text -> Value Text -> PhysicalResourceIdProperty
mkPhysicalResourceIdProperty Value Text
identifier Value Text
type'
  = PhysicalResourceIdProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), identifier :: Value Text
identifier = Value Text
identifier, type' :: Value Text
type' = Value Text
type',
       awsAccountId :: Maybe (Value Text)
awsAccountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, awsRegion :: Maybe (Value Text)
awsRegion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PhysicalResourceIdProperty where
  toResourceProperties :: PhysicalResourceIdProperty -> ResourceProperties
toResourceProperties PhysicalResourceIdProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PhysicalResourceIdProperty -> ()
awsAccountId :: PhysicalResourceIdProperty -> Maybe (Value Text)
awsRegion :: PhysicalResourceIdProperty -> Maybe (Value Text)
identifier :: PhysicalResourceIdProperty -> Value Text
type' :: PhysicalResourceIdProperty -> Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ResilienceHub::App.PhysicalResourceId",
         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
"Identifier" 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..= Value Text
identifier, Key
"Type" 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..= Value Text
type']
                           ([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
"AwsAccountId" (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)
awsAccountId,
                               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
"AwsRegion" (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)
awsRegion]))}
instance JSON.ToJSON PhysicalResourceIdProperty where
  toJSON :: PhysicalResourceIdProperty -> Value
toJSON PhysicalResourceIdProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PhysicalResourceIdProperty -> ()
awsAccountId :: PhysicalResourceIdProperty -> Maybe (Value Text)
awsRegion :: PhysicalResourceIdProperty -> Maybe (Value Text)
identifier :: PhysicalResourceIdProperty -> Value Text
type' :: PhysicalResourceIdProperty -> Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
    = [(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
"Identifier" 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..= Value Text
identifier, Key
"Type" 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..= Value Text
type']
              ([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
"AwsAccountId" (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)
awsAccountId,
                  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
"AwsRegion" (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)
awsRegion])))
instance Property "AwsAccountId" PhysicalResourceIdProperty where
  type PropertyType "AwsAccountId" PhysicalResourceIdProperty = Value Prelude.Text
  set :: PropertyType "AwsAccountId" PhysicalResourceIdProperty
-> PhysicalResourceIdProperty -> PhysicalResourceIdProperty
set PropertyType "AwsAccountId" PhysicalResourceIdProperty
newValue PhysicalResourceIdProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PhysicalResourceIdProperty -> ()
awsAccountId :: PhysicalResourceIdProperty -> Maybe (Value Text)
awsRegion :: PhysicalResourceIdProperty -> Maybe (Value Text)
identifier :: PhysicalResourceIdProperty -> Value Text
type' :: PhysicalResourceIdProperty -> Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
    = PhysicalResourceIdProperty
        {awsAccountId :: Maybe (Value Text)
awsAccountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AwsAccountId" PhysicalResourceIdProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
instance Property "AwsRegion" PhysicalResourceIdProperty where
  type PropertyType "AwsRegion" PhysicalResourceIdProperty = Value Prelude.Text
  set :: PropertyType "AwsRegion" PhysicalResourceIdProperty
-> PhysicalResourceIdProperty -> PhysicalResourceIdProperty
set PropertyType "AwsRegion" PhysicalResourceIdProperty
newValue PhysicalResourceIdProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PhysicalResourceIdProperty -> ()
awsAccountId :: PhysicalResourceIdProperty -> Maybe (Value Text)
awsRegion :: PhysicalResourceIdProperty -> Maybe (Value Text)
identifier :: PhysicalResourceIdProperty -> Value Text
type' :: PhysicalResourceIdProperty -> Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
    = PhysicalResourceIdProperty
        {awsRegion :: Maybe (Value Text)
awsRegion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AwsRegion" PhysicalResourceIdProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
instance Property "Identifier" PhysicalResourceIdProperty where
  type PropertyType "Identifier" PhysicalResourceIdProperty = Value Prelude.Text
  set :: PropertyType "Identifier" PhysicalResourceIdProperty
-> PhysicalResourceIdProperty -> PhysicalResourceIdProperty
set PropertyType "Identifier" PhysicalResourceIdProperty
newValue PhysicalResourceIdProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PhysicalResourceIdProperty -> ()
awsAccountId :: PhysicalResourceIdProperty -> Maybe (Value Text)
awsRegion :: PhysicalResourceIdProperty -> Maybe (Value Text)
identifier :: PhysicalResourceIdProperty -> Value Text
type' :: PhysicalResourceIdProperty -> Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
    = PhysicalResourceIdProperty {identifier :: Value Text
identifier = PropertyType "Identifier" PhysicalResourceIdProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" PhysicalResourceIdProperty where
  type PropertyType "Type" PhysicalResourceIdProperty = Value Prelude.Text
  set :: PropertyType "Type" PhysicalResourceIdProperty
-> PhysicalResourceIdProperty -> PhysicalResourceIdProperty
set PropertyType "Type" PhysicalResourceIdProperty
newValue PhysicalResourceIdProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PhysicalResourceIdProperty -> ()
awsAccountId :: PhysicalResourceIdProperty -> Maybe (Value Text)
awsRegion :: PhysicalResourceIdProperty -> Maybe (Value Text)
identifier :: PhysicalResourceIdProperty -> Value Text
type' :: PhysicalResourceIdProperty -> Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
type' :: Value Text
..}
    = PhysicalResourceIdProperty {type' :: Value Text
type' = PropertyType "Type" PhysicalResourceIdProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
identifier :: Value Text
..}