packages feed

stratosphere-cloudfront-1.0.0: gen/Stratosphere/CloudFront/Distribution/StatusCodesProperty.hs

module Stratosphere.CloudFront.Distribution.StatusCodesProperty (
        StatusCodesProperty(..), mkStatusCodesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StatusCodesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html>
    StatusCodesProperty {haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-items>
                         items :: (ValueList Prelude.Integer),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-quantity>
                         quantity :: (Value Prelude.Integer)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkStatusCodesProperty ::
  ValueList Prelude.Integer
  -> Value Prelude.Integer -> StatusCodesProperty
mkStatusCodesProperty items quantity
  = StatusCodesProperty
      {haddock_workaround_ = (), items = items, quantity = quantity}
instance ToResourceProperties StatusCodesProperty where
  toResourceProperties StatusCodesProperty {..}
    = ResourceProperties
        {awsType = "AWS::CloudFront::Distribution.StatusCodes",
         supportsTags = Prelude.False,
         properties = ["Items" JSON..= items, "Quantity" JSON..= quantity]}
instance JSON.ToJSON StatusCodesProperty where
  toJSON StatusCodesProperty {..}
    = JSON.object ["Items" JSON..= items, "Quantity" JSON..= quantity]
instance Property "Items" StatusCodesProperty where
  type PropertyType "Items" StatusCodesProperty = ValueList Prelude.Integer
  set newValue StatusCodesProperty {..}
    = StatusCodesProperty {items = newValue, ..}
instance Property "Quantity" StatusCodesProperty where
  type PropertyType "Quantity" StatusCodesProperty = Value Prelude.Integer
  set newValue StatusCodesProperty {..}
    = StatusCodesProperty {quantity = newValue, ..}