stratosphere-cloudfront-1.0.0: gen/Stratosphere/CloudFront/Function/FunctionMetadataProperty.hs
module Stratosphere.CloudFront.Function.FunctionMetadataProperty (
FunctionMetadataProperty(..), mkFunctionMetadataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FunctionMetadataProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html>
FunctionMetadataProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html#cfn-cloudfront-function-functionmetadata-functionarn>
functionARN :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkFunctionMetadataProperty :: FunctionMetadataProperty
mkFunctionMetadataProperty
= FunctionMetadataProperty
{haddock_workaround_ = (), functionARN = Prelude.Nothing}
instance ToResourceProperties FunctionMetadataProperty where
toResourceProperties FunctionMetadataProperty {..}
= ResourceProperties
{awsType = "AWS::CloudFront::Function.FunctionMetadata",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "FunctionARN" Prelude.<$> functionARN])}
instance JSON.ToJSON FunctionMetadataProperty where
toJSON FunctionMetadataProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "FunctionARN" Prelude.<$> functionARN]))
instance Property "FunctionARN" FunctionMetadataProperty where
type PropertyType "FunctionARN" FunctionMetadataProperty = Value Prelude.Text
set newValue FunctionMetadataProperty {..}
= FunctionMetadataProperty
{functionARN = Prelude.pure newValue, ..}