aws-sdk-sns 1.67.0 → 1.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/aws-sdk-sns.rb CHANGED
@@ -11,20 +11,7 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
- require_relative 'aws-sdk-sns/types'
15
- require_relative 'aws-sdk-sns/client_api'
16
- require_relative 'aws-sdk-sns/plugins/endpoints.rb'
17
- require_relative 'aws-sdk-sns/client'
18
- require_relative 'aws-sdk-sns/errors'
19
- require_relative 'aws-sdk-sns/resource'
20
- require_relative 'aws-sdk-sns/endpoint_parameters'
21
- require_relative 'aws-sdk-sns/endpoint_provider'
22
- require_relative 'aws-sdk-sns/endpoints'
23
- require_relative 'aws-sdk-sns/platform_application'
24
- require_relative 'aws-sdk-sns/platform_endpoint'
25
- require_relative 'aws-sdk-sns/subscription'
26
- require_relative 'aws-sdk-sns/topic'
27
- require_relative 'aws-sdk-sns/customizations'
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:sns)
28
15
 
29
16
  # This module provides support for Amazon Simple Notification Service. This module is available in the
30
17
  # `aws-sdk-sns` gem.
@@ -55,7 +42,24 @@ require_relative 'aws-sdk-sns/customizations'
55
42
  #
56
43
  # @!group service
57
44
  module Aws::SNS
45
+ autoload :Types, 'aws-sdk-sns/types'
46
+ autoload :ClientApi, 'aws-sdk-sns/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-sns/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-sns/client'
51
+ autoload :Errors, 'aws-sdk-sns/errors'
52
+ autoload :Resource, 'aws-sdk-sns/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-sns/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-sns/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-sns/endpoints'
56
+ autoload :PlatformApplication, 'aws-sdk-sns/platform_application'
57
+ autoload :PlatformEndpoint, 'aws-sdk-sns/platform_endpoint'
58
+ autoload :Subscription, 'aws-sdk-sns/subscription'
59
+ autoload :Topic, 'aws-sdk-sns/topic'
58
60
 
59
- GEM_VERSION = '1.67.0'
61
+ GEM_VERSION = '1.92.0'
60
62
 
61
63
  end
64
+
65
+ require_relative 'aws-sdk-sns/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,528 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SNS
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> instance
75
+ | (?Hash[Symbol, untyped]) -> instance
76
+
77
+
78
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#add_permission-instance_method
79
+ def add_permission: (
80
+ topic_arn: ::String,
81
+ label: ::String,
82
+ aws_account_id: Array[::String],
83
+ action_name: Array[::String]
84
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
85
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
86
+
87
+ interface _CheckIfPhoneNumberIsOptedOutResponseSuccess
88
+ include ::Seahorse::Client::_ResponseSuccess[Types::CheckIfPhoneNumberIsOptedOutResponse]
89
+ def is_opted_out: () -> bool
90
+ end
91
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#check_if_phone_number_is_opted_out-instance_method
92
+ def check_if_phone_number_is_opted_out: (
93
+ phone_number: ::String
94
+ ) -> _CheckIfPhoneNumberIsOptedOutResponseSuccess
95
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CheckIfPhoneNumberIsOptedOutResponseSuccess
96
+
97
+ interface _ConfirmSubscriptionResponseSuccess
98
+ include ::Seahorse::Client::_ResponseSuccess[Types::ConfirmSubscriptionResponse]
99
+ def subscription_arn: () -> ::String
100
+ end
101
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#confirm_subscription-instance_method
102
+ def confirm_subscription: (
103
+ topic_arn: ::String,
104
+ token: ::String,
105
+ ?authenticate_on_unsubscribe: ::String
106
+ ) -> _ConfirmSubscriptionResponseSuccess
107
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ConfirmSubscriptionResponseSuccess
108
+
109
+ interface _CreatePlatformApplicationResponseSuccess
110
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreatePlatformApplicationResponse]
111
+ def platform_application_arn: () -> ::String
112
+ end
113
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#create_platform_application-instance_method
114
+ def create_platform_application: (
115
+ name: ::String,
116
+ platform: ::String,
117
+ attributes: Hash[::String, ::String]
118
+ ) -> _CreatePlatformApplicationResponseSuccess
119
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePlatformApplicationResponseSuccess
120
+
121
+ interface _CreatePlatformEndpointResponseSuccess
122
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateEndpointResponse]
123
+ def endpoint_arn: () -> ::String
124
+ end
125
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#create_platform_endpoint-instance_method
126
+ def create_platform_endpoint: (
127
+ platform_application_arn: ::String,
128
+ token: ::String,
129
+ ?custom_user_data: ::String,
130
+ ?attributes: Hash[::String, ::String]
131
+ ) -> _CreatePlatformEndpointResponseSuccess
132
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePlatformEndpointResponseSuccess
133
+
134
+ interface _CreateSMSSandboxPhoneNumberResponseSuccess
135
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateSMSSandboxPhoneNumberResult]
136
+ end
137
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#create_sms_sandbox_phone_number-instance_method
138
+ def create_sms_sandbox_phone_number: (
139
+ phone_number: ::String,
140
+ ?language_code: ("en-US" | "en-GB" | "es-419" | "es-ES" | "de-DE" | "fr-CA" | "fr-FR" | "it-IT" | "ja-JP" | "pt-BR" | "kr-KR" | "zh-CN" | "zh-TW")
141
+ ) -> _CreateSMSSandboxPhoneNumberResponseSuccess
142
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSMSSandboxPhoneNumberResponseSuccess
143
+
144
+ interface _CreateTopicResponseSuccess
145
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateTopicResponse]
146
+ def topic_arn: () -> ::String
147
+ end
148
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#create_topic-instance_method
149
+ def create_topic: (
150
+ name: ::String,
151
+ ?attributes: Hash[::String, ::String],
152
+ ?tags: Array[
153
+ {
154
+ key: ::String,
155
+ value: ::String
156
+ },
157
+ ],
158
+ ?data_protection_policy: ::String
159
+ ) -> _CreateTopicResponseSuccess
160
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTopicResponseSuccess
161
+
162
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#delete_endpoint-instance_method
163
+ def delete_endpoint: (
164
+ endpoint_arn: ::String
165
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
166
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
167
+
168
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#delete_platform_application-instance_method
169
+ def delete_platform_application: (
170
+ platform_application_arn: ::String
171
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
172
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
173
+
174
+ interface _DeleteSMSSandboxPhoneNumberResponseSuccess
175
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSMSSandboxPhoneNumberResult]
176
+ end
177
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#delete_sms_sandbox_phone_number-instance_method
178
+ def delete_sms_sandbox_phone_number: (
179
+ phone_number: ::String
180
+ ) -> _DeleteSMSSandboxPhoneNumberResponseSuccess
181
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSMSSandboxPhoneNumberResponseSuccess
182
+
183
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#delete_topic-instance_method
184
+ def delete_topic: (
185
+ topic_arn: ::String
186
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
187
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
188
+
189
+ interface _GetDataProtectionPolicyResponseSuccess
190
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetDataProtectionPolicyResponse]
191
+ def data_protection_policy: () -> ::String
192
+ end
193
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#get_data_protection_policy-instance_method
194
+ def get_data_protection_policy: (
195
+ resource_arn: ::String
196
+ ) -> _GetDataProtectionPolicyResponseSuccess
197
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDataProtectionPolicyResponseSuccess
198
+
199
+ interface _GetEndpointAttributesResponseSuccess
200
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetEndpointAttributesResponse]
201
+ def attributes: () -> ::Hash[::String, ::String]
202
+ end
203
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#get_endpoint_attributes-instance_method
204
+ def get_endpoint_attributes: (
205
+ endpoint_arn: ::String
206
+ ) -> _GetEndpointAttributesResponseSuccess
207
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEndpointAttributesResponseSuccess
208
+
209
+ interface _GetPlatformApplicationAttributesResponseSuccess
210
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPlatformApplicationAttributesResponse]
211
+ def attributes: () -> ::Hash[::String, ::String]
212
+ end
213
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#get_platform_application_attributes-instance_method
214
+ def get_platform_application_attributes: (
215
+ platform_application_arn: ::String
216
+ ) -> _GetPlatformApplicationAttributesResponseSuccess
217
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPlatformApplicationAttributesResponseSuccess
218
+
219
+ interface _GetSMSAttributesResponseSuccess
220
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetSMSAttributesResponse]
221
+ def attributes: () -> ::Hash[::String, ::String]
222
+ end
223
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#get_sms_attributes-instance_method
224
+ def get_sms_attributes: (
225
+ ?attributes: Array[::String]
226
+ ) -> _GetSMSAttributesResponseSuccess
227
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSMSAttributesResponseSuccess
228
+
229
+ interface _GetSMSSandboxAccountStatusResponseSuccess
230
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetSMSSandboxAccountStatusResult]
231
+ def is_in_sandbox: () -> bool
232
+ end
233
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#get_sms_sandbox_account_status-instance_method
234
+ def get_sms_sandbox_account_status: (
235
+ ) -> _GetSMSSandboxAccountStatusResponseSuccess
236
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSMSSandboxAccountStatusResponseSuccess
237
+
238
+ interface _GetSubscriptionAttributesResponseSuccess
239
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetSubscriptionAttributesResponse]
240
+ def attributes: () -> ::Hash[::String, ::String]
241
+ end
242
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#get_subscription_attributes-instance_method
243
+ def get_subscription_attributes: (
244
+ subscription_arn: ::String
245
+ ) -> _GetSubscriptionAttributesResponseSuccess
246
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSubscriptionAttributesResponseSuccess
247
+
248
+ interface _GetTopicAttributesResponseSuccess
249
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetTopicAttributesResponse]
250
+ def attributes: () -> ::Hash[::String, ::String]
251
+ end
252
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#get_topic_attributes-instance_method
253
+ def get_topic_attributes: (
254
+ topic_arn: ::String
255
+ ) -> _GetTopicAttributesResponseSuccess
256
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTopicAttributesResponseSuccess
257
+
258
+ interface _ListEndpointsByPlatformApplicationResponseSuccess
259
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListEndpointsByPlatformApplicationResponse]
260
+ def endpoints: () -> ::Array[Types::Endpoint]
261
+ def next_token: () -> ::String
262
+ end
263
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_endpoints_by_platform_application-instance_method
264
+ def list_endpoints_by_platform_application: (
265
+ platform_application_arn: ::String,
266
+ ?next_token: ::String
267
+ ) -> _ListEndpointsByPlatformApplicationResponseSuccess
268
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEndpointsByPlatformApplicationResponseSuccess
269
+
270
+ interface _ListOriginationNumbersResponseSuccess
271
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListOriginationNumbersResult]
272
+ def next_token: () -> ::String
273
+ def phone_numbers: () -> ::Array[Types::PhoneNumberInformation]
274
+ end
275
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_origination_numbers-instance_method
276
+ def list_origination_numbers: (
277
+ ?next_token: ::String,
278
+ ?max_results: ::Integer
279
+ ) -> _ListOriginationNumbersResponseSuccess
280
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListOriginationNumbersResponseSuccess
281
+
282
+ interface _ListPhoneNumbersOptedOutResponseSuccess
283
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPhoneNumbersOptedOutResponse]
284
+ def phone_numbers: () -> ::Array[::String]
285
+ def next_token: () -> ::String
286
+ end
287
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_phone_numbers_opted_out-instance_method
288
+ def list_phone_numbers_opted_out: (
289
+ ?next_token: ::String
290
+ ) -> _ListPhoneNumbersOptedOutResponseSuccess
291
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPhoneNumbersOptedOutResponseSuccess
292
+
293
+ interface _ListPlatformApplicationsResponseSuccess
294
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPlatformApplicationsResponse]
295
+ def platform_applications: () -> ::Array[Types::PlatformApplication]
296
+ def next_token: () -> ::String
297
+ end
298
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_platform_applications-instance_method
299
+ def list_platform_applications: (
300
+ ?next_token: ::String
301
+ ) -> _ListPlatformApplicationsResponseSuccess
302
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPlatformApplicationsResponseSuccess
303
+
304
+ interface _ListSMSSandboxPhoneNumbersResponseSuccess
305
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSMSSandboxPhoneNumbersResult]
306
+ def phone_numbers: () -> ::Array[Types::SMSSandboxPhoneNumber]
307
+ def next_token: () -> ::String
308
+ end
309
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_sms_sandbox_phone_numbers-instance_method
310
+ def list_sms_sandbox_phone_numbers: (
311
+ ?next_token: ::String,
312
+ ?max_results: ::Integer
313
+ ) -> _ListSMSSandboxPhoneNumbersResponseSuccess
314
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSMSSandboxPhoneNumbersResponseSuccess
315
+
316
+ interface _ListSubscriptionsResponseSuccess
317
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSubscriptionsResponse]
318
+ def subscriptions: () -> ::Array[Types::Subscription]
319
+ def next_token: () -> ::String
320
+ end
321
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_subscriptions-instance_method
322
+ def list_subscriptions: (
323
+ ?next_token: ::String
324
+ ) -> _ListSubscriptionsResponseSuccess
325
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSubscriptionsResponseSuccess
326
+
327
+ interface _ListSubscriptionsByTopicResponseSuccess
328
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSubscriptionsByTopicResponse]
329
+ def subscriptions: () -> ::Array[Types::Subscription]
330
+ def next_token: () -> ::String
331
+ end
332
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_subscriptions_by_topic-instance_method
333
+ def list_subscriptions_by_topic: (
334
+ topic_arn: ::String,
335
+ ?next_token: ::String
336
+ ) -> _ListSubscriptionsByTopicResponseSuccess
337
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSubscriptionsByTopicResponseSuccess
338
+
339
+ interface _ListTagsForResourceResponseSuccess
340
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
341
+ def tags: () -> ::Array[Types::Tag]
342
+ end
343
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_tags_for_resource-instance_method
344
+ def list_tags_for_resource: (
345
+ resource_arn: ::String
346
+ ) -> _ListTagsForResourceResponseSuccess
347
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
348
+
349
+ interface _ListTopicsResponseSuccess
350
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTopicsResponse]
351
+ def topics: () -> ::Array[Types::Topic]
352
+ def next_token: () -> ::String
353
+ end
354
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#list_topics-instance_method
355
+ def list_topics: (
356
+ ?next_token: ::String
357
+ ) -> _ListTopicsResponseSuccess
358
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTopicsResponseSuccess
359
+
360
+ interface _OptInPhoneNumberResponseSuccess
361
+ include ::Seahorse::Client::_ResponseSuccess[Types::OptInPhoneNumberResponse]
362
+ end
363
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#opt_in_phone_number-instance_method
364
+ def opt_in_phone_number: (
365
+ phone_number: ::String
366
+ ) -> _OptInPhoneNumberResponseSuccess
367
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _OptInPhoneNumberResponseSuccess
368
+
369
+ interface _PublishResponseSuccess
370
+ include ::Seahorse::Client::_ResponseSuccess[Types::PublishResponse]
371
+ def message_id: () -> ::String
372
+ def sequence_number: () -> ::String
373
+ end
374
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#publish-instance_method
375
+ def publish: (
376
+ ?topic_arn: ::String,
377
+ ?target_arn: ::String,
378
+ ?phone_number: ::String,
379
+ message: ::String,
380
+ ?subject: ::String,
381
+ ?message_structure: ::String,
382
+ ?message_attributes: Hash[::String, {
383
+ data_type: ::String,
384
+ string_value: ::String?,
385
+ binary_value: ::String?
386
+ }],
387
+ ?message_deduplication_id: ::String,
388
+ ?message_group_id: ::String
389
+ ) -> _PublishResponseSuccess
390
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PublishResponseSuccess
391
+
392
+ interface _PublishBatchResponseSuccess
393
+ include ::Seahorse::Client::_ResponseSuccess[Types::PublishBatchResponse]
394
+ def successful: () -> ::Array[Types::PublishBatchResultEntry]
395
+ def failed: () -> ::Array[Types::BatchResultErrorEntry]
396
+ end
397
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#publish_batch-instance_method
398
+ def publish_batch: (
399
+ topic_arn: ::String,
400
+ publish_batch_request_entries: Array[
401
+ {
402
+ id: ::String,
403
+ message: ::String,
404
+ subject: ::String?,
405
+ message_structure: ::String?,
406
+ message_attributes: Hash[::String, {
407
+ data_type: ::String,
408
+ string_value: ::String?,
409
+ binary_value: ::String?
410
+ }]?,
411
+ message_deduplication_id: ::String?,
412
+ message_group_id: ::String?
413
+ },
414
+ ]
415
+ ) -> _PublishBatchResponseSuccess
416
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PublishBatchResponseSuccess
417
+
418
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#put_data_protection_policy-instance_method
419
+ def put_data_protection_policy: (
420
+ resource_arn: ::String,
421
+ data_protection_policy: ::String
422
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
423
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
424
+
425
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#remove_permission-instance_method
426
+ def remove_permission: (
427
+ topic_arn: ::String,
428
+ label: ::String
429
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
430
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
431
+
432
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#set_endpoint_attributes-instance_method
433
+ def set_endpoint_attributes: (
434
+ endpoint_arn: ::String,
435
+ attributes: Hash[::String, ::String]
436
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
437
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
438
+
439
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#set_platform_application_attributes-instance_method
440
+ def set_platform_application_attributes: (
441
+ platform_application_arn: ::String,
442
+ attributes: Hash[::String, ::String]
443
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
444
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
445
+
446
+ interface _SetSMSAttributesResponseSuccess
447
+ include ::Seahorse::Client::_ResponseSuccess[Types::SetSMSAttributesResponse]
448
+ end
449
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#set_sms_attributes-instance_method
450
+ def set_sms_attributes: (
451
+ attributes: Hash[::String, ::String]
452
+ ) -> _SetSMSAttributesResponseSuccess
453
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SetSMSAttributesResponseSuccess
454
+
455
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#set_subscription_attributes-instance_method
456
+ def set_subscription_attributes: (
457
+ subscription_arn: ::String,
458
+ attribute_name: ::String,
459
+ ?attribute_value: ::String
460
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
461
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
462
+
463
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#set_topic_attributes-instance_method
464
+ def set_topic_attributes: (
465
+ topic_arn: ::String,
466
+ attribute_name: ::String,
467
+ ?attribute_value: ::String
468
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
469
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
470
+
471
+ interface _SubscribeResponseSuccess
472
+ include ::Seahorse::Client::_ResponseSuccess[Types::SubscribeResponse]
473
+ def subscription_arn: () -> ::String
474
+ end
475
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#subscribe-instance_method
476
+ def subscribe: (
477
+ topic_arn: ::String,
478
+ protocol: ::String,
479
+ ?endpoint: ::String,
480
+ ?attributes: Hash[::String, ::String],
481
+ ?return_subscription_arn: bool
482
+ ) -> _SubscribeResponseSuccess
483
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubscribeResponseSuccess
484
+
485
+ interface _TagResourceResponseSuccess
486
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
487
+ end
488
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#tag_resource-instance_method
489
+ def tag_resource: (
490
+ resource_arn: ::String,
491
+ tags: Array[
492
+ {
493
+ key: ::String,
494
+ value: ::String
495
+ },
496
+ ]
497
+ ) -> _TagResourceResponseSuccess
498
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
499
+
500
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#unsubscribe-instance_method
501
+ def unsubscribe: (
502
+ subscription_arn: ::String
503
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
504
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
505
+
506
+ interface _UntagResourceResponseSuccess
507
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
508
+ end
509
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#untag_resource-instance_method
510
+ def untag_resource: (
511
+ resource_arn: ::String,
512
+ tag_keys: Array[::String]
513
+ ) -> _UntagResourceResponseSuccess
514
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
515
+
516
+ interface _VerifySMSSandboxPhoneNumberResponseSuccess
517
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifySMSSandboxPhoneNumberResult]
518
+ end
519
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Client.html#verify_sms_sandbox_phone_number-instance_method
520
+ def verify_sms_sandbox_phone_number: (
521
+ phone_number: ::String,
522
+ one_time_password: ::String
523
+ ) -> _VerifySMSSandboxPhoneNumberResponseSuccess
524
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifySMSSandboxPhoneNumberResponseSuccess
525
+ end
526
+ end
527
+ end
528
+