Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::RecurrenceRuleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
application_signals/cfn_service_level_objective.rb

Overview

The recurrence rule for the time exclusion window.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:) ⇒ RecurrenceRuleProperty

Returns a new instance of RecurrenceRuleProperty.

Parameters:

  • expression (String)

    The following two rules are supported:.



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

#expressionString (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_propertiesObject



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_jsiiObject



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