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