Class: Aws::NotificationsContacts::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::NotificationsContacts::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb
Overview
An API client for NotificationsContacts. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::NotificationsContacts::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#activate_email_contact(params = {}) ⇒ Struct
Activates an email contact using an activation code.
-
#create_email_contact(params = {}) ⇒ Types::CreateEmailContactResponse
Creates an email contact for the provided email address.
-
#delete_email_contact(params = {}) ⇒ Struct
Deletes an email contact.
-
#get_email_contact(params = {}) ⇒ Types::GetEmailContactResponse
Returns an email contact.
-
#list_email_contacts(params = {}) ⇒ Types::ListEmailContactsResponse
Lists all email contacts created under the Account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify.
-
#send_activation_code(params = {}) ⇒ Struct
Sends an activation email to the email address associated with the specified email contact.
-
#tag_resource(params = {}) ⇒ Struct
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
-
#untag_resource(params = {}) ⇒ Struct
Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN).
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 444 def initialize(*args) super end |
Instance Method Details
#activate_email_contact(params = {}) ⇒ Struct
Activates an email contact using an activation code. This code is in the activation email sent to the email address associated with this email contact.
481 482 483 484 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 481 def activate_email_contact(params = {}, = {}) req = build_request(:activate_email_contact, params) req.send_request() end |
#create_email_contact(params = {}) ⇒ Types::CreateEmailContactResponse
Creates an email contact for the provided email address.
525 526 527 528 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 525 def create_email_contact(params = {}, = {}) req = build_request(:create_email_contact, params) req.send_request() end |
#delete_email_contact(params = {}) ⇒ Struct
Deletes an email contact.
552 553 554 555 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 552 def delete_email_contact(params = {}, = {}) req = build_request(:delete_email_contact, params) req.send_request() end |
#get_email_contact(params = {}) ⇒ Types::GetEmailContactResponse
Returns an email contact.
585 586 587 588 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 585 def get_email_contact(params = {}, = {}) req = build_request(:get_email_contact, params) req.send_request() end |
#list_email_contacts(params = {}) ⇒ Types::ListEmailContactsResponse
Lists all email contacts created under the Account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
632 633 634 635 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 632 def list_email_contacts(params = {}, = {}) req = build_request(:list_email_contacts, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.
662 663 664 665 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 662 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#send_activation_code(params = {}) ⇒ Struct
Sends an activation email to the email address associated with the specified email contact.
691 692 693 694 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 691 def send_activation_code(params = {}, = {}) req = build_request(:send_activation_code, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts.
721 722 723 724 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 721 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts..
752 753 754 755 |
# File 'gems/aws-sdk-notificationscontacts/lib/aws-sdk-notificationscontacts/client.rb', line 752 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |