module Stratosphere.Comprehend.DocumentClassifier.DocumentClassifierDocumentsProperty (
DocumentClassifierDocumentsProperty(..),
mkDocumentClassifierDocumentsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentClassifierDocumentsProperty
=
DocumentClassifierDocumentsProperty {DocumentClassifierDocumentsProperty -> ()
haddock_workaround_ :: (),
DocumentClassifierDocumentsProperty -> Value Text
s3Uri :: (Value Prelude.Text),
DocumentClassifierDocumentsProperty -> Maybe (Value Text)
testS3Uri :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty -> Bool
(DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty -> Bool)
-> (DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty -> Bool)
-> Eq DocumentClassifierDocumentsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty -> Bool
== :: DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty -> Bool
$c/= :: DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty -> Bool
/= :: DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty -> Bool
Prelude.Eq, Int -> DocumentClassifierDocumentsProperty -> ShowS
[DocumentClassifierDocumentsProperty] -> ShowS
DocumentClassifierDocumentsProperty -> String
(Int -> DocumentClassifierDocumentsProperty -> ShowS)
-> (DocumentClassifierDocumentsProperty -> String)
-> ([DocumentClassifierDocumentsProperty] -> ShowS)
-> Show DocumentClassifierDocumentsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentClassifierDocumentsProperty -> ShowS
showsPrec :: Int -> DocumentClassifierDocumentsProperty -> ShowS
$cshow :: DocumentClassifierDocumentsProperty -> String
show :: DocumentClassifierDocumentsProperty -> String
$cshowList :: [DocumentClassifierDocumentsProperty] -> ShowS
showList :: [DocumentClassifierDocumentsProperty] -> ShowS
Prelude.Show)
mkDocumentClassifierDocumentsProperty ::
Value Prelude.Text -> DocumentClassifierDocumentsProperty
mkDocumentClassifierDocumentsProperty :: Value Text -> DocumentClassifierDocumentsProperty
mkDocumentClassifierDocumentsProperty Value Text
s3Uri
= DocumentClassifierDocumentsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3Uri :: Value Text
s3Uri = Value Text
s3Uri,
testS3Uri :: Maybe (Value Text)
testS3Uri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentClassifierDocumentsProperty where
toResourceProperties :: DocumentClassifierDocumentsProperty -> ResourceProperties
toResourceProperties DocumentClassifierDocumentsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentClassifierDocumentsProperty -> ()
s3Uri :: DocumentClassifierDocumentsProperty -> Value Text
testS3Uri :: DocumentClassifierDocumentsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: Value Text
testS3Uri :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Comprehend::DocumentClassifier.DocumentClassifierDocuments",
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
"S3Uri" 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
s3Uri]
([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
"TestS3Uri" (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)
testS3Uri]))}
instance JSON.ToJSON DocumentClassifierDocumentsProperty where
toJSON :: DocumentClassifierDocumentsProperty -> Value
toJSON DocumentClassifierDocumentsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentClassifierDocumentsProperty -> ()
s3Uri :: DocumentClassifierDocumentsProperty -> Value Text
testS3Uri :: DocumentClassifierDocumentsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: Value Text
testS3Uri :: Maybe (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
"S3Uri" 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
s3Uri]
([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
"TestS3Uri" (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)
testS3Uri])))
instance Property "S3Uri" DocumentClassifierDocumentsProperty where
type PropertyType "S3Uri" DocumentClassifierDocumentsProperty = Value Prelude.Text
set :: PropertyType "S3Uri" DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty
set PropertyType "S3Uri" DocumentClassifierDocumentsProperty
newValue DocumentClassifierDocumentsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentClassifierDocumentsProperty -> ()
s3Uri :: DocumentClassifierDocumentsProperty -> Value Text
testS3Uri :: DocumentClassifierDocumentsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: Value Text
testS3Uri :: Maybe (Value Text)
..}
= DocumentClassifierDocumentsProperty {s3Uri :: Value Text
s3Uri = PropertyType "S3Uri" DocumentClassifierDocumentsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
testS3Uri :: Maybe (Value Text)
haddock_workaround_ :: ()
testS3Uri :: Maybe (Value Text)
..}
instance Property "TestS3Uri" DocumentClassifierDocumentsProperty where
type PropertyType "TestS3Uri" DocumentClassifierDocumentsProperty = Value Prelude.Text
set :: PropertyType "TestS3Uri" DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty
-> DocumentClassifierDocumentsProperty
set PropertyType "TestS3Uri" DocumentClassifierDocumentsProperty
newValue DocumentClassifierDocumentsProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentClassifierDocumentsProperty -> ()
s3Uri :: DocumentClassifierDocumentsProperty -> Value Text
testS3Uri :: DocumentClassifierDocumentsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: Value Text
testS3Uri :: Maybe (Value Text)
..}
= DocumentClassifierDocumentsProperty
{testS3Uri :: Maybe (Value Text)
testS3Uri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TestS3Uri" DocumentClassifierDocumentsProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
s3Uri :: Value Text
haddock_workaround_ :: ()
s3Uri :: Value Text
..}