Class: AWSCDK::BillingConductor::CfnCustomLineItem::BillingPeriodRangeProperty

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

Overview

The billing period range in which the custom line item request will be applied.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exclusive_end_billing_period: nil, inclusive_start_billing_period: nil) ⇒ BillingPeriodRangeProperty

Returns a new instance of BillingPeriodRangeProperty.

Parameters:

  • exclusive_end_billing_period (String, nil) (defaults to: nil)

    The exclusive end billing period that defines a billing period range where a custom line is applied.

  • inclusive_start_billing_period (String, nil) (defaults to: nil)

    The inclusive start billing period that defines a billing period range where a custom line is applied.



669
670
671
672
673
674
# File 'billing_conductor/cfn_custom_line_item.rb', line 669

def initialize(exclusive_end_billing_period: nil, inclusive_start_billing_period: nil)
  @exclusive_end_billing_period = exclusive_end_billing_period
  Jsii::Type.check_type(@exclusive_end_billing_period, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "exclusiveEndBillingPeriod") unless @exclusive_end_billing_period.nil?
  @inclusive_start_billing_period = inclusive_start_billing_period
  Jsii::Type.check_type(@inclusive_start_billing_period, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inclusiveStartBillingPeriod") unless @inclusive_start_billing_period.nil?
end

Instance Attribute Details

#exclusive_end_billing_periodString? (readonly)

The exclusive end billing period that defines a billing period range where a custom line is applied.



680
681
682
# File 'billing_conductor/cfn_custom_line_item.rb', line 680

def exclusive_end_billing_period
  @exclusive_end_billing_period
end

#inclusive_start_billing_periodString? (readonly)

The inclusive start billing period that defines a billing period range where a custom line is applied.



685
686
687
# File 'billing_conductor/cfn_custom_line_item.rb', line 685

def inclusive_start_billing_period
  @inclusive_start_billing_period
end

Class Method Details

.jsii_propertiesObject



687
688
689
690
691
692
# File 'billing_conductor/cfn_custom_line_item.rb', line 687

def self.jsii_properties
  {
    :exclusive_end_billing_period => "exclusiveEndBillingPeriod",
    :inclusive_start_billing_period => "inclusiveStartBillingPeriod",
  }
end

Instance Method Details

#to_jsiiObject



694
695
696
697
698
699
700
701
# File 'billing_conductor/cfn_custom_line_item.rb', line 694

def to_jsii
  result = {}
  result.merge!({
    "exclusiveEndBillingPeriod" => @exclusive_end_billing_period,
    "inclusiveStartBillingPeriod" => @inclusive_start_billing_period,
  })
  result.compact
end