Class: AWSCDK::SSMContacts::CfnContact::StageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSMContacts::CfnContact::StageProperty
- Defined in:
- ssm_contacts/cfn_contact.rb
Overview
The Stage property type specifies 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.
-
#rotation_ids ⇒ Array<String>?
readonly
The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan.
-
#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: nil, rotation_ids: nil, targets: nil) ⇒ StageProperty
constructor
A new instance of StageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(duration_in_minutes: nil, rotation_ids: nil, targets: nil) ⇒ StageProperty
Returns a new instance of StageProperty.
657 658 659 660 661 662 663 664 |
# File 'ssm_contacts/cfn_contact.rb', line 657 def initialize(duration_in_minutes: nil, rotation_ids: nil, targets: nil) @duration_in_minutes = duration_in_minutes Jsii::Type.check_type(@duration_in_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "durationInMinutes") unless @duration_in_minutes.nil? @rotation_ids = rotation_ids Jsii::Type.check_type(@rotation_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "rotationIds") unless @rotation_ids.nil? @targets = targets Jsii::Type.check_type(@targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3NtY29udGFjdHMuQ2ZuQ29udGFjdC5UYXJnZXRzUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "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.
672 673 674 |
# File 'ssm_contacts/cfn_contact.rb', line 672 def duration_in_minutes @duration_in_minutes end |
#rotation_ids ⇒ Array<String>? (readonly)
The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan.
677 678 679 |
# File 'ssm_contacts/cfn_contact.rb', line 677 def rotation_ids @rotation_ids end |
#targets ⇒ AWSCDK::IResolvable, ... (readonly)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
682 683 684 |
# File 'ssm_contacts/cfn_contact.rb', line 682 def targets @targets end |
Class Method Details
.jsii_properties ⇒ Object
684 685 686 687 688 689 690 |
# File 'ssm_contacts/cfn_contact.rb', line 684 def self.jsii_properties { :duration_in_minutes => "durationInMinutes", :rotation_ids => "rotationIds", :targets => "targets", } end |
Instance Method Details
#to_jsii ⇒ Object
692 693 694 695 696 697 698 699 700 |
# File 'ssm_contacts/cfn_contact.rb', line 692 def to_jsii result = {} result.merge!({ "durationInMinutes" => @duration_in_minutes, "rotationIds" => @rotation_ids, "targets" => @targets, }) result.compact end |