module Stratosphere.ElasticLoadBalancingV2.Listener.MutualAuthenticationProperty (
        MutualAuthenticationProperty(..), mkMutualAuthenticationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MutualAuthenticationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-mutualauthentication.html>
    MutualAuthenticationProperty {MutualAuthenticationProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-mutualauthentication.html#cfn-elasticloadbalancingv2-listener-mutualauthentication-advertisetruststorecanames>
                                  MutualAuthenticationProperty -> Maybe (Value Text)
advertiseTrustStoreCaNames :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-mutualauthentication.html#cfn-elasticloadbalancingv2-listener-mutualauthentication-ignoreclientcertificateexpiry>
                                  MutualAuthenticationProperty -> Maybe (Value Bool)
ignoreClientCertificateExpiry :: (Prelude.Maybe (Value Prelude.Bool)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-mutualauthentication.html#cfn-elasticloadbalancingv2-listener-mutualauthentication-mode>
                                  MutualAuthenticationProperty -> Maybe (Value Text)
mode :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-mutualauthentication.html#cfn-elasticloadbalancingv2-listener-mutualauthentication-truststorearn>
                                  MutualAuthenticationProperty -> Maybe (Value Text)
trustStoreArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (MutualAuthenticationProperty
-> MutualAuthenticationProperty -> Bool
(MutualAuthenticationProperty
 -> MutualAuthenticationProperty -> Bool)
-> (MutualAuthenticationProperty
    -> MutualAuthenticationProperty -> Bool)
-> Eq MutualAuthenticationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MutualAuthenticationProperty
-> MutualAuthenticationProperty -> Bool
== :: MutualAuthenticationProperty
-> MutualAuthenticationProperty -> Bool
$c/= :: MutualAuthenticationProperty
-> MutualAuthenticationProperty -> Bool
/= :: MutualAuthenticationProperty
-> MutualAuthenticationProperty -> Bool
Prelude.Eq, Int -> MutualAuthenticationProperty -> ShowS
[MutualAuthenticationProperty] -> ShowS
MutualAuthenticationProperty -> String
(Int -> MutualAuthenticationProperty -> ShowS)
-> (MutualAuthenticationProperty -> String)
-> ([MutualAuthenticationProperty] -> ShowS)
-> Show MutualAuthenticationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MutualAuthenticationProperty -> ShowS
showsPrec :: Int -> MutualAuthenticationProperty -> ShowS
$cshow :: MutualAuthenticationProperty -> String
show :: MutualAuthenticationProperty -> String
$cshowList :: [MutualAuthenticationProperty] -> ShowS
showList :: [MutualAuthenticationProperty] -> ShowS
Prelude.Show)
mkMutualAuthenticationProperty :: MutualAuthenticationProperty
mkMutualAuthenticationProperty :: MutualAuthenticationProperty
mkMutualAuthenticationProperty
  = MutualAuthenticationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       advertiseTrustStoreCaNames :: Maybe (Value Text)
advertiseTrustStoreCaNames = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       ignoreClientCertificateExpiry :: Maybe (Value Bool)
ignoreClientCertificateExpiry = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       mode :: Maybe (Value Text)
mode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, trustStoreArn :: Maybe (Value Text)
trustStoreArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MutualAuthenticationProperty where
  toResourceProperties :: MutualAuthenticationProperty -> ResourceProperties
toResourceProperties MutualAuthenticationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MutualAuthenticationProperty -> ()
advertiseTrustStoreCaNames :: MutualAuthenticationProperty -> Maybe (Value Text)
ignoreClientCertificateExpiry :: MutualAuthenticationProperty -> Maybe (Value Bool)
mode :: MutualAuthenticationProperty -> Maybe (Value Text)
trustStoreArn :: MutualAuthenticationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ElasticLoadBalancingV2::Listener.MutualAuthentication",
         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
"AdvertiseTrustStoreCaNames"
                              (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)
advertiseTrustStoreCaNames,
                            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
"IgnoreClientCertificateExpiry"
                              (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)
ignoreClientCertificateExpiry,
                            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
"Mode" (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)
mode,
                            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
"TrustStoreArn" (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)
trustStoreArn])}
instance JSON.ToJSON MutualAuthenticationProperty where
  toJSON :: MutualAuthenticationProperty -> Value
toJSON MutualAuthenticationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MutualAuthenticationProperty -> ()
advertiseTrustStoreCaNames :: MutualAuthenticationProperty -> Maybe (Value Text)
ignoreClientCertificateExpiry :: MutualAuthenticationProperty -> Maybe (Value Bool)
mode :: MutualAuthenticationProperty -> Maybe (Value Text)
trustStoreArn :: MutualAuthenticationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: 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
"AdvertiseTrustStoreCaNames"
                 (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)
advertiseTrustStoreCaNames,
               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
"IgnoreClientCertificateExpiry"
                 (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)
ignoreClientCertificateExpiry,
               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
"Mode" (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)
mode,
               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
"TrustStoreArn" (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)
trustStoreArn]))
instance Property "AdvertiseTrustStoreCaNames" MutualAuthenticationProperty where
  type PropertyType "AdvertiseTrustStoreCaNames" MutualAuthenticationProperty = Value Prelude.Text
  set :: PropertyType
  "AdvertiseTrustStoreCaNames" MutualAuthenticationProperty
-> MutualAuthenticationProperty -> MutualAuthenticationProperty
set PropertyType
  "AdvertiseTrustStoreCaNames" MutualAuthenticationProperty
newValue MutualAuthenticationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MutualAuthenticationProperty -> ()
advertiseTrustStoreCaNames :: MutualAuthenticationProperty -> Maybe (Value Text)
ignoreClientCertificateExpiry :: MutualAuthenticationProperty -> Maybe (Value Bool)
mode :: MutualAuthenticationProperty -> Maybe (Value Text)
trustStoreArn :: MutualAuthenticationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
..}
    = MutualAuthenticationProperty
        {advertiseTrustStoreCaNames :: Maybe (Value Text)
advertiseTrustStoreCaNames = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AdvertiseTrustStoreCaNames" MutualAuthenticationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
haddock_workaround_ :: ()
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
..}
instance Property "IgnoreClientCertificateExpiry" MutualAuthenticationProperty where
  type PropertyType "IgnoreClientCertificateExpiry" MutualAuthenticationProperty = Value Prelude.Bool
  set :: PropertyType
  "IgnoreClientCertificateExpiry" MutualAuthenticationProperty
-> MutualAuthenticationProperty -> MutualAuthenticationProperty
set PropertyType
  "IgnoreClientCertificateExpiry" MutualAuthenticationProperty
newValue MutualAuthenticationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MutualAuthenticationProperty -> ()
advertiseTrustStoreCaNames :: MutualAuthenticationProperty -> Maybe (Value Text)
ignoreClientCertificateExpiry :: MutualAuthenticationProperty -> Maybe (Value Bool)
mode :: MutualAuthenticationProperty -> Maybe (Value Text)
trustStoreArn :: MutualAuthenticationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
..}
    = MutualAuthenticationProperty
        {ignoreClientCertificateExpiry :: Maybe (Value Bool)
ignoreClientCertificateExpiry = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IgnoreClientCertificateExpiry" MutualAuthenticationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
..}
instance Property "Mode" MutualAuthenticationProperty where
  type PropertyType "Mode" MutualAuthenticationProperty = Value Prelude.Text
  set :: PropertyType "Mode" MutualAuthenticationProperty
-> MutualAuthenticationProperty -> MutualAuthenticationProperty
set PropertyType "Mode" MutualAuthenticationProperty
newValue MutualAuthenticationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MutualAuthenticationProperty -> ()
advertiseTrustStoreCaNames :: MutualAuthenticationProperty -> Maybe (Value Text)
ignoreClientCertificateExpiry :: MutualAuthenticationProperty -> Maybe (Value Bool)
mode :: MutualAuthenticationProperty -> Maybe (Value Text)
trustStoreArn :: MutualAuthenticationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
..}
    = MutualAuthenticationProperty {mode :: Maybe (Value Text)
mode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Mode" MutualAuthenticationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
trustStoreArn :: Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
trustStoreArn :: Maybe (Value Text)
..}
instance Property "TrustStoreArn" MutualAuthenticationProperty where
  type PropertyType "TrustStoreArn" MutualAuthenticationProperty = Value Prelude.Text
  set :: PropertyType "TrustStoreArn" MutualAuthenticationProperty
-> MutualAuthenticationProperty -> MutualAuthenticationProperty
set PropertyType "TrustStoreArn" MutualAuthenticationProperty
newValue MutualAuthenticationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MutualAuthenticationProperty -> ()
advertiseTrustStoreCaNames :: MutualAuthenticationProperty -> Maybe (Value Text)
ignoreClientCertificateExpiry :: MutualAuthenticationProperty -> Maybe (Value Bool)
mode :: MutualAuthenticationProperty -> Maybe (Value Text)
trustStoreArn :: MutualAuthenticationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
trustStoreArn :: Maybe (Value Text)
..}
    = MutualAuthenticationProperty
        {trustStoreArn :: Maybe (Value Text)
trustStoreArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TrustStoreArn" MutualAuthenticationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
haddock_workaround_ :: ()
advertiseTrustStoreCaNames :: Maybe (Value Text)
ignoreClientCertificateExpiry :: Maybe (Value Bool)
mode :: Maybe (Value Text)
..}