Skip to content

CreditData

Source code in docs_src/capo_billing/types/credit_data.py
class CreditData(TypedDict, closed=True):
    credit_id: "capo_billing.types.credit_id.CreditId"
    """<p>The unique identifier for the credit.</p>"""
    account_id: "capo_billing.types.account_id.AccountId"
    """<p>The Amazon Web Services account ID that owns the credit.</p>"""
    credit_type: "str"
    """<p>The type of credit. Examples: <code>Promotion</code>, <code>Refund</code>, <code>TrueUp</code>.</p>"""
    initial_amount: "capo_billing.types.amount.Amount"
    """<p>The initial amount of the credit when it was issued.</p>"""
    remaining_amount: "capo_billing.types.amount.Amount"
    """<p>The unused balance of the credit.</p>"""
    estimated_amount: NotRequired["capo_billing.types.amount.Amount"]
    """<p>The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.</p>"""
    applicable_product_names: NotRequired[
        "capo_billing.types.product_names.ProductNames"
    ]
    """<p>The names of Amazon Web Services services this credit applies to.</p>"""
    description: "str"
    """<p>A human-readable description of the credit.</p>"""
    start_date: "datetime.datetime"
    """<p>The date the credit becomes valid, as Unix epoch seconds.</p>"""
    end_date: NotRequired["datetime.datetime"]
    """<p>The date the credit expires, as Unix epoch seconds.</p>"""
    exhaust_date: NotRequired["datetime.datetime"]
    """<p>The date the credit balance reached zero, as Unix epoch seconds.</p>"""
    application_type: NotRequired["capo_billing.types.application_type.ApplicationType"]
    """<p>When the credit is applied during bill computation. Valid values: <code>BEFORE_CROSS_SERVICE_DISCOUNTS</code>, <code>AFTER_DISCOUNTS</code>.</p>"""
    shareable_accounts: NotRequired[
        "capo_billing.types.shareable_account_ids.ShareableAccountIds"
    ]
    """<p>The Amazon Web Services account IDs entitled to apply this credit.</p>"""
    account_has_credit_sharing_enabled: NotRequired["bool"]
    """<p>Whether the owning account has account-level credit sharing turned on.</p>"""
    credit_console_visibility: NotRequired["str"]
    """<p>The display configuration for the credit in the Amazon Web Services Billing console.</p>"""
    credit_sharing_type: NotRequired[
        "capo_billing.types.credit_sharing_type.CreditSharingType"
    ]
    """<p>The sharing configuration for the credit. Valid values: <code>DEFAULT</code>, <code>DISABLED</code>, <code>CUSTOM</code>, <code>COST_CATEGORY_RULE</code>.</p>"""
    cost_category_arn: NotRequired["str"]
    """<p>The Amazon Resource Name (ARN) of the Cost Category controlling the credit's sharing scope. Present only when <code>creditSharingType</code> is <code>COST_CATEGORY_RULE</code>.</p>"""
    rule_name: NotRequired["str"]
    """<p>The rule name within the Cost Category. Present only when <code>creditSharingType</code> is <code>COST_CATEGORY_RULE</code>.</p>"""
    credit_status: NotRequired["capo_billing.types.credit_status.CreditStatus"]
    """<p>Whether the credit participates in billing runs. Valid values: <code>ENABLED</code>, <code>DISABLED</code>.</p>"""
    purchase_type_applications: NotRequired[
        "capo_billing.types.purchase_type_applications.PurchaseTypeApplications"
    ]
    """<p>Restricts which purchase types this credit applies to. When <code>null</code> or omitted, the credit applies to all purchase types.</p>"""

account_has_credit_sharing_enabled instance-attribute

account_has_credit_sharing_enabled: NotRequired[bool]

Whether the owning account has account-level credit sharing turned on.

account_id instance-attribute

account_id: AccountId

The Amazon Web Services account ID that owns the credit.

applicable_product_names instance-attribute

applicable_product_names: NotRequired[ProductNames]

The names of Amazon Web Services services this credit applies to.

application_type instance-attribute

application_type: NotRequired[ApplicationType]

When the credit is applied during bill computation. Valid values: BEFORE_CROSS_SERVICE_DISCOUNTS, AFTER_DISCOUNTS.

cost_category_arn instance-attribute

cost_category_arn: NotRequired[str]

The Amazon Resource Name (ARN) of the Cost Category controlling the credit's sharing scope. Present only when creditSharingType is COST_CATEGORY_RULE.

credit_console_visibility instance-attribute

credit_console_visibility: NotRequired[str]

The display configuration for the credit in the Amazon Web Services Billing console.

credit_id instance-attribute

credit_id: CreditId

The unique identifier for the credit.

credit_sharing_type instance-attribute

credit_sharing_type: NotRequired[CreditSharingType]

The sharing configuration for the credit. Valid values: DEFAULT, DISABLED, CUSTOM, COST_CATEGORY_RULE.

credit_status instance-attribute

credit_status: NotRequired[CreditStatus]

Whether the credit participates in billing runs. Valid values: ENABLED, DISABLED.

credit_type instance-attribute

credit_type: str

The type of credit. Examples: Promotion, Refund, TrueUp.

description instance-attribute

description: str

A human-readable description of the credit.

end_date instance-attribute

end_date: NotRequired[datetime]

The date the credit expires, as Unix epoch seconds.

estimated_amount instance-attribute

estimated_amount: NotRequired[Amount]

The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.

exhaust_date instance-attribute

exhaust_date: NotRequired[datetime]

The date the credit balance reached zero, as Unix epoch seconds.

initial_amount instance-attribute

initial_amount: Amount

The initial amount of the credit when it was issued.

purchase_type_applications instance-attribute

purchase_type_applications: NotRequired[PurchaseTypeApplications]

Restricts which purchase types this credit applies to. When null or omitted, the credit applies to all purchase types.

remaining_amount instance-attribute

remaining_amount: Amount

The unused balance of the credit.

rule_name instance-attribute

rule_name: NotRequired[str]

The rule name within the Cost Category. Present only when creditSharingType is COST_CATEGORY_RULE.

shareable_accounts instance-attribute

shareable_accounts: NotRequired[ShareableAccountIds]

The Amazon Web Services account IDs entitled to apply this credit.

start_date instance-attribute

start_date: datetime

The date the credit becomes valid, as Unix epoch seconds.