module Stratosphere.B2BI.Transformer.OutputConversionProperty (
module Exports, OutputConversionProperty(..),
mkOutputConversionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.B2BI.Transformer.AdvancedOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.B2BI.Transformer.FormatOptionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputConversionProperty
=
OutputConversionProperty {OutputConversionProperty -> ()
haddock_workaround_ :: (),
OutputConversionProperty -> Maybe AdvancedOptionsProperty
advancedOptions :: (Prelude.Maybe AdvancedOptionsProperty),
OutputConversionProperty -> Maybe FormatOptionsProperty
formatOptions :: (Prelude.Maybe FormatOptionsProperty),
OutputConversionProperty -> Value Text
toFormat :: (Value Prelude.Text)}
deriving stock (OutputConversionProperty -> OutputConversionProperty -> Bool
(OutputConversionProperty -> OutputConversionProperty -> Bool)
-> (OutputConversionProperty -> OutputConversionProperty -> Bool)
-> Eq OutputConversionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputConversionProperty -> OutputConversionProperty -> Bool
== :: OutputConversionProperty -> OutputConversionProperty -> Bool
$c/= :: OutputConversionProperty -> OutputConversionProperty -> Bool
/= :: OutputConversionProperty -> OutputConversionProperty -> Bool
Prelude.Eq, Int -> OutputConversionProperty -> ShowS
[OutputConversionProperty] -> ShowS
OutputConversionProperty -> String
(Int -> OutputConversionProperty -> ShowS)
-> (OutputConversionProperty -> String)
-> ([OutputConversionProperty] -> ShowS)
-> Show OutputConversionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputConversionProperty -> ShowS
showsPrec :: Int -> OutputConversionProperty -> ShowS
$cshow :: OutputConversionProperty -> String
show :: OutputConversionProperty -> String
$cshowList :: [OutputConversionProperty] -> ShowS
showList :: [OutputConversionProperty] -> ShowS
Prelude.Show)
mkOutputConversionProperty ::
Value Prelude.Text -> OutputConversionProperty
mkOutputConversionProperty :: Value Text -> OutputConversionProperty
mkOutputConversionProperty Value Text
toFormat
= OutputConversionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), toFormat :: Value Text
toFormat = Value Text
toFormat,
advancedOptions :: Maybe AdvancedOptionsProperty
advancedOptions = Maybe AdvancedOptionsProperty
forall a. Maybe a
Prelude.Nothing, formatOptions :: Maybe FormatOptionsProperty
formatOptions = Maybe FormatOptionsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputConversionProperty where
toResourceProperties :: OutputConversionProperty -> ResourceProperties
toResourceProperties OutputConversionProperty {Maybe FormatOptionsProperty
Maybe AdvancedOptionsProperty
()
Value Text
haddock_workaround_ :: OutputConversionProperty -> ()
advancedOptions :: OutputConversionProperty -> Maybe AdvancedOptionsProperty
formatOptions :: OutputConversionProperty -> Maybe FormatOptionsProperty
toFormat :: OutputConversionProperty -> Value Text
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
formatOptions :: Maybe FormatOptionsProperty
toFormat :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::B2BI::Transformer.OutputConversion",
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
"ToFormat" 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
toFormat]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AdvancedOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdvancedOptions" (AdvancedOptionsProperty -> (Key, Value))
-> Maybe AdvancedOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AdvancedOptionsProperty
advancedOptions,
Key -> FormatOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatOptions" (FormatOptionsProperty -> (Key, Value))
-> Maybe FormatOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FormatOptionsProperty
formatOptions]))}
instance JSON.ToJSON OutputConversionProperty where
toJSON :: OutputConversionProperty -> Value
toJSON OutputConversionProperty {Maybe FormatOptionsProperty
Maybe AdvancedOptionsProperty
()
Value Text
haddock_workaround_ :: OutputConversionProperty -> ()
advancedOptions :: OutputConversionProperty -> Maybe AdvancedOptionsProperty
formatOptions :: OutputConversionProperty -> Maybe FormatOptionsProperty
toFormat :: OutputConversionProperty -> Value Text
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
formatOptions :: Maybe FormatOptionsProperty
toFormat :: 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
"ToFormat" 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
toFormat]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AdvancedOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdvancedOptions" (AdvancedOptionsProperty -> (Key, Value))
-> Maybe AdvancedOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AdvancedOptionsProperty
advancedOptions,
Key -> FormatOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatOptions" (FormatOptionsProperty -> (Key, Value))
-> Maybe FormatOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FormatOptionsProperty
formatOptions])))
instance Property "AdvancedOptions" OutputConversionProperty where
type PropertyType "AdvancedOptions" OutputConversionProperty = AdvancedOptionsProperty
set :: PropertyType "AdvancedOptions" OutputConversionProperty
-> OutputConversionProperty -> OutputConversionProperty
set PropertyType "AdvancedOptions" OutputConversionProperty
newValue OutputConversionProperty {Maybe FormatOptionsProperty
Maybe AdvancedOptionsProperty
()
Value Text
haddock_workaround_ :: OutputConversionProperty -> ()
advancedOptions :: OutputConversionProperty -> Maybe AdvancedOptionsProperty
formatOptions :: OutputConversionProperty -> Maybe FormatOptionsProperty
toFormat :: OutputConversionProperty -> Value Text
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
formatOptions :: Maybe FormatOptionsProperty
toFormat :: Value Text
..}
= OutputConversionProperty
{advancedOptions :: Maybe AdvancedOptionsProperty
advancedOptions = AdvancedOptionsProperty -> Maybe AdvancedOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AdvancedOptions" OutputConversionProperty
AdvancedOptionsProperty
newValue, Maybe FormatOptionsProperty
()
Value Text
haddock_workaround_ :: ()
formatOptions :: Maybe FormatOptionsProperty
toFormat :: Value Text
haddock_workaround_ :: ()
formatOptions :: Maybe FormatOptionsProperty
toFormat :: Value Text
..}
instance Property "FormatOptions" OutputConversionProperty where
type PropertyType "FormatOptions" OutputConversionProperty = FormatOptionsProperty
set :: PropertyType "FormatOptions" OutputConversionProperty
-> OutputConversionProperty -> OutputConversionProperty
set PropertyType "FormatOptions" OutputConversionProperty
newValue OutputConversionProperty {Maybe FormatOptionsProperty
Maybe AdvancedOptionsProperty
()
Value Text
haddock_workaround_ :: OutputConversionProperty -> ()
advancedOptions :: OutputConversionProperty -> Maybe AdvancedOptionsProperty
formatOptions :: OutputConversionProperty -> Maybe FormatOptionsProperty
toFormat :: OutputConversionProperty -> Value Text
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
formatOptions :: Maybe FormatOptionsProperty
toFormat :: Value Text
..}
= OutputConversionProperty
{formatOptions :: Maybe FormatOptionsProperty
formatOptions = FormatOptionsProperty -> Maybe FormatOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FormatOptions" OutputConversionProperty
FormatOptionsProperty
newValue, Maybe AdvancedOptionsProperty
()
Value Text
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
toFormat :: Value Text
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
toFormat :: Value Text
..}
instance Property "ToFormat" OutputConversionProperty where
type PropertyType "ToFormat" OutputConversionProperty = Value Prelude.Text
set :: PropertyType "ToFormat" OutputConversionProperty
-> OutputConversionProperty -> OutputConversionProperty
set PropertyType "ToFormat" OutputConversionProperty
newValue OutputConversionProperty {Maybe FormatOptionsProperty
Maybe AdvancedOptionsProperty
()
Value Text
haddock_workaround_ :: OutputConversionProperty -> ()
advancedOptions :: OutputConversionProperty -> Maybe AdvancedOptionsProperty
formatOptions :: OutputConversionProperty -> Maybe FormatOptionsProperty
toFormat :: OutputConversionProperty -> Value Text
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
formatOptions :: Maybe FormatOptionsProperty
toFormat :: Value Text
..}
= OutputConversionProperty {toFormat :: Value Text
toFormat = PropertyType "ToFormat" OutputConversionProperty
Value Text
newValue, Maybe FormatOptionsProperty
Maybe AdvancedOptionsProperty
()
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
formatOptions :: Maybe FormatOptionsProperty
haddock_workaround_ :: ()
advancedOptions :: Maybe AdvancedOptionsProperty
formatOptions :: Maybe FormatOptionsProperty
..}