module Stratosphere.S3Outposts.Bucket.LifecycleConfigurationProperty (
module Exports, LifecycleConfigurationProperty(..),
mkLifecycleConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3Outposts.Bucket.RuleProperty as Exports
import Stratosphere.ResourceProperties
data LifecycleConfigurationProperty
=
LifecycleConfigurationProperty {LifecycleConfigurationProperty -> ()
haddock_workaround_ :: (),
LifecycleConfigurationProperty -> [RuleProperty]
rules :: [RuleProperty]}
deriving stock (LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> Bool
(LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> Bool)
-> (LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> Bool)
-> Eq LifecycleConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> Bool
== :: LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> Bool
$c/= :: LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> Bool
/= :: LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> Bool
Prelude.Eq, Int -> LifecycleConfigurationProperty -> ShowS
[LifecycleConfigurationProperty] -> ShowS
LifecycleConfigurationProperty -> String
(Int -> LifecycleConfigurationProperty -> ShowS)
-> (LifecycleConfigurationProperty -> String)
-> ([LifecycleConfigurationProperty] -> ShowS)
-> Show LifecycleConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LifecycleConfigurationProperty -> ShowS
showsPrec :: Int -> LifecycleConfigurationProperty -> ShowS
$cshow :: LifecycleConfigurationProperty -> String
show :: LifecycleConfigurationProperty -> String
$cshowList :: [LifecycleConfigurationProperty] -> ShowS
showList :: [LifecycleConfigurationProperty] -> ShowS
Prelude.Show)
mkLifecycleConfigurationProperty ::
[RuleProperty] -> LifecycleConfigurationProperty
mkLifecycleConfigurationProperty :: [RuleProperty] -> LifecycleConfigurationProperty
mkLifecycleConfigurationProperty [RuleProperty]
rules
= LifecycleConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), rules :: [RuleProperty]
rules = [RuleProperty]
rules}
instance ToResourceProperties LifecycleConfigurationProperty where
toResourceProperties :: LifecycleConfigurationProperty -> ResourceProperties
toResourceProperties LifecycleConfigurationProperty {[RuleProperty]
()
haddock_workaround_ :: LifecycleConfigurationProperty -> ()
rules :: LifecycleConfigurationProperty -> [RuleProperty]
haddock_workaround_ :: ()
rules :: [RuleProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3Outposts::Bucket.LifecycleConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Rules" Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleProperty]
rules]}
instance JSON.ToJSON LifecycleConfigurationProperty where
toJSON :: LifecycleConfigurationProperty -> Value
toJSON LifecycleConfigurationProperty {[RuleProperty]
()
haddock_workaround_ :: LifecycleConfigurationProperty -> ()
rules :: LifecycleConfigurationProperty -> [RuleProperty]
haddock_workaround_ :: ()
rules :: [RuleProperty]
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Rules" Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleProperty]
rules]
instance Property "Rules" LifecycleConfigurationProperty where
type PropertyType "Rules" LifecycleConfigurationProperty = [RuleProperty]
set :: PropertyType "Rules" LifecycleConfigurationProperty
-> LifecycleConfigurationProperty -> LifecycleConfigurationProperty
set PropertyType "Rules" LifecycleConfigurationProperty
newValue LifecycleConfigurationProperty {[RuleProperty]
()
haddock_workaround_ :: LifecycleConfigurationProperty -> ()
rules :: LifecycleConfigurationProperty -> [RuleProperty]
haddock_workaround_ :: ()
rules :: [RuleProperty]
..}
= LifecycleConfigurationProperty {rules :: [RuleProperty]
rules = [RuleProperty]
PropertyType "Rules" LifecycleConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}