module Stratosphere.SecurityHub.AggregatorV2 (
        AggregatorV2(..), mkAggregatorV2
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AggregatorV2
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-aggregatorv2.html>
    AggregatorV2 {AggregatorV2 -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-aggregatorv2.html#cfn-securityhub-aggregatorv2-linkedregions>
                  AggregatorV2 -> ValueList Text
linkedRegions :: (ValueList Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-aggregatorv2.html#cfn-securityhub-aggregatorv2-regionlinkingmode>
                  AggregatorV2 -> Value Text
regionLinkingMode :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-aggregatorv2.html#cfn-securityhub-aggregatorv2-tags>
                  AggregatorV2 -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (AggregatorV2 -> AggregatorV2 -> Bool
(AggregatorV2 -> AggregatorV2 -> Bool)
-> (AggregatorV2 -> AggregatorV2 -> Bool) -> Eq AggregatorV2
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AggregatorV2 -> AggregatorV2 -> Bool
== :: AggregatorV2 -> AggregatorV2 -> Bool
$c/= :: AggregatorV2 -> AggregatorV2 -> Bool
/= :: AggregatorV2 -> AggregatorV2 -> Bool
Prelude.Eq, Int -> AggregatorV2 -> ShowS
[AggregatorV2] -> ShowS
AggregatorV2 -> String
(Int -> AggregatorV2 -> ShowS)
-> (AggregatorV2 -> String)
-> ([AggregatorV2] -> ShowS)
-> Show AggregatorV2
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AggregatorV2 -> ShowS
showsPrec :: Int -> AggregatorV2 -> ShowS
$cshow :: AggregatorV2 -> String
show :: AggregatorV2 -> String
$cshowList :: [AggregatorV2] -> ShowS
showList :: [AggregatorV2] -> ShowS
Prelude.Show)
mkAggregatorV2 ::
  ValueList Prelude.Text -> Value Prelude.Text -> AggregatorV2
mkAggregatorV2 :: ValueList Text -> Value Text -> AggregatorV2
mkAggregatorV2 ValueList Text
linkedRegions Value Text
regionLinkingMode
  = AggregatorV2
      {haddock_workaround_ :: ()
haddock_workaround_ = (), linkedRegions :: ValueList Text
linkedRegions = ValueList Text
linkedRegions,
       regionLinkingMode :: Value Text
regionLinkingMode = Value Text
regionLinkingMode, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AggregatorV2 where
  toResourceProperties :: AggregatorV2 -> ResourceProperties
toResourceProperties AggregatorV2 {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: AggregatorV2 -> ()
linkedRegions :: AggregatorV2 -> ValueList Text
regionLinkingMode :: AggregatorV2 -> Value Text
tags :: AggregatorV2 -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
regionLinkingMode :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityHub::AggregatorV2",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"LinkedRegions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
linkedRegions,
                            Key
"RegionLinkingMode" 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
regionLinkingMode]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON AggregatorV2 where
  toJSON :: AggregatorV2 -> Value
toJSON AggregatorV2 {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: AggregatorV2 -> ()
linkedRegions :: AggregatorV2 -> ValueList Text
regionLinkingMode :: AggregatorV2 -> Value Text
tags :: AggregatorV2 -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
regionLinkingMode :: Value Text
tags :: Maybe (Map Text (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
"LinkedRegions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
linkedRegions,
               Key
"RegionLinkingMode" 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
regionLinkingMode]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "LinkedRegions" AggregatorV2 where
  type PropertyType "LinkedRegions" AggregatorV2 = ValueList Prelude.Text
  set :: PropertyType "LinkedRegions" AggregatorV2
-> AggregatorV2 -> AggregatorV2
set PropertyType "LinkedRegions" AggregatorV2
newValue AggregatorV2 {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: AggregatorV2 -> ()
linkedRegions :: AggregatorV2 -> ValueList Text
regionLinkingMode :: AggregatorV2 -> Value Text
tags :: AggregatorV2 -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
regionLinkingMode :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = AggregatorV2 {linkedRegions :: ValueList Text
linkedRegions = PropertyType "LinkedRegions" AggregatorV2
ValueList Text
newValue, Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
regionLinkingMode :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
regionLinkingMode :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "RegionLinkingMode" AggregatorV2 where
  type PropertyType "RegionLinkingMode" AggregatorV2 = Value Prelude.Text
  set :: PropertyType "RegionLinkingMode" AggregatorV2
-> AggregatorV2 -> AggregatorV2
set PropertyType "RegionLinkingMode" AggregatorV2
newValue AggregatorV2 {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: AggregatorV2 -> ()
linkedRegions :: AggregatorV2 -> ValueList Text
regionLinkingMode :: AggregatorV2 -> Value Text
tags :: AggregatorV2 -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
regionLinkingMode :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = AggregatorV2 {regionLinkingMode :: Value Text
regionLinkingMode = PropertyType "RegionLinkingMode" AggregatorV2
Value Text
newValue, Maybe (Map Text (Value Text))
()
ValueList Text
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" AggregatorV2 where
  type PropertyType "Tags" AggregatorV2 = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" AggregatorV2 -> AggregatorV2 -> AggregatorV2
set PropertyType "Tags" AggregatorV2
newValue AggregatorV2 {Maybe (Map Text (Value Text))
()
ValueList Text
Value Text
haddock_workaround_ :: AggregatorV2 -> ()
linkedRegions :: AggregatorV2 -> ValueList Text
regionLinkingMode :: AggregatorV2 -> Value Text
tags :: AggregatorV2 -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
regionLinkingMode :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
    = AggregatorV2 {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" AggregatorV2
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
regionLinkingMode :: Value Text
haddock_workaround_ :: ()
linkedRegions :: ValueList Text
regionLinkingMode :: Value Text
..}