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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-billing/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_enabled ⇒ Boolean

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

Returns:

  • (Boolean)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_id ⇒ String

The Amazon Web Services account ID that owns the credit.

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_names ⇒ Array<String>

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

Returns:

  • (Array<String>)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_type ⇒ String

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

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_arn ⇒ String

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)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_visibility ⇒ String

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

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_id ⇒ String

The unique identifier for the credit.

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_type ⇒ String

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

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_status ⇒ String

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

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_type ⇒ String

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

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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

#description ⇒ String

A human-readable description of the credit.

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_date ⇒ Time

The date the credit expires, as Unix epoch seconds.

Returns:

  • (Time)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_amount ⇒ Types::Amount

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

Returns:



753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_date ⇒ Time

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

Returns:

  • (Time)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_amount ⇒ Types::Amount

The initial amount of the credit when it was issued.

Returns:



753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_applications ⇒ Array<String>

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

Returns:

  • (Array<String>)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_amount ⇒ Types::Amount

The unused balance of the credit.

Returns:



753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_name ⇒ String

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

Returns:

  • (String)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_accounts ⇒ Array<String>

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

Returns:

  • (Array<String>)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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_date ⇒ Time

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

Returns:

  • (Time)


753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 753

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