Class: AWSCDK::SSMContacts::CfnPlanProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSMContacts::CfnPlanProps
- Defined in:
- ssm_contacts/cfn_plan_props.rb
Overview
Properties for defining a CfnPlan.
Instance Attribute Summary collapse
-
#contact_id ⇒ String
readonly
The Amazon Resource Name (ARN) of the contact.
-
#rotation_ids ⇒ Array<String>?
readonly
The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan.
-
#stages ⇒ AWSCDK::IResolvable, ...
readonly
A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(contact_id:, rotation_ids: nil, stages: nil) ⇒ CfnPlanProps
constructor
A new instance of CfnPlanProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(contact_id:, rotation_ids: nil, stages: nil) ⇒ CfnPlanProps
Returns a new instance of CfnPlanProps.
12 13 14 15 16 17 18 19 |
# File 'ssm_contacts/cfn_plan_props.rb', line 12 def initialize(contact_id:, rotation_ids: nil, stages: nil) @contact_id = contact_id Jsii::Type.check_type(@contact_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contactId") @rotation_ids = rotation_ids Jsii::Type.check_type(@rotation_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "rotationIds") unless @rotation_ids.nil? @stages = stages Jsii::Type.check_type(@stages, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3NtY29udGFjdHMuQ2ZuUGxhbi5TdGFnZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "stages") unless @stages.nil? end |
Instance Attribute Details
#contact_id ⇒ String (readonly)
The Amazon Resource Name (ARN) of the contact.
25 26 27 |
# File 'ssm_contacts/cfn_plan_props.rb', line 25 def contact_id @contact_id end |
#rotation_ids ⇒ Array<String>? (readonly)
The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan.
30 31 32 |
# File 'ssm_contacts/cfn_plan_props.rb', line 30 def rotation_ids @rotation_ids end |
#stages ⇒ AWSCDK::IResolvable, ... (readonly)
A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.
35 36 37 |
# File 'ssm_contacts/cfn_plan_props.rb', line 35 def stages @stages end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'ssm_contacts/cfn_plan_props.rb', line 37 def self.jsii_properties { :contact_id => "contactId", :rotation_ids => "rotationIds", :stages => "stages", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'ssm_contacts/cfn_plan_props.rb', line 45 def to_jsii result = {} result.merge!({ "contactId" => @contact_id, "rotationIds" => @rotation_ids, "stages" => @stages, }) result.compact end |