module Stratosphere.AIOps.InvestigationGroup.EncryptionConfigMapProperty (
        EncryptionConfigMapProperty(..), mkEncryptionConfigMapProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EncryptionConfigMapProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aiops-investigationgroup-encryptionconfigmap.html>
    EncryptionConfigMapProperty {EncryptionConfigMapProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aiops-investigationgroup-encryptionconfigmap.html#cfn-aiops-investigationgroup-encryptionconfigmap-encryptionconfigurationtype>
                                 EncryptionConfigMapProperty -> Maybe (Value Text)
encryptionConfigurationType :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aiops-investigationgroup-encryptionconfigmap.html#cfn-aiops-investigationgroup-encryptionconfigmap-kmskeyid>
                                 EncryptionConfigMapProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EncryptionConfigMapProperty -> EncryptionConfigMapProperty -> Bool
(EncryptionConfigMapProperty
 -> EncryptionConfigMapProperty -> Bool)
-> (EncryptionConfigMapProperty
    -> EncryptionConfigMapProperty -> Bool)
-> Eq EncryptionConfigMapProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EncryptionConfigMapProperty -> EncryptionConfigMapProperty -> Bool
== :: EncryptionConfigMapProperty -> EncryptionConfigMapProperty -> Bool
$c/= :: EncryptionConfigMapProperty -> EncryptionConfigMapProperty -> Bool
/= :: EncryptionConfigMapProperty -> EncryptionConfigMapProperty -> Bool
Prelude.Eq, Int -> EncryptionConfigMapProperty -> ShowS
[EncryptionConfigMapProperty] -> ShowS
EncryptionConfigMapProperty -> String
(Int -> EncryptionConfigMapProperty -> ShowS)
-> (EncryptionConfigMapProperty -> String)
-> ([EncryptionConfigMapProperty] -> ShowS)
-> Show EncryptionConfigMapProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EncryptionConfigMapProperty -> ShowS
showsPrec :: Int -> EncryptionConfigMapProperty -> ShowS
$cshow :: EncryptionConfigMapProperty -> String
show :: EncryptionConfigMapProperty -> String
$cshowList :: [EncryptionConfigMapProperty] -> ShowS
showList :: [EncryptionConfigMapProperty] -> ShowS
Prelude.Show)
mkEncryptionConfigMapProperty :: EncryptionConfigMapProperty
mkEncryptionConfigMapProperty :: EncryptionConfigMapProperty
mkEncryptionConfigMapProperty
  = EncryptionConfigMapProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       encryptionConfigurationType :: Maybe (Value Text)
encryptionConfigurationType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EncryptionConfigMapProperty where
  toResourceProperties :: EncryptionConfigMapProperty -> ResourceProperties
toResourceProperties EncryptionConfigMapProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionConfigMapProperty -> ()
encryptionConfigurationType :: EncryptionConfigMapProperty -> Maybe (Value Text)
kmsKeyId :: EncryptionConfigMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfigurationType :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AIOps::InvestigationGroup.EncryptionConfigMap",
         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 -> 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
"EncryptionConfigurationType"
                              (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)
encryptionConfigurationType,
                            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
"KmsKeyId" (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)
kmsKeyId])}
instance JSON.ToJSON EncryptionConfigMapProperty where
  toJSON :: EncryptionConfigMapProperty -> Value
toJSON EncryptionConfigMapProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionConfigMapProperty -> ()
encryptionConfigurationType :: EncryptionConfigMapProperty -> Maybe (Value Text)
kmsKeyId :: EncryptionConfigMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfigurationType :: Maybe (Value Text)
kmsKeyId :: 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 -> 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
"EncryptionConfigurationType"
                 (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)
encryptionConfigurationType,
               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
"KmsKeyId" (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)
kmsKeyId]))
instance Property "EncryptionConfigurationType" EncryptionConfigMapProperty where
  type PropertyType "EncryptionConfigurationType" EncryptionConfigMapProperty = Value Prelude.Text
  set :: PropertyType
  "EncryptionConfigurationType" EncryptionConfigMapProperty
-> EncryptionConfigMapProperty -> EncryptionConfigMapProperty
set PropertyType
  "EncryptionConfigurationType" EncryptionConfigMapProperty
newValue EncryptionConfigMapProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionConfigMapProperty -> ()
encryptionConfigurationType :: EncryptionConfigMapProperty -> Maybe (Value Text)
kmsKeyId :: EncryptionConfigMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfigurationType :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}
    = EncryptionConfigMapProperty
        {encryptionConfigurationType :: Maybe (Value Text)
encryptionConfigurationType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "EncryptionConfigurationType" EncryptionConfigMapProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}
instance Property "KmsKeyId" EncryptionConfigMapProperty where
  type PropertyType "KmsKeyId" EncryptionConfigMapProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyId" EncryptionConfigMapProperty
-> EncryptionConfigMapProperty -> EncryptionConfigMapProperty
set PropertyType "KmsKeyId" EncryptionConfigMapProperty
newValue EncryptionConfigMapProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionConfigMapProperty -> ()
encryptionConfigurationType :: EncryptionConfigMapProperty -> Maybe (Value Text)
kmsKeyId :: EncryptionConfigMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfigurationType :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}
    = EncryptionConfigMapProperty
        {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" EncryptionConfigMapProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
encryptionConfigurationType :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfigurationType :: Maybe (Value Text)
..}