stratosphere-cloudfront-1.0.0: gen/Stratosphere/CloudFront/Distribution/LambdaFunctionAssociationProperty.hs
module Stratosphere.CloudFront.Distribution.LambdaFunctionAssociationProperty (
LambdaFunctionAssociationProperty(..),
mkLambdaFunctionAssociationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaFunctionAssociationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html>
LambdaFunctionAssociationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-eventtype>
eventType :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-includebody>
includeBody :: (Prelude.Maybe (Value Prelude.Bool)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-lambdafunctionarn>
lambdaFunctionARN :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkLambdaFunctionAssociationProperty ::
LambdaFunctionAssociationProperty
mkLambdaFunctionAssociationProperty
= LambdaFunctionAssociationProperty
{haddock_workaround_ = (), eventType = Prelude.Nothing,
includeBody = Prelude.Nothing, lambdaFunctionARN = Prelude.Nothing}
instance ToResourceProperties LambdaFunctionAssociationProperty where
toResourceProperties LambdaFunctionAssociationProperty {..}
= ResourceProperties
{awsType = "AWS::CloudFront::Distribution.LambdaFunctionAssociation",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "EventType" Prelude.<$> eventType,
(JSON..=) "IncludeBody" Prelude.<$> includeBody,
(JSON..=) "LambdaFunctionARN" Prelude.<$> lambdaFunctionARN])}
instance JSON.ToJSON LambdaFunctionAssociationProperty where
toJSON LambdaFunctionAssociationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "EventType" Prelude.<$> eventType,
(JSON..=) "IncludeBody" Prelude.<$> includeBody,
(JSON..=) "LambdaFunctionARN" Prelude.<$> lambdaFunctionARN]))
instance Property "EventType" LambdaFunctionAssociationProperty where
type PropertyType "EventType" LambdaFunctionAssociationProperty = Value Prelude.Text
set newValue LambdaFunctionAssociationProperty {..}
= LambdaFunctionAssociationProperty
{eventType = Prelude.pure newValue, ..}
instance Property "IncludeBody" LambdaFunctionAssociationProperty where
type PropertyType "IncludeBody" LambdaFunctionAssociationProperty = Value Prelude.Bool
set newValue LambdaFunctionAssociationProperty {..}
= LambdaFunctionAssociationProperty
{includeBody = Prelude.pure newValue, ..}
instance Property "LambdaFunctionARN" LambdaFunctionAssociationProperty where
type PropertyType "LambdaFunctionARN" LambdaFunctionAssociationProperty = Value Prelude.Text
set newValue LambdaFunctionAssociationProperty {..}
= LambdaFunctionAssociationProperty
{lambdaFunctionARN = Prelude.pure newValue, ..}