awsapilib.billing package

Submodules

awsapilib.billing.billing module

Main code for billing.

class awsapilib.billing.billing.Billing(arn, region=None)[source]

Bases: LoggerMixin

Models Control Tower by wrapping around service catalog.

property account_id

Account id.

property currency

Currency settings.

Returns:

The currency set.

Return type:

currency (str)

property disabled_region_states

Disabled region states.

property enabled_region_states

Enabled region states.

property iam_access

IAM access to billing setting.

property market_place_id

Marker place id of account.

property payment_cards

Payment cards.

property preferences

Preferences settings.

Returns:

The preferences settings object.

Return type:

preferences (Preferences)

property sor_id

Sor id.

property tax

Tax settings.

Returns:

The tax settings object.

Return type:

tax (Tax)

class awsapilib.billing.billing.PaymentCard(billing, data)[source]

Bases: LoggerMixin

Models a payment card.

property address_id

Address id.

property address_line_1

First line of the address settings.

property address_line_2

Second line of the address settings.

property city

City.

property company

Company.

property country_code

Country code.

property email_address_list

Email address list.

property full_name

Full name.

property payment_instrument_arn

Payment instrument arn.

property phone_number

Phone number.

property postal_code

Postal code.

property state

State.

class awsapilib.billing.billing.Preferences(billing)[source]

Bases: LoggerMixin

Models the preferences of the billing console.

property credit_sharing

The setting of the credit sharing.

Returns:

True if set, False otherwise.

Return type:

setting (bool)

property pdf_invoice_by_mail

The setting of the pdf invoice by email.

Returns:

True if set, False otherwise.

Return type:

setting (bool)

class awsapilib.billing.billing.Tax(billing)[source]

Bases: LoggerMixin

Models the tax settings of the billing console.

property available_country_codes_eu

The available country codes of the tax settings for eu.

Returns:

Available country codes

Return type:

codes (list)

property inheritance

The inheritance settings of the billing preferences.

Returns:

True if set, False otherwise.

Return type:

setting (bool)

set_information(address, city, postal_code, legal_name, vat_number, country_code, state=None)[source]

The inheritance settings setter of the billing preferences.

Returns:

None

awsapilib.billing.billingexceptions module

Custom exception code for billing.

exception awsapilib.billing.billingexceptions.IAMAccessDenied[source]

Bases: Exception

IAM User and Role Access to Billing Information on the account console is not set.

exception awsapilib.billing.billingexceptions.InvalidCountryCode[source]

Bases: Exception

The country code provided is not valid.

exception awsapilib.billing.billingexceptions.InvalidCurrency[source]

Bases: Exception

The currency provided is not a valid value.

exception awsapilib.billing.billingexceptions.NonEditableSetting[source]

Bases: Exception

The setting is not editable, or time disabled.

exception awsapilib.billing.billingexceptions.ServerError[source]

Bases: Exception

The response was not successful.

Module contents

billing package.

Import all parts from billing here