module Stratosphere.S3ObjectLambda.AccessPoint.ObjectLambdaConfigurationProperty (
module Exports, ObjectLambdaConfigurationProperty(..),
mkObjectLambdaConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3ObjectLambda.AccessPoint.TransformationConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ObjectLambdaConfigurationProperty
=
ObjectLambdaConfigurationProperty {ObjectLambdaConfigurationProperty -> ()
haddock_workaround_ :: (),
ObjectLambdaConfigurationProperty -> Maybe (ValueList Text)
allowedFeatures :: (Prelude.Maybe (ValueList Prelude.Text)),
ObjectLambdaConfigurationProperty -> Maybe (Value Bool)
cloudWatchMetricsEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
ObjectLambdaConfigurationProperty -> Value Text
supportingAccessPoint :: (Value Prelude.Text),
ObjectLambdaConfigurationProperty
-> [TransformationConfigurationProperty]
transformationConfigurations :: [TransformationConfigurationProperty]}
deriving stock (ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty -> Bool
(ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty -> Bool)
-> (ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty -> Bool)
-> Eq ObjectLambdaConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty -> Bool
== :: ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty -> Bool
$c/= :: ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty -> Bool
/= :: ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty -> Bool
Prelude.Eq, Int -> ObjectLambdaConfigurationProperty -> ShowS
[ObjectLambdaConfigurationProperty] -> ShowS
ObjectLambdaConfigurationProperty -> String
(Int -> ObjectLambdaConfigurationProperty -> ShowS)
-> (ObjectLambdaConfigurationProperty -> String)
-> ([ObjectLambdaConfigurationProperty] -> ShowS)
-> Show ObjectLambdaConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ObjectLambdaConfigurationProperty -> ShowS
showsPrec :: Int -> ObjectLambdaConfigurationProperty -> ShowS
$cshow :: ObjectLambdaConfigurationProperty -> String
show :: ObjectLambdaConfigurationProperty -> String
$cshowList :: [ObjectLambdaConfigurationProperty] -> ShowS
showList :: [ObjectLambdaConfigurationProperty] -> ShowS
Prelude.Show)
mkObjectLambdaConfigurationProperty ::
Value Prelude.Text
-> [TransformationConfigurationProperty]
-> ObjectLambdaConfigurationProperty
mkObjectLambdaConfigurationProperty :: Value Text
-> [TransformationConfigurationProperty]
-> ObjectLambdaConfigurationProperty
mkObjectLambdaConfigurationProperty
Value Text
supportingAccessPoint
[TransformationConfigurationProperty]
transformationConfigurations
= ObjectLambdaConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
supportingAccessPoint :: Value Text
supportingAccessPoint = Value Text
supportingAccessPoint,
transformationConfigurations :: [TransformationConfigurationProperty]
transformationConfigurations = [TransformationConfigurationProperty]
transformationConfigurations,
allowedFeatures :: Maybe (ValueList Text)
allowedFeatures = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
cloudWatchMetricsEnabled :: Maybe (Value Bool)
cloudWatchMetricsEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ObjectLambdaConfigurationProperty where
toResourceProperties :: ObjectLambdaConfigurationProperty -> ResourceProperties
toResourceProperties ObjectLambdaConfigurationProperty {[TransformationConfigurationProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ObjectLambdaConfigurationProperty -> ()
allowedFeatures :: ObjectLambdaConfigurationProperty -> Maybe (ValueList Text)
cloudWatchMetricsEnabled :: ObjectLambdaConfigurationProperty -> Maybe (Value Bool)
supportingAccessPoint :: ObjectLambdaConfigurationProperty -> Value Text
transformationConfigurations :: ObjectLambdaConfigurationProperty
-> [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3ObjectLambda::AccessPoint.ObjectLambdaConfiguration",
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
"SupportingAccessPoint" 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
supportingAccessPoint,
Key
"TransformationConfigurations"
Key -> [TransformationConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TransformationConfigurationProperty]
transformationConfigurations]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AllowedFeatures" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
allowedFeatures,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchMetricsEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
cloudWatchMetricsEnabled]))}
instance JSON.ToJSON ObjectLambdaConfigurationProperty where
toJSON :: ObjectLambdaConfigurationProperty -> Value
toJSON ObjectLambdaConfigurationProperty {[TransformationConfigurationProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ObjectLambdaConfigurationProperty -> ()
allowedFeatures :: ObjectLambdaConfigurationProperty -> Maybe (ValueList Text)
cloudWatchMetricsEnabled :: ObjectLambdaConfigurationProperty -> Maybe (Value Bool)
supportingAccessPoint :: ObjectLambdaConfigurationProperty -> Value Text
transformationConfigurations :: ObjectLambdaConfigurationProperty
-> [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
= [(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
"SupportingAccessPoint" 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
supportingAccessPoint,
Key
"TransformationConfigurations"
Key -> [TransformationConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TransformationConfigurationProperty]
transformationConfigurations]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AllowedFeatures" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
allowedFeatures,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchMetricsEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
cloudWatchMetricsEnabled])))
instance Property "AllowedFeatures" ObjectLambdaConfigurationProperty where
type PropertyType "AllowedFeatures" ObjectLambdaConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "AllowedFeatures" ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
set PropertyType "AllowedFeatures" ObjectLambdaConfigurationProperty
newValue ObjectLambdaConfigurationProperty {[TransformationConfigurationProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ObjectLambdaConfigurationProperty -> ()
allowedFeatures :: ObjectLambdaConfigurationProperty -> Maybe (ValueList Text)
cloudWatchMetricsEnabled :: ObjectLambdaConfigurationProperty -> Maybe (Value Bool)
supportingAccessPoint :: ObjectLambdaConfigurationProperty -> Value Text
transformationConfigurations :: ObjectLambdaConfigurationProperty
-> [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
= ObjectLambdaConfigurationProperty
{allowedFeatures :: Maybe (ValueList Text)
allowedFeatures = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AllowedFeatures" ObjectLambdaConfigurationProperty
ValueList Text
newValue, [TransformationConfigurationProperty]
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
haddock_workaround_ :: ()
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
instance Property "CloudWatchMetricsEnabled" ObjectLambdaConfigurationProperty where
type PropertyType "CloudWatchMetricsEnabled" ObjectLambdaConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"CloudWatchMetricsEnabled" ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
set PropertyType
"CloudWatchMetricsEnabled" ObjectLambdaConfigurationProperty
newValue ObjectLambdaConfigurationProperty {[TransformationConfigurationProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ObjectLambdaConfigurationProperty -> ()
allowedFeatures :: ObjectLambdaConfigurationProperty -> Maybe (ValueList Text)
cloudWatchMetricsEnabled :: ObjectLambdaConfigurationProperty -> Maybe (Value Bool)
supportingAccessPoint :: ObjectLambdaConfigurationProperty -> Value Text
transformationConfigurations :: ObjectLambdaConfigurationProperty
-> [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
= ObjectLambdaConfigurationProperty
{cloudWatchMetricsEnabled :: Maybe (Value Bool)
cloudWatchMetricsEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CloudWatchMetricsEnabled" ObjectLambdaConfigurationProperty
Value Bool
newValue, [TransformationConfigurationProperty]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
instance Property "SupportingAccessPoint" ObjectLambdaConfigurationProperty where
type PropertyType "SupportingAccessPoint" ObjectLambdaConfigurationProperty = Value Prelude.Text
set :: PropertyType
"SupportingAccessPoint" ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
set PropertyType
"SupportingAccessPoint" ObjectLambdaConfigurationProperty
newValue ObjectLambdaConfigurationProperty {[TransformationConfigurationProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ObjectLambdaConfigurationProperty -> ()
allowedFeatures :: ObjectLambdaConfigurationProperty -> Maybe (ValueList Text)
cloudWatchMetricsEnabled :: ObjectLambdaConfigurationProperty -> Maybe (Value Bool)
supportingAccessPoint :: ObjectLambdaConfigurationProperty -> Value Text
transformationConfigurations :: ObjectLambdaConfigurationProperty
-> [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
= ObjectLambdaConfigurationProperty
{supportingAccessPoint :: Value Text
supportingAccessPoint = PropertyType
"SupportingAccessPoint" ObjectLambdaConfigurationProperty
Value Text
newValue, [TransformationConfigurationProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
transformationConfigurations :: [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
transformationConfigurations :: [TransformationConfigurationProperty]
..}
instance Property "TransformationConfigurations" ObjectLambdaConfigurationProperty where
type PropertyType "TransformationConfigurations" ObjectLambdaConfigurationProperty = [TransformationConfigurationProperty]
set :: PropertyType
"TransformationConfigurations" ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
-> ObjectLambdaConfigurationProperty
set PropertyType
"TransformationConfigurations" ObjectLambdaConfigurationProperty
newValue ObjectLambdaConfigurationProperty {[TransformationConfigurationProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ObjectLambdaConfigurationProperty -> ()
allowedFeatures :: ObjectLambdaConfigurationProperty -> Maybe (ValueList Text)
cloudWatchMetricsEnabled :: ObjectLambdaConfigurationProperty -> Maybe (Value Bool)
supportingAccessPoint :: ObjectLambdaConfigurationProperty -> Value Text
transformationConfigurations :: ObjectLambdaConfigurationProperty
-> [TransformationConfigurationProperty]
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
transformationConfigurations :: [TransformationConfigurationProperty]
..}
= ObjectLambdaConfigurationProperty
{transformationConfigurations :: [TransformationConfigurationProperty]
transformationConfigurations = [TransformationConfigurationProperty]
PropertyType
"TransformationConfigurations" ObjectLambdaConfigurationProperty
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
haddock_workaround_ :: ()
allowedFeatures :: Maybe (ValueList Text)
cloudWatchMetricsEnabled :: Maybe (Value Bool)
supportingAccessPoint :: Value Text
..}