module Stratosphere.SecurityHub.HubV2 ( HubV2(..), mkHubV2 ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data HubV2 = -- | See: HubV2 {haddock_workaround_ :: (), -- | See: tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))} deriving stock (Prelude.Eq, Prelude.Show) mkHubV2 :: HubV2 mkHubV2 = HubV2 {haddock_workaround_ = (), tags = Prelude.Nothing} instance ToResourceProperties HubV2 where toResourceProperties HubV2 {..} = ResourceProperties {awsType = "AWS::SecurityHub::HubV2", supportsTags = Prelude.True, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Tags" Prelude.<$> tags])} instance JSON.ToJSON HubV2 where toJSON HubV2 {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Tags" Prelude.<$> tags])) instance Property "Tags" HubV2 where type PropertyType "Tags" HubV2 = Prelude.Map Prelude.Text (Value Prelude.Text) set newValue HubV2 {..} = HubV2 {tags = Prelude.pure newValue, ..}