module Stratosphere.KinesisFirehose.DeliveryStream.CopyCommandProperty (
        CopyCommandProperty(..), mkCopyCommandProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CopyCommandProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html>
    CopyCommandProperty {CopyCommandProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html#cfn-kinesisfirehose-deliverystream-copycommand-copyoptions>
                         CopyCommandProperty -> Maybe (Value Text)
copyOptions :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html#cfn-kinesisfirehose-deliverystream-copycommand-datatablecolumns>
                         CopyCommandProperty -> Maybe (Value Text)
dataTableColumns :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html#cfn-kinesisfirehose-deliverystream-copycommand-datatablename>
                         CopyCommandProperty -> Value Text
dataTableName :: (Value Prelude.Text)}
  deriving stock (CopyCommandProperty -> CopyCommandProperty -> Bool
(CopyCommandProperty -> CopyCommandProperty -> Bool)
-> (CopyCommandProperty -> CopyCommandProperty -> Bool)
-> Eq CopyCommandProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CopyCommandProperty -> CopyCommandProperty -> Bool
== :: CopyCommandProperty -> CopyCommandProperty -> Bool
$c/= :: CopyCommandProperty -> CopyCommandProperty -> Bool
/= :: CopyCommandProperty -> CopyCommandProperty -> Bool
Prelude.Eq, Int -> CopyCommandProperty -> ShowS
[CopyCommandProperty] -> ShowS
CopyCommandProperty -> String
(Int -> CopyCommandProperty -> ShowS)
-> (CopyCommandProperty -> String)
-> ([CopyCommandProperty] -> ShowS)
-> Show CopyCommandProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CopyCommandProperty -> ShowS
showsPrec :: Int -> CopyCommandProperty -> ShowS
$cshow :: CopyCommandProperty -> String
show :: CopyCommandProperty -> String
$cshowList :: [CopyCommandProperty] -> ShowS
showList :: [CopyCommandProperty] -> ShowS
Prelude.Show)
mkCopyCommandProperty :: Value Prelude.Text -> CopyCommandProperty
mkCopyCommandProperty :: Value Text -> CopyCommandProperty
mkCopyCommandProperty Value Text
dataTableName
  = CopyCommandProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dataTableName :: Value Text
dataTableName = Value Text
dataTableName,
       copyOptions :: Maybe (Value Text)
copyOptions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, dataTableColumns :: Maybe (Value Text)
dataTableColumns = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CopyCommandProperty where
  toResourceProperties :: CopyCommandProperty -> ResourceProperties
toResourceProperties CopyCommandProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CopyCommandProperty -> ()
copyOptions :: CopyCommandProperty -> Maybe (Value Text)
dataTableColumns :: CopyCommandProperty -> Maybe (Value Text)
dataTableName :: CopyCommandProperty -> Value Text
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableColumns :: Maybe (Value Text)
dataTableName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.CopyCommand",
         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
"DataTableName" 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
dataTableName]
                           ([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
"CopyOptions" (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)
copyOptions,
                               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
"DataTableColumns" (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)
dataTableColumns]))}
instance JSON.ToJSON CopyCommandProperty where
  toJSON :: CopyCommandProperty -> Value
toJSON CopyCommandProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CopyCommandProperty -> ()
copyOptions :: CopyCommandProperty -> Maybe (Value Text)
dataTableColumns :: CopyCommandProperty -> Maybe (Value Text)
dataTableName :: CopyCommandProperty -> Value Text
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableColumns :: Maybe (Value Text)
dataTableName :: Value Text
..}
    = [(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
"DataTableName" 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
dataTableName]
              ([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
"CopyOptions" (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)
copyOptions,
                  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
"DataTableColumns" (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)
dataTableColumns])))
instance Property "CopyOptions" CopyCommandProperty where
  type PropertyType "CopyOptions" CopyCommandProperty = Value Prelude.Text
  set :: PropertyType "CopyOptions" CopyCommandProperty
-> CopyCommandProperty -> CopyCommandProperty
set PropertyType "CopyOptions" CopyCommandProperty
newValue CopyCommandProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CopyCommandProperty -> ()
copyOptions :: CopyCommandProperty -> Maybe (Value Text)
dataTableColumns :: CopyCommandProperty -> Maybe (Value Text)
dataTableName :: CopyCommandProperty -> Value Text
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableColumns :: Maybe (Value Text)
dataTableName :: Value Text
..}
    = CopyCommandProperty {copyOptions :: Maybe (Value Text)
copyOptions = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CopyOptions" CopyCommandProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dataTableColumns :: Maybe (Value Text)
dataTableName :: Value Text
haddock_workaround_ :: ()
dataTableColumns :: Maybe (Value Text)
dataTableName :: Value Text
..}
instance Property "DataTableColumns" CopyCommandProperty where
  type PropertyType "DataTableColumns" CopyCommandProperty = Value Prelude.Text
  set :: PropertyType "DataTableColumns" CopyCommandProperty
-> CopyCommandProperty -> CopyCommandProperty
set PropertyType "DataTableColumns" CopyCommandProperty
newValue CopyCommandProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CopyCommandProperty -> ()
copyOptions :: CopyCommandProperty -> Maybe (Value Text)
dataTableColumns :: CopyCommandProperty -> Maybe (Value Text)
dataTableName :: CopyCommandProperty -> Value Text
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableColumns :: Maybe (Value Text)
dataTableName :: Value Text
..}
    = CopyCommandProperty
        {dataTableColumns :: Maybe (Value Text)
dataTableColumns = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataTableColumns" CopyCommandProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableName :: Value Text
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableName :: Value Text
..}
instance Property "DataTableName" CopyCommandProperty where
  type PropertyType "DataTableName" CopyCommandProperty = Value Prelude.Text
  set :: PropertyType "DataTableName" CopyCommandProperty
-> CopyCommandProperty -> CopyCommandProperty
set PropertyType "DataTableName" CopyCommandProperty
newValue CopyCommandProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CopyCommandProperty -> ()
copyOptions :: CopyCommandProperty -> Maybe (Value Text)
dataTableColumns :: CopyCommandProperty -> Maybe (Value Text)
dataTableName :: CopyCommandProperty -> Value Text
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableColumns :: Maybe (Value Text)
dataTableName :: Value Text
..}
    = CopyCommandProperty {dataTableName :: Value Text
dataTableName = PropertyType "DataTableName" CopyCommandProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableColumns :: Maybe (Value Text)
haddock_workaround_ :: ()
copyOptions :: Maybe (Value Text)
dataTableColumns :: Maybe (Value Text)
..}