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