module Stratosphere.BCMDataExports.Export.ExportProperty (
        module Exports, ExportProperty(..), mkExportProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BCMDataExports.Export.DataQueryProperty as Exports
import {-# SOURCE #-} Stratosphere.BCMDataExports.Export.DestinationConfigurationsProperty as Exports
import {-# SOURCE #-} Stratosphere.BCMDataExports.Export.RefreshCadenceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExportProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bcmdataexports-export-export.html>
    ExportProperty {ExportProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bcmdataexports-export-export.html#cfn-bcmdataexports-export-export-dataquery>
                    ExportProperty -> DataQueryProperty
dataQuery :: DataQueryProperty,
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bcmdataexports-export-export.html#cfn-bcmdataexports-export-export-description>
                    ExportProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bcmdataexports-export-export.html#cfn-bcmdataexports-export-export-destinationconfigurations>
                    ExportProperty -> DestinationConfigurationsProperty
destinationConfigurations :: DestinationConfigurationsProperty,
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bcmdataexports-export-export.html#cfn-bcmdataexports-export-export-exportarn>
                    ExportProperty -> Maybe (Value Text)
exportArn :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bcmdataexports-export-export.html#cfn-bcmdataexports-export-export-name>
                    ExportProperty -> Value Text
name :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bcmdataexports-export-export.html#cfn-bcmdataexports-export-export-refreshcadence>
                    ExportProperty -> RefreshCadenceProperty
refreshCadence :: RefreshCadenceProperty}
  deriving stock (ExportProperty -> ExportProperty -> Bool
(ExportProperty -> ExportProperty -> Bool)
-> (ExportProperty -> ExportProperty -> Bool) -> Eq ExportProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExportProperty -> ExportProperty -> Bool
== :: ExportProperty -> ExportProperty -> Bool
$c/= :: ExportProperty -> ExportProperty -> Bool
/= :: ExportProperty -> ExportProperty -> Bool
Prelude.Eq, Int -> ExportProperty -> ShowS
[ExportProperty] -> ShowS
ExportProperty -> String
(Int -> ExportProperty -> ShowS)
-> (ExportProperty -> String)
-> ([ExportProperty] -> ShowS)
-> Show ExportProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExportProperty -> ShowS
showsPrec :: Int -> ExportProperty -> ShowS
$cshow :: ExportProperty -> String
show :: ExportProperty -> String
$cshowList :: [ExportProperty] -> ShowS
showList :: [ExportProperty] -> ShowS
Prelude.Show)
mkExportProperty ::
  DataQueryProperty
  -> DestinationConfigurationsProperty
     -> Value Prelude.Text -> RefreshCadenceProperty -> ExportProperty
mkExportProperty :: DataQueryProperty
-> DestinationConfigurationsProperty
-> Value Text
-> RefreshCadenceProperty
-> ExportProperty
mkExportProperty
  DataQueryProperty
dataQuery
  DestinationConfigurationsProperty
destinationConfigurations
  Value Text
name
  RefreshCadenceProperty
refreshCadence
  = ExportProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dataQuery :: DataQueryProperty
dataQuery = DataQueryProperty
dataQuery,
       destinationConfigurations :: DestinationConfigurationsProperty
destinationConfigurations = DestinationConfigurationsProperty
destinationConfigurations, name :: Value Text
name = Value Text
name,
       refreshCadence :: RefreshCadenceProperty
refreshCadence = RefreshCadenceProperty
refreshCadence, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       exportArn :: Maybe (Value Text)
exportArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExportProperty where
  toResourceProperties :: ExportProperty -> ResourceProperties
toResourceProperties ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::BCMDataExports::Export.Export",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"DataQuery" Key -> DataQueryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DataQueryProperty
dataQuery,
                            Key
"DestinationConfigurations" Key -> DestinationConfigurationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationConfigurationsProperty
destinationConfigurations,
                            Key
"Name" 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
name, Key
"RefreshCadence" Key -> RefreshCadenceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RefreshCadenceProperty
refreshCadence]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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
"Description" (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)
description,
                               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
"ExportArn" (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)
exportArn]))}
instance JSON.ToJSON ExportProperty where
  toJSON :: ExportProperty -> Value
toJSON ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = [(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
"DataQuery" Key -> DataQueryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DataQueryProperty
dataQuery,
               Key
"DestinationConfigurations" Key -> DestinationConfigurationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationConfigurationsProperty
destinationConfigurations,
               Key
"Name" 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
name, Key
"RefreshCadence" Key -> RefreshCadenceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RefreshCadenceProperty
refreshCadence]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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
"Description" (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)
description,
                  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
"ExportArn" (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)
exportArn])))
instance Property "DataQuery" ExportProperty where
  type PropertyType "DataQuery" ExportProperty = DataQueryProperty
  set :: PropertyType "DataQuery" ExportProperty
-> ExportProperty -> ExportProperty
set PropertyType "DataQuery" ExportProperty
newValue ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = ExportProperty {dataQuery :: DataQueryProperty
dataQuery = PropertyType "DataQuery" ExportProperty
DataQueryProperty
newValue, Maybe (Value Text)
()
Value Text
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
instance Property "Description" ExportProperty where
  type PropertyType "Description" ExportProperty = Value Prelude.Text
  set :: PropertyType "Description" ExportProperty
-> ExportProperty -> ExportProperty
set PropertyType "Description" ExportProperty
newValue ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = ExportProperty {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ExportProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
instance Property "DestinationConfigurations" ExportProperty where
  type PropertyType "DestinationConfigurations" ExportProperty = DestinationConfigurationsProperty
  set :: PropertyType "DestinationConfigurations" ExportProperty
-> ExportProperty -> ExportProperty
set PropertyType "DestinationConfigurations" ExportProperty
newValue ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = ExportProperty {destinationConfigurations :: DestinationConfigurationsProperty
destinationConfigurations = PropertyType "DestinationConfigurations" ExportProperty
DestinationConfigurationsProperty
newValue, Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
instance Property "ExportArn" ExportProperty where
  type PropertyType "ExportArn" ExportProperty = Value Prelude.Text
  set :: PropertyType "ExportArn" ExportProperty
-> ExportProperty -> ExportProperty
set PropertyType "ExportArn" ExportProperty
newValue ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = ExportProperty {exportArn :: Maybe (Value Text)
exportArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExportArn" ExportProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
name :: Value Text
refreshCadence :: RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
instance Property "Name" ExportProperty where
  type PropertyType "Name" ExportProperty = Value Prelude.Text
  set :: PropertyType "Name" ExportProperty
-> ExportProperty -> ExportProperty
set PropertyType "Name" ExportProperty
newValue ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = ExportProperty {name :: Value Text
name = PropertyType "Name" ExportProperty
Value Text
newValue, Maybe (Value Text)
()
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
refreshCadence :: RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
refreshCadence :: RefreshCadenceProperty
..}
instance Property "RefreshCadence" ExportProperty where
  type PropertyType "RefreshCadence" ExportProperty = RefreshCadenceProperty
  set :: PropertyType "RefreshCadence" ExportProperty
-> ExportProperty -> ExportProperty
set PropertyType "RefreshCadence" ExportProperty
newValue ExportProperty {Maybe (Value Text)
()
Value Text
DataQueryProperty
RefreshCadenceProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ExportProperty -> ()
dataQuery :: ExportProperty -> DataQueryProperty
description :: ExportProperty -> Maybe (Value Text)
destinationConfigurations :: ExportProperty -> DestinationConfigurationsProperty
exportArn :: ExportProperty -> Maybe (Value Text)
name :: ExportProperty -> Value Text
refreshCadence :: ExportProperty -> RefreshCadenceProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
refreshCadence :: RefreshCadenceProperty
..}
    = ExportProperty {refreshCadence :: RefreshCadenceProperty
refreshCadence = PropertyType "RefreshCadence" ExportProperty
RefreshCadenceProperty
newValue, Maybe (Value Text)
()
Value Text
DataQueryProperty
DestinationConfigurationsProperty
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
dataQuery :: DataQueryProperty
description :: Maybe (Value Text)
destinationConfigurations :: DestinationConfigurationsProperty
exportArn :: Maybe (Value Text)
name :: Value Text
..}