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