module Stratosphere.Comprehend.DocumentClassifier.DocumentClassifierOutputDataConfigProperty (
DocumentClassifierOutputDataConfigProperty(..),
mkDocumentClassifierOutputDataConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentClassifierOutputDataConfigProperty
=
DocumentClassifierOutputDataConfigProperty {DocumentClassifierOutputDataConfigProperty -> ()
haddock_workaround_ :: (),
DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
s3Uri :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty -> Bool
(DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty -> Bool)
-> (DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty -> Bool)
-> Eq DocumentClassifierOutputDataConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty -> Bool
== :: DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty -> Bool
$c/= :: DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty -> Bool
/= :: DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty -> Bool
Prelude.Eq, Int -> DocumentClassifierOutputDataConfigProperty -> ShowS
[DocumentClassifierOutputDataConfigProperty] -> ShowS
DocumentClassifierOutputDataConfigProperty -> String
(Int -> DocumentClassifierOutputDataConfigProperty -> ShowS)
-> (DocumentClassifierOutputDataConfigProperty -> String)
-> ([DocumentClassifierOutputDataConfigProperty] -> ShowS)
-> Show DocumentClassifierOutputDataConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentClassifierOutputDataConfigProperty -> ShowS
showsPrec :: Int -> DocumentClassifierOutputDataConfigProperty -> ShowS
$cshow :: DocumentClassifierOutputDataConfigProperty -> String
show :: DocumentClassifierOutputDataConfigProperty -> String
$cshowList :: [DocumentClassifierOutputDataConfigProperty] -> ShowS
showList :: [DocumentClassifierOutputDataConfigProperty] -> ShowS
Prelude.Show)
mkDocumentClassifierOutputDataConfigProperty ::
DocumentClassifierOutputDataConfigProperty
mkDocumentClassifierOutputDataConfigProperty :: DocumentClassifierOutputDataConfigProperty
mkDocumentClassifierOutputDataConfigProperty
= DocumentClassifierOutputDataConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
s3Uri :: Maybe (Value Text)
s3Uri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentClassifierOutputDataConfigProperty where
toResourceProperties :: DocumentClassifierOutputDataConfigProperty -> ResourceProperties
toResourceProperties
DocumentClassifierOutputDataConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentClassifierOutputDataConfigProperty -> ()
kmsKeyId :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
s3Uri :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3Uri :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Comprehend::DocumentClassifier.DocumentClassifierOutputDataConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"KmsKeyId" (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)
kmsKeyId,
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
"S3Uri" (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)
s3Uri])}
instance JSON.ToJSON DocumentClassifierOutputDataConfigProperty where
toJSON :: DocumentClassifierOutputDataConfigProperty -> Value
toJSON DocumentClassifierOutputDataConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentClassifierOutputDataConfigProperty -> ()
kmsKeyId :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
s3Uri :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3Uri :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"KmsKeyId" (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)
kmsKeyId,
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
"S3Uri" (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)
s3Uri]))
instance Property "KmsKeyId" DocumentClassifierOutputDataConfigProperty where
type PropertyType "KmsKeyId" DocumentClassifierOutputDataConfigProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty
set PropertyType "KmsKeyId" DocumentClassifierOutputDataConfigProperty
newValue DocumentClassifierOutputDataConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentClassifierOutputDataConfigProperty -> ()
kmsKeyId :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
s3Uri :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3Uri :: Maybe (Value Text)
..}
= DocumentClassifierOutputDataConfigProperty
{kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" DocumentClassifierOutputDataConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
s3Uri :: Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: Maybe (Value Text)
..}
instance Property "S3Uri" DocumentClassifierOutputDataConfigProperty where
type PropertyType "S3Uri" DocumentClassifierOutputDataConfigProperty = Value Prelude.Text
set :: PropertyType "S3Uri" DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty
-> DocumentClassifierOutputDataConfigProperty
set PropertyType "S3Uri" DocumentClassifierOutputDataConfigProperty
newValue DocumentClassifierOutputDataConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DocumentClassifierOutputDataConfigProperty -> ()
kmsKeyId :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
s3Uri :: DocumentClassifierOutputDataConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3Uri :: Maybe (Value Text)
..}
= DocumentClassifierOutputDataConfigProperty
{s3Uri :: Maybe (Value Text)
s3Uri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Uri" DocumentClassifierOutputDataConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}