Class: AWSCDK::Budgets::CfnBudget::TimePeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudget::TimePeriodProperty
- Defined in:
- budgets/cfn_budget.rb
Overview
The period of time that is covered by a budget.
The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
Instance Attribute Summary collapse
-
#_end ⇒ String?
readonly
The end date for a budget.
-
#start ⇒ String?
readonly
The start date for a budget.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(_end: nil, start: nil) ⇒ TimePeriodProperty
constructor
A new instance of TimePeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(_end: nil, start: nil) ⇒ TimePeriodProperty
Returns a new instance of TimePeriodProperty.
1464 1465 1466 1467 1468 1469 |
# File 'budgets/cfn_budget.rb', line 1464 def initialize(_end: nil, start: nil) @_end = _end Jsii::Type.check_type(@_end, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "end") unless @_end.nil? @start = start Jsii::Type.check_type(@start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "start") unless @start.nil? end |
Instance Attribute Details
#_end ⇒ String? (readonly)
The end date for a budget.
If you didn't specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the Billing and Cost Management console and the API.
After the end date, AWS deletes the budget and all the associated notifications and subscribers. You can change your end date with the UpdateBudget operation.
1479 1480 1481 |
# File 'budgets/cfn_budget.rb', line 1479 def _end @_end end |
#start ⇒ String? (readonly)
The start date for a budget.
If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose MONTHLY , and don't set a start date, the start date defaults to 01/01/19 00:00 UTC . The defaults are the same for the Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget operation.
Valid values depend on the value of BudgetType :
- If
BudgetTypeisCOSTorUSAGE: Valid values areMONTHLY,QUARTERLY, andANNUALLY. - If
BudgetTypeisRI_UTILIZATIONorRI_COVERAGE: Valid values areDAILY,MONTHLY,QUARTERLY, andANNUALLY.
1493 1494 1495 |
# File 'budgets/cfn_budget.rb', line 1493 def start @start end |
Class Method Details
.jsii_properties ⇒ Object
1495 1496 1497 1498 1499 1500 |
# File 'budgets/cfn_budget.rb', line 1495 def self.jsii_properties { :_end => "end", :start => "start", } end |
Instance Method Details
#to_jsii ⇒ Object
1502 1503 1504 1505 1506 1507 1508 1509 |
# File 'budgets/cfn_budget.rb', line 1502 def to_jsii result = {} result.merge!({ "end" => @_end, "start" => @start, }) result.compact end |