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