module Stratosphere.ElasticLoadBalancingV2.TrustStore (
        TrustStore(..), mkTrustStore
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data TrustStore
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-truststore.html>
    TrustStore {TrustStore -> ()
haddock_workaround_ :: (),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-truststore.html#cfn-elasticloadbalancingv2-truststore-cacertificatesbundles3bucket>
                TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Bucket :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-truststore.html#cfn-elasticloadbalancingv2-truststore-cacertificatesbundles3key>
                TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-truststore.html#cfn-elasticloadbalancingv2-truststore-cacertificatesbundles3objectversion>
                TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-truststore.html#cfn-elasticloadbalancingv2-truststore-name>
                TrustStore -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-truststore.html#cfn-elasticloadbalancingv2-truststore-tags>
                TrustStore -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (TrustStore -> TrustStore -> Bool
(TrustStore -> TrustStore -> Bool)
-> (TrustStore -> TrustStore -> Bool) -> Eq TrustStore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TrustStore -> TrustStore -> Bool
== :: TrustStore -> TrustStore -> Bool
$c/= :: TrustStore -> TrustStore -> Bool
/= :: TrustStore -> TrustStore -> Bool
Prelude.Eq, Int -> TrustStore -> ShowS
[TrustStore] -> ShowS
TrustStore -> String
(Int -> TrustStore -> ShowS)
-> (TrustStore -> String)
-> ([TrustStore] -> ShowS)
-> Show TrustStore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TrustStore -> ShowS
showsPrec :: Int -> TrustStore -> ShowS
$cshow :: TrustStore -> String
show :: TrustStore -> String
$cshowList :: [TrustStore] -> ShowS
showList :: [TrustStore] -> ShowS
Prelude.Show)
mkTrustStore :: TrustStore
mkTrustStore :: TrustStore
mkTrustStore
  = TrustStore
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Bucket = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3Key = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TrustStore where
  toResourceProperties :: TrustStore -> ResourceProperties
toResourceProperties TrustStore {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStore -> ()
caCertificatesBundleS3Bucket :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: TrustStore -> Maybe (Value Text)
name :: TrustStore -> Maybe (Value Text)
tags :: TrustStore -> Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ElasticLoadBalancingV2::TrustStore",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"CaCertificatesBundleS3Bucket"
                              (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)
caCertificatesBundleS3Bucket,
                            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
"CaCertificatesBundleS3Key"
                              (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)
caCertificatesBundleS3Key,
                            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
"CaCertificatesBundleS3ObjectVersion"
                              (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)
caCertificatesBundleS3ObjectVersion,
                            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
"Name" (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)
name,
                            Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON TrustStore where
  toJSON :: TrustStore -> Value
toJSON TrustStore {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStore -> ()
caCertificatesBundleS3Bucket :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: TrustStore -> Maybe (Value Text)
name :: TrustStore -> Maybe (Value Text)
tags :: TrustStore -> Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = [(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
"CaCertificatesBundleS3Bucket"
                 (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)
caCertificatesBundleS3Bucket,
               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
"CaCertificatesBundleS3Key"
                 (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)
caCertificatesBundleS3Key,
               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
"CaCertificatesBundleS3ObjectVersion"
                 (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)
caCertificatesBundleS3ObjectVersion,
               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
"Name" (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)
name,
               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "CaCertificatesBundleS3Bucket" TrustStore where
  type PropertyType "CaCertificatesBundleS3Bucket" TrustStore = Value Prelude.Text
  set :: PropertyType "CaCertificatesBundleS3Bucket" TrustStore
-> TrustStore -> TrustStore
set PropertyType "CaCertificatesBundleS3Bucket" TrustStore
newValue TrustStore {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStore -> ()
caCertificatesBundleS3Bucket :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: TrustStore -> Maybe (Value Text)
name :: TrustStore -> Maybe (Value Text)
tags :: TrustStore -> Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = TrustStore
        {caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Bucket = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CaCertificatesBundleS3Bucket" TrustStore
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "CaCertificatesBundleS3Key" TrustStore where
  type PropertyType "CaCertificatesBundleS3Key" TrustStore = Value Prelude.Text
  set :: PropertyType "CaCertificatesBundleS3Key" TrustStore
-> TrustStore -> TrustStore
set PropertyType "CaCertificatesBundleS3Key" TrustStore
newValue TrustStore {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStore -> ()
caCertificatesBundleS3Bucket :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: TrustStore -> Maybe (Value Text)
name :: TrustStore -> Maybe (Value Text)
tags :: TrustStore -> Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = TrustStore
        {caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3Key = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CaCertificatesBundleS3Key" TrustStore
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "CaCertificatesBundleS3ObjectVersion" TrustStore where
  type PropertyType "CaCertificatesBundleS3ObjectVersion" TrustStore = Value Prelude.Text
  set :: PropertyType "CaCertificatesBundleS3ObjectVersion" TrustStore
-> TrustStore -> TrustStore
set PropertyType "CaCertificatesBundleS3ObjectVersion" TrustStore
newValue TrustStore {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStore -> ()
caCertificatesBundleS3Bucket :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: TrustStore -> Maybe (Value Text)
name :: TrustStore -> Maybe (Value Text)
tags :: TrustStore -> Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = TrustStore
        {caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CaCertificatesBundleS3ObjectVersion" TrustStore
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" TrustStore where
  type PropertyType "Name" TrustStore = Value Prelude.Text
  set :: PropertyType "Name" TrustStore -> TrustStore -> TrustStore
set PropertyType "Name" TrustStore
newValue TrustStore {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStore -> ()
caCertificatesBundleS3Bucket :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: TrustStore -> Maybe (Value Text)
name :: TrustStore -> Maybe (Value Text)
tags :: TrustStore -> Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = TrustStore {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" TrustStore
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" TrustStore where
  type PropertyType "Tags" TrustStore = [Tag]
  set :: PropertyType "Tags" TrustStore -> TrustStore -> TrustStore
set PropertyType "Tags" TrustStore
newValue TrustStore {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStore -> ()
caCertificatesBundleS3Bucket :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3Key :: TrustStore -> Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: TrustStore -> Maybe (Value Text)
name :: TrustStore -> Maybe (Value Text)
tags :: TrustStore -> Maybe [Tag]
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = TrustStore {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" TrustStore
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
caCertificatesBundleS3Bucket :: Maybe (Value Text)
caCertificatesBundleS3Key :: Maybe (Value Text)
caCertificatesBundleS3ObjectVersion :: Maybe (Value Text)
name :: Maybe (Value Text)
..}