Class: Aws::Notifications::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Notifications::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb
Overview
An API client for Notifications. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::Notifications::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
-
#associate_channel(params = {}) ⇒ Struct
Associates a delivery [Channel][1] with a particular
NotificationConfiguration
. -
#associate_managed_notification_account_contact(params = {}) ⇒ Struct
Associates an Account Contact with a particular
ManagedNotificationConfiguration
. -
#associate_managed_notification_additional_channel(params = {}) ⇒ Struct
Associates an additional Channel with a particular
ManagedNotificationConfiguration
. -
#create_event_rule(params = {}) ⇒ Types::CreateEventRuleResponse
Creates an [
EventRule
][1] that is associated with a specifiedNotificationConfiguration
. -
#create_notification_configuration(params = {}) ⇒ Types::CreateNotificationConfigurationResponse
Creates a new
NotificationConfiguration
. -
#delete_event_rule(params = {}) ⇒ Struct
Deletes an
EventRule
. -
#delete_notification_configuration(params = {}) ⇒ Struct
Deletes a
NotificationConfiguration
. -
#deregister_notification_hub(params = {}) ⇒ Types::DeregisterNotificationHubResponse
Deregisters a
NotificationConfiguration
in the specified Region. -
#disable_notifications_access_for_organization(params = {}) ⇒ Struct
Disables service trust between User Notifications and Amazon Web Services Organizations.
-
#disassociate_channel(params = {}) ⇒ Struct
Disassociates a Channel from a specified
NotificationConfiguration
. -
#disassociate_managed_notification_account_contact(params = {}) ⇒ Struct
Disassociates an Account Contact with a particular
ManagedNotificationConfiguration
. -
#disassociate_managed_notification_additional_channel(params = {}) ⇒ Struct
Disassociates an additional Channel from a particular
ManagedNotificationConfiguration
. -
#enable_notifications_access_for_organization(params = {}) ⇒ Struct
Enables service trust between User Notifications and Amazon Web Services Organizations.
-
#get_event_rule(params = {}) ⇒ Types::GetEventRuleResponse
Returns a specified
EventRule
. -
#get_managed_notification_child_event(params = {}) ⇒ Types::GetManagedNotificationChildEventResponse
Returns the child event of a specific given
ManagedNotificationEvent
. -
#get_managed_notification_configuration(params = {}) ⇒ Types::GetManagedNotificationConfigurationResponse
Returns a specified
ManagedNotificationConfiguration
. -
#get_managed_notification_event(params = {}) ⇒ Types::GetManagedNotificationEventResponse
Returns a specified
ManagedNotificationEvent
. -
#get_notification_configuration(params = {}) ⇒ Types::GetNotificationConfigurationResponse
Returns a specified
NotificationConfiguration
. -
#get_notification_event(params = {}) ⇒ Types::GetNotificationEventResponse
Returns a specified
NotificationEvent
. -
#get_notifications_access_for_organization(params = {}) ⇒ Types::GetNotificationsAccessForOrganizationResponse
Returns the AccessStatus of Service Trust Enablement for User Notifications and Amazon Web Services Organizations.
-
#list_channels(params = {}) ⇒ Types::ListChannelsResponse
Returns a list of Channels for a
NotificationConfiguration
. -
#list_event_rules(params = {}) ⇒ Types::ListEventRulesResponse
Returns a list of
EventRules
according to specified filters, in reverse chronological order (newest first). -
#list_managed_notification_channel_associations(params = {}) ⇒ Types::ListManagedNotificationChannelAssociationsResponse
Returns a list of Account contacts and Channels associated with a
ManagedNotificationConfiguration
, in paginated format. -
#list_managed_notification_child_events(params = {}) ⇒ Types::ListManagedNotificationChildEventsResponse
Returns a list of
ManagedNotificationChildEvents
for a specified aggregateManagedNotificationEvent
, ordered by creation time in reverse chronological order (newest first). -
#list_managed_notification_configurations(params = {}) ⇒ Types::ListManagedNotificationConfigurationsResponse
Returns a list of Managed Notification Configurations according to specified filters, ordered by creation time in reverse chronological order (newest first).
-
#list_managed_notification_events(params = {}) ⇒ Types::ListManagedNotificationEventsResponse
Returns a list of Managed Notification Events according to specified filters, ordered by creation time in reverse chronological order (newest first).
-
#list_notification_configurations(params = {}) ⇒ Types::ListNotificationConfigurationsResponse
Returns a list of abbreviated
NotificationConfigurations
according to specified filters, in reverse chronological order (newest first). -
#list_notification_events(params = {}) ⇒ Types::ListNotificationEventsResponse
Returns a list of
NotificationEvents
according to specified filters, in reverse chronological order (newest first). -
#list_notification_hubs(params = {}) ⇒ Types::ListNotificationHubsResponse
Returns a list of
NotificationHubs
. -
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags for a specified Amazon Resource Name (ARN).
-
#register_notification_hub(params = {}) ⇒ Types::RegisterNotificationHubResponse
Registers a
NotificationConfiguration
in the specified Region. -
#tag_resource(params = {}) ⇒ Struct
Tags the resource with a tag key and value.
-
#untag_resource(params = {}) ⇒ Struct
Untags a resource with a specified Amazon Resource Name (ARN).
-
#update_event_rule(params = {}) ⇒ Types::UpdateEventRuleResponse
Updates an existing
EventRule
. -
#update_notification_configuration(params = {}) ⇒ Types::UpdateNotificationConfigurationResponse
Updates a
NotificationConfiguration
.
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.
467 468 469 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 467 def initialize(*args) super end |
Instance Method Details
#associate_channel(params = {}) ⇒ Struct
Associates a delivery Channel with a particular
NotificationConfiguration
. Supported Channels include Chatbot, the
Console Mobile Application, and emails (notifications-contacts).
505 506 507 508 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 505 def associate_channel(params = {}, = {}) req = build_request(:associate_channel, params) req.send_request() end |
#associate_managed_notification_account_contact(params = {}) ⇒ Struct
Associates an Account Contact with a particular
ManagedNotificationConfiguration
.
535 536 537 538 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 535 def associate_managed_notification_account_contact(params = {}, = {}) req = build_request(:associate_managed_notification_account_contact, params) req.send_request() end |
#associate_managed_notification_additional_channel(params = {}) ⇒ Struct
Associates an additional Channel with a particular
ManagedNotificationConfiguration
.
Supported Channels include Chatbot, the Console Mobile Application, and emails (notifications-contacts).
571 572 573 574 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 571 def associate_managed_notification_additional_channel(params = {}, = {}) req = build_request(:associate_managed_notification_additional_channel, params) req.send_request() end |
#create_event_rule(params = {}) ⇒ Types::CreateEventRuleResponse
Creates an EventRule
that is associated with a specified
NotificationConfiguration
.
656 657 658 659 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 656 def create_event_rule(params = {}, = {}) req = build_request(:create_event_rule, params) req.send_request() end |
#create_notification_configuration(params = {}) ⇒ Types::CreateNotificationConfigurationResponse
Creates a new NotificationConfiguration
.
720 721 722 723 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 720 def create_notification_configuration(params = {}, = {}) req = build_request(:create_notification_configuration, params) req.send_request() end |
#delete_event_rule(params = {}) ⇒ Struct
Deletes an EventRule
.
742 743 744 745 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 742 def delete_event_rule(params = {}, = {}) req = build_request(:delete_event_rule, params) req.send_request() end |
#delete_notification_configuration(params = {}) ⇒ Struct
Deletes a NotificationConfiguration
.
765 766 767 768 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 765 def delete_notification_configuration(params = {}, = {}) req = build_request(:delete_notification_configuration, params) req.send_request() end |
#deregister_notification_hub(params = {}) ⇒ Types::DeregisterNotificationHubResponse
Deregisters a NotificationConfiguration
in the specified Region.
NotificationHub
in the account.
NotificationEvents
stored in the deregistered
NotificationConfiguration
are no longer be visible. Recreating a new
NotificationConfiguration
in the same Region restores access to
those NotificationEvents
.
804 805 806 807 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 804 def deregister_notification_hub(params = {}, = {}) req = build_request(:deregister_notification_hub, params) req.send_request() end |
#disable_notifications_access_for_organization(params = {}) ⇒ Struct
Disables service trust between User Notifications and Amazon Web Services Organizations.
818 819 820 821 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 818 def disable_notifications_access_for_organization(params = {}, = {}) req = build_request(:disable_notifications_access_for_organization, params) req.send_request() end |
#disassociate_channel(params = {}) ⇒ Struct
Disassociates a Channel from a specified NotificationConfiguration
.
Supported Channels include Chatbot, the Console Mobile Application,
and emails (notifications-contacts).
846 847 848 849 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 846 def disassociate_channel(params = {}, = {}) req = build_request(:disassociate_channel, params) req.send_request() end |
#disassociate_managed_notification_account_contact(params = {}) ⇒ Struct
Disassociates an Account Contact with a particular
ManagedNotificationConfiguration
.
876 877 878 879 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 876 def disassociate_managed_notification_account_contact(params = {}, = {}) req = build_request(:disassociate_managed_notification_account_contact, params) req.send_request() end |
#disassociate_managed_notification_additional_channel(params = {}) ⇒ Struct
Disassociates an additional Channel from a particular
ManagedNotificationConfiguration
.
Supported Channels include Chatbot, the Console Mobile Application, and emails (notifications-contacts).
908 909 910 911 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 908 def disassociate_managed_notification_additional_channel(params = {}, = {}) req = build_request(:disassociate_managed_notification_additional_channel, params) req.send_request() end |
#enable_notifications_access_for_organization(params = {}) ⇒ Struct
Enables service trust between User Notifications and Amazon Web Services Organizations.
922 923 924 925 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 922 def enable_notifications_access_for_organization(params = {}, = {}) req = build_request(:enable_notifications_access_for_organization, params) req.send_request() end |
#get_event_rule(params = {}) ⇒ Types::GetEventRuleResponse
Returns a specified EventRule
.
970 971 972 973 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 970 def get_event_rule(params = {}, = {}) req = build_request(:get_event_rule, params) req.send_request() end |
#get_managed_notification_child_event(params = {}) ⇒ Types::GetManagedNotificationChildEventResponse
Returns the child event of a specific given
ManagedNotificationEvent
.
1036 1037 1038 1039 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1036 def get_managed_notification_child_event(params = {}, = {}) req = build_request(:get_managed_notification_child_event, params) req.send_request() end |
#get_managed_notification_configuration(params = {}) ⇒ Types::GetManagedNotificationConfigurationResponse
Returns a specified ManagedNotificationConfiguration
.
1073 1074 1075 1076 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1073 def get_managed_notification_configuration(params = {}, = {}) req = build_request(:get_managed_notification_configuration, params) req.send_request() end |
#get_managed_notification_event(params = {}) ⇒ Types::GetManagedNotificationEventResponse
Returns a specified ManagedNotificationEvent
.
1155 1156 1157 1158 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1155 def get_managed_notification_event(params = {}, = {}) req = build_request(:get_managed_notification_event, params) req.send_request() end |
#get_notification_configuration(params = {}) ⇒ Types::GetNotificationConfigurationResponse
Returns a specified NotificationConfiguration
.
1194 1195 1196 1197 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1194 def get_notification_configuration(params = {}, = {}) req = build_request(:get_notification_configuration, params) req.send_request() end |
#get_notification_event(params = {}) ⇒ Types::GetNotificationEventResponse
Returns a specified NotificationEvent
.
User Notifications stores notifications in the individual Regions you
register as notification hubs and the Region of the source event rule.
GetNotificationEvent
only returns notifications stored in the same
Region in which the action is called. User Notifications doesn't
backfill notifications to new Regions selected as notification hubs.
For this reason, we recommend that you make calls in your oldest
registered notification hub. For more information, see Notification
hubs in the Amazon Web Services User Notifications User Guide.
1306 1307 1308 1309 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1306 def get_notification_event(params = {}, = {}) req = build_request(:get_notification_event, params) req.send_request() end |
#get_notifications_access_for_organization(params = {}) ⇒ Types::GetNotificationsAccessForOrganizationResponse
Returns the AccessStatus of Service Trust Enablement for User Notifications and Amazon Web Services Organizations.
1326 1327 1328 1329 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1326 def get_notifications_access_for_organization(params = {}, = {}) req = build_request(:get_notifications_access_for_organization, params) req.send_request() end |
#list_channels(params = {}) ⇒ Types::ListChannelsResponse
Returns a list of Channels for a NotificationConfiguration
.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1370 1371 1372 1373 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1370 def list_channels(params = {}, = {}) req = build_request(:list_channels, params) req.send_request() end |
#list_event_rules(params = {}) ⇒ Types::ListEventRulesResponse
Returns a list of EventRules
according to specified filters, in
reverse chronological order (newest first).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1426 1427 1428 1429 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1426 def list_event_rules(params = {}, = {}) req = build_request(:list_event_rules, params) req.send_request() end |
#list_managed_notification_channel_associations(params = {}) ⇒ Types::ListManagedNotificationChannelAssociationsResponse
Returns a list of Account contacts and Channels associated with a
ManagedNotificationConfiguration
, in paginated format.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1473 1474 1475 1476 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1473 def list_managed_notification_channel_associations(params = {}, = {}) req = build_request(:list_managed_notification_channel_associations, params) req.send_request() end |
#list_managed_notification_child_events(params = {}) ⇒ Types::ListManagedNotificationChildEventsResponse
Returns a list of ManagedNotificationChildEvents
for a specified
aggregate ManagedNotificationEvent
, ordered by creation time in
reverse chronological order (newest first).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1557 1558 1559 1560 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1557 def list_managed_notification_child_events(params = {}, = {}) req = build_request(:list_managed_notification_child_events, params) req.send_request() end |
#list_managed_notification_configurations(params = {}) ⇒ Types::ListManagedNotificationConfigurationsResponse
Returns a list of Managed Notification Configurations according to specified filters, ordered by creation time in reverse chronological order (newest first).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1606 1607 1608 1609 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1606 def list_managed_notification_configurations(params = {}, = {}) req = build_request(:list_managed_notification_configurations, params) req.send_request() end |
#list_managed_notification_events(params = {}) ⇒ Types::ListManagedNotificationEventsResponse
Returns a list of Managed Notification Events according to specified filters, ordered by creation time in reverse chronological order (newest first).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1711 1712 1713 1714 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1711 def list_managed_notification_events(params = {}, = {}) req = build_request(:list_managed_notification_events, params) req.send_request() end |
#list_notification_configurations(params = {}) ⇒ Types::ListNotificationConfigurationsResponse
Returns a list of abbreviated NotificationConfigurations
according
to specified filters, in reverse chronological order (newest first).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1802 1803 1804 1805 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1802 def list_notification_configurations(params = {}, = {}) req = build_request(:list_notification_configurations, params) req.send_request() end |
#list_notification_events(params = {}) ⇒ Types::ListNotificationEventsResponse
Returns a list of NotificationEvents
according to specified filters,
in reverse chronological order (newest first).
User Notifications stores notifications in the individual Regions you register as notification hubs and the Region of the source event rule. ListNotificationEvents only returns notifications stored in the same Region in which the action is called. User Notifications doesn't backfill notifications to new Regions selected as notification hubs. For this reason, we recommend that you make calls in your oldest registered notification hub. For more information, see Notification hubs in the Amazon Web Services User Notifications User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1924 1925 1926 1927 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1924 def list_notification_events(params = {}, = {}) req = build_request(:list_notification_events, params) req.send_request() end |
#list_notification_hubs(params = {}) ⇒ Types::ListNotificationHubsResponse
Returns a list of NotificationHubs
.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1966 1967 1968 1969 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1966 def list_notification_hubs(params = {}, = {}) req = build_request(:list_notification_hubs, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags for a specified Amazon Resource Name (ARN).
For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide.
NotificationConfigurations
.
2007 2008 2009 2010 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 2007 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#register_notification_hub(params = {}) ⇒ Types::RegisterNotificationHubResponse
Registers a NotificationConfiguration
in the specified Region.
There is a maximum of one NotificationConfiguration
per Region. You
can have a maximum of 3 NotificationHub
resources at a time.
2045 2046 2047 2048 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 2045 def register_notification_hub(params = {}, = {}) req = build_request(:register_notification_hub, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Tags the resource with a tag key and value.
For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide.
NotificationConfigurations
.
2086 2087 2088 2089 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 2086 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Untags a resource with a specified Amazon Resource Name (ARN).
For more information, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide.
2120 2121 2122 2123 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 2120 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_event_rule(params = {}) ⇒ Types::UpdateEventRuleResponse
Updates an existing EventRule
.
2171 2172 2173 2174 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 2171 def update_event_rule(params = {}, = {}) req = build_request(:update_event_rule, params) req.send_request() end |
#update_notification_configuration(params = {}) ⇒ Types::UpdateNotificationConfigurationResponse
Updates a NotificationConfiguration
.
2230 2231 2232 2233 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 2230 def update_notification_configuration(params = {}, = {}) req = build_request(:update_notification_configuration, params) req.send_request() end |