module Stratosphere.B2BI.Transformer.SampleDocumentsProperty (
        module Exports, SampleDocumentsProperty(..),
        mkSampleDocumentsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.B2BI.Transformer.SampleDocumentKeysProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SampleDocumentsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocuments.html>
    SampleDocumentsProperty {SampleDocumentsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocuments.html#cfn-b2bi-transformer-sampledocuments-bucketname>
                             SampleDocumentsProperty -> Value Text
bucketName :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocuments.html#cfn-b2bi-transformer-sampledocuments-keys>
                             SampleDocumentsProperty -> [SampleDocumentKeysProperty]
keys :: [SampleDocumentKeysProperty]}
  deriving stock (SampleDocumentsProperty -> SampleDocumentsProperty -> Bool
(SampleDocumentsProperty -> SampleDocumentsProperty -> Bool)
-> (SampleDocumentsProperty -> SampleDocumentsProperty -> Bool)
-> Eq SampleDocumentsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SampleDocumentsProperty -> SampleDocumentsProperty -> Bool
== :: SampleDocumentsProperty -> SampleDocumentsProperty -> Bool
$c/= :: SampleDocumentsProperty -> SampleDocumentsProperty -> Bool
/= :: SampleDocumentsProperty -> SampleDocumentsProperty -> Bool
Prelude.Eq, Int -> SampleDocumentsProperty -> ShowS
[SampleDocumentsProperty] -> ShowS
SampleDocumentsProperty -> String
(Int -> SampleDocumentsProperty -> ShowS)
-> (SampleDocumentsProperty -> String)
-> ([SampleDocumentsProperty] -> ShowS)
-> Show SampleDocumentsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SampleDocumentsProperty -> ShowS
showsPrec :: Int -> SampleDocumentsProperty -> ShowS
$cshow :: SampleDocumentsProperty -> String
show :: SampleDocumentsProperty -> String
$cshowList :: [SampleDocumentsProperty] -> ShowS
showList :: [SampleDocumentsProperty] -> ShowS
Prelude.Show)
mkSampleDocumentsProperty ::
  Value Prelude.Text
  -> [SampleDocumentKeysProperty] -> SampleDocumentsProperty
mkSampleDocumentsProperty :: Value Text
-> [SampleDocumentKeysProperty] -> SampleDocumentsProperty
mkSampleDocumentsProperty Value Text
bucketName [SampleDocumentKeysProperty]
keys
  = SampleDocumentsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName, keys :: [SampleDocumentKeysProperty]
keys = [SampleDocumentKeysProperty]
keys}
instance ToResourceProperties SampleDocumentsProperty where
  toResourceProperties :: SampleDocumentsProperty -> ResourceProperties
toResourceProperties SampleDocumentsProperty {[SampleDocumentKeysProperty]
()
Value Text
haddock_workaround_ :: SampleDocumentsProperty -> ()
bucketName :: SampleDocumentsProperty -> Value Text
keys :: SampleDocumentsProperty -> [SampleDocumentKeysProperty]
haddock_workaround_ :: ()
bucketName :: Value Text
keys :: [SampleDocumentKeysProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::B2BI::Transformer.SampleDocuments",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"BucketName" 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
bucketName,
                       Key
"Keys" Key -> [SampleDocumentKeysProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [SampleDocumentKeysProperty]
keys]}
instance JSON.ToJSON SampleDocumentsProperty where
  toJSON :: SampleDocumentsProperty -> Value
toJSON SampleDocumentsProperty {[SampleDocumentKeysProperty]
()
Value Text
haddock_workaround_ :: SampleDocumentsProperty -> ()
bucketName :: SampleDocumentsProperty -> Value Text
keys :: SampleDocumentsProperty -> [SampleDocumentKeysProperty]
haddock_workaround_ :: ()
bucketName :: Value Text
keys :: [SampleDocumentKeysProperty]
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"BucketName" 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
bucketName, Key
"Keys" Key -> [SampleDocumentKeysProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [SampleDocumentKeysProperty]
keys]
instance Property "BucketName" SampleDocumentsProperty where
  type PropertyType "BucketName" SampleDocumentsProperty = Value Prelude.Text
  set :: PropertyType "BucketName" SampleDocumentsProperty
-> SampleDocumentsProperty -> SampleDocumentsProperty
set PropertyType "BucketName" SampleDocumentsProperty
newValue SampleDocumentsProperty {[SampleDocumentKeysProperty]
()
Value Text
haddock_workaround_ :: SampleDocumentsProperty -> ()
bucketName :: SampleDocumentsProperty -> Value Text
keys :: SampleDocumentsProperty -> [SampleDocumentKeysProperty]
haddock_workaround_ :: ()
bucketName :: Value Text
keys :: [SampleDocumentKeysProperty]
..}
    = SampleDocumentsProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" SampleDocumentsProperty
Value Text
newValue, [SampleDocumentKeysProperty]
()
haddock_workaround_ :: ()
keys :: [SampleDocumentKeysProperty]
haddock_workaround_ :: ()
keys :: [SampleDocumentKeysProperty]
..}
instance Property "Keys" SampleDocumentsProperty where
  type PropertyType "Keys" SampleDocumentsProperty = [SampleDocumentKeysProperty]
  set :: PropertyType "Keys" SampleDocumentsProperty
-> SampleDocumentsProperty -> SampleDocumentsProperty
set PropertyType "Keys" SampleDocumentsProperty
newValue SampleDocumentsProperty {[SampleDocumentKeysProperty]
()
Value Text
haddock_workaround_ :: SampleDocumentsProperty -> ()
bucketName :: SampleDocumentsProperty -> Value Text
keys :: SampleDocumentsProperty -> [SampleDocumentKeysProperty]
haddock_workaround_ :: ()
bucketName :: Value Text
keys :: [SampleDocumentKeysProperty]
..}
    = SampleDocumentsProperty {keys :: [SampleDocumentKeysProperty]
keys = [SampleDocumentKeysProperty]
PropertyType "Keys" SampleDocumentsProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}