module Stratosphere.KinesisFirehose.DeliveryStream.DocumentIdOptionsProperty (
DocumentIdOptionsProperty(..), mkDocumentIdOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentIdOptionsProperty
=
DocumentIdOptionsProperty {DocumentIdOptionsProperty -> ()
haddock_workaround_ :: (),
DocumentIdOptionsProperty -> Value Text
defaultDocumentIdFormat :: (Value Prelude.Text)}
deriving stock (DocumentIdOptionsProperty -> DocumentIdOptionsProperty -> Bool
(DocumentIdOptionsProperty -> DocumentIdOptionsProperty -> Bool)
-> (DocumentIdOptionsProperty -> DocumentIdOptionsProperty -> Bool)
-> Eq DocumentIdOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentIdOptionsProperty -> DocumentIdOptionsProperty -> Bool
== :: DocumentIdOptionsProperty -> DocumentIdOptionsProperty -> Bool
$c/= :: DocumentIdOptionsProperty -> DocumentIdOptionsProperty -> Bool
/= :: DocumentIdOptionsProperty -> DocumentIdOptionsProperty -> Bool
Prelude.Eq, Int -> DocumentIdOptionsProperty -> ShowS
[DocumentIdOptionsProperty] -> ShowS
DocumentIdOptionsProperty -> String
(Int -> DocumentIdOptionsProperty -> ShowS)
-> (DocumentIdOptionsProperty -> String)
-> ([DocumentIdOptionsProperty] -> ShowS)
-> Show DocumentIdOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentIdOptionsProperty -> ShowS
showsPrec :: Int -> DocumentIdOptionsProperty -> ShowS
$cshow :: DocumentIdOptionsProperty -> String
show :: DocumentIdOptionsProperty -> String
$cshowList :: [DocumentIdOptionsProperty] -> ShowS
showList :: [DocumentIdOptionsProperty] -> ShowS
Prelude.Show)
mkDocumentIdOptionsProperty ::
Value Prelude.Text -> DocumentIdOptionsProperty
mkDocumentIdOptionsProperty :: Value Text -> DocumentIdOptionsProperty
mkDocumentIdOptionsProperty Value Text
defaultDocumentIdFormat
= DocumentIdOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
defaultDocumentIdFormat :: Value Text
defaultDocumentIdFormat = Value Text
defaultDocumentIdFormat}
instance ToResourceProperties DocumentIdOptionsProperty where
toResourceProperties :: DocumentIdOptionsProperty -> ResourceProperties
toResourceProperties DocumentIdOptionsProperty {()
Value Text
haddock_workaround_ :: DocumentIdOptionsProperty -> ()
defaultDocumentIdFormat :: DocumentIdOptionsProperty -> Value Text
haddock_workaround_ :: ()
defaultDocumentIdFormat :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.DocumentIdOptions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"DefaultDocumentIdFormat"
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
defaultDocumentIdFormat]}
instance JSON.ToJSON DocumentIdOptionsProperty where
toJSON :: DocumentIdOptionsProperty -> Value
toJSON DocumentIdOptionsProperty {()
Value Text
haddock_workaround_ :: DocumentIdOptionsProperty -> ()
defaultDocumentIdFormat :: DocumentIdOptionsProperty -> Value Text
haddock_workaround_ :: ()
defaultDocumentIdFormat :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"DefaultDocumentIdFormat" 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
defaultDocumentIdFormat]
instance Property "DefaultDocumentIdFormat" DocumentIdOptionsProperty where
type PropertyType "DefaultDocumentIdFormat" DocumentIdOptionsProperty = Value Prelude.Text
set :: PropertyType "DefaultDocumentIdFormat" DocumentIdOptionsProperty
-> DocumentIdOptionsProperty -> DocumentIdOptionsProperty
set PropertyType "DefaultDocumentIdFormat" DocumentIdOptionsProperty
newValue DocumentIdOptionsProperty {()
Value Text
haddock_workaround_ :: DocumentIdOptionsProperty -> ()
defaultDocumentIdFormat :: DocumentIdOptionsProperty -> Value Text
haddock_workaround_ :: ()
defaultDocumentIdFormat :: Value Text
..}
= DocumentIdOptionsProperty
{defaultDocumentIdFormat :: Value Text
defaultDocumentIdFormat = PropertyType "DefaultDocumentIdFormat" DocumentIdOptionsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}