packages feed

stratosphere-codedeploy-1.0.0: gen/Stratosphere/CodeDeploy/DeploymentGroup/DeploymentStyleProperty.hs

module Stratosphere.CodeDeploy.DeploymentGroup.DeploymentStyleProperty (
        DeploymentStyleProperty(..), mkDeploymentStyleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeploymentStyleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html>
    DeploymentStyleProperty {haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html#cfn-codedeploy-deploymentgroup-deploymentstyle-deploymentoption>
                             deploymentOption :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html#cfn-codedeploy-deploymentgroup-deploymentstyle-deploymenttype>
                             deploymentType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkDeploymentStyleProperty :: DeploymentStyleProperty
mkDeploymentStyleProperty
  = DeploymentStyleProperty
      {haddock_workaround_ = (), deploymentOption = Prelude.Nothing,
       deploymentType = Prelude.Nothing}
instance ToResourceProperties DeploymentStyleProperty where
  toResourceProperties DeploymentStyleProperty {..}
    = ResourceProperties
        {awsType = "AWS::CodeDeploy::DeploymentGroup.DeploymentStyle",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "DeploymentOption" Prelude.<$> deploymentOption,
                            (JSON..=) "DeploymentType" Prelude.<$> deploymentType])}
instance JSON.ToJSON DeploymentStyleProperty where
  toJSON DeploymentStyleProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "DeploymentOption" Prelude.<$> deploymentOption,
               (JSON..=) "DeploymentType" Prelude.<$> deploymentType]))
instance Property "DeploymentOption" DeploymentStyleProperty where
  type PropertyType "DeploymentOption" DeploymentStyleProperty = Value Prelude.Text
  set newValue DeploymentStyleProperty {..}
    = DeploymentStyleProperty
        {deploymentOption = Prelude.pure newValue, ..}
instance Property "DeploymentType" DeploymentStyleProperty where
  type PropertyType "DeploymentType" DeploymentStyleProperty = Value Prelude.Text
  set newValue DeploymentStyleProperty {..}
    = DeploymentStyleProperty
        {deploymentType = Prelude.pure newValue, ..}