Class: AWSCDK::Shield::CfnProactiveEngagement::EmergencyContactProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
shield/cfn_proactive_engagement.rb

Overview

Contact information that the SRT can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email_address:, contact_notes: nil, phone_number: nil) ⇒ EmergencyContactProperty

Returns a new instance of EmergencyContactProperty.

Parameters:

  • email_address (String)

    The email address for the contact.

  • contact_notes (String, nil) (defaults to: nil)

    Additional notes regarding the contact.

  • phone_number (String, nil) (defaults to: nil)

    The phone number for the contact.



529
530
531
532
533
534
535
536
# File 'shield/cfn_proactive_engagement.rb', line 529

def initialize(email_address:, contact_notes: nil, phone_number: nil)
  @email_address = email_address
  Jsii::Type.check_type(@email_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "emailAddress")
  @contact_notes = contact_notes
  Jsii::Type.check_type(@contact_notes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contactNotes") unless @contact_notes.nil?
  @phone_number = phone_number
  Jsii::Type.check_type(@phone_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneNumber") unless @phone_number.nil?
end

Instance Attribute Details

#contact_notesString? (readonly)

Additional notes regarding the contact.



547
548
549
# File 'shield/cfn_proactive_engagement.rb', line 547

def contact_notes
  @contact_notes
end

#email_addressString (readonly)

The email address for the contact.



542
543
544
# File 'shield/cfn_proactive_engagement.rb', line 542

def email_address
  @email_address
end

#phone_numberString? (readonly)

The phone number for the contact.



552
553
554
# File 'shield/cfn_proactive_engagement.rb', line 552

def phone_number
  @phone_number
end

Class Method Details

.jsii_propertiesObject



554
555
556
557
558
559
560
# File 'shield/cfn_proactive_engagement.rb', line 554

def self.jsii_properties
  {
    :email_address => "emailAddress",
    :contact_notes => "contactNotes",
    :phone_number => "phoneNumber",
  }
end

Instance Method Details

#to_jsiiObject



562
563
564
565
566
567
568
569
570
# File 'shield/cfn_proactive_engagement.rb', line 562

def to_jsii
  result = {}
  result.merge!({
    "emailAddress" => @email_address,
    "contactNotes" => @contact_notes,
    "phoneNumber" => @phone_number,
  })
  result.compact
end