aws-sdk-notificationscontacts 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-notificationscontacts/client.rb +797 -0
- data/lib/aws-sdk-notificationscontacts/client_api.rb +326 -0
- data/lib/aws-sdk-notificationscontacts/customizations.rb +0 -0
- data/lib/aws-sdk-notificationscontacts/endpoint_parameters.rb +59 -0
- data/lib/aws-sdk-notificationscontacts/endpoint_provider.rb +35 -0
- data/lib/aws-sdk-notificationscontacts/endpoints.rb +20 -0
- data/lib/aws-sdk-notificationscontacts/errors.rb +227 -0
- data/lib/aws-sdk-notificationscontacts/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-notificationscontacts/resource.rb +26 -0
- data/lib/aws-sdk-notificationscontacts/types.rb +481 -0
- data/lib/aws-sdk-notificationscontacts/waiters.rb +15 -0
- data/lib/aws-sdk-notificationscontacts.rb +62 -0
- data/sig/client.rbs +172 -0
- data/sig/errors.rbs +50 -0
- data/sig/resource.rbs +82 -0
- data/sig/types.rbs +162 -0
- data/sig/waiters.rbs +13 -0
- metadata +100 -0
@@ -0,0 +1,77 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::NotificationsContacts
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::NotificationsContacts::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::NotificationsContacts::EndpointParameters`.
|
22
|
+
DOCS
|
23
|
+
Aws::NotificationsContacts::EndpointProvider.new
|
24
|
+
end
|
25
|
+
|
26
|
+
# @api private
|
27
|
+
class Handler < Seahorse::Client::Handler
|
28
|
+
def call(context)
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = Aws::NotificationsContacts::Endpoints.parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
|
36
|
+
context[:endpoint_params] = params
|
37
|
+
context[:endpoint_properties] = endpoint.properties
|
38
|
+
end
|
39
|
+
|
40
|
+
context[:auth_scheme] =
|
41
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
42
|
+
|
43
|
+
with_metrics(context) { @handler.call(context) }
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def with_metrics(context, &block)
|
49
|
+
metrics = []
|
50
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
51
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
|
+
metrics << 'SIGV4A_SIGNING'
|
53
|
+
end
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
56
|
+
end
|
57
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
58
|
+
end
|
59
|
+
|
60
|
+
def apply_endpoint_headers(context, headers)
|
61
|
+
headers.each do |key, values|
|
62
|
+
value = values
|
63
|
+
.compact
|
64
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
65
|
+
.join(',')
|
66
|
+
|
67
|
+
context.http_request.headers[key] = value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def add_handlers(handlers, _config)
|
73
|
+
handlers.add(Handler, step: :build, priority: 75)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::NotificationsContacts
|
11
|
+
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
# @param options ({})
|
15
|
+
# @option options [Client] :client
|
16
|
+
def initialize(options = {})
|
17
|
+
@client = options[:client] || Client.new(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Client]
|
21
|
+
def client
|
22
|
+
@client
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,481 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::NotificationsContacts
|
11
|
+
module Types
|
12
|
+
|
13
|
+
# You do not have sufficient access to perform this action.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/AccessDeniedException AWS API Documentation
|
19
|
+
#
|
20
|
+
class AccessDeniedException < Struct.new(
|
21
|
+
:message)
|
22
|
+
SENSITIVE = []
|
23
|
+
include Aws::Structure
|
24
|
+
end
|
25
|
+
|
26
|
+
# @!attribute [rw] arn
|
27
|
+
# The Amazon Resource Name (ARN) of the resource.
|
28
|
+
# @return [String]
|
29
|
+
#
|
30
|
+
# @!attribute [rw] code
|
31
|
+
# The activation code for this email contact.
|
32
|
+
#
|
33
|
+
# An email contact has a maximum of five activation attempts.
|
34
|
+
# Activation codes expire after 12 hours and are generated by the
|
35
|
+
# [SendActivationCode][1] API action.
|
36
|
+
#
|
37
|
+
#
|
38
|
+
#
|
39
|
+
# [1]: https://docs.aws.amazon.com/notificationscontacts/latest/APIReference/API_SendActivationCode.html
|
40
|
+
# @return [String]
|
41
|
+
#
|
42
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ActivateEmailContactRequest AWS API Documentation
|
43
|
+
#
|
44
|
+
class ActivateEmailContactRequest < Struct.new(
|
45
|
+
:arn,
|
46
|
+
:code)
|
47
|
+
SENSITIVE = [:code]
|
48
|
+
include Aws::Structure
|
49
|
+
end
|
50
|
+
|
51
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ActivateEmailContactResponse AWS API Documentation
|
52
|
+
#
|
53
|
+
class ActivateEmailContactResponse < Aws::EmptyStructure; end
|
54
|
+
|
55
|
+
# Updating or deleting a resource can cause an inconsistent state.
|
56
|
+
#
|
57
|
+
# @!attribute [rw] message
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
# @!attribute [rw] resource_id
|
61
|
+
# The resource ID that prompted the conflict error.
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
# @!attribute [rw] resource_type
|
65
|
+
# The resource type that prompted the conflict error.
|
66
|
+
# @return [String]
|
67
|
+
#
|
68
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ConflictException AWS API Documentation
|
69
|
+
#
|
70
|
+
class ConflictException < Struct.new(
|
71
|
+
:message,
|
72
|
+
:resource_id,
|
73
|
+
:resource_type)
|
74
|
+
SENSITIVE = []
|
75
|
+
include Aws::Structure
|
76
|
+
end
|
77
|
+
|
78
|
+
# @!attribute [rw] name
|
79
|
+
# The name of the email contact.
|
80
|
+
# @return [String]
|
81
|
+
#
|
82
|
+
# @!attribute [rw] email_address
|
83
|
+
# The email address this email contact points to. The activation email
|
84
|
+
# and any subscribed emails are sent here.
|
85
|
+
#
|
86
|
+
# <note markdown="1"> This email address can't receive emails until it's activated.
|
87
|
+
#
|
88
|
+
# </note>
|
89
|
+
# @return [String]
|
90
|
+
#
|
91
|
+
# @!attribute [rw] tags
|
92
|
+
# A map of tags assigned to a resource. A tag is a string-to-string
|
93
|
+
# map of key-value pairs.
|
94
|
+
# @return [Hash<String,String>]
|
95
|
+
#
|
96
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/CreateEmailContactRequest AWS API Documentation
|
97
|
+
#
|
98
|
+
class CreateEmailContactRequest < Struct.new(
|
99
|
+
:name,
|
100
|
+
:email_address,
|
101
|
+
:tags)
|
102
|
+
SENSITIVE = [:name]
|
103
|
+
include Aws::Structure
|
104
|
+
end
|
105
|
+
|
106
|
+
# @!attribute [rw] arn
|
107
|
+
# The Amazon Resource Name (ARN) of the resource.
|
108
|
+
# @return [String]
|
109
|
+
#
|
110
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/CreateEmailContactResponse AWS API Documentation
|
111
|
+
#
|
112
|
+
class CreateEmailContactResponse < Struct.new(
|
113
|
+
:arn)
|
114
|
+
SENSITIVE = []
|
115
|
+
include Aws::Structure
|
116
|
+
end
|
117
|
+
|
118
|
+
# @!attribute [rw] arn
|
119
|
+
# The Amazon Resource Name (ARN) of the resource.
|
120
|
+
# @return [String]
|
121
|
+
#
|
122
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/DeleteEmailContactRequest AWS API Documentation
|
123
|
+
#
|
124
|
+
class DeleteEmailContactRequest < Struct.new(
|
125
|
+
:arn)
|
126
|
+
SENSITIVE = []
|
127
|
+
include Aws::Structure
|
128
|
+
end
|
129
|
+
|
130
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/DeleteEmailContactResponse AWS API Documentation
|
131
|
+
#
|
132
|
+
class DeleteEmailContactResponse < Aws::EmptyStructure; end
|
133
|
+
|
134
|
+
# An email contact.
|
135
|
+
#
|
136
|
+
# @!attribute [rw] arn
|
137
|
+
# The Amazon Resource Name (ARN) of the email contact.
|
138
|
+
# @return [String]
|
139
|
+
#
|
140
|
+
# @!attribute [rw] name
|
141
|
+
# The name of the email contact.
|
142
|
+
# @return [String]
|
143
|
+
#
|
144
|
+
# @!attribute [rw] address
|
145
|
+
# The email address this email contact points to. The activation email
|
146
|
+
# and any subscribed emails are sent here.
|
147
|
+
# @return [String]
|
148
|
+
#
|
149
|
+
# @!attribute [rw] status
|
150
|
+
# The status of the email contact. Only activated email contacts
|
151
|
+
# receive emails.
|
152
|
+
# @return [String]
|
153
|
+
#
|
154
|
+
# @!attribute [rw] creation_time
|
155
|
+
# The creation time of the resource.
|
156
|
+
# @return [Time]
|
157
|
+
#
|
158
|
+
# @!attribute [rw] update_time
|
159
|
+
# The time the resource was last updated.
|
160
|
+
# @return [Time]
|
161
|
+
#
|
162
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/EmailContact AWS API Documentation
|
163
|
+
#
|
164
|
+
class EmailContact < Struct.new(
|
165
|
+
:arn,
|
166
|
+
:name,
|
167
|
+
:address,
|
168
|
+
:status,
|
169
|
+
:creation_time,
|
170
|
+
:update_time)
|
171
|
+
SENSITIVE = [:name, :address]
|
172
|
+
include Aws::Structure
|
173
|
+
end
|
174
|
+
|
175
|
+
# @!attribute [rw] arn
|
176
|
+
# The Amazon Resource Name (ARN) of the email contact to get.
|
177
|
+
# @return [String]
|
178
|
+
#
|
179
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/GetEmailContactRequest AWS API Documentation
|
180
|
+
#
|
181
|
+
class GetEmailContactRequest < Struct.new(
|
182
|
+
:arn)
|
183
|
+
SENSITIVE = []
|
184
|
+
include Aws::Structure
|
185
|
+
end
|
186
|
+
|
187
|
+
# @!attribute [rw] email_contact
|
188
|
+
# The email contact for the provided email address.
|
189
|
+
# @return [Types::EmailContact]
|
190
|
+
#
|
191
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/GetEmailContactResponse AWS API Documentation
|
192
|
+
#
|
193
|
+
class GetEmailContactResponse < Struct.new(
|
194
|
+
:email_contact)
|
195
|
+
SENSITIVE = []
|
196
|
+
include Aws::Structure
|
197
|
+
end
|
198
|
+
|
199
|
+
# Unexpected error during processing of request.
|
200
|
+
#
|
201
|
+
# @!attribute [rw] message
|
202
|
+
# @return [String]
|
203
|
+
#
|
204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/InternalServerException AWS API Documentation
|
205
|
+
#
|
206
|
+
class InternalServerException < Struct.new(
|
207
|
+
:message)
|
208
|
+
SENSITIVE = []
|
209
|
+
include Aws::Structure
|
210
|
+
end
|
211
|
+
|
212
|
+
# @!attribute [rw] max_results
|
213
|
+
# The maximum number of results to include in the response. If more
|
214
|
+
# results exist than the specified MaxResults value, a token is
|
215
|
+
# included in the response so that the remaining results can be
|
216
|
+
# retrieved.
|
217
|
+
# @return [Integer]
|
218
|
+
#
|
219
|
+
# @!attribute [rw] next_token
|
220
|
+
# An optional token returned from a prior request. Use this token for
|
221
|
+
# pagination of results from this action. If this parameter is
|
222
|
+
# specified, the response includes only results beyond the token, up
|
223
|
+
# to the value specified by MaxResults.
|
224
|
+
# @return [String]
|
225
|
+
#
|
226
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ListEmailContactsRequest AWS API Documentation
|
227
|
+
#
|
228
|
+
class ListEmailContactsRequest < Struct.new(
|
229
|
+
:max_results,
|
230
|
+
:next_token)
|
231
|
+
SENSITIVE = []
|
232
|
+
include Aws::Structure
|
233
|
+
end
|
234
|
+
|
235
|
+
# @!attribute [rw] next_token
|
236
|
+
# An optional token returned from a prior request. Use this token for
|
237
|
+
# pagination of results from this action. If this parameter is
|
238
|
+
# specified, the response includes only results beyond the token, up
|
239
|
+
# to the value specified by MaxResults.
|
240
|
+
# @return [String]
|
241
|
+
#
|
242
|
+
# @!attribute [rw] email_contacts
|
243
|
+
# A list of email contacts.
|
244
|
+
# @return [Array<Types::EmailContact>]
|
245
|
+
#
|
246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ListEmailContactsResponse AWS API Documentation
|
247
|
+
#
|
248
|
+
class ListEmailContactsResponse < Struct.new(
|
249
|
+
:next_token,
|
250
|
+
:email_contacts)
|
251
|
+
SENSITIVE = []
|
252
|
+
include Aws::Structure
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] arn
|
256
|
+
# The ARN you specified to list the tags of.
|
257
|
+
# @return [String]
|
258
|
+
#
|
259
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ListTagsForResourceRequest AWS API Documentation
|
260
|
+
#
|
261
|
+
class ListTagsForResourceRequest < Struct.new(
|
262
|
+
:arn)
|
263
|
+
SENSITIVE = []
|
264
|
+
include Aws::Structure
|
265
|
+
end
|
266
|
+
|
267
|
+
# @!attribute [rw] tags
|
268
|
+
# Key-value pairs that are assigned to a resource, usually for the
|
269
|
+
# purpose of grouping and searching for items. Tags are metadata that
|
270
|
+
# you define.
|
271
|
+
# @return [Hash<String,String>]
|
272
|
+
#
|
273
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ListTagsForResourceResponse AWS API Documentation
|
274
|
+
#
|
275
|
+
class ListTagsForResourceResponse < Struct.new(
|
276
|
+
:tags)
|
277
|
+
SENSITIVE = []
|
278
|
+
include Aws::Structure
|
279
|
+
end
|
280
|
+
|
281
|
+
# Your request references a resource which does not exist.
|
282
|
+
#
|
283
|
+
# @!attribute [rw] message
|
284
|
+
# @return [String]
|
285
|
+
#
|
286
|
+
# @!attribute [rw] resource_id
|
287
|
+
# The ID of the resource that wasn't found.
|
288
|
+
# @return [String]
|
289
|
+
#
|
290
|
+
# @!attribute [rw] resource_type
|
291
|
+
# The type of resource that wasn't found.
|
292
|
+
# @return [String]
|
293
|
+
#
|
294
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ResourceNotFoundException AWS API Documentation
|
295
|
+
#
|
296
|
+
class ResourceNotFoundException < Struct.new(
|
297
|
+
:message,
|
298
|
+
:resource_id,
|
299
|
+
:resource_type)
|
300
|
+
SENSITIVE = []
|
301
|
+
include Aws::Structure
|
302
|
+
end
|
303
|
+
|
304
|
+
# @!attribute [rw] arn
|
305
|
+
# The Amazon Resource Name (ARN) of the resource.
|
306
|
+
# @return [String]
|
307
|
+
#
|
308
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/SendActivationCodeRequest AWS API Documentation
|
309
|
+
#
|
310
|
+
class SendActivationCodeRequest < Struct.new(
|
311
|
+
:arn)
|
312
|
+
SENSITIVE = []
|
313
|
+
include Aws::Structure
|
314
|
+
end
|
315
|
+
|
316
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/SendActivationCodeResponse AWS API Documentation
|
317
|
+
#
|
318
|
+
class SendActivationCodeResponse < Aws::EmptyStructure; end
|
319
|
+
|
320
|
+
# Request would cause a service quota to be exceeded.
|
321
|
+
#
|
322
|
+
# @!attribute [rw] message
|
323
|
+
# @return [String]
|
324
|
+
#
|
325
|
+
# @!attribute [rw] resource_id
|
326
|
+
# The ID of the resource that exceeds the service quota.
|
327
|
+
# @return [String]
|
328
|
+
#
|
329
|
+
# @!attribute [rw] resource_type
|
330
|
+
# The type of the resource that exceeds the service quota.
|
331
|
+
# @return [String]
|
332
|
+
#
|
333
|
+
# @!attribute [rw] service_code
|
334
|
+
# The code for the service quota exceeded in [Service Quotas][1].
|
335
|
+
#
|
336
|
+
#
|
337
|
+
#
|
338
|
+
# [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html
|
339
|
+
# @return [String]
|
340
|
+
#
|
341
|
+
# @!attribute [rw] quota_code
|
342
|
+
# The code for the service quota in [Service Quotas][1].
|
343
|
+
#
|
344
|
+
#
|
345
|
+
#
|
346
|
+
# [1]: https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html
|
347
|
+
# @return [String]
|
348
|
+
#
|
349
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ServiceQuotaExceededException AWS API Documentation
|
350
|
+
#
|
351
|
+
class ServiceQuotaExceededException < Struct.new(
|
352
|
+
:message,
|
353
|
+
:resource_id,
|
354
|
+
:resource_type,
|
355
|
+
:service_code,
|
356
|
+
:quota_code)
|
357
|
+
SENSITIVE = []
|
358
|
+
include Aws::Structure
|
359
|
+
end
|
360
|
+
|
361
|
+
# @!attribute [rw] arn
|
362
|
+
# The ARN of the configuration.
|
363
|
+
# @return [String]
|
364
|
+
#
|
365
|
+
# @!attribute [rw] tags
|
366
|
+
# A list of tags to apply to the configuration.
|
367
|
+
# @return [Hash<String,String>]
|
368
|
+
#
|
369
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/TagResourceRequest AWS API Documentation
|
370
|
+
#
|
371
|
+
class TagResourceRequest < Struct.new(
|
372
|
+
:arn,
|
373
|
+
:tags)
|
374
|
+
SENSITIVE = []
|
375
|
+
include Aws::Structure
|
376
|
+
end
|
377
|
+
|
378
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/TagResourceResponse AWS API Documentation
|
379
|
+
#
|
380
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
381
|
+
|
382
|
+
# The request was denied due to request throttling.
|
383
|
+
#
|
384
|
+
# @!attribute [rw] message
|
385
|
+
# @return [String]
|
386
|
+
#
|
387
|
+
# @!attribute [rw] service_code
|
388
|
+
# Identifies the service being throttled.
|
389
|
+
# @return [String]
|
390
|
+
#
|
391
|
+
# @!attribute [rw] quota_code
|
392
|
+
# Identifies the quota that is being throttled.
|
393
|
+
# @return [String]
|
394
|
+
#
|
395
|
+
# @!attribute [rw] retry_after_seconds
|
396
|
+
# The number of seconds a client should wait before retrying the
|
397
|
+
# request.
|
398
|
+
# @return [Integer]
|
399
|
+
#
|
400
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ThrottlingException AWS API Documentation
|
401
|
+
#
|
402
|
+
class ThrottlingException < Struct.new(
|
403
|
+
:message,
|
404
|
+
:service_code,
|
405
|
+
:quota_code,
|
406
|
+
:retry_after_seconds)
|
407
|
+
SENSITIVE = []
|
408
|
+
include Aws::Structure
|
409
|
+
end
|
410
|
+
|
411
|
+
# @!attribute [rw] arn
|
412
|
+
# The value of the resource that will have the tag removed. An Amazon
|
413
|
+
# Resource Name (ARN) is an identifier for a specific AWS resource,
|
414
|
+
# such as a server, user, or role.
|
415
|
+
# @return [String]
|
416
|
+
#
|
417
|
+
# @!attribute [rw] tag_keys
|
418
|
+
# Specifies a list of tag keys that you want to remove from the
|
419
|
+
# specified resources.
|
420
|
+
# @return [Array<String>]
|
421
|
+
#
|
422
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/UntagResourceRequest AWS API Documentation
|
423
|
+
#
|
424
|
+
class UntagResourceRequest < Struct.new(
|
425
|
+
:arn,
|
426
|
+
:tag_keys)
|
427
|
+
SENSITIVE = []
|
428
|
+
include Aws::Structure
|
429
|
+
end
|
430
|
+
|
431
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/UntagResourceResponse AWS API Documentation
|
432
|
+
#
|
433
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
434
|
+
|
435
|
+
# The input fails to satisfy the constraints specified by an AWS
|
436
|
+
# service.
|
437
|
+
#
|
438
|
+
# @!attribute [rw] message
|
439
|
+
# @return [String]
|
440
|
+
#
|
441
|
+
# @!attribute [rw] reason
|
442
|
+
# The reason why your input is considered invalid.
|
443
|
+
# @return [String]
|
444
|
+
#
|
445
|
+
# @!attribute [rw] field_list
|
446
|
+
# The list of input fields that are invalid.
|
447
|
+
# @return [Array<Types::ValidationExceptionField>]
|
448
|
+
#
|
449
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ValidationException AWS API Documentation
|
450
|
+
#
|
451
|
+
class ValidationException < Struct.new(
|
452
|
+
:message,
|
453
|
+
:reason,
|
454
|
+
:field_list)
|
455
|
+
SENSITIVE = []
|
456
|
+
include Aws::Structure
|
457
|
+
end
|
458
|
+
|
459
|
+
# Stores information about a field passed inside a request that resulted
|
460
|
+
# in an exception.
|
461
|
+
#
|
462
|
+
# @!attribute [rw] name
|
463
|
+
# The field name where the invalid entry was detected.
|
464
|
+
# @return [String]
|
465
|
+
#
|
466
|
+
# @!attribute [rw] message
|
467
|
+
# A message with the reason for the validation exception error.
|
468
|
+
# @return [String]
|
469
|
+
#
|
470
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/notificationscontacts-2018-05-10/ValidationExceptionField AWS API Documentation
|
471
|
+
#
|
472
|
+
class ValidationExceptionField < Struct.new(
|
473
|
+
:name,
|
474
|
+
:message)
|
475
|
+
SENSITIVE = []
|
476
|
+
include Aws::Structure
|
477
|
+
end
|
478
|
+
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::NotificationsContacts
|
13
|
+
module Waiters
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
require 'aws-sdk-core'
|
12
|
+
require 'aws-sigv4'
|
13
|
+
|
14
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:notificationscontacts)
|
15
|
+
|
16
|
+
# This module provides support for AWS User Notifications Contacts. This module is available in the
|
17
|
+
# `aws-sdk-notificationscontacts` gem.
|
18
|
+
#
|
19
|
+
# # Client
|
20
|
+
#
|
21
|
+
# The {Client} class provides one method for each API operation. Operation
|
22
|
+
# methods each accept a hash of request parameters and return a response
|
23
|
+
# structure.
|
24
|
+
#
|
25
|
+
# notifications_contacts = Aws::NotificationsContacts::Client.new
|
26
|
+
# resp = notifications_contacts.activate_email_contact(params)
|
27
|
+
#
|
28
|
+
# See {Client} for more information.
|
29
|
+
#
|
30
|
+
# # Errors
|
31
|
+
#
|
32
|
+
# Errors returned from AWS User Notifications Contacts are defined in the
|
33
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
34
|
+
#
|
35
|
+
# begin
|
36
|
+
# # do stuff
|
37
|
+
# rescue Aws::NotificationsContacts::Errors::ServiceError
|
38
|
+
# # rescues all AWS User Notifications Contacts API errors
|
39
|
+
# end
|
40
|
+
#
|
41
|
+
# See {Errors} for more information.
|
42
|
+
#
|
43
|
+
# @!group service
|
44
|
+
module Aws::NotificationsContacts
|
45
|
+
autoload :Types, 'aws-sdk-notificationscontacts/types'
|
46
|
+
autoload :ClientApi, 'aws-sdk-notificationscontacts/client_api'
|
47
|
+
module Plugins
|
48
|
+
autoload :Endpoints, 'aws-sdk-notificationscontacts/plugins/endpoints.rb'
|
49
|
+
end
|
50
|
+
autoload :Client, 'aws-sdk-notificationscontacts/client'
|
51
|
+
autoload :Errors, 'aws-sdk-notificationscontacts/errors'
|
52
|
+
autoload :Waiters, 'aws-sdk-notificationscontacts/waiters'
|
53
|
+
autoload :Resource, 'aws-sdk-notificationscontacts/resource'
|
54
|
+
autoload :EndpointParameters, 'aws-sdk-notificationscontacts/endpoint_parameters'
|
55
|
+
autoload :EndpointProvider, 'aws-sdk-notificationscontacts/endpoint_provider'
|
56
|
+
autoload :Endpoints, 'aws-sdk-notificationscontacts/endpoints'
|
57
|
+
|
58
|
+
GEM_VERSION = '1.0.0'
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
require_relative 'aws-sdk-notificationscontacts/customizations'
|