Class: Aws::Billing::Types::UpdateBillingPreferencesRequest

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#billing_preferences_per_key ⇒ Array<Types::BillingPreferenceForKey>

Key/value pairs to apply. All keys in a single request must be valid for the specified feature and must not be duplicated. For CREDIT_PREFERENCE_OPTIONS, all keys must reference the same creditId.

For BENEFIT_LEVEL_SHARING, all keys must reference the same Reserved Instance or Savings Plan. To share it with the accounts in one Cost Category rule, send these three keys with the value ENABLED:

  • benefit/{ri|sp}/{benefitId}/sharing/costCategoryArn/{costCategoryArn}

  • benefit/{ri|sp}/{benefitId}/sharing/ruleName/{ruleName}

  • benefit/{ri|sp}/{benefitId}/sharing/mode/{prioritized|restricted}

With prioritized, any benefit that the rule's accounts don't use goes to the rest of your consolidated billing family, following your family sharing settings. With restricted, only the owner and the rule's accounts receive it. The Cost Category must belong to your account. To stop sharing, send the same three keys with the value DISABLED.

For RI_SHARING and CREDIT_SHARING, you can share benefits by account group. Each rule in a Cost Category is one group. Send exactly one of these group keys with the value ENABLED:

  • open-sharing - Share across the whole consolidated billing family, with no groups.

  • costcategory-prioritized/{costCategoryArn} - Share within each group first, then with the rest of the family.

  • costcategory-restricted/{costCategoryArn} - An account in a group shares only with accounts in the same group.

For RI_SHARING, the costcategory- keys use a Cost Category that supports the billing:rispgroupsharing resource type. To use a Cost Category that supports the billing:benefitgroupsharing resource type, use the benefitgroup-prioritized/ or benefitgroup-restricted/ prefix instead. For CREDIT_SHARING, the Cost Category must support the billing:benefitgroupsharing resource type. The Cost Category must belong to your account. GetBillingPreferences returns the group key that is in effect.

Returns:



3651
3652
3653
3654
3655
3656
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 3651

class UpdateBillingPreferencesRequest < Struct.new(
  :feature,
  :billing_preferences_per_key)
  SENSITIVE = []
  include Aws::Structure
end

#feature ⇒ String

The feature to update. Valid values: BILLING_ALERTS, RI_SHARING, CREDIT_SHARING, CREDIT_LEVEL_SHARING, CREDIT_PREFERENCE_OPTIONS, BENEFIT_LEVEL_SHARING. The history features (RI_SHARING_HISTORY and CREDIT_SHARING_HISTORY) are read-only and cannot be updated.

Returns:

  • (String)


3651
3652
3653
3654
3655
3656
# File 'gems/aws-sdk-billing/lib/aws-sdk-billing/types.rb', line 3651

class UpdateBillingPreferencesRequest < Struct.new(
  :feature,
  :billing_preferences_per_key)
  SENSITIVE = []
  include Aws::Structure
end