Class: AWSCDK::NotificationsContacts::CfnEmailContact::EmailContactProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NotificationsContacts::CfnEmailContact::EmailContactProperty
- Defined in:
- notifications_contacts/cfn_email_contact.rb
Overview
Configures email contacts for AWS User Notifications .
You must activate the email contact using the activation token that you will receive when the email contact is set up.
Instance Attribute Summary collapse
-
#address ⇒ String
readonly
The email address of the contact.
-
#arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the contact.
-
#creation_time ⇒ String
readonly
The creation time of the
EmailContact. -
#name ⇒ String
readonly
The name of the contact.
-
#status ⇒ String
readonly
The status of the contact.
-
#update_time ⇒ String
readonly
The time the
EmailContactwas last updated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address:, arn:, creation_time:, name:, status:, update_time:) ⇒ EmailContactProperty
constructor
A new instance of EmailContactProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(address:, arn:, creation_time:, name:, status:, update_time:) ⇒ EmailContactProperty
Returns a new instance of EmailContactProperty.
606 607 608 609 610 611 612 613 614 615 616 617 618 619 |
# File 'notifications_contacts/cfn_email_contact.rb', line 606 def initialize(address:, arn:, creation_time:, name:, status:, update_time:) @address = address Jsii::Type.check_type(@address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "address") @arn = arn Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") @creation_time = creation_time Jsii::Type.check_type(@creation_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "creationTime") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") @update_time = update_time Jsii::Type.check_type(@update_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updateTime") end |
Instance Attribute Details
#address ⇒ String (readonly)
The email address of the contact.
625 626 627 |
# File 'notifications_contacts/cfn_email_contact.rb', line 625 def address @address end |
#arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the contact.
630 631 632 |
# File 'notifications_contacts/cfn_email_contact.rb', line 630 def arn @arn end |
#creation_time ⇒ String (readonly)
The creation time of the EmailContact .
635 636 637 |
# File 'notifications_contacts/cfn_email_contact.rb', line 635 def creation_time @creation_time end |
#name ⇒ String (readonly)
The name of the contact.
640 641 642 |
# File 'notifications_contacts/cfn_email_contact.rb', line 640 def name @name end |
#status ⇒ String (readonly)
The status of the contact.
Only activated contacts receive emails.
647 648 649 |
# File 'notifications_contacts/cfn_email_contact.rb', line 647 def status @status end |
#update_time ⇒ String (readonly)
The time the EmailContact was last updated.
652 653 654 |
# File 'notifications_contacts/cfn_email_contact.rb', line 652 def update_time @update_time end |
Class Method Details
.jsii_properties ⇒ Object
654 655 656 657 658 659 660 661 662 663 |
# File 'notifications_contacts/cfn_email_contact.rb', line 654 def self.jsii_properties { :address => "address", :arn => "arn", :creation_time => "creationTime", :name => "name", :status => "status", :update_time => "updateTime", } end |
Instance Method Details
#to_jsii ⇒ Object
665 666 667 668 669 670 671 672 673 674 675 676 |
# File 'notifications_contacts/cfn_email_contact.rb', line 665 def to_jsii result = {} result.merge!({ "address" => @address, "arn" => @arn, "creationTime" => @creation_time, "name" => @name, "status" => @status, "updateTime" => @update_time, }) result.compact end |