stratosphere-config-1.0.0: gen/Stratosphere/Config/ConfigurationAggregator.hs
module Stratosphere.Config.ConfigurationAggregator (
module Exports, ConfigurationAggregator(..),
mkConfigurationAggregator
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Config.ConfigurationAggregator.AccountAggregationSourceProperty as Exports
import {-# SOURCE #-} Stratosphere.Config.ConfigurationAggregator.OrganizationAggregationSourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ConfigurationAggregator
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html>
ConfigurationAggregator {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-accountaggregationsources>
accountAggregationSources :: (Prelude.Maybe [AccountAggregationSourceProperty]),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-configurationaggregatorname>
configurationAggregatorName :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-organizationaggregationsource>
organizationAggregationSource :: (Prelude.Maybe OrganizationAggregationSourceProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-tags>
tags :: (Prelude.Maybe [Tag])}
deriving stock (Prelude.Eq, Prelude.Show)
mkConfigurationAggregator :: ConfigurationAggregator
mkConfigurationAggregator
= ConfigurationAggregator
{haddock_workaround_ = (),
accountAggregationSources = Prelude.Nothing,
configurationAggregatorName = Prelude.Nothing,
organizationAggregationSource = Prelude.Nothing,
tags = Prelude.Nothing}
instance ToResourceProperties ConfigurationAggregator where
toResourceProperties ConfigurationAggregator {..}
= ResourceProperties
{awsType = "AWS::Config::ConfigurationAggregator",
supportsTags = Prelude.True,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "AccountAggregationSources"
Prelude.<$> accountAggregationSources,
(JSON..=) "ConfigurationAggregatorName"
Prelude.<$> configurationAggregatorName,
(JSON..=) "OrganizationAggregationSource"
Prelude.<$> organizationAggregationSource,
(JSON..=) "Tags" Prelude.<$> tags])}
instance JSON.ToJSON ConfigurationAggregator where
toJSON ConfigurationAggregator {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "AccountAggregationSources"
Prelude.<$> accountAggregationSources,
(JSON..=) "ConfigurationAggregatorName"
Prelude.<$> configurationAggregatorName,
(JSON..=) "OrganizationAggregationSource"
Prelude.<$> organizationAggregationSource,
(JSON..=) "Tags" Prelude.<$> tags]))
instance Property "AccountAggregationSources" ConfigurationAggregator where
type PropertyType "AccountAggregationSources" ConfigurationAggregator = [AccountAggregationSourceProperty]
set newValue ConfigurationAggregator {..}
= ConfigurationAggregator
{accountAggregationSources = Prelude.pure newValue, ..}
instance Property "ConfigurationAggregatorName" ConfigurationAggregator where
type PropertyType "ConfigurationAggregatorName" ConfigurationAggregator = Value Prelude.Text
set newValue ConfigurationAggregator {..}
= ConfigurationAggregator
{configurationAggregatorName = Prelude.pure newValue, ..}
instance Property "OrganizationAggregationSource" ConfigurationAggregator where
type PropertyType "OrganizationAggregationSource" ConfigurationAggregator = OrganizationAggregationSourceProperty
set newValue ConfigurationAggregator {..}
= ConfigurationAggregator
{organizationAggregationSource = Prelude.pure newValue, ..}
instance Property "Tags" ConfigurationAggregator where
type PropertyType "Tags" ConfigurationAggregator = [Tag]
set newValue ConfigurationAggregator {..}
= ConfigurationAggregator {tags = Prelude.pure newValue, ..}