Class: AWSCDK::Braket::CfnSpendingLimit::TimePeriodProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_at:, start_at:) ⇒ TimePeriodProperty

Returns a new instance of TimePeriodProperty.

Parameters:

  • end_at (String)

    The end date and time for the spending limit period, in ISO 8601 format.

  • start_at (String)

    The start date and time for the spending limit period, in ISO 8601 format.



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_atString (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_atString (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_propertiesObject



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_jsiiObject



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