module Stratosphere.Glue.MLTransform.TransformEncryptionProperty (
        module Exports, TransformEncryptionProperty(..),
        mkTransformEncryptionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Glue.MLTransform.MLUserDataEncryptionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransformEncryptionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-mltransform-transformencryption.html>
    TransformEncryptionProperty {TransformEncryptionProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-mltransform-transformencryption.html#cfn-glue-mltransform-transformencryption-mluserdataencryption>
                                 TransformEncryptionProperty -> Maybe MLUserDataEncryptionProperty
mLUserDataEncryption :: (Prelude.Maybe MLUserDataEncryptionProperty),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-mltransform-transformencryption.html#cfn-glue-mltransform-transformencryption-taskrunsecurityconfigurationname>
                                 TransformEncryptionProperty -> Maybe (Value Text)
taskRunSecurityConfigurationName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TransformEncryptionProperty -> TransformEncryptionProperty -> Bool
(TransformEncryptionProperty
 -> TransformEncryptionProperty -> Bool)
-> (TransformEncryptionProperty
    -> TransformEncryptionProperty -> Bool)
-> Eq TransformEncryptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransformEncryptionProperty -> TransformEncryptionProperty -> Bool
== :: TransformEncryptionProperty -> TransformEncryptionProperty -> Bool
$c/= :: TransformEncryptionProperty -> TransformEncryptionProperty -> Bool
/= :: TransformEncryptionProperty -> TransformEncryptionProperty -> Bool
Prelude.Eq, Int -> TransformEncryptionProperty -> ShowS
[TransformEncryptionProperty] -> ShowS
TransformEncryptionProperty -> String
(Int -> TransformEncryptionProperty -> ShowS)
-> (TransformEncryptionProperty -> String)
-> ([TransformEncryptionProperty] -> ShowS)
-> Show TransformEncryptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransformEncryptionProperty -> ShowS
showsPrec :: Int -> TransformEncryptionProperty -> ShowS
$cshow :: TransformEncryptionProperty -> String
show :: TransformEncryptionProperty -> String
$cshowList :: [TransformEncryptionProperty] -> ShowS
showList :: [TransformEncryptionProperty] -> ShowS
Prelude.Show)
mkTransformEncryptionProperty :: TransformEncryptionProperty
mkTransformEncryptionProperty :: TransformEncryptionProperty
mkTransformEncryptionProperty
  = TransformEncryptionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
mLUserDataEncryption = Maybe MLUserDataEncryptionProperty
forall a. Maybe a
Prelude.Nothing,
       taskRunSecurityConfigurationName :: Maybe (Value Text)
taskRunSecurityConfigurationName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TransformEncryptionProperty where
  toResourceProperties :: TransformEncryptionProperty -> ResourceProperties
toResourceProperties TransformEncryptionProperty {Maybe (Value Text)
Maybe MLUserDataEncryptionProperty
()
haddock_workaround_ :: TransformEncryptionProperty -> ()
mLUserDataEncryption :: TransformEncryptionProperty -> Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: TransformEncryptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::MLTransform.TransformEncryption",
         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 -> MLUserDataEncryptionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MLUserDataEncryption" (MLUserDataEncryptionProperty -> (Key, Value))
-> Maybe MLUserDataEncryptionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MLUserDataEncryptionProperty
mLUserDataEncryption,
                            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
"TaskRunSecurityConfigurationName"
                              (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)
taskRunSecurityConfigurationName])}
instance JSON.ToJSON TransformEncryptionProperty where
  toJSON :: TransformEncryptionProperty -> Value
toJSON TransformEncryptionProperty {Maybe (Value Text)
Maybe MLUserDataEncryptionProperty
()
haddock_workaround_ :: TransformEncryptionProperty -> ()
mLUserDataEncryption :: TransformEncryptionProperty -> Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: TransformEncryptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: 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 -> MLUserDataEncryptionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MLUserDataEncryption" (MLUserDataEncryptionProperty -> (Key, Value))
-> Maybe MLUserDataEncryptionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MLUserDataEncryptionProperty
mLUserDataEncryption,
               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
"TaskRunSecurityConfigurationName"
                 (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)
taskRunSecurityConfigurationName]))
instance Property "MLUserDataEncryption" TransformEncryptionProperty where
  type PropertyType "MLUserDataEncryption" TransformEncryptionProperty = MLUserDataEncryptionProperty
  set :: PropertyType "MLUserDataEncryption" TransformEncryptionProperty
-> TransformEncryptionProperty -> TransformEncryptionProperty
set PropertyType "MLUserDataEncryption" TransformEncryptionProperty
newValue TransformEncryptionProperty {Maybe (Value Text)
Maybe MLUserDataEncryptionProperty
()
haddock_workaround_ :: TransformEncryptionProperty -> ()
mLUserDataEncryption :: TransformEncryptionProperty -> Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: TransformEncryptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: Maybe (Value Text)
..}
    = TransformEncryptionProperty
        {mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
mLUserDataEncryption = MLUserDataEncryptionProperty -> Maybe MLUserDataEncryptionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MLUserDataEncryption" TransformEncryptionProperty
MLUserDataEncryptionProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
taskRunSecurityConfigurationName :: Maybe (Value Text)
haddock_workaround_ :: ()
taskRunSecurityConfigurationName :: Maybe (Value Text)
..}
instance Property "TaskRunSecurityConfigurationName" TransformEncryptionProperty where
  type PropertyType "TaskRunSecurityConfigurationName" TransformEncryptionProperty = Value Prelude.Text
  set :: PropertyType
  "TaskRunSecurityConfigurationName" TransformEncryptionProperty
-> TransformEncryptionProperty -> TransformEncryptionProperty
set PropertyType
  "TaskRunSecurityConfigurationName" TransformEncryptionProperty
newValue TransformEncryptionProperty {Maybe (Value Text)
Maybe MLUserDataEncryptionProperty
()
haddock_workaround_ :: TransformEncryptionProperty -> ()
mLUserDataEncryption :: TransformEncryptionProperty -> Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: TransformEncryptionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
taskRunSecurityConfigurationName :: Maybe (Value Text)
..}
    = TransformEncryptionProperty
        {taskRunSecurityConfigurationName :: Maybe (Value Text)
taskRunSecurityConfigurationName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "TaskRunSecurityConfigurationName" TransformEncryptionProperty
Value Text
newValue, Maybe MLUserDataEncryptionProperty
()
haddock_workaround_ :: ()
mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
haddock_workaround_ :: ()
mLUserDataEncryption :: Maybe MLUserDataEncryptionProperty
..}