module Stratosphere.NetworkFirewall.TLSInspectionConfiguration.ServerCertificateProperty (
ServerCertificateProperty(..), mkServerCertificateProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServerCertificateProperty
=
ServerCertificateProperty {ServerCertificateProperty -> ()
haddock_workaround_ :: (),
ServerCertificateProperty -> Maybe (Value Text)
resourceArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ServerCertificateProperty -> ServerCertificateProperty -> Bool
(ServerCertificateProperty -> ServerCertificateProperty -> Bool)
-> (ServerCertificateProperty -> ServerCertificateProperty -> Bool)
-> Eq ServerCertificateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServerCertificateProperty -> ServerCertificateProperty -> Bool
== :: ServerCertificateProperty -> ServerCertificateProperty -> Bool
$c/= :: ServerCertificateProperty -> ServerCertificateProperty -> Bool
/= :: ServerCertificateProperty -> ServerCertificateProperty -> Bool
Prelude.Eq, Int -> ServerCertificateProperty -> ShowS
[ServerCertificateProperty] -> ShowS
ServerCertificateProperty -> String
(Int -> ServerCertificateProperty -> ShowS)
-> (ServerCertificateProperty -> String)
-> ([ServerCertificateProperty] -> ShowS)
-> Show ServerCertificateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServerCertificateProperty -> ShowS
showsPrec :: Int -> ServerCertificateProperty -> ShowS
$cshow :: ServerCertificateProperty -> String
show :: ServerCertificateProperty -> String
$cshowList :: [ServerCertificateProperty] -> ShowS
showList :: [ServerCertificateProperty] -> ShowS
Prelude.Show)
mkServerCertificateProperty :: ServerCertificateProperty
mkServerCertificateProperty :: ServerCertificateProperty
mkServerCertificateProperty
= ServerCertificateProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), resourceArn :: Maybe (Value Text)
resourceArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServerCertificateProperty where
toResourceProperties :: ServerCertificateProperty -> ResourceProperties
toResourceProperties ServerCertificateProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateProperty -> ()
resourceArn :: ServerCertificateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
resourceArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkFirewall::TLSInspectionConfiguration.ServerCertificate",
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
"ResourceArn" (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)
resourceArn])}
instance JSON.ToJSON ServerCertificateProperty where
toJSON :: ServerCertificateProperty -> Value
toJSON ServerCertificateProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateProperty -> ()
resourceArn :: ServerCertificateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
resourceArn :: 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
"ResourceArn" (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)
resourceArn]))
instance Property "ResourceArn" ServerCertificateProperty where
type PropertyType "ResourceArn" ServerCertificateProperty = Value Prelude.Text
set :: PropertyType "ResourceArn" ServerCertificateProperty
-> ServerCertificateProperty -> ServerCertificateProperty
set PropertyType "ResourceArn" ServerCertificateProperty
newValue ServerCertificateProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateProperty -> ()
resourceArn :: ServerCertificateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
resourceArn :: Maybe (Value Text)
..}
= ServerCertificateProperty
{resourceArn :: Maybe (Value Text)
resourceArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceArn" ServerCertificateProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}