Class: AWSCDK::CloudTrail::CfnDashboard::FrequencyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudTrail::CfnDashboard::FrequencyProperty
- 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
-
#unit ⇒ String
readonly
The unit to use for the refresh.
-
#value ⇒ Numeric
readonly
The value for the refresh schedule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(unit:, value:) ⇒ FrequencyProperty
constructor
A new instance of FrequencyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(unit:, value:) ⇒ FrequencyProperty
Returns a new instance of FrequencyProperty.
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
#unit ⇒ String (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 |
#value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |