module Stratosphere.BillingConductor.CustomLineItem (
module Exports, CustomLineItem(..), mkCustomLineItem
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BillingConductor.CustomLineItem.BillingPeriodRangeProperty as Exports
import {-# SOURCE #-} Stratosphere.BillingConductor.CustomLineItem.CustomLineItemChargeDetailsProperty as Exports
import {-# SOURCE #-} Stratosphere.BillingConductor.CustomLineItem.PresentationDetailsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data CustomLineItem
=
CustomLineItem {CustomLineItem -> ()
haddock_workaround_ :: (),
CustomLineItem -> Maybe (Value Text)
accountId :: (Prelude.Maybe (Value Prelude.Text)),
CustomLineItem -> Value Text
billingGroupArn :: (Value Prelude.Text),
CustomLineItem -> Maybe BillingPeriodRangeProperty
billingPeriodRange :: (Prelude.Maybe BillingPeriodRangeProperty),
CustomLineItem -> Maybe (Value Text)
computationRule :: (Prelude.Maybe (Value Prelude.Text)),
CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
customLineItemChargeDetails :: (Prelude.Maybe CustomLineItemChargeDetailsProperty),
CustomLineItem -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
CustomLineItem -> Value Text
name :: (Value Prelude.Text),
CustomLineItem -> Maybe PresentationDetailsProperty
presentationDetails :: (Prelude.Maybe PresentationDetailsProperty),
CustomLineItem -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (CustomLineItem -> CustomLineItem -> Bool
(CustomLineItem -> CustomLineItem -> Bool)
-> (CustomLineItem -> CustomLineItem -> Bool) -> Eq CustomLineItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomLineItem -> CustomLineItem -> Bool
== :: CustomLineItem -> CustomLineItem -> Bool
$c/= :: CustomLineItem -> CustomLineItem -> Bool
/= :: CustomLineItem -> CustomLineItem -> Bool
Prelude.Eq, Int -> CustomLineItem -> ShowS
[CustomLineItem] -> ShowS
CustomLineItem -> String
(Int -> CustomLineItem -> ShowS)
-> (CustomLineItem -> String)
-> ([CustomLineItem] -> ShowS)
-> Show CustomLineItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomLineItem -> ShowS
showsPrec :: Int -> CustomLineItem -> ShowS
$cshow :: CustomLineItem -> String
show :: CustomLineItem -> String
$cshowList :: [CustomLineItem] -> ShowS
showList :: [CustomLineItem] -> ShowS
Prelude.Show)
mkCustomLineItem ::
Value Prelude.Text -> Value Prelude.Text -> CustomLineItem
mkCustomLineItem :: Value Text -> Value Text -> CustomLineItem
mkCustomLineItem Value Text
billingGroupArn Value Text
name
= CustomLineItem
{haddock_workaround_ :: ()
haddock_workaround_ = (), billingGroupArn :: Value Text
billingGroupArn = Value Text
billingGroupArn,
name :: Value Text
name = Value Text
name, accountId :: Maybe (Value Text)
accountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
billingPeriodRange :: Maybe BillingPeriodRangeProperty
billingPeriodRange = Maybe BillingPeriodRangeProperty
forall a. Maybe a
Prelude.Nothing,
computationRule :: Maybe (Value Text)
computationRule = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
customLineItemChargeDetails = Maybe CustomLineItemChargeDetailsProperty
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
presentationDetails :: Maybe PresentationDetailsProperty
presentationDetails = Maybe PresentationDetailsProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomLineItem where
toResourceProperties :: CustomLineItem -> ResourceProperties
toResourceProperties CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BillingConductor::CustomLineItem",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"BillingGroupArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
billingGroupArn, Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AccountId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
accountId,
Key -> BillingPeriodRangeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BillingPeriodRange" (BillingPeriodRangeProperty -> (Key, Value))
-> Maybe BillingPeriodRangeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BillingPeriodRangeProperty
billingPeriodRange,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ComputationRule" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
computationRule,
Key -> CustomLineItemChargeDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomLineItemChargeDetails"
(CustomLineItemChargeDetailsProperty -> (Key, Value))
-> Maybe CustomLineItemChargeDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomLineItemChargeDetailsProperty
customLineItemChargeDetails,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> PresentationDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PresentationDetails" (PresentationDetailsProperty -> (Key, Value))
-> Maybe PresentationDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PresentationDetailsProperty
presentationDetails,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON CustomLineItem where
toJSON :: CustomLineItem -> Value
toJSON CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"BillingGroupArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
billingGroupArn, Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AccountId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
accountId,
Key -> BillingPeriodRangeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BillingPeriodRange" (BillingPeriodRangeProperty -> (Key, Value))
-> Maybe BillingPeriodRangeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BillingPeriodRangeProperty
billingPeriodRange,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ComputationRule" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
computationRule,
Key -> CustomLineItemChargeDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomLineItemChargeDetails"
(CustomLineItemChargeDetailsProperty -> (Key, Value))
-> Maybe CustomLineItemChargeDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomLineItemChargeDetailsProperty
customLineItemChargeDetails,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> PresentationDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PresentationDetails" (PresentationDetailsProperty -> (Key, Value))
-> Maybe PresentationDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PresentationDetailsProperty
presentationDetails,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AccountId" CustomLineItem where
type PropertyType "AccountId" CustomLineItem = Value Prelude.Text
set :: PropertyType "AccountId" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "AccountId" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {accountId :: Maybe (Value Text)
accountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccountId" CustomLineItem
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
instance Property "BillingGroupArn" CustomLineItem where
type PropertyType "BillingGroupArn" CustomLineItem = Value Prelude.Text
set :: PropertyType "BillingGroupArn" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "BillingGroupArn" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {billingGroupArn :: Value Text
billingGroupArn = PropertyType "BillingGroupArn" CustomLineItem
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
instance Property "BillingPeriodRange" CustomLineItem where
type PropertyType "BillingPeriodRange" CustomLineItem = BillingPeriodRangeProperty
set :: PropertyType "BillingPeriodRange" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "BillingPeriodRange" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {billingPeriodRange :: Maybe BillingPeriodRangeProperty
billingPeriodRange = BillingPeriodRangeProperty -> Maybe BillingPeriodRangeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BillingPeriodRange" CustomLineItem
BillingPeriodRangeProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
instance Property "ComputationRule" CustomLineItem where
type PropertyType "ComputationRule" CustomLineItem = Value Prelude.Text
set :: PropertyType "ComputationRule" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "ComputationRule" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {computationRule :: Maybe (Value Text)
computationRule = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComputationRule" CustomLineItem
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
instance Property "CustomLineItemChargeDetails" CustomLineItem where
type PropertyType "CustomLineItemChargeDetails" CustomLineItem = CustomLineItemChargeDetailsProperty
set :: PropertyType "CustomLineItemChargeDetails" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "CustomLineItemChargeDetails" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem
{customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
customLineItemChargeDetails = CustomLineItemChargeDetailsProperty
-> Maybe CustomLineItemChargeDetailsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomLineItemChargeDetails" CustomLineItem
CustomLineItemChargeDetailsProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
instance Property "Description" CustomLineItem where
type PropertyType "Description" CustomLineItem = Value Prelude.Text
set :: PropertyType "Description" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "Description" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" CustomLineItem
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
instance Property "Name" CustomLineItem where
type PropertyType "Name" CustomLineItem = Value Prelude.Text
set :: PropertyType "Name" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "Name" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {name :: Value Text
name = PropertyType "Name" CustomLineItem
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
instance Property "PresentationDetails" CustomLineItem where
type PropertyType "PresentationDetails" CustomLineItem = PresentationDetailsProperty
set :: PropertyType "PresentationDetails" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "PresentationDetails" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {presentationDetails :: Maybe PresentationDetailsProperty
presentationDetails = PresentationDetailsProperty -> Maybe PresentationDetailsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PresentationDetails" CustomLineItem
PresentationDetailsProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" CustomLineItem where
type PropertyType "Tags" CustomLineItem = [Tag]
set :: PropertyType "Tags" CustomLineItem
-> CustomLineItem -> CustomLineItem
set PropertyType "Tags" CustomLineItem
newValue CustomLineItem {Maybe [Tag]
Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: CustomLineItem -> ()
accountId :: CustomLineItem -> Maybe (Value Text)
billingGroupArn :: CustomLineItem -> Value Text
billingPeriodRange :: CustomLineItem -> Maybe BillingPeriodRangeProperty
computationRule :: CustomLineItem -> Maybe (Value Text)
customLineItemChargeDetails :: CustomLineItem -> Maybe CustomLineItemChargeDetailsProperty
description :: CustomLineItem -> Maybe (Value Text)
name :: CustomLineItem -> Value Text
presentationDetails :: CustomLineItem -> Maybe PresentationDetailsProperty
tags :: CustomLineItem -> Maybe [Tag]
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
tags :: Maybe [Tag]
..}
= CustomLineItem {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" CustomLineItem
newValue, Maybe (Value Text)
Maybe BillingPeriodRangeProperty
Maybe CustomLineItemChargeDetailsProperty
Maybe PresentationDetailsProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
billingGroupArn :: Value Text
billingPeriodRange :: Maybe BillingPeriodRangeProperty
computationRule :: Maybe (Value Text)
customLineItemChargeDetails :: Maybe CustomLineItemChargeDetailsProperty
description :: Maybe (Value Text)
name :: Value Text
presentationDetails :: Maybe PresentationDetailsProperty
..}