module Stratosphere.FSx.DataRepositoryAssociation.AutoExportPolicyProperty (
AutoExportPolicyProperty(..), mkAutoExportPolicyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutoExportPolicyProperty
=
AutoExportPolicyProperty {AutoExportPolicyProperty -> ()
haddock_workaround_ :: (),
AutoExportPolicyProperty -> ValueList Text
events :: (ValueList Prelude.Text)}
deriving stock (AutoExportPolicyProperty -> AutoExportPolicyProperty -> Bool
(AutoExportPolicyProperty -> AutoExportPolicyProperty -> Bool)
-> (AutoExportPolicyProperty -> AutoExportPolicyProperty -> Bool)
-> Eq AutoExportPolicyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutoExportPolicyProperty -> AutoExportPolicyProperty -> Bool
== :: AutoExportPolicyProperty -> AutoExportPolicyProperty -> Bool
$c/= :: AutoExportPolicyProperty -> AutoExportPolicyProperty -> Bool
/= :: AutoExportPolicyProperty -> AutoExportPolicyProperty -> Bool
Prelude.Eq, Int -> AutoExportPolicyProperty -> ShowS
[AutoExportPolicyProperty] -> ShowS
AutoExportPolicyProperty -> String
(Int -> AutoExportPolicyProperty -> ShowS)
-> (AutoExportPolicyProperty -> String)
-> ([AutoExportPolicyProperty] -> ShowS)
-> Show AutoExportPolicyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutoExportPolicyProperty -> ShowS
showsPrec :: Int -> AutoExportPolicyProperty -> ShowS
$cshow :: AutoExportPolicyProperty -> String
show :: AutoExportPolicyProperty -> String
$cshowList :: [AutoExportPolicyProperty] -> ShowS
showList :: [AutoExportPolicyProperty] -> ShowS
Prelude.Show)
mkAutoExportPolicyProperty ::
ValueList Prelude.Text -> AutoExportPolicyProperty
mkAutoExportPolicyProperty :: ValueList Text -> AutoExportPolicyProperty
mkAutoExportPolicyProperty ValueList Text
events
= AutoExportPolicyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), events :: ValueList Text
events = ValueList Text
events}
instance ToResourceProperties AutoExportPolicyProperty where
toResourceProperties :: AutoExportPolicyProperty -> ResourceProperties
toResourceProperties AutoExportPolicyProperty {()
ValueList Text
haddock_workaround_ :: AutoExportPolicyProperty -> ()
events :: AutoExportPolicyProperty -> ValueList Text
haddock_workaround_ :: ()
events :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::DataRepositoryAssociation.AutoExportPolicy",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Events" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
events]}
instance JSON.ToJSON AutoExportPolicyProperty where
toJSON :: AutoExportPolicyProperty -> Value
toJSON AutoExportPolicyProperty {()
ValueList Text
haddock_workaround_ :: AutoExportPolicyProperty -> ()
events :: AutoExportPolicyProperty -> ValueList Text
haddock_workaround_ :: ()
events :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Events" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
events]
instance Property "Events" AutoExportPolicyProperty where
type PropertyType "Events" AutoExportPolicyProperty = ValueList Prelude.Text
set :: PropertyType "Events" AutoExportPolicyProperty
-> AutoExportPolicyProperty -> AutoExportPolicyProperty
set PropertyType "Events" AutoExportPolicyProperty
newValue AutoExportPolicyProperty {()
ValueList Text
haddock_workaround_ :: AutoExportPolicyProperty -> ()
events :: AutoExportPolicyProperty -> ValueList Text
haddock_workaround_ :: ()
events :: ValueList Text
..}
= AutoExportPolicyProperty {events :: ValueList Text
events = PropertyType "Events" AutoExportPolicyProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}