module Stratosphere.PCAConnectorAD.Template.PrivateKeyFlagsV2Property (
        PrivateKeyFlagsV2Property(..), mkPrivateKeyFlagsV2Property
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PrivateKeyFlagsV2Property
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-privatekeyflagsv2.html>
    PrivateKeyFlagsV2Property {PrivateKeyFlagsV2Property -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-privatekeyflagsv2.html#cfn-pcaconnectorad-template-privatekeyflagsv2-clientversion>
                               PrivateKeyFlagsV2Property -> Value Text
clientVersion :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-privatekeyflagsv2.html#cfn-pcaconnectorad-template-privatekeyflagsv2-exportablekey>
                               PrivateKeyFlagsV2Property -> Maybe (Value Bool)
exportableKey :: (Prelude.Maybe (Value Prelude.Bool)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-privatekeyflagsv2.html#cfn-pcaconnectorad-template-privatekeyflagsv2-strongkeyprotectionrequired>
                               PrivateKeyFlagsV2Property -> Maybe (Value Bool)
strongKeyProtectionRequired :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property -> Bool
(PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property -> Bool)
-> (PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property -> Bool)
-> Eq PrivateKeyFlagsV2Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property -> Bool
== :: PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property -> Bool
$c/= :: PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property -> Bool
/= :: PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property -> Bool
Prelude.Eq, Int -> PrivateKeyFlagsV2Property -> ShowS
[PrivateKeyFlagsV2Property] -> ShowS
PrivateKeyFlagsV2Property -> String
(Int -> PrivateKeyFlagsV2Property -> ShowS)
-> (PrivateKeyFlagsV2Property -> String)
-> ([PrivateKeyFlagsV2Property] -> ShowS)
-> Show PrivateKeyFlagsV2Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PrivateKeyFlagsV2Property -> ShowS
showsPrec :: Int -> PrivateKeyFlagsV2Property -> ShowS
$cshow :: PrivateKeyFlagsV2Property -> String
show :: PrivateKeyFlagsV2Property -> String
$cshowList :: [PrivateKeyFlagsV2Property] -> ShowS
showList :: [PrivateKeyFlagsV2Property] -> ShowS
Prelude.Show)
mkPrivateKeyFlagsV2Property ::
  Value Prelude.Text -> PrivateKeyFlagsV2Property
mkPrivateKeyFlagsV2Property :: Value Text -> PrivateKeyFlagsV2Property
mkPrivateKeyFlagsV2Property Value Text
clientVersion
  = PrivateKeyFlagsV2Property
      {haddock_workaround_ :: ()
haddock_workaround_ = (), clientVersion :: Value Text
clientVersion = Value Text
clientVersion,
       exportableKey :: Maybe (Value Bool)
exportableKey = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       strongKeyProtectionRequired :: Maybe (Value Bool)
strongKeyProtectionRequired = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PrivateKeyFlagsV2Property where
  toResourceProperties :: PrivateKeyFlagsV2Property -> ResourceProperties
toResourceProperties PrivateKeyFlagsV2Property {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: PrivateKeyFlagsV2Property -> ()
clientVersion :: PrivateKeyFlagsV2Property -> Value Text
exportableKey :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
strongKeyProtectionRequired :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
clientVersion :: Value Text
exportableKey :: Maybe (Value Bool)
strongKeyProtectionRequired :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Template.PrivateKeyFlagsV2",
         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
"ClientVersion" 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
clientVersion]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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
"ExportableKey" (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)
exportableKey,
                               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
"StrongKeyProtectionRequired"
                                 (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)
strongKeyProtectionRequired]))}
instance JSON.ToJSON PrivateKeyFlagsV2Property where
  toJSON :: PrivateKeyFlagsV2Property -> Value
toJSON PrivateKeyFlagsV2Property {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: PrivateKeyFlagsV2Property -> ()
clientVersion :: PrivateKeyFlagsV2Property -> Value Text
exportableKey :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
strongKeyProtectionRequired :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
clientVersion :: Value Text
exportableKey :: Maybe (Value Bool)
strongKeyProtectionRequired :: Maybe (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
"ClientVersion" 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
clientVersion]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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
"ExportableKey" (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)
exportableKey,
                  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
"StrongKeyProtectionRequired"
                    (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)
strongKeyProtectionRequired])))
instance Property "ClientVersion" PrivateKeyFlagsV2Property where
  type PropertyType "ClientVersion" PrivateKeyFlagsV2Property = Value Prelude.Text
  set :: PropertyType "ClientVersion" PrivateKeyFlagsV2Property
-> PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property
set PropertyType "ClientVersion" PrivateKeyFlagsV2Property
newValue PrivateKeyFlagsV2Property {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: PrivateKeyFlagsV2Property -> ()
clientVersion :: PrivateKeyFlagsV2Property -> Value Text
exportableKey :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
strongKeyProtectionRequired :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
clientVersion :: Value Text
exportableKey :: Maybe (Value Bool)
strongKeyProtectionRequired :: Maybe (Value Bool)
..}
    = PrivateKeyFlagsV2Property {clientVersion :: Value Text
clientVersion = PropertyType "ClientVersion" PrivateKeyFlagsV2Property
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
exportableKey :: Maybe (Value Bool)
strongKeyProtectionRequired :: Maybe (Value Bool)
haddock_workaround_ :: ()
exportableKey :: Maybe (Value Bool)
strongKeyProtectionRequired :: Maybe (Value Bool)
..}
instance Property "ExportableKey" PrivateKeyFlagsV2Property where
  type PropertyType "ExportableKey" PrivateKeyFlagsV2Property = Value Prelude.Bool
  set :: PropertyType "ExportableKey" PrivateKeyFlagsV2Property
-> PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property
set PropertyType "ExportableKey" PrivateKeyFlagsV2Property
newValue PrivateKeyFlagsV2Property {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: PrivateKeyFlagsV2Property -> ()
clientVersion :: PrivateKeyFlagsV2Property -> Value Text
exportableKey :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
strongKeyProtectionRequired :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
clientVersion :: Value Text
exportableKey :: Maybe (Value Bool)
strongKeyProtectionRequired :: Maybe (Value Bool)
..}
    = PrivateKeyFlagsV2Property
        {exportableKey :: Maybe (Value Bool)
exportableKey = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExportableKey" PrivateKeyFlagsV2Property
Value Bool
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
clientVersion :: Value Text
strongKeyProtectionRequired :: Maybe (Value Bool)
haddock_workaround_ :: ()
clientVersion :: Value Text
strongKeyProtectionRequired :: Maybe (Value Bool)
..}
instance Property "StrongKeyProtectionRequired" PrivateKeyFlagsV2Property where
  type PropertyType "StrongKeyProtectionRequired" PrivateKeyFlagsV2Property = Value Prelude.Bool
  set :: PropertyType
  "StrongKeyProtectionRequired" PrivateKeyFlagsV2Property
-> PrivateKeyFlagsV2Property -> PrivateKeyFlagsV2Property
set PropertyType
  "StrongKeyProtectionRequired" PrivateKeyFlagsV2Property
newValue PrivateKeyFlagsV2Property {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: PrivateKeyFlagsV2Property -> ()
clientVersion :: PrivateKeyFlagsV2Property -> Value Text
exportableKey :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
strongKeyProtectionRequired :: PrivateKeyFlagsV2Property -> Maybe (Value Bool)
haddock_workaround_ :: ()
clientVersion :: Value Text
exportableKey :: Maybe (Value Bool)
strongKeyProtectionRequired :: Maybe (Value Bool)
..}
    = PrivateKeyFlagsV2Property
        {strongKeyProtectionRequired :: Maybe (Value Bool)
strongKeyProtectionRequired = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "StrongKeyProtectionRequired" PrivateKeyFlagsV2Property
Value Bool
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
clientVersion :: Value Text
exportableKey :: Maybe (Value Bool)
haddock_workaround_ :: ()
clientVersion :: Value Text
exportableKey :: Maybe (Value Bool)
..}