Class: AWSCDK::Shield::CfnProactiveEngagement::EmergencyContactProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Shield::CfnProactiveEngagement::EmergencyContactProperty
- 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
-
#contact_notes ⇒ String?
readonly
Additional notes regarding the contact.
-
#email_address ⇒ String
readonly
The email address for the contact.
-
#phone_number ⇒ String?
readonly
The phone number for the contact.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(email_address:, contact_notes: nil, phone_number: nil) ⇒ EmergencyContactProperty
constructor
A new instance of EmergencyContactProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(email_address:, contact_notes: nil, phone_number: nil) ⇒ EmergencyContactProperty
Returns a new instance of EmergencyContactProperty.
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_notes ⇒ String? (readonly)
Additional notes regarding the contact.
547 548 549 |
# File 'shield/cfn_proactive_engagement.rb', line 547 def contact_notes @contact_notes end |
#email_address ⇒ String (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_number ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |