module Stratosphere.ElasticLoadBalancingV2.TrustStoreRevocation.RevocationContentProperty (
RevocationContentProperty(..), mkRevocationContentProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RevocationContentProperty
=
RevocationContentProperty {RevocationContentProperty -> ()
haddock_workaround_ :: (),
RevocationContentProperty -> Maybe (Value Text)
revocationType :: (Prelude.Maybe (Value Prelude.Text)),
RevocationContentProperty -> Maybe (Value Text)
s3Bucket :: (Prelude.Maybe (Value Prelude.Text)),
RevocationContentProperty -> Maybe (Value Text)
s3Key :: (Prelude.Maybe (Value Prelude.Text)),
RevocationContentProperty -> Maybe (Value Text)
s3ObjectVersion :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RevocationContentProperty -> RevocationContentProperty -> Bool
(RevocationContentProperty -> RevocationContentProperty -> Bool)
-> (RevocationContentProperty -> RevocationContentProperty -> Bool)
-> Eq RevocationContentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RevocationContentProperty -> RevocationContentProperty -> Bool
== :: RevocationContentProperty -> RevocationContentProperty -> Bool
$c/= :: RevocationContentProperty -> RevocationContentProperty -> Bool
/= :: RevocationContentProperty -> RevocationContentProperty -> Bool
Prelude.Eq, Int -> RevocationContentProperty -> ShowS
[RevocationContentProperty] -> ShowS
RevocationContentProperty -> String
(Int -> RevocationContentProperty -> ShowS)
-> (RevocationContentProperty -> String)
-> ([RevocationContentProperty] -> ShowS)
-> Show RevocationContentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RevocationContentProperty -> ShowS
showsPrec :: Int -> RevocationContentProperty -> ShowS
$cshow :: RevocationContentProperty -> String
show :: RevocationContentProperty -> String
$cshowList :: [RevocationContentProperty] -> ShowS
showList :: [RevocationContentProperty] -> ShowS
Prelude.Show)
mkRevocationContentProperty :: RevocationContentProperty
mkRevocationContentProperty :: RevocationContentProperty
mkRevocationContentProperty
= RevocationContentProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), revocationType :: Maybe (Value Text)
revocationType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
s3Bucket :: Maybe (Value Text)
s3Bucket = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, s3Key :: Maybe (Value Text)
s3Key = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
s3ObjectVersion :: Maybe (Value Text)
s3ObjectVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RevocationContentProperty where
toResourceProperties :: RevocationContentProperty -> ResourceProperties
toResourceProperties RevocationContentProperty {Maybe (Value Text)
()
haddock_workaround_ :: RevocationContentProperty -> ()
revocationType :: RevocationContentProperty -> Maybe (Value Text)
s3Bucket :: RevocationContentProperty -> Maybe (Value Text)
s3Key :: RevocationContentProperty -> Maybe (Value Text)
s3ObjectVersion :: RevocationContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElasticLoadBalancingV2::TrustStoreRevocation.RevocationContent",
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
"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
"S3Bucket" (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)
s3Bucket,
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
"S3Key" (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)
s3Key,
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
"S3ObjectVersion" (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)
s3ObjectVersion])}
instance JSON.ToJSON RevocationContentProperty where
toJSON :: RevocationContentProperty -> Value
toJSON RevocationContentProperty {Maybe (Value Text)
()
haddock_workaround_ :: RevocationContentProperty -> ()
revocationType :: RevocationContentProperty -> Maybe (Value Text)
s3Bucket :: RevocationContentProperty -> Maybe (Value Text)
s3Key :: RevocationContentProperty -> Maybe (Value Text)
s3ObjectVersion :: RevocationContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: 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
"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
"S3Bucket" (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)
s3Bucket,
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
"S3Key" (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)
s3Key,
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
"S3ObjectVersion" (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)
s3ObjectVersion]))
instance Property "RevocationType" RevocationContentProperty where
type PropertyType "RevocationType" RevocationContentProperty = Value Prelude.Text
set :: PropertyType "RevocationType" RevocationContentProperty
-> RevocationContentProperty -> RevocationContentProperty
set PropertyType "RevocationType" RevocationContentProperty
newValue RevocationContentProperty {Maybe (Value Text)
()
haddock_workaround_ :: RevocationContentProperty -> ()
revocationType :: RevocationContentProperty -> Maybe (Value Text)
s3Bucket :: RevocationContentProperty -> Maybe (Value Text)
s3Key :: RevocationContentProperty -> Maybe (Value Text)
s3ObjectVersion :: RevocationContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
= RevocationContentProperty
{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" RevocationContentProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
instance Property "S3Bucket" RevocationContentProperty where
type PropertyType "S3Bucket" RevocationContentProperty = Value Prelude.Text
set :: PropertyType "S3Bucket" RevocationContentProperty
-> RevocationContentProperty -> RevocationContentProperty
set PropertyType "S3Bucket" RevocationContentProperty
newValue RevocationContentProperty {Maybe (Value Text)
()
haddock_workaround_ :: RevocationContentProperty -> ()
revocationType :: RevocationContentProperty -> Maybe (Value Text)
s3Bucket :: RevocationContentProperty -> Maybe (Value Text)
s3Key :: RevocationContentProperty -> Maybe (Value Text)
s3ObjectVersion :: RevocationContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
= RevocationContentProperty {s3Bucket :: Maybe (Value Text)
s3Bucket = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Bucket" RevocationContentProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
instance Property "S3Key" RevocationContentProperty where
type PropertyType "S3Key" RevocationContentProperty = Value Prelude.Text
set :: PropertyType "S3Key" RevocationContentProperty
-> RevocationContentProperty -> RevocationContentProperty
set PropertyType "S3Key" RevocationContentProperty
newValue RevocationContentProperty {Maybe (Value Text)
()
haddock_workaround_ :: RevocationContentProperty -> ()
revocationType :: RevocationContentProperty -> Maybe (Value Text)
s3Bucket :: RevocationContentProperty -> Maybe (Value Text)
s3Key :: RevocationContentProperty -> Maybe (Value Text)
s3ObjectVersion :: RevocationContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
= RevocationContentProperty {s3Key :: Maybe (Value Text)
s3Key = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Key" RevocationContentProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
instance Property "S3ObjectVersion" RevocationContentProperty where
type PropertyType "S3ObjectVersion" RevocationContentProperty = Value Prelude.Text
set :: PropertyType "S3ObjectVersion" RevocationContentProperty
-> RevocationContentProperty -> RevocationContentProperty
set PropertyType "S3ObjectVersion" RevocationContentProperty
newValue RevocationContentProperty {Maybe (Value Text)
()
haddock_workaround_ :: RevocationContentProperty -> ()
revocationType :: RevocationContentProperty -> Maybe (Value Text)
s3Bucket :: RevocationContentProperty -> Maybe (Value Text)
s3Key :: RevocationContentProperty -> Maybe (Value Text)
s3ObjectVersion :: RevocationContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
s3ObjectVersion :: Maybe (Value Text)
..}
= RevocationContentProperty
{s3ObjectVersion :: Maybe (Value Text)
s3ObjectVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3ObjectVersion" RevocationContentProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
haddock_workaround_ :: ()
revocationType :: Maybe (Value Text)
s3Bucket :: Maybe (Value Text)
s3Key :: Maybe (Value Text)
..}