Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::RecurrenceRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationSignals::CfnServiceLevelObjective::RecurrenceRuleProperty
- Defined in:
- application_signals/cfn_service_level_objective.rb
Overview
The recurrence rule for the time exclusion window.
Instance Attribute Summary collapse
-
#expression ⇒ String
readonly
The following two rules are supported:.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(expression:) ⇒ RecurrenceRuleProperty
constructor
A new instance of RecurrenceRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(expression:) ⇒ RecurrenceRuleProperty
Returns a new instance of RecurrenceRuleProperty.
1424 1425 1426 1427 |
# File 'application_signals/cfn_service_level_objective.rb', line 1424 def initialize(expression:) @expression = expression Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression") end |
Instance Attribute Details
#expression ⇒ String (readonly)
The following two rules are supported:.
- rate(value unit) - The value must be a positive integer and the unit can be hour|day|month.
- cron - An expression which consists of six fields separated by white spaces: (minutes hours day_of_month month day_of_week year).
1436 1437 1438 |
# File 'application_signals/cfn_service_level_objective.rb', line 1436 def expression @expression end |
Class Method Details
.jsii_properties ⇒ Object
1438 1439 1440 1441 1442 |
# File 'application_signals/cfn_service_level_objective.rb', line 1438 def self.jsii_properties { :expression => "expression", } end |
Instance Method Details
#to_jsii ⇒ Object
1444 1445 1446 1447 1448 1449 1450 |
# File 'application_signals/cfn_service_level_objective.rb', line 1444 def to_jsii result = {} result.merge!({ "expression" => @expression, }) result.compact end |