module Stratosphere.Billing.BillingView.DimensionsProperty ( DimensionsProperty(..), mkDimensionsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data DimensionsProperty = -- | See: DimensionsProperty {haddock_workaround_ :: (), -- | See: key :: (Prelude.Maybe (Value Prelude.Text)), -- | See: values :: (Prelude.Maybe (ValueList Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkDimensionsProperty :: DimensionsProperty mkDimensionsProperty = DimensionsProperty {haddock_workaround_ = (), key = Prelude.Nothing, values = Prelude.Nothing} instance ToResourceProperties DimensionsProperty where toResourceProperties DimensionsProperty {..} = ResourceProperties {awsType = "AWS::Billing::BillingView.Dimensions", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Key" Prelude.<$> key, (JSON..=) "Values" Prelude.<$> values])} instance JSON.ToJSON DimensionsProperty where toJSON DimensionsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Key" Prelude.<$> key, (JSON..=) "Values" Prelude.<$> values])) instance Property "Key" DimensionsProperty where type PropertyType "Key" DimensionsProperty = Value Prelude.Text set newValue DimensionsProperty {..} = DimensionsProperty {key = Prelude.pure newValue, ..} instance Property "Values" DimensionsProperty where type PropertyType "Values" DimensionsProperty = ValueList Prelude.Text set newValue DimensionsProperty {..} = DimensionsProperty {values = Prelude.pure newValue, ..}