module Stratosphere.DLM.LifecyclePolicy.EncryptionConfigurationProperty (
        EncryptionConfigurationProperty(..),
        mkEncryptionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EncryptionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html>
    EncryptionConfigurationProperty {EncryptionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html#cfn-dlm-lifecyclepolicy-encryptionconfiguration-cmkarn>
                                     EncryptionConfigurationProperty -> Maybe (Value Text)
cmkArn :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html#cfn-dlm-lifecyclepolicy-encryptionconfiguration-encrypted>
                                     EncryptionConfigurationProperty -> Value Bool
encrypted :: (Value Prelude.Bool)}
  deriving stock (EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
(EncryptionConfigurationProperty
 -> EncryptionConfigurationProperty -> Bool)
-> (EncryptionConfigurationProperty
    -> EncryptionConfigurationProperty -> Bool)
-> Eq EncryptionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
== :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
$c/= :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
/= :: EncryptionConfigurationProperty
-> EncryptionConfigurationProperty -> Bool
Prelude.Eq, Int -> EncryptionConfigurationProperty -> ShowS
[EncryptionConfigurationProperty] -> ShowS
EncryptionConfigurationProperty -> String
(Int -> EncryptionConfigurationProperty -> ShowS)
-> (EncryptionConfigurationProperty -> String)
-> ([EncryptionConfigurationProperty] -> ShowS)
-> Show EncryptionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EncryptionConfigurationProperty -> ShowS
showsPrec :: Int -> EncryptionConfigurationProperty -> ShowS
$cshow :: EncryptionConfigurationProperty -> String
show :: EncryptionConfigurationProperty -> String
$cshowList :: [EncryptionConfigurationProperty] -> ShowS
showList :: [EncryptionConfigurationProperty] -> ShowS
Prelude.Show)
mkEncryptionConfigurationProperty ::
  Value Prelude.Bool -> EncryptionConfigurationProperty
mkEncryptionConfigurationProperty :: Value Bool -> EncryptionConfigurationProperty
mkEncryptionConfigurationProperty Value Bool
encrypted
  = EncryptionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), encrypted :: Value Bool
encrypted = Value Bool
encrypted,
       cmkArn :: Maybe (Value Text)
cmkArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EncryptionConfigurationProperty where
  toResourceProperties :: EncryptionConfigurationProperty -> ResourceProperties
toResourceProperties EncryptionConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: EncryptionConfigurationProperty -> ()
cmkArn :: EncryptionConfigurationProperty -> Maybe (Value Text)
encrypted :: EncryptionConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
cmkArn :: Maybe (Value Text)
encrypted :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DLM::LifecyclePolicy.EncryptionConfiguration",
         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
"Encrypted" 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..= Value Bool
encrypted]
                           ([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
"CmkArn" (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)
cmkArn]))}
instance JSON.ToJSON EncryptionConfigurationProperty where
  toJSON :: EncryptionConfigurationProperty -> Value
toJSON EncryptionConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: EncryptionConfigurationProperty -> ()
cmkArn :: EncryptionConfigurationProperty -> Maybe (Value Text)
encrypted :: EncryptionConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
cmkArn :: Maybe (Value Text)
encrypted :: Value Bool
..}
    = [(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
"Encrypted" 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..= Value Bool
encrypted]
              ([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
"CmkArn" (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)
cmkArn])))
instance Property "CmkArn" EncryptionConfigurationProperty where
  type PropertyType "CmkArn" EncryptionConfigurationProperty = Value Prelude.Text
  set :: PropertyType "CmkArn" EncryptionConfigurationProperty
-> EncryptionConfigurationProperty
-> EncryptionConfigurationProperty
set PropertyType "CmkArn" EncryptionConfigurationProperty
newValue EncryptionConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: EncryptionConfigurationProperty -> ()
cmkArn :: EncryptionConfigurationProperty -> Maybe (Value Text)
encrypted :: EncryptionConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
cmkArn :: Maybe (Value Text)
encrypted :: Value Bool
..}
    = EncryptionConfigurationProperty
        {cmkArn :: Maybe (Value Text)
cmkArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CmkArn" EncryptionConfigurationProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
encrypted :: Value Bool
haddock_workaround_ :: ()
encrypted :: Value Bool
..}
instance Property "Encrypted" EncryptionConfigurationProperty where
  type PropertyType "Encrypted" EncryptionConfigurationProperty = Value Prelude.Bool
  set :: PropertyType "Encrypted" EncryptionConfigurationProperty
-> EncryptionConfigurationProperty
-> EncryptionConfigurationProperty
set PropertyType "Encrypted" EncryptionConfigurationProperty
newValue EncryptionConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: EncryptionConfigurationProperty -> ()
cmkArn :: EncryptionConfigurationProperty -> Maybe (Value Text)
encrypted :: EncryptionConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
cmkArn :: Maybe (Value Text)
encrypted :: Value Bool
..}
    = EncryptionConfigurationProperty {encrypted :: Value Bool
encrypted = PropertyType "Encrypted" EncryptionConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cmkArn :: Maybe (Value Text)
haddock_workaround_ :: ()
cmkArn :: Maybe (Value Text)
..}