Class: AWSCDK::BillingConductor::CfnCustomLineItem::CustomLineItemPercentageChargeDetailsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
billing_conductor/cfn_custom_line_item.rb

Overview

A representation of the charge details associated with a percentage custom line item.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(percentage_value:, child_associated_resources: nil) ⇒ CustomLineItemPercentageChargeDetailsProperty

Returns a new instance of CustomLineItemPercentageChargeDetailsProperty.

Parameters:

  • percentage_value (Numeric)

    The custom line item's percentage value.

  • child_associated_resources (Array<String>, nil) (defaults to: nil)

    A list of resource ARNs to associate to the percentage custom line item.



812
813
814
815
816
817
# File 'billing_conductor/cfn_custom_line_item.rb', line 812

def initialize(percentage_value:, child_associated_resources: nil)
  @percentage_value = percentage_value
  Jsii::Type.check_type(@percentage_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "percentageValue")
  @child_associated_resources = child_associated_resources
  Jsii::Type.check_type(@child_associated_resources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "childAssociatedResources") unless @child_associated_resources.nil?
end

Instance Attribute Details

#child_associated_resourcesArray<String>? (readonly)

A list of resource ARNs to associate to the percentage custom line item.



830
831
832
# File 'billing_conductor/cfn_custom_line_item.rb', line 830

def child_associated_resources
  @child_associated_resources
end

#percentage_valueNumeric (readonly)

The custom line item's percentage value.

This will be multiplied against the combined value of its associated resources to determine its charge value.



825
826
827
# File 'billing_conductor/cfn_custom_line_item.rb', line 825

def percentage_value
  @percentage_value
end

Class Method Details

.jsii_propertiesObject



832
833
834
835
836
837
# File 'billing_conductor/cfn_custom_line_item.rb', line 832

def self.jsii_properties
  {
    :percentage_value => "percentageValue",
    :child_associated_resources => "childAssociatedResources",
  }
end

Instance Method Details

#to_jsiiObject



839
840
841
842
843
844
845
846
# File 'billing_conductor/cfn_custom_line_item.rb', line 839

def to_jsii
  result = {}
  result.merge!({
    "percentageValue" => @percentage_value,
    "childAssociatedResources" => @child_associated_resources,
  })
  result.compact
end