Class: AWSCDK::CloudTrail::CfnDashboard::FrequencyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_trail/cfn_dashboard.rb

Overview

Specifies the frequency for a dashboard refresh schedule.

For a custom dashboard, you can schedule a refresh for every 1, 6, 12, or 24 hours, or every day.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unit:, value:) ⇒ FrequencyProperty

Returns a new instance of FrequencyProperty.

Parameters:

  • unit (String)

    The unit to use for the refresh.

  • value (Numeric)

    The value for the refresh schedule.



618
619
620
621
622
623
# File 'cloud_trail/cfn_dashboard.rb', line 618

def initialize(unit:, value:)
  @unit = unit
  Jsii::Type.check_type(@unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unit")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#unitString (readonly)

The unit to use for the refresh.

For custom dashboards, the unit can be HOURS or DAYS .

For the Highlights dashboard, the Unit must be HOURS .



633
634
635
# File 'cloud_trail/cfn_dashboard.rb', line 633

def unit
  @unit
end

#valueNumeric (readonly)

The value for the refresh schedule.

For custom dashboards, the following values are valid when the unit is HOURS : 1 , 6 , 12 , 24

For custom dashboards, the only valid value when the unit is DAYS is 1 .

For the Highlights dashboard, the Value must be 6 .



644
645
646
# File 'cloud_trail/cfn_dashboard.rb', line 644

def value
  @value
end

Class Method Details

.jsii_propertiesObject



646
647
648
649
650
651
# File 'cloud_trail/cfn_dashboard.rb', line 646

def self.jsii_properties
  {
    :unit => "unit",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



653
654
655
656
657
658
659
660
# File 'cloud_trail/cfn_dashboard.rb', line 653

def to_jsii
  result = {}
  result.merge!({
    "unit" => @unit,
    "value" => @value,
  })
  result.compact
end