module Stratosphere.ImageBuilder.Image.ImagePipelineExecutionSettingsProperty (
        ImagePipelineExecutionSettingsProperty(..),
        mkImagePipelineExecutionSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImagePipelineExecutionSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-imagepipelineexecutionsettings.html>
    ImagePipelineExecutionSettingsProperty {ImagePipelineExecutionSettingsProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-imagepipelineexecutionsettings.html#cfn-imagebuilder-image-imagepipelineexecutionsettings-deploymentid>
                                            ImagePipelineExecutionSettingsProperty -> Maybe (Value Text)
deploymentId :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-imagepipelineexecutionsettings.html#cfn-imagebuilder-image-imagepipelineexecutionsettings-onupdate>
                                            ImagePipelineExecutionSettingsProperty -> Maybe (Value Bool)
onUpdate :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty -> Bool
(ImagePipelineExecutionSettingsProperty
 -> ImagePipelineExecutionSettingsProperty -> Bool)
-> (ImagePipelineExecutionSettingsProperty
    -> ImagePipelineExecutionSettingsProperty -> Bool)
-> Eq ImagePipelineExecutionSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty -> Bool
== :: ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty -> Bool
$c/= :: ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty -> Bool
/= :: ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty -> Bool
Prelude.Eq, Int -> ImagePipelineExecutionSettingsProperty -> ShowS
[ImagePipelineExecutionSettingsProperty] -> ShowS
ImagePipelineExecutionSettingsProperty -> String
(Int -> ImagePipelineExecutionSettingsProperty -> ShowS)
-> (ImagePipelineExecutionSettingsProperty -> String)
-> ([ImagePipelineExecutionSettingsProperty] -> ShowS)
-> Show ImagePipelineExecutionSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImagePipelineExecutionSettingsProperty -> ShowS
showsPrec :: Int -> ImagePipelineExecutionSettingsProperty -> ShowS
$cshow :: ImagePipelineExecutionSettingsProperty -> String
show :: ImagePipelineExecutionSettingsProperty -> String
$cshowList :: [ImagePipelineExecutionSettingsProperty] -> ShowS
showList :: [ImagePipelineExecutionSettingsProperty] -> ShowS
Prelude.Show)
mkImagePipelineExecutionSettingsProperty ::
  ImagePipelineExecutionSettingsProperty
mkImagePipelineExecutionSettingsProperty :: ImagePipelineExecutionSettingsProperty
mkImagePipelineExecutionSettingsProperty
  = ImagePipelineExecutionSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), deploymentId :: Maybe (Value Text)
deploymentId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       onUpdate :: Maybe (Value Bool)
onUpdate = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImagePipelineExecutionSettingsProperty where
  toResourceProperties :: ImagePipelineExecutionSettingsProperty -> ResourceProperties
toResourceProperties ImagePipelineExecutionSettingsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ImagePipelineExecutionSettingsProperty -> ()
deploymentId :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Text)
onUpdate :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
deploymentId :: Maybe (Value Text)
onUpdate :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ImageBuilder::Image.ImagePipelineExecutionSettings",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([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
"DeploymentId" (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)
deploymentId,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OnUpdate" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
onUpdate])}
instance JSON.ToJSON ImagePipelineExecutionSettingsProperty where
  toJSON :: ImagePipelineExecutionSettingsProperty -> Value
toJSON ImagePipelineExecutionSettingsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ImagePipelineExecutionSettingsProperty -> ()
deploymentId :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Text)
onUpdate :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
deploymentId :: Maybe (Value Text)
onUpdate :: Maybe (Value Bool)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([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
"DeploymentId" (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)
deploymentId,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OnUpdate" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
onUpdate]))
instance Property "DeploymentId" ImagePipelineExecutionSettingsProperty where
  type PropertyType "DeploymentId" ImagePipelineExecutionSettingsProperty = Value Prelude.Text
  set :: PropertyType "DeploymentId" ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty
set PropertyType "DeploymentId" ImagePipelineExecutionSettingsProperty
newValue ImagePipelineExecutionSettingsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ImagePipelineExecutionSettingsProperty -> ()
deploymentId :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Text)
onUpdate :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
deploymentId :: Maybe (Value Text)
onUpdate :: Maybe (Value Bool)
..}
    = ImagePipelineExecutionSettingsProperty
        {deploymentId :: Maybe (Value Text)
deploymentId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeploymentId" ImagePipelineExecutionSettingsProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
onUpdate :: Maybe (Value Bool)
haddock_workaround_ :: ()
onUpdate :: Maybe (Value Bool)
..}
instance Property "OnUpdate" ImagePipelineExecutionSettingsProperty where
  type PropertyType "OnUpdate" ImagePipelineExecutionSettingsProperty = Value Prelude.Bool
  set :: PropertyType "OnUpdate" ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty
-> ImagePipelineExecutionSettingsProperty
set PropertyType "OnUpdate" ImagePipelineExecutionSettingsProperty
newValue ImagePipelineExecutionSettingsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ImagePipelineExecutionSettingsProperty -> ()
deploymentId :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Text)
onUpdate :: ImagePipelineExecutionSettingsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
deploymentId :: Maybe (Value Text)
onUpdate :: Maybe (Value Bool)
..}
    = ImagePipelineExecutionSettingsProperty
        {onUpdate :: Maybe (Value Bool)
onUpdate = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OnUpdate" ImagePipelineExecutionSettingsProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
deploymentId :: Maybe (Value Text)
haddock_workaround_ :: ()
deploymentId :: Maybe (Value Text)
..}