module Stratosphere.CloudWatch.MetricStream (
        module Exports, MetricStream(..), mkMetricStream
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CloudWatch.MetricStream.MetricStreamFilterProperty as Exports
import {-# SOURCE #-} Stratosphere.CloudWatch.MetricStream.MetricStreamStatisticsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data MetricStream
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html>
    MetricStream {MetricStream -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-excludefilters>
                  MetricStream -> Maybe [MetricStreamFilterProperty]
excludeFilters :: (Prelude.Maybe [MetricStreamFilterProperty]),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-firehosearn>
                  MetricStream -> Value Text
firehoseArn :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-includefilters>
                  MetricStream -> Maybe [MetricStreamFilterProperty]
includeFilters :: (Prelude.Maybe [MetricStreamFilterProperty]),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-includelinkedaccountsmetrics>
                  MetricStream -> Maybe (Value Bool)
includeLinkedAccountsMetrics :: (Prelude.Maybe (Value Prelude.Bool)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-name>
                  MetricStream -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-outputformat>
                  MetricStream -> Value Text
outputFormat :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-rolearn>
                  MetricStream -> Value Text
roleArn :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-statisticsconfigurations>
                  MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
statisticsConfigurations :: (Prelude.Maybe [MetricStreamStatisticsConfigurationProperty]),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-tags>
                  MetricStream -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (MetricStream -> MetricStream -> Bool
(MetricStream -> MetricStream -> Bool)
-> (MetricStream -> MetricStream -> Bool) -> Eq MetricStream
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetricStream -> MetricStream -> Bool
== :: MetricStream -> MetricStream -> Bool
$c/= :: MetricStream -> MetricStream -> Bool
/= :: MetricStream -> MetricStream -> Bool
Prelude.Eq, Int -> MetricStream -> ShowS
[MetricStream] -> ShowS
MetricStream -> String
(Int -> MetricStream -> ShowS)
-> (MetricStream -> String)
-> ([MetricStream] -> ShowS)
-> Show MetricStream
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetricStream -> ShowS
showsPrec :: Int -> MetricStream -> ShowS
$cshow :: MetricStream -> String
show :: MetricStream -> String
$cshowList :: [MetricStream] -> ShowS
showList :: [MetricStream] -> ShowS
Prelude.Show)
mkMetricStream ::
  Value Prelude.Text
  -> Value Prelude.Text -> Value Prelude.Text -> MetricStream
mkMetricStream :: Value Text -> Value Text -> Value Text -> MetricStream
mkMetricStream Value Text
firehoseArn Value Text
outputFormat Value Text
roleArn
  = MetricStream
      {haddock_workaround_ :: ()
haddock_workaround_ = (), firehoseArn :: Value Text
firehoseArn = Value Text
firehoseArn,
       outputFormat :: Value Text
outputFormat = Value Text
outputFormat, roleArn :: Value Text
roleArn = Value Text
roleArn,
       excludeFilters :: Maybe [MetricStreamFilterProperty]
excludeFilters = Maybe [MetricStreamFilterProperty]
forall a. Maybe a
Prelude.Nothing, includeFilters :: Maybe [MetricStreamFilterProperty]
includeFilters = Maybe [MetricStreamFilterProperty]
forall a. Maybe a
Prelude.Nothing,
       includeLinkedAccountsMetrics :: Maybe (Value Bool)
includeLinkedAccountsMetrics = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
statisticsConfigurations = Maybe [MetricStreamStatisticsConfigurationProperty]
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MetricStream where
  toResourceProperties :: MetricStream -> ResourceProperties
toResourceProperties MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudWatch::MetricStream",
         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
"FirehoseArn" 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
firehoseArn,
                            Key
"OutputFormat" 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
outputFormat, Key
"RoleArn" 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
roleArn]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> [MetricStreamFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeFilters" ([MetricStreamFilterProperty] -> (Key, Value))
-> Maybe [MetricStreamFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricStreamFilterProperty]
excludeFilters,
                               Key -> [MetricStreamFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeFilters" ([MetricStreamFilterProperty] -> (Key, Value))
-> Maybe [MetricStreamFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricStreamFilterProperty]
includeFilters,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeLinkedAccountsMetrics"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
includeLinkedAccountsMetrics,
                               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
"Name" (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)
name,
                               Key
-> [MetricStreamStatisticsConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatisticsConfigurations"
                                 ([MetricStreamStatisticsConfigurationProperty] -> (Key, Value))
-> Maybe [MetricStreamStatisticsConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricStreamStatisticsConfigurationProperty]
statisticsConfigurations,
                               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..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON MetricStream where
  toJSON :: MetricStream -> Value
toJSON MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = [(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
"FirehoseArn" 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
firehoseArn,
               Key
"OutputFormat" 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
outputFormat, Key
"RoleArn" 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
roleArn]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> [MetricStreamFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeFilters" ([MetricStreamFilterProperty] -> (Key, Value))
-> Maybe [MetricStreamFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricStreamFilterProperty]
excludeFilters,
                  Key -> [MetricStreamFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeFilters" ([MetricStreamFilterProperty] -> (Key, Value))
-> Maybe [MetricStreamFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricStreamFilterProperty]
includeFilters,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeLinkedAccountsMetrics"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
includeLinkedAccountsMetrics,
                  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
"Name" (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)
name,
                  Key
-> [MetricStreamStatisticsConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatisticsConfigurations"
                    ([MetricStreamStatisticsConfigurationProperty] -> (Key, Value))
-> Maybe [MetricStreamStatisticsConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MetricStreamStatisticsConfigurationProperty]
statisticsConfigurations,
                  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..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "ExcludeFilters" MetricStream where
  type PropertyType "ExcludeFilters" MetricStream = [MetricStreamFilterProperty]
  set :: PropertyType "ExcludeFilters" MetricStream
-> MetricStream -> MetricStream
set PropertyType "ExcludeFilters" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream {excludeFilters :: Maybe [MetricStreamFilterProperty]
excludeFilters = [MetricStreamFilterProperty] -> Maybe [MetricStreamFilterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [MetricStreamFilterProperty]
PropertyType "ExcludeFilters" MetricStream
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
instance Property "FirehoseArn" MetricStream where
  type PropertyType "FirehoseArn" MetricStream = Value Prelude.Text
  set :: PropertyType "FirehoseArn" MetricStream
-> MetricStream -> MetricStream
set PropertyType "FirehoseArn" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream {firehoseArn :: Value Text
firehoseArn = PropertyType "FirehoseArn" MetricStream
Value Text
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
instance Property "IncludeFilters" MetricStream where
  type PropertyType "IncludeFilters" MetricStream = [MetricStreamFilterProperty]
  set :: PropertyType "IncludeFilters" MetricStream
-> MetricStream -> MetricStream
set PropertyType "IncludeFilters" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream {includeFilters :: Maybe [MetricStreamFilterProperty]
includeFilters = [MetricStreamFilterProperty] -> Maybe [MetricStreamFilterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [MetricStreamFilterProperty]
PropertyType "IncludeFilters" MetricStream
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
instance Property "IncludeLinkedAccountsMetrics" MetricStream where
  type PropertyType "IncludeLinkedAccountsMetrics" MetricStream = Value Prelude.Bool
  set :: PropertyType "IncludeLinkedAccountsMetrics" MetricStream
-> MetricStream -> MetricStream
set PropertyType "IncludeLinkedAccountsMetrics" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream
        {includeLinkedAccountsMetrics :: Maybe (Value Bool)
includeLinkedAccountsMetrics = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncludeLinkedAccountsMetrics" MetricStream
Value Bool
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
instance Property "Name" MetricStream where
  type PropertyType "Name" MetricStream = Value Prelude.Text
  set :: PropertyType "Name" MetricStream -> MetricStream -> MetricStream
set PropertyType "Name" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" MetricStream
Value Text
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
instance Property "OutputFormat" MetricStream where
  type PropertyType "OutputFormat" MetricStream = Value Prelude.Text
  set :: PropertyType "OutputFormat" MetricStream
-> MetricStream -> MetricStream
set PropertyType "OutputFormat" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream {outputFormat :: Value Text
outputFormat = PropertyType "OutputFormat" MetricStream
Value Text
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
instance Property "RoleArn" MetricStream where
  type PropertyType "RoleArn" MetricStream = Value Prelude.Text
  set :: PropertyType "RoleArn" MetricStream -> MetricStream -> MetricStream
set PropertyType "RoleArn" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream {roleArn :: Value Text
roleArn = PropertyType "RoleArn" MetricStream
Value Text
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
instance Property "StatisticsConfigurations" MetricStream where
  type PropertyType "StatisticsConfigurations" MetricStream = [MetricStreamStatisticsConfigurationProperty]
  set :: PropertyType "StatisticsConfigurations" MetricStream
-> MetricStream -> MetricStream
set PropertyType "StatisticsConfigurations" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream
        {statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
statisticsConfigurations = [MetricStreamStatisticsConfigurationProperty]
-> Maybe [MetricStreamStatisticsConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [MetricStreamStatisticsConfigurationProperty]
PropertyType "StatisticsConfigurations" MetricStream
newValue, Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" MetricStream where
  type PropertyType "Tags" MetricStream = [Tag]
  set :: PropertyType "Tags" MetricStream -> MetricStream -> MetricStream
set PropertyType "Tags" MetricStream
newValue MetricStream {Maybe [Tag]
Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MetricStream -> ()
excludeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
firehoseArn :: MetricStream -> Value Text
includeFilters :: MetricStream -> Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: MetricStream -> Maybe (Value Bool)
name :: MetricStream -> Maybe (Value Text)
outputFormat :: MetricStream -> Value Text
roleArn :: MetricStream -> Value Text
statisticsConfigurations :: MetricStream -> Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: MetricStream -> Maybe [Tag]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
tags :: Maybe [Tag]
..}
    = MetricStream {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" MetricStream
newValue, Maybe [MetricStreamFilterProperty]
Maybe [MetricStreamStatisticsConfigurationProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
haddock_workaround_ :: ()
excludeFilters :: Maybe [MetricStreamFilterProperty]
firehoseArn :: Value Text
includeFilters :: Maybe [MetricStreamFilterProperty]
includeLinkedAccountsMetrics :: Maybe (Value Bool)
name :: Maybe (Value Text)
outputFormat :: Value Text
roleArn :: Value Text
statisticsConfigurations :: Maybe [MetricStreamStatisticsConfigurationProperty]
..}