module Stratosphere.ElasticLoadBalancingV2.TrustStoreRevocation (
module Exports, TrustStoreRevocation(..), mkTrustStoreRevocation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ElasticLoadBalancingV2.TrustStoreRevocation.RevocationContentProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TrustStoreRevocation
=
TrustStoreRevocation {TrustStoreRevocation -> ()
haddock_workaround_ :: (),
TrustStoreRevocation -> Maybe [RevocationContentProperty]
revocationContents :: (Prelude.Maybe [RevocationContentProperty]),
TrustStoreRevocation -> Maybe (Value Text)
trustStoreArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TrustStoreRevocation -> TrustStoreRevocation -> Bool
(TrustStoreRevocation -> TrustStoreRevocation -> Bool)
-> (TrustStoreRevocation -> TrustStoreRevocation -> Bool)
-> Eq TrustStoreRevocation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TrustStoreRevocation -> TrustStoreRevocation -> Bool
== :: TrustStoreRevocation -> TrustStoreRevocation -> Bool
$c/= :: TrustStoreRevocation -> TrustStoreRevocation -> Bool
/= :: TrustStoreRevocation -> TrustStoreRevocation -> Bool
Prelude.Eq, Int -> TrustStoreRevocation -> ShowS
[TrustStoreRevocation] -> ShowS
TrustStoreRevocation -> String
(Int -> TrustStoreRevocation -> ShowS)
-> (TrustStoreRevocation -> String)
-> ([TrustStoreRevocation] -> ShowS)
-> Show TrustStoreRevocation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TrustStoreRevocation -> ShowS
showsPrec :: Int -> TrustStoreRevocation -> ShowS
$cshow :: TrustStoreRevocation -> String
show :: TrustStoreRevocation -> String
$cshowList :: [TrustStoreRevocation] -> ShowS
showList :: [TrustStoreRevocation] -> ShowS
Prelude.Show)
mkTrustStoreRevocation :: TrustStoreRevocation
mkTrustStoreRevocation :: TrustStoreRevocation
mkTrustStoreRevocation
= TrustStoreRevocation
{haddock_workaround_ :: ()
haddock_workaround_ = (), revocationContents :: Maybe [RevocationContentProperty]
revocationContents = Maybe [RevocationContentProperty]
forall a. Maybe a
Prelude.Nothing,
trustStoreArn :: Maybe (Value Text)
trustStoreArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TrustStoreRevocation where
toResourceProperties :: TrustStoreRevocation -> ResourceProperties
toResourceProperties TrustStoreRevocation {Maybe [RevocationContentProperty]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStoreRevocation -> ()
revocationContents :: TrustStoreRevocation -> Maybe [RevocationContentProperty]
trustStoreArn :: TrustStoreRevocation -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationContents :: Maybe [RevocationContentProperty]
trustStoreArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElasticLoadBalancingV2::TrustStoreRevocation",
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 -> [RevocationContentProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RevocationContents" ([RevocationContentProperty] -> (Key, Value))
-> Maybe [RevocationContentProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RevocationContentProperty]
revocationContents,
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 TrustStoreRevocation where
toJSON :: TrustStoreRevocation -> Value
toJSON TrustStoreRevocation {Maybe [RevocationContentProperty]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStoreRevocation -> ()
revocationContents :: TrustStoreRevocation -> Maybe [RevocationContentProperty]
trustStoreArn :: TrustStoreRevocation -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationContents :: Maybe [RevocationContentProperty]
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 -> [RevocationContentProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RevocationContents" ([RevocationContentProperty] -> (Key, Value))
-> Maybe [RevocationContentProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RevocationContentProperty]
revocationContents,
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 "RevocationContents" TrustStoreRevocation where
type PropertyType "RevocationContents" TrustStoreRevocation = [RevocationContentProperty]
set :: PropertyType "RevocationContents" TrustStoreRevocation
-> TrustStoreRevocation -> TrustStoreRevocation
set PropertyType "RevocationContents" TrustStoreRevocation
newValue TrustStoreRevocation {Maybe [RevocationContentProperty]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStoreRevocation -> ()
revocationContents :: TrustStoreRevocation -> Maybe [RevocationContentProperty]
trustStoreArn :: TrustStoreRevocation -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationContents :: Maybe [RevocationContentProperty]
trustStoreArn :: Maybe (Value Text)
..}
= TrustStoreRevocation
{revocationContents :: Maybe [RevocationContentProperty]
revocationContents = [RevocationContentProperty] -> Maybe [RevocationContentProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [RevocationContentProperty]
PropertyType "RevocationContents" TrustStoreRevocation
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
trustStoreArn :: Maybe (Value Text)
haddock_workaround_ :: ()
trustStoreArn :: Maybe (Value Text)
..}
instance Property "TrustStoreArn" TrustStoreRevocation where
type PropertyType "TrustStoreArn" TrustStoreRevocation = Value Prelude.Text
set :: PropertyType "TrustStoreArn" TrustStoreRevocation
-> TrustStoreRevocation -> TrustStoreRevocation
set PropertyType "TrustStoreArn" TrustStoreRevocation
newValue TrustStoreRevocation {Maybe [RevocationContentProperty]
Maybe (Value Text)
()
haddock_workaround_ :: TrustStoreRevocation -> ()
revocationContents :: TrustStoreRevocation -> Maybe [RevocationContentProperty]
trustStoreArn :: TrustStoreRevocation -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationContents :: Maybe [RevocationContentProperty]
trustStoreArn :: Maybe (Value Text)
..}
= TrustStoreRevocation {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" TrustStoreRevocation
Value Text
newValue, Maybe [RevocationContentProperty]
()
haddock_workaround_ :: ()
revocationContents :: Maybe [RevocationContentProperty]
haddock_workaround_ :: ()
revocationContents :: Maybe [RevocationContentProperty]
..}