module Stratosphere.CloudTrail.Channel.DestinationProperty (
DestinationProperty(..), mkDestinationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DestinationProperty
=
DestinationProperty {DestinationProperty -> ()
haddock_workaround_ :: (),
DestinationProperty -> Value Text
location :: (Value Prelude.Text),
DestinationProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (DestinationProperty -> DestinationProperty -> Bool
(DestinationProperty -> DestinationProperty -> Bool)
-> (DestinationProperty -> DestinationProperty -> Bool)
-> Eq DestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DestinationProperty -> DestinationProperty -> Bool
== :: DestinationProperty -> DestinationProperty -> Bool
$c/= :: DestinationProperty -> DestinationProperty -> Bool
/= :: DestinationProperty -> DestinationProperty -> Bool
Prelude.Eq, Int -> DestinationProperty -> ShowS
[DestinationProperty] -> ShowS
DestinationProperty -> String
(Int -> DestinationProperty -> ShowS)
-> (DestinationProperty -> String)
-> ([DestinationProperty] -> ShowS)
-> Show DestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DestinationProperty -> ShowS
showsPrec :: Int -> DestinationProperty -> ShowS
$cshow :: DestinationProperty -> String
show :: DestinationProperty -> String
$cshowList :: [DestinationProperty] -> ShowS
showList :: [DestinationProperty] -> ShowS
Prelude.Show)
mkDestinationProperty ::
Value Prelude.Text -> Value Prelude.Text -> DestinationProperty
mkDestinationProperty :: Value Text -> Value Text -> DestinationProperty
mkDestinationProperty Value Text
location Value Text
type'
= DestinationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), location :: Value Text
location = Value Text
location, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties DestinationProperty where
toResourceProperties :: DestinationProperty -> ResourceProperties
toResourceProperties DestinationProperty {()
Value Text
haddock_workaround_ :: DestinationProperty -> ()
location :: DestinationProperty -> Value Text
type' :: DestinationProperty -> Value Text
haddock_workaround_ :: ()
location :: Value Text
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudTrail::Channel.Destination",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Location" 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..= Value Text
location, Key
"Type" 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..= Value Text
type']}
instance JSON.ToJSON DestinationProperty where
toJSON :: DestinationProperty -> Value
toJSON DestinationProperty {()
Value Text
haddock_workaround_ :: DestinationProperty -> ()
location :: DestinationProperty -> Value Text
type' :: DestinationProperty -> Value Text
haddock_workaround_ :: ()
location :: Value Text
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Location" 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..= Value Text
location, Key
"Type" 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..= Value Text
type']
instance Property "Location" DestinationProperty where
type PropertyType "Location" DestinationProperty = Value Prelude.Text
set :: PropertyType "Location" DestinationProperty
-> DestinationProperty -> DestinationProperty
set PropertyType "Location" DestinationProperty
newValue DestinationProperty {()
Value Text
haddock_workaround_ :: DestinationProperty -> ()
location :: DestinationProperty -> Value Text
type' :: DestinationProperty -> Value Text
haddock_workaround_ :: ()
location :: Value Text
type' :: Value Text
..}
= DestinationProperty {location :: Value Text
location = PropertyType "Location" DestinationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" DestinationProperty where
type PropertyType "Type" DestinationProperty = Value Prelude.Text
set :: PropertyType "Type" DestinationProperty
-> DestinationProperty -> DestinationProperty
set PropertyType "Type" DestinationProperty
newValue DestinationProperty {()
Value Text
haddock_workaround_ :: DestinationProperty -> ()
location :: DestinationProperty -> Value Text
type' :: DestinationProperty -> Value Text
haddock_workaround_ :: ()
location :: Value Text
type' :: Value Text
..}
= DestinationProperty {type' :: Value Text
type' = PropertyType "Type" DestinationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
location :: Value Text
haddock_workaround_ :: ()
location :: Value Text
..}