Class: AWSCDK::SSMContacts::CfnPlan::StageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSMContacts::CfnPlan::StageProperty
- Defined in:
- ssm_contacts/cfn_plan.rb
Overview
A set amount of time that an escalation plan or engagement plan engages the specified contacts or contact methods.
Instance Attribute Summary collapse
-
#duration_in_minutes ⇒ Numeric
readonly
The time to wait until beginning the next stage.
-
#targets ⇒ AWSCDK::IResolvable, ...
readonly
The contacts or contact methods that the escalation plan or engagement plan is engaging.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(duration_in_minutes:, targets: nil) ⇒ StageProperty
constructor
A new instance of StageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(duration_in_minutes:, targets: nil) ⇒ StageProperty
Returns a new instance of StageProperty.
622 623 624 625 626 627 |
# File 'ssm_contacts/cfn_plan.rb', line 622 def initialize(duration_in_minutes:, targets: nil) @duration_in_minutes = duration_in_minutes Jsii::Type.check_type(@duration_in_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "durationInMinutes") @targets = targets Jsii::Type.check_type(@targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3NtY29udGFjdHMuQ2ZuUGxhbi5UYXJnZXRzUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "targets") unless @targets.nil? end |
Instance Attribute Details
#duration_in_minutes ⇒ Numeric (readonly)
The time to wait until beginning the next stage.
The duration can only be set to 0 if a target is specified.
635 636 637 |
# File 'ssm_contacts/cfn_plan.rb', line 635 def duration_in_minutes @duration_in_minutes end |
#targets ⇒ AWSCDK::IResolvable, ... (readonly)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
640 641 642 |
# File 'ssm_contacts/cfn_plan.rb', line 640 def targets @targets end |
Class Method Details
.jsii_properties ⇒ Object
642 643 644 645 646 647 |
# File 'ssm_contacts/cfn_plan.rb', line 642 def self.jsii_properties { :duration_in_minutes => "durationInMinutes", :targets => "targets", } end |
Instance Method Details
#to_jsii ⇒ Object
649 650 651 652 653 654 655 656 |
# File 'ssm_contacts/cfn_plan.rb', line 649 def to_jsii result = {} result.merge!({ "durationInMinutes" => @duration_in_minutes, "targets" => @targets, }) result.compact end |