packages feed

stratosphere-b2bi-1.0.0: gen/Stratosphere/B2BI/Transformer/FormatOptionsProperty.hs

module Stratosphere.B2BI.Transformer.FormatOptionsProperty (
        module Exports, FormatOptionsProperty(..), mkFormatOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.B2BI.Transformer.X12DetailsProperty as Exports
import Stratosphere.ResourceProperties
data FormatOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-formatoptions.html>
    FormatOptionsProperty {haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-formatoptions.html#cfn-b2bi-transformer-formatoptions-x12>
                           x12 :: X12DetailsProperty}
  deriving stock (Prelude.Eq, Prelude.Show)
mkFormatOptionsProperty ::
  X12DetailsProperty -> FormatOptionsProperty
mkFormatOptionsProperty x12
  = FormatOptionsProperty {haddock_workaround_ = (), x12 = x12}
instance ToResourceProperties FormatOptionsProperty where
  toResourceProperties FormatOptionsProperty {..}
    = ResourceProperties
        {awsType = "AWS::B2BI::Transformer.FormatOptions",
         supportsTags = Prelude.False, properties = ["X12" JSON..= x12]}
instance JSON.ToJSON FormatOptionsProperty where
  toJSON FormatOptionsProperty {..} = JSON.object ["X12" JSON..= x12]
instance Property "X12" FormatOptionsProperty where
  type PropertyType "X12" FormatOptionsProperty = X12DetailsProperty
  set newValue FormatOptionsProperty {..}
    = FormatOptionsProperty {x12 = newValue, ..}