stratosphere-codepipeline-1.0.0: gen/Stratosphere/CodePipeline/Pipeline/BeforeEntryConditionsProperty.hs
module Stratosphere.CodePipeline.Pipeline.BeforeEntryConditionsProperty (
module Exports, BeforeEntryConditionsProperty(..),
mkBeforeEntryConditionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodePipeline.Pipeline.ConditionProperty as Exports
import Stratosphere.ResourceProperties
data BeforeEntryConditionsProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-beforeentryconditions.html>
BeforeEntryConditionsProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-beforeentryconditions.html#cfn-codepipeline-pipeline-beforeentryconditions-conditions>
conditions :: (Prelude.Maybe [ConditionProperty])}
deriving stock (Prelude.Eq, Prelude.Show)
mkBeforeEntryConditionsProperty :: BeforeEntryConditionsProperty
mkBeforeEntryConditionsProperty
= BeforeEntryConditionsProperty
{haddock_workaround_ = (), conditions = Prelude.Nothing}
instance ToResourceProperties BeforeEntryConditionsProperty where
toResourceProperties BeforeEntryConditionsProperty {..}
= ResourceProperties
{awsType = "AWS::CodePipeline::Pipeline.BeforeEntryConditions",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Conditions" Prelude.<$> conditions])}
instance JSON.ToJSON BeforeEntryConditionsProperty where
toJSON BeforeEntryConditionsProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Conditions" Prelude.<$> conditions]))
instance Property "Conditions" BeforeEntryConditionsProperty where
type PropertyType "Conditions" BeforeEntryConditionsProperty = [ConditionProperty]
set newValue BeforeEntryConditionsProperty {..}
= BeforeEntryConditionsProperty
{conditions = Prelude.pure newValue, ..}