module Stratosphere.ImageBuilder.LifecyclePolicy (
        module Exports, LifecyclePolicy(..), mkLifecyclePolicy
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ImageBuilder.LifecyclePolicy.PolicyDetailProperty as Exports
import {-# SOURCE #-} Stratosphere.ImageBuilder.LifecyclePolicy.ResourceSelectionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LifecyclePolicy
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html>
    LifecyclePolicy {LifecyclePolicy -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-description>
                     LifecyclePolicy -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-executionrole>
                     LifecyclePolicy -> Value Text
executionRole :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-name>
                     LifecyclePolicy -> Value Text
name :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-policydetails>
                     LifecyclePolicy -> [PolicyDetailProperty]
policyDetails :: [PolicyDetailProperty],
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-resourceselection>
                     LifecyclePolicy -> ResourceSelectionProperty
resourceSelection :: ResourceSelectionProperty,
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-resourcetype>
                     LifecyclePolicy -> Value Text
resourceType :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-status>
                     LifecyclePolicy -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-tags>
                     LifecyclePolicy -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (LifecyclePolicy -> LifecyclePolicy -> Bool
(LifecyclePolicy -> LifecyclePolicy -> Bool)
-> (LifecyclePolicy -> LifecyclePolicy -> Bool)
-> Eq LifecyclePolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LifecyclePolicy -> LifecyclePolicy -> Bool
== :: LifecyclePolicy -> LifecyclePolicy -> Bool
$c/= :: LifecyclePolicy -> LifecyclePolicy -> Bool
/= :: LifecyclePolicy -> LifecyclePolicy -> Bool
Prelude.Eq, Int -> LifecyclePolicy -> ShowS
[LifecyclePolicy] -> ShowS
LifecyclePolicy -> String
(Int -> LifecyclePolicy -> ShowS)
-> (LifecyclePolicy -> String)
-> ([LifecyclePolicy] -> ShowS)
-> Show LifecyclePolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LifecyclePolicy -> ShowS
showsPrec :: Int -> LifecyclePolicy -> ShowS
$cshow :: LifecyclePolicy -> String
show :: LifecyclePolicy -> String
$cshowList :: [LifecyclePolicy] -> ShowS
showList :: [LifecyclePolicy] -> ShowS
Prelude.Show)
mkLifecyclePolicy ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> [PolicyDetailProperty]
        -> ResourceSelectionProperty
           -> Value Prelude.Text -> LifecyclePolicy
mkLifecyclePolicy :: Value Text
-> Value Text
-> [PolicyDetailProperty]
-> ResourceSelectionProperty
-> Value Text
-> LifecyclePolicy
mkLifecyclePolicy
  Value Text
executionRole
  Value Text
name
  [PolicyDetailProperty]
policyDetails
  ResourceSelectionProperty
resourceSelection
  Value Text
resourceType
  = LifecyclePolicy
      {haddock_workaround_ :: ()
haddock_workaround_ = (), executionRole :: Value Text
executionRole = Value Text
executionRole,
       name :: Value Text
name = Value Text
name, policyDetails :: [PolicyDetailProperty]
policyDetails = [PolicyDetailProperty]
policyDetails,
       resourceSelection :: ResourceSelectionProperty
resourceSelection = ResourceSelectionProperty
resourceSelection, resourceType :: Value Text
resourceType = Value Text
resourceType,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LifecyclePolicy where
  toResourceProperties :: LifecyclePolicy -> ResourceProperties
toResourceProperties LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ImageBuilder::LifecyclePolicy",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"ExecutionRole" 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
executionRole, Key
"Name" 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
name,
                            Key
"PolicyDetails" Key -> [PolicyDetailProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [PolicyDetailProperty]
policyDetails,
                            Key
"ResourceSelection" Key -> ResourceSelectionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResourceSelectionProperty
resourceSelection,
                            Key
"ResourceType" 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
resourceType]
                           ([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
"Description" (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)
description,
                               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
"Status" (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)
status,
                               Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON LifecyclePolicy where
  toJSON :: LifecyclePolicy -> Value
toJSON LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"ExecutionRole" 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
executionRole, Key
"Name" 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
name,
               Key
"PolicyDetails" Key -> [PolicyDetailProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [PolicyDetailProperty]
policyDetails,
               Key
"ResourceSelection" Key -> ResourceSelectionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResourceSelectionProperty
resourceSelection,
               Key
"ResourceType" 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
resourceType]
              ([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
"Description" (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)
description,
                  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
"Status" (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)
status,
                  Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Description" LifecyclePolicy where
  type PropertyType "Description" LifecyclePolicy = Value Prelude.Text
  set :: PropertyType "Description" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "Description" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" LifecyclePolicy
Value Text
newValue, [PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: ()
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "ExecutionRole" LifecyclePolicy where
  type PropertyType "ExecutionRole" LifecyclePolicy = Value Prelude.Text
  set :: PropertyType "ExecutionRole" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "ExecutionRole" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {executionRole :: Value Text
executionRole = PropertyType "ExecutionRole" LifecyclePolicy
Value Text
newValue, [PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" LifecyclePolicy where
  type PropertyType "Name" LifecyclePolicy = Value Prelude.Text
  set :: PropertyType "Name" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "Name" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {name :: Value Text
name = PropertyType "Name" LifecyclePolicy
Value Text
newValue, [PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "PolicyDetails" LifecyclePolicy where
  type PropertyType "PolicyDetails" LifecyclePolicy = [PolicyDetailProperty]
  set :: PropertyType "PolicyDetails" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "PolicyDetails" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {policyDetails :: [PolicyDetailProperty]
policyDetails = [PolicyDetailProperty]
PropertyType "PolicyDetails" LifecyclePolicy
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "ResourceSelection" LifecyclePolicy where
  type PropertyType "ResourceSelection" LifecyclePolicy = ResourceSelectionProperty
  set :: PropertyType "ResourceSelection" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "ResourceSelection" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {resourceSelection :: ResourceSelectionProperty
resourceSelection = PropertyType "ResourceSelection" LifecyclePolicy
ResourceSelectionProperty
newValue, [PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "ResourceType" LifecyclePolicy where
  type PropertyType "ResourceType" LifecyclePolicy = Value Prelude.Text
  set :: PropertyType "ResourceType" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "ResourceType" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {resourceType :: Value Text
resourceType = PropertyType "ResourceType" LifecyclePolicy
Value Text
newValue, [PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Status" LifecyclePolicy where
  type PropertyType "Status" LifecyclePolicy = Value Prelude.Text
  set :: PropertyType "Status" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "Status" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" LifecyclePolicy
Value Text
newValue, [PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" LifecyclePolicy where
  type PropertyType "Tags" LifecyclePolicy = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" LifecyclePolicy
-> LifecyclePolicy -> LifecyclePolicy
set PropertyType "Tags" LifecyclePolicy
newValue LifecyclePolicy {[PolicyDetailProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: LifecyclePolicy -> ()
description :: LifecyclePolicy -> Maybe (Value Text)
executionRole :: LifecyclePolicy -> Value Text
name :: LifecyclePolicy -> Value Text
policyDetails :: LifecyclePolicy -> [PolicyDetailProperty]
resourceSelection :: LifecyclePolicy -> ResourceSelectionProperty
resourceType :: LifecyclePolicy -> Value Text
status :: LifecyclePolicy -> Maybe (Value Text)
tags :: LifecyclePolicy -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = LifecyclePolicy {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" LifecyclePolicy
newValue, [PolicyDetailProperty]
Maybe (Value Text)
()
Value Text
ResourceSelectionProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRole :: Value Text
name :: Value Text
policyDetails :: [PolicyDetailProperty]
resourceSelection :: ResourceSelectionProperty
resourceType :: Value Text
status :: Maybe (Value Text)
..}