Class: AWSCDK::Braket::CfnSpendingLimit::TimePeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Braket::CfnSpendingLimit::TimePeriodProperty
- Defined in:
- braket/cfn_spending_limit.rb
Overview
Defines a time range for spending limits, specifying when the limit is active.
Instance Attribute Summary collapse
-
#end_at ⇒ String
readonly
The end date and time for the spending limit period, in ISO 8601 format.
-
#start_at ⇒ String
readonly
The start date and time for the spending limit period, in ISO 8601 format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(end_at:, start_at:) ⇒ TimePeriodProperty
constructor
A new instance of TimePeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(end_at:, start_at:) ⇒ TimePeriodProperty
Returns a new instance of TimePeriodProperty.
592 593 594 595 596 597 |
# File 'braket/cfn_spending_limit.rb', line 592 def initialize(end_at:, start_at:) @end_at = end_at Jsii::Type.check_type(@end_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endAt") @start_at = start_at Jsii::Type.check_type(@start_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startAt") end |
Instance Attribute Details
#end_at ⇒ String (readonly)
The end date and time for the spending limit period, in ISO 8601 format.
603 604 605 |
# File 'braket/cfn_spending_limit.rb', line 603 def end_at @end_at end |
#start_at ⇒ String (readonly)
The start date and time for the spending limit period, in ISO 8601 format.
608 609 610 |
# File 'braket/cfn_spending_limit.rb', line 608 def start_at @start_at end |
Class Method Details
.jsii_properties ⇒ Object
610 611 612 613 614 615 |
# File 'braket/cfn_spending_limit.rb', line 610 def self.jsii_properties { :end_at => "endAt", :start_at => "startAt", } end |
Instance Method Details
#to_jsii ⇒ Object
617 618 619 620 621 622 623 624 |
# File 'braket/cfn_spending_limit.rb', line 617 def to_jsii result = {} result.merge!({ "endAt" => @end_at, "startAt" => @start_at, }) result.compact end |