module Stratosphere.CloudFront.DistributionTenant.ParameterProperty ( ParameterProperty(..), mkParameterProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ParameterProperty = -- | See: ParameterProperty {haddock_workaround_ :: (), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: value :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkParameterProperty :: ParameterProperty mkParameterProperty = ParameterProperty {haddock_workaround_ = (), name = Prelude.Nothing, value = Prelude.Nothing} instance ToResourceProperties ParameterProperty where toResourceProperties ParameterProperty {..} = ResourceProperties {awsType = "AWS::CloudFront::DistributionTenant.Parameter", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Value" Prelude.<$> value])} instance JSON.ToJSON ParameterProperty where toJSON ParameterProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Value" Prelude.<$> value])) instance Property "Name" ParameterProperty where type PropertyType "Name" ParameterProperty = Value Prelude.Text set newValue ParameterProperty {..} = ParameterProperty {name = Prelude.pure newValue, ..} instance Property "Value" ParameterProperty where type PropertyType "Value" ParameterProperty = Value Prelude.Text set newValue ParameterProperty {..} = ParameterProperty {value = Prelude.pure newValue, ..}