module Stratosphere.Inspector.ResourceGroup (
ResourceGroup(..), mkResourceGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
data ResourceGroup
=
ResourceGroup {ResourceGroup -> ()
haddock_workaround_ :: (),
ResourceGroup -> [Tag]
resourceGroupTags :: [Tag]}
deriving stock (ResourceGroup -> ResourceGroup -> Bool
(ResourceGroup -> ResourceGroup -> Bool)
-> (ResourceGroup -> ResourceGroup -> Bool) -> Eq ResourceGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceGroup -> ResourceGroup -> Bool
== :: ResourceGroup -> ResourceGroup -> Bool
$c/= :: ResourceGroup -> ResourceGroup -> Bool
/= :: ResourceGroup -> ResourceGroup -> Bool
Prelude.Eq, Int -> ResourceGroup -> ShowS
[ResourceGroup] -> ShowS
ResourceGroup -> String
(Int -> ResourceGroup -> ShowS)
-> (ResourceGroup -> String)
-> ([ResourceGroup] -> ShowS)
-> Show ResourceGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceGroup -> ShowS
showsPrec :: Int -> ResourceGroup -> ShowS
$cshow :: ResourceGroup -> String
show :: ResourceGroup -> String
$cshowList :: [ResourceGroup] -> ShowS
showList :: [ResourceGroup] -> ShowS
Prelude.Show)
mkResourceGroup :: [Tag] -> ResourceGroup
mkResourceGroup :: [Tag] -> ResourceGroup
mkResourceGroup [Tag]
resourceGroupTags
= ResourceGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (), resourceGroupTags :: [Tag]
resourceGroupTags = [Tag]
resourceGroupTags}
instance ToResourceProperties ResourceGroup where
toResourceProperties :: ResourceGroup -> ResourceProperties
toResourceProperties ResourceGroup {[Tag]
()
haddock_workaround_ :: ResourceGroup -> ()
resourceGroupTags :: ResourceGroup -> [Tag]
haddock_workaround_ :: ()
resourceGroupTags :: [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Inspector::ResourceGroup",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ResourceGroupTags" Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [Tag]
resourceGroupTags]}
instance JSON.ToJSON ResourceGroup where
toJSON :: ResourceGroup -> Value
toJSON ResourceGroup {[Tag]
()
haddock_workaround_ :: ResourceGroup -> ()
resourceGroupTags :: ResourceGroup -> [Tag]
haddock_workaround_ :: ()
resourceGroupTags :: [Tag]
..}
= [(Key, Value)] -> Value
JSON.object [Key
"ResourceGroupTags" Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [Tag]
resourceGroupTags]
instance Property "ResourceGroupTags" ResourceGroup where
type PropertyType "ResourceGroupTags" ResourceGroup = [Tag]
set :: PropertyType "ResourceGroupTags" ResourceGroup
-> ResourceGroup -> ResourceGroup
set PropertyType "ResourceGroupTags" ResourceGroup
newValue ResourceGroup {[Tag]
()
haddock_workaround_ :: ResourceGroup -> ()
resourceGroupTags :: ResourceGroup -> [Tag]
haddock_workaround_ :: ()
resourceGroupTags :: [Tag]
..}
= ResourceGroup {resourceGroupTags :: [Tag]
resourceGroupTags = [Tag]
PropertyType "ResourceGroupTags" ResourceGroup
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}