Class: AWSCDK::SSMContacts::CfnPlanProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm_contacts/cfn_plan_props.rb

Overview

Properties for defining a CfnPlan.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contact_id:, rotation_ids: nil, stages: nil) ⇒ CfnPlanProps

Returns a new instance of CfnPlanProps.

Parameters:

  • contact_id (String)

    The Amazon Resource Name (ARN) of the contact.

  • rotation_ids (Array<String>, nil) (defaults to: nil)

    The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan.

  • stages (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SSMContacts::CfnPlan::StageProperty>, nil) (defaults to: nil)

    A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.



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_idString (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_idsArray<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

#stagesAWSCDK::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_propertiesObject



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_jsiiObject



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