packages feed

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

module Stratosphere.B2BI.Transformer.SampleDocumentKeysProperty (
        SampleDocumentKeysProperty(..), mkSampleDocumentKeysProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SampleDocumentKeysProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html>
    SampleDocumentKeysProperty {haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html#cfn-b2bi-transformer-sampledocumentkeys-input>
                                input :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html#cfn-b2bi-transformer-sampledocumentkeys-output>
                                output :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkSampleDocumentKeysProperty :: SampleDocumentKeysProperty
mkSampleDocumentKeysProperty
  = SampleDocumentKeysProperty
      {haddock_workaround_ = (), input = Prelude.Nothing,
       output = Prelude.Nothing}
instance ToResourceProperties SampleDocumentKeysProperty where
  toResourceProperties SampleDocumentKeysProperty {..}
    = ResourceProperties
        {awsType = "AWS::B2BI::Transformer.SampleDocumentKeys",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "Input" Prelude.<$> input,
                            (JSON..=) "Output" Prelude.<$> output])}
instance JSON.ToJSON SampleDocumentKeysProperty where
  toJSON SampleDocumentKeysProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "Input" Prelude.<$> input,
               (JSON..=) "Output" Prelude.<$> output]))
instance Property "Input" SampleDocumentKeysProperty where
  type PropertyType "Input" SampleDocumentKeysProperty = Value Prelude.Text
  set newValue SampleDocumentKeysProperty {..}
    = SampleDocumentKeysProperty {input = Prelude.pure newValue, ..}
instance Property "Output" SampleDocumentKeysProperty where
  type PropertyType "Output" SampleDocumentKeysProperty = Value Prelude.Text
  set newValue SampleDocumentKeysProperty {..}
    = SampleDocumentKeysProperty {output = Prelude.pure newValue, ..}