Class: Aws::Billing::Types::CreditData

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-billing/types.rb

Overview

Detailed information about an Amazon Web Services credit, including its identifier, type, monetary amounts, applicable products, sharing configuration, and current enabled status.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#account_has_credit_sharing_enabledBoolean

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

Returns:

  • (Boolean)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#account_idString

The Amazon Web Services account ID that owns the credit.

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#applicable_product_namesArray<String>

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

Returns:

  • (Array<String>)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#application_typeString

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

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#cost_category_arnString

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

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#credit_console_visibilityString

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

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#credit_idString

The unique identifier for the credit.

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#credit_sharing_typeString

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

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#credit_statusString

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

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#credit_typeString

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

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

A human-readable description of the credit.

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#end_dateTime

The date the credit expires, as Unix epoch seconds.

Returns:

  • (Time)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#estimated_amountTypes::Amount

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

Returns:



619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#exhaust_dateTime

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

Returns:

  • (Time)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#initial_amountTypes::Amount

The initial amount of the credit when it was issued.

Returns:



619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#purchase_type_applicationsArray<String>

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

Returns:

  • (Array<String>)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#remaining_amountTypes::Amount

The unused balance of the credit.

Returns:



619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#rule_nameString

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

Returns:

  • (String)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#shareable_accountsArray<String>

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

Returns:

  • (Array<String>)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end

#start_dateTime

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

Returns:

  • (Time)


619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aws-sdk-billing/types.rb', line 619

class CreditData < Struct.new(
  :credit_id,
  :account_id,
  :credit_type,
  :initial_amount,
  :remaining_amount,
  :estimated_amount,
  :applicable_product_names,
  :description,
  :start_date,
  :end_date,
  :exhaust_date,
  :application_type,
  :shareable_accounts,
  :account_has_credit_sharing_enabled,
  :credit_console_visibility,
  :credit_sharing_type,
  :cost_category_arn,
  :rule_name,
  :credit_status,
  :purchase_type_applications)
  SENSITIVE = []
  include Aws::Structure
end