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.
-
#create_event_rule(params = {}) ⇒ Types::CreateEventRuleResponse
Creates an [EventRule][1] that is associated with a specified Notification Configuration.
-
#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 NotificationHub in the specified Region.
-
#disassociate_channel(params = {}) ⇒ Struct
Disassociates a Channel from a specified NotificationConfiguration.
-
#get_event_rule(params = {}) ⇒ Types::GetEventRuleResponse
Returns a specified EventRule.
-
#get_notification_configuration(params = {}) ⇒ Types::GetNotificationConfigurationResponse
Returns a specified NotificationConfiguration.
-
#get_notification_event(params = {}) ⇒ Types::GetNotificationEventResponse
Returns a specified NotificationEvent.
-
#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_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 NotificationHub 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.
444 445 446 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 444 def initialize(*args) super end |
Instance Method Details
#associate_channel(params = {}) ⇒ Struct
Associates a delivery Channel with a particular NotificationConfiguration. Supported Channels include AWS Chatbot, the AWS Console Mobile Application, and emails (notifications-contacts).
482 483 484 485 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 482 def associate_channel(params = {}, = {}) req = build_request(:associate_channel, params) req.send_request() end |
#create_event_rule(params = {}) ⇒ Types::CreateEventRuleResponse
Creates an EventRule that is associated with a specified Notification Configuration.
564 565 566 567 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 564 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.
628 629 630 631 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 628 def create_notification_configuration(params = {}, = {}) req = build_request(:create_notification_configuration, params) req.send_request() end |
#delete_event_rule(params = {}) ⇒ Struct
Deletes an EventRule.
650 651 652 653 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 650 def delete_event_rule(params = {}, = {}) req = build_request(:delete_event_rule, params) req.send_request() end |
#delete_notification_configuration(params = {}) ⇒ Struct
Deletes a NotificationConfiguration.
673 674 675 676 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 673 def delete_notification_configuration(params = {}, = {}) req = build_request(:delete_notification_configuration, params) req.send_request() end |
#deregister_notification_hub(params = {}) ⇒ Types::DeregisterNotificationHubResponse
Deregisters a NotificationHub in the specified Region.
711 712 713 714 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 711 def deregister_notification_hub(params = {}, = {}) req = build_request(:deregister_notification_hub, params) req.send_request() end |
#disassociate_channel(params = {}) ⇒ Struct
Disassociates a Channel from a specified NotificationConfiguration. Supported Channels include AWS Chatbot, the AWS Console Mobile Application, and emails (notifications-contacts).
739 740 741 742 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 739 def disassociate_channel(params = {}, = {}) req = build_request(:disassociate_channel, params) req.send_request() end |
#get_event_rule(params = {}) ⇒ Types::GetEventRuleResponse
Returns a specified EventRule.
787 788 789 790 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 787 def get_event_rule(params = {}, = {}) req = build_request(:get_event_rule, params) req.send_request() end |
#get_notification_configuration(params = {}) ⇒ Types::GetNotificationConfigurationResponse
Returns a specified NotificationConfiguration.
826 827 828 829 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 826 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 AWS User Notifications User Guide.
917 918 919 920 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 917 def get_notification_event(params = {}, = {}) req = build_request(:get_notification_event, 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.
960 961 962 963 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 960 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.
1016 1017 1018 1019 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1016 def list_event_rules(params = {}, = {}) req = build_request(:list_event_rules, 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.
1106 1107 1108 1109 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1106 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 AWS User Notifications User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1206 1207 1208 1209 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1206 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.
1248 1249 1250 1251 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1248 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 AWS resources in the Tagging AWS Resources User Guide.
1288 1289 1290 1291 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1288 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#register_notification_hub(params = {}) ⇒ Types::RegisterNotificationHubResponse
Registers a NotificationHub in the specified Region.
There is a maximum of one NotificationHub per Region. You can have a maximum of 3 NotificationHubs at a time.
1326 1327 1328 1329 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1326 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 AWS resources in the Tagging AWS Resources User Guide.
1366 1367 1368 1369 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1366 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 AWS resources in the Tagging AWS Resources User Guide.
1399 1400 1401 1402 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1399 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_event_rule(params = {}) ⇒ Types::UpdateEventRuleResponse
Updates an existing EventRule.
1449 1450 1451 1452 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1449 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.
1517 1518 1519 1520 |
# File 'gems/aws-sdk-notifications/lib/aws-sdk-notifications/client.rb', line 1517 def update_notification_configuration(params = {}, = {}) req = build_request(:update_notification_configuration, params) req.send_request() end |