module Stratosphere.S3ObjectLambda.AccessPoint.TransformationConfigurationProperty (
module Exports, TransformationConfigurationProperty(..),
mkTransformationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3ObjectLambda.AccessPoint.ContentTransformationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransformationConfigurationProperty
=
TransformationConfigurationProperty {TransformationConfigurationProperty -> ()
haddock_workaround_ :: (),
TransformationConfigurationProperty -> ValueList Text
actions :: (ValueList Prelude.Text),
TransformationConfigurationProperty
-> ContentTransformationProperty
contentTransformation :: ContentTransformationProperty}
deriving stock (TransformationConfigurationProperty
-> TransformationConfigurationProperty -> Bool
(TransformationConfigurationProperty
-> TransformationConfigurationProperty -> Bool)
-> (TransformationConfigurationProperty
-> TransformationConfigurationProperty -> Bool)
-> Eq TransformationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransformationConfigurationProperty
-> TransformationConfigurationProperty -> Bool
== :: TransformationConfigurationProperty
-> TransformationConfigurationProperty -> Bool
$c/= :: TransformationConfigurationProperty
-> TransformationConfigurationProperty -> Bool
/= :: TransformationConfigurationProperty
-> TransformationConfigurationProperty -> Bool
Prelude.Eq, Int -> TransformationConfigurationProperty -> ShowS
[TransformationConfigurationProperty] -> ShowS
TransformationConfigurationProperty -> String
(Int -> TransformationConfigurationProperty -> ShowS)
-> (TransformationConfigurationProperty -> String)
-> ([TransformationConfigurationProperty] -> ShowS)
-> Show TransformationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransformationConfigurationProperty -> ShowS
showsPrec :: Int -> TransformationConfigurationProperty -> ShowS
$cshow :: TransformationConfigurationProperty -> String
show :: TransformationConfigurationProperty -> String
$cshowList :: [TransformationConfigurationProperty] -> ShowS
showList :: [TransformationConfigurationProperty] -> ShowS
Prelude.Show)
mkTransformationConfigurationProperty ::
ValueList Prelude.Text
-> ContentTransformationProperty
-> TransformationConfigurationProperty
mkTransformationConfigurationProperty :: ValueList Text
-> ContentTransformationProperty
-> TransformationConfigurationProperty
mkTransformationConfigurationProperty ValueList Text
actions ContentTransformationProperty
contentTransformation
= TransformationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), actions :: ValueList Text
actions = ValueList Text
actions,
contentTransformation :: ContentTransformationProperty
contentTransformation = ContentTransformationProperty
contentTransformation}
instance ToResourceProperties TransformationConfigurationProperty where
toResourceProperties :: TransformationConfigurationProperty -> ResourceProperties
toResourceProperties TransformationConfigurationProperty {()
ValueList Text
ContentTransformationProperty
haddock_workaround_ :: TransformationConfigurationProperty -> ()
actions :: TransformationConfigurationProperty -> ValueList Text
contentTransformation :: TransformationConfigurationProperty
-> ContentTransformationProperty
haddock_workaround_ :: ()
actions :: ValueList Text
contentTransformation :: ContentTransformationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3ObjectLambda::AccessPoint.TransformationConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Actions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
actions,
Key
"ContentTransformation" Key -> ContentTransformationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ContentTransformationProperty
contentTransformation]}
instance JSON.ToJSON TransformationConfigurationProperty where
toJSON :: TransformationConfigurationProperty -> Value
toJSON TransformationConfigurationProperty {()
ValueList Text
ContentTransformationProperty
haddock_workaround_ :: TransformationConfigurationProperty -> ()
actions :: TransformationConfigurationProperty -> ValueList Text
contentTransformation :: TransformationConfigurationProperty
-> ContentTransformationProperty
haddock_workaround_ :: ()
actions :: ValueList Text
contentTransformation :: ContentTransformationProperty
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Actions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
actions,
Key
"ContentTransformation" Key -> ContentTransformationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ContentTransformationProperty
contentTransformation]
instance Property "Actions" TransformationConfigurationProperty where
type PropertyType "Actions" TransformationConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "Actions" TransformationConfigurationProperty
-> TransformationConfigurationProperty
-> TransformationConfigurationProperty
set PropertyType "Actions" TransformationConfigurationProperty
newValue TransformationConfigurationProperty {()
ValueList Text
ContentTransformationProperty
haddock_workaround_ :: TransformationConfigurationProperty -> ()
actions :: TransformationConfigurationProperty -> ValueList Text
contentTransformation :: TransformationConfigurationProperty
-> ContentTransformationProperty
haddock_workaround_ :: ()
actions :: ValueList Text
contentTransformation :: ContentTransformationProperty
..}
= TransformationConfigurationProperty {actions :: ValueList Text
actions = PropertyType "Actions" TransformationConfigurationProperty
ValueList Text
newValue, ()
ContentTransformationProperty
haddock_workaround_ :: ()
contentTransformation :: ContentTransformationProperty
haddock_workaround_ :: ()
contentTransformation :: ContentTransformationProperty
..}
instance Property "ContentTransformation" TransformationConfigurationProperty where
type PropertyType "ContentTransformation" TransformationConfigurationProperty = ContentTransformationProperty
set :: PropertyType
"ContentTransformation" TransformationConfigurationProperty
-> TransformationConfigurationProperty
-> TransformationConfigurationProperty
set PropertyType
"ContentTransformation" TransformationConfigurationProperty
newValue TransformationConfigurationProperty {()
ValueList Text
ContentTransformationProperty
haddock_workaround_ :: TransformationConfigurationProperty -> ()
actions :: TransformationConfigurationProperty -> ValueList Text
contentTransformation :: TransformationConfigurationProperty
-> ContentTransformationProperty
haddock_workaround_ :: ()
actions :: ValueList Text
contentTransformation :: ContentTransformationProperty
..}
= TransformationConfigurationProperty
{contentTransformation :: ContentTransformationProperty
contentTransformation = PropertyType
"ContentTransformation" TransformationConfigurationProperty
ContentTransformationProperty
newValue, ()
ValueList Text
haddock_workaround_ :: ()
actions :: ValueList Text
haddock_workaround_ :: ()
actions :: ValueList Text
..}