module Stratosphere.ImageBuilder.Image.DeletionSettingsProperty (
        DeletionSettingsProperty(..), mkDeletionSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeletionSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-deletionsettings.html>
    DeletionSettingsProperty {DeletionSettingsProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-deletionsettings.html#cfn-imagebuilder-image-deletionsettings-executionrole>
                              DeletionSettingsProperty -> Value Text
executionRole :: (Value Prelude.Text)}
  deriving stock (DeletionSettingsProperty -> DeletionSettingsProperty -> Bool
(DeletionSettingsProperty -> DeletionSettingsProperty -> Bool)
-> (DeletionSettingsProperty -> DeletionSettingsProperty -> Bool)
-> Eq DeletionSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeletionSettingsProperty -> DeletionSettingsProperty -> Bool
== :: DeletionSettingsProperty -> DeletionSettingsProperty -> Bool
$c/= :: DeletionSettingsProperty -> DeletionSettingsProperty -> Bool
/= :: DeletionSettingsProperty -> DeletionSettingsProperty -> Bool
Prelude.Eq, Int -> DeletionSettingsProperty -> ShowS
[DeletionSettingsProperty] -> ShowS
DeletionSettingsProperty -> String
(Int -> DeletionSettingsProperty -> ShowS)
-> (DeletionSettingsProperty -> String)
-> ([DeletionSettingsProperty] -> ShowS)
-> Show DeletionSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeletionSettingsProperty -> ShowS
showsPrec :: Int -> DeletionSettingsProperty -> ShowS
$cshow :: DeletionSettingsProperty -> String
show :: DeletionSettingsProperty -> String
$cshowList :: [DeletionSettingsProperty] -> ShowS
showList :: [DeletionSettingsProperty] -> ShowS
Prelude.Show)
mkDeletionSettingsProperty ::
  Value Prelude.Text -> DeletionSettingsProperty
mkDeletionSettingsProperty :: Value Text -> DeletionSettingsProperty
mkDeletionSettingsProperty Value Text
executionRole
  = DeletionSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), executionRole :: Value Text
executionRole = Value Text
executionRole}
instance ToResourceProperties DeletionSettingsProperty where
  toResourceProperties :: DeletionSettingsProperty -> ResourceProperties
toResourceProperties DeletionSettingsProperty {()
Value Text
haddock_workaround_ :: DeletionSettingsProperty -> ()
executionRole :: DeletionSettingsProperty -> Value Text
haddock_workaround_ :: ()
executionRole :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ImageBuilder::Image.DeletionSettings",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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]}
instance JSON.ToJSON DeletionSettingsProperty where
  toJSON :: DeletionSettingsProperty -> Value
toJSON DeletionSettingsProperty {()
Value Text
haddock_workaround_ :: DeletionSettingsProperty -> ()
executionRole :: DeletionSettingsProperty -> Value Text
haddock_workaround_ :: ()
executionRole :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [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]
instance Property "ExecutionRole" DeletionSettingsProperty where
  type PropertyType "ExecutionRole" DeletionSettingsProperty = Value Prelude.Text
  set :: PropertyType "ExecutionRole" DeletionSettingsProperty
-> DeletionSettingsProperty -> DeletionSettingsProperty
set PropertyType "ExecutionRole" DeletionSettingsProperty
newValue DeletionSettingsProperty {()
Value Text
haddock_workaround_ :: DeletionSettingsProperty -> ()
executionRole :: DeletionSettingsProperty -> Value Text
haddock_workaround_ :: ()
executionRole :: Value Text
..}
    = DeletionSettingsProperty {executionRole :: Value Text
executionRole = PropertyType "ExecutionRole" DeletionSettingsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}