aws-sdk-prometheusservice 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::PrometheusService
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,507 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::PrometheusService
11
+ module Types
12
+
13
+ # User does not have sufficient access to perform this action.
14
+ #
15
+ # @!attribute [rw] message
16
+ # Description of the error.
17
+ # @return [String]
18
+ #
19
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/AccessDeniedException AWS API Documentation
20
+ #
21
+ class AccessDeniedException < Struct.new(
22
+ :message)
23
+ SENSITIVE = []
24
+ include Aws::Structure
25
+ end
26
+
27
+ # Updating or deleting a resource can cause an inconsistent state.
28
+ #
29
+ # @!attribute [rw] message
30
+ # Description of the error.
31
+ # @return [String]
32
+ #
33
+ # @!attribute [rw] resource_id
34
+ # Identifier of the resource affected.
35
+ # @return [String]
36
+ #
37
+ # @!attribute [rw] resource_type
38
+ # Type of the resource affected.
39
+ # @return [String]
40
+ #
41
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ConflictException AWS API Documentation
42
+ #
43
+ class ConflictException < Struct.new(
44
+ :message,
45
+ :resource_id,
46
+ :resource_type)
47
+ SENSITIVE = []
48
+ include Aws::Structure
49
+ end
50
+
51
+ # Represents the input of a CreateWorkspace operation.
52
+ #
53
+ # @note When making an API call, you may pass CreateWorkspaceRequest
54
+ # data as a hash:
55
+ #
56
+ # {
57
+ # alias: "WorkspaceAlias",
58
+ # client_token: "IdempotencyToken",
59
+ # }
60
+ #
61
+ # @!attribute [rw] alias
62
+ # An optional user-assigned alias for this workspace. This alias is
63
+ # for user reference and does not need to be unique.
64
+ # @return [String]
65
+ #
66
+ # @!attribute [rw] client_token
67
+ # Optional, unique, case-sensitive, user-provided identifier to ensure
68
+ # the idempotency of the request.
69
+ #
70
+ # **A suitable default value is auto-generated.** You should normally
71
+ # not need to pass this option.
72
+ # @return [String]
73
+ #
74
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspaceRequest AWS API Documentation
75
+ #
76
+ class CreateWorkspaceRequest < Struct.new(
77
+ :alias,
78
+ :client_token)
79
+ SENSITIVE = []
80
+ include Aws::Structure
81
+ end
82
+
83
+ # Represents the output of a CreateWorkspace operation.
84
+ #
85
+ # @!attribute [rw] arn
86
+ # The ARN of the workspace that was just created.
87
+ # @return [String]
88
+ #
89
+ # @!attribute [rw] status
90
+ # The status of the workspace that was just created (usually
91
+ # CREATING).
92
+ # @return [Types::WorkspaceStatus]
93
+ #
94
+ # @!attribute [rw] workspace_id
95
+ # The generated ID of the workspace that was just created.
96
+ # @return [String]
97
+ #
98
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspaceResponse AWS API Documentation
99
+ #
100
+ class CreateWorkspaceResponse < Struct.new(
101
+ :arn,
102
+ :status,
103
+ :workspace_id)
104
+ SENSITIVE = []
105
+ include Aws::Structure
106
+ end
107
+
108
+ # Represents the input of a DeleteWorkspace operation.
109
+ #
110
+ # @note When making an API call, you may pass DeleteWorkspaceRequest
111
+ # data as a hash:
112
+ #
113
+ # {
114
+ # client_token: "IdempotencyToken",
115
+ # workspace_id: "WorkspaceId", # required
116
+ # }
117
+ #
118
+ # @!attribute [rw] client_token
119
+ # Optional, unique, case-sensitive, user-provided identifier to ensure
120
+ # the idempotency of the request.
121
+ #
122
+ # **A suitable default value is auto-generated.** You should normally
123
+ # not need to pass this option.
124
+ # @return [String]
125
+ #
126
+ # @!attribute [rw] workspace_id
127
+ # The ID of the workspace to delete.
128
+ # @return [String]
129
+ #
130
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteWorkspaceRequest AWS API Documentation
131
+ #
132
+ class DeleteWorkspaceRequest < Struct.new(
133
+ :client_token,
134
+ :workspace_id)
135
+ SENSITIVE = []
136
+ include Aws::Structure
137
+ end
138
+
139
+ # Represents the input of a DescribeWorkspace operation.
140
+ #
141
+ # @note When making an API call, you may pass DescribeWorkspaceRequest
142
+ # data as a hash:
143
+ #
144
+ # {
145
+ # workspace_id: "WorkspaceId", # required
146
+ # }
147
+ #
148
+ # @!attribute [rw] workspace_id
149
+ # The ID of the workspace to describe.
150
+ # @return [String]
151
+ #
152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspaceRequest AWS API Documentation
153
+ #
154
+ class DescribeWorkspaceRequest < Struct.new(
155
+ :workspace_id)
156
+ SENSITIVE = []
157
+ include Aws::Structure
158
+ end
159
+
160
+ # Represents the output of a DescribeWorkspace operation.
161
+ #
162
+ # @!attribute [rw] workspace
163
+ # The properties of the selected workspace.
164
+ # @return [Types::WorkspaceDescription]
165
+ #
166
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspaceResponse AWS API Documentation
167
+ #
168
+ class DescribeWorkspaceResponse < Struct.new(
169
+ :workspace)
170
+ SENSITIVE = []
171
+ include Aws::Structure
172
+ end
173
+
174
+ # Unexpected error during processing of request.
175
+ #
176
+ # @!attribute [rw] message
177
+ # Description of the error.
178
+ # @return [String]
179
+ #
180
+ # @!attribute [rw] retry_after_seconds
181
+ # Advice to clients on when the call can be safely retried.
182
+ # @return [Integer]
183
+ #
184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/InternalServerException AWS API Documentation
185
+ #
186
+ class InternalServerException < Struct.new(
187
+ :message,
188
+ :retry_after_seconds)
189
+ SENSITIVE = []
190
+ include Aws::Structure
191
+ end
192
+
193
+ # Represents the input of a ListWorkspaces operation.
194
+ #
195
+ # @note When making an API call, you may pass ListWorkspacesRequest
196
+ # data as a hash:
197
+ #
198
+ # {
199
+ # alias: "WorkspaceAlias",
200
+ # max_results: 1,
201
+ # next_token: "PaginationToken",
202
+ # }
203
+ #
204
+ # @!attribute [rw] alias
205
+ # Optional filter for workspace alias. Only the workspaces with
206
+ # aliases that begin with this value will be returned.
207
+ # @return [String]
208
+ #
209
+ # @!attribute [rw] max_results
210
+ # Maximum results to return in response (default=100, maximum=1000).
211
+ # @return [Integer]
212
+ #
213
+ # @!attribute [rw] next_token
214
+ # Pagination token to request the next page in a paginated list. This
215
+ # token is obtained from the output of the previous ListWorkspaces
216
+ # request.
217
+ # @return [String]
218
+ #
219
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspacesRequest AWS API Documentation
220
+ #
221
+ class ListWorkspacesRequest < Struct.new(
222
+ :alias,
223
+ :max_results,
224
+ :next_token)
225
+ SENSITIVE = []
226
+ include Aws::Structure
227
+ end
228
+
229
+ # Represents the output of a ListWorkspaces operation.
230
+ #
231
+ # @!attribute [rw] next_token
232
+ # Pagination token to use when requesting the next page in this list.
233
+ # @return [String]
234
+ #
235
+ # @!attribute [rw] workspaces
236
+ # The list of existing workspaces, including those undergoing creation
237
+ # or deletion.
238
+ # @return [Array<Types::WorkspaceSummary>]
239
+ #
240
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspacesResponse AWS API Documentation
241
+ #
242
+ class ListWorkspacesResponse < Struct.new(
243
+ :next_token,
244
+ :workspaces)
245
+ SENSITIVE = []
246
+ include Aws::Structure
247
+ end
248
+
249
+ # Request references a resource which does not exist.
250
+ #
251
+ # @!attribute [rw] message
252
+ # Description of the error.
253
+ # @return [String]
254
+ #
255
+ # @!attribute [rw] resource_id
256
+ # Identifier of the resource affected.
257
+ # @return [String]
258
+ #
259
+ # @!attribute [rw] resource_type
260
+ # Type of the resource affected.
261
+ # @return [String]
262
+ #
263
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ResourceNotFoundException AWS API Documentation
264
+ #
265
+ class ResourceNotFoundException < Struct.new(
266
+ :message,
267
+ :resource_id,
268
+ :resource_type)
269
+ SENSITIVE = []
270
+ include Aws::Structure
271
+ end
272
+
273
+ # Request would cause a service quota to be exceeded.
274
+ #
275
+ # @!attribute [rw] message
276
+ # Description of the error.
277
+ # @return [String]
278
+ #
279
+ # @!attribute [rw] quota_code
280
+ # Service Quotas requirement to identify originating quota.
281
+ # @return [String]
282
+ #
283
+ # @!attribute [rw] resource_id
284
+ # Identifier of the resource affected.
285
+ # @return [String]
286
+ #
287
+ # @!attribute [rw] resource_type
288
+ # Type of the resource affected.
289
+ # @return [String]
290
+ #
291
+ # @!attribute [rw] service_code
292
+ # Service Quotas requirement to identify originating service.
293
+ # @return [String]
294
+ #
295
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ServiceQuotaExceededException AWS API Documentation
296
+ #
297
+ class ServiceQuotaExceededException < Struct.new(
298
+ :message,
299
+ :quota_code,
300
+ :resource_id,
301
+ :resource_type,
302
+ :service_code)
303
+ SENSITIVE = []
304
+ include Aws::Structure
305
+ end
306
+
307
+ # Request was denied due to request throttling.
308
+ #
309
+ # @!attribute [rw] message
310
+ # Description of the error.
311
+ # @return [String]
312
+ #
313
+ # @!attribute [rw] quota_code
314
+ # Service Quotas requirement to identify originating quota.
315
+ # @return [String]
316
+ #
317
+ # @!attribute [rw] retry_after_seconds
318
+ # Advice to clients on when the call can be safely retried.
319
+ # @return [Integer]
320
+ #
321
+ # @!attribute [rw] service_code
322
+ # Service Quotas requirement to identify originating service.
323
+ # @return [String]
324
+ #
325
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ThrottlingException AWS API Documentation
326
+ #
327
+ class ThrottlingException < Struct.new(
328
+ :message,
329
+ :quota_code,
330
+ :retry_after_seconds,
331
+ :service_code)
332
+ SENSITIVE = []
333
+ include Aws::Structure
334
+ end
335
+
336
+ # Represents the input of an UpdateWorkspaceAlias operation.
337
+ #
338
+ # @note When making an API call, you may pass UpdateWorkspaceAliasRequest
339
+ # data as a hash:
340
+ #
341
+ # {
342
+ # alias: "WorkspaceAlias",
343
+ # client_token: "IdempotencyToken",
344
+ # workspace_id: "WorkspaceId", # required
345
+ # }
346
+ #
347
+ # @!attribute [rw] alias
348
+ # The new alias of the workspace.
349
+ # @return [String]
350
+ #
351
+ # @!attribute [rw] client_token
352
+ # Optional, unique, case-sensitive, user-provided identifier to ensure
353
+ # the idempotency of the request.
354
+ #
355
+ # **A suitable default value is auto-generated.** You should normally
356
+ # not need to pass this option.
357
+ # @return [String]
358
+ #
359
+ # @!attribute [rw] workspace_id
360
+ # The ID of the workspace being updated.
361
+ # @return [String]
362
+ #
363
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAliasRequest AWS API Documentation
364
+ #
365
+ class UpdateWorkspaceAliasRequest < Struct.new(
366
+ :alias,
367
+ :client_token,
368
+ :workspace_id)
369
+ SENSITIVE = []
370
+ include Aws::Structure
371
+ end
372
+
373
+ # The input fails to satisfy the constraints specified by an AWS
374
+ # service.
375
+ #
376
+ # @!attribute [rw] field_list
377
+ # The field that caused the error, if applicable. If more than one
378
+ # field caused the error, pick one and elaborate in the message.
379
+ # @return [Array<Types::ValidationExceptionField>]
380
+ #
381
+ # @!attribute [rw] message
382
+ # Description of the error.
383
+ # @return [String]
384
+ #
385
+ # @!attribute [rw] reason
386
+ # Reason the request failed validation.
387
+ # @return [String]
388
+ #
389
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ValidationException AWS API Documentation
390
+ #
391
+ class ValidationException < Struct.new(
392
+ :field_list,
393
+ :message,
394
+ :reason)
395
+ SENSITIVE = []
396
+ include Aws::Structure
397
+ end
398
+
399
+ # Stores information about a field passed inside a request that resulted
400
+ # in an exception.
401
+ #
402
+ # @!attribute [rw] message
403
+ # Message describing why the field failed validation.
404
+ # @return [String]
405
+ #
406
+ # @!attribute [rw] name
407
+ # The field name.
408
+ # @return [String]
409
+ #
410
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ValidationExceptionField AWS API Documentation
411
+ #
412
+ class ValidationExceptionField < Struct.new(
413
+ :message,
414
+ :name)
415
+ SENSITIVE = []
416
+ include Aws::Structure
417
+ end
418
+
419
+ # Represents the properties of a workspace.
420
+ #
421
+ # @!attribute [rw] alias
422
+ # Alias of this workspace.
423
+ # @return [String]
424
+ #
425
+ # @!attribute [rw] arn
426
+ # The Amazon Resource Name (ARN) of this workspace.
427
+ # @return [String]
428
+ #
429
+ # @!attribute [rw] created_at
430
+ # The time when the workspace was created.
431
+ # @return [Time]
432
+ #
433
+ # @!attribute [rw] prometheus_endpoint
434
+ # Prometheus endpoint URI.
435
+ # @return [String]
436
+ #
437
+ # @!attribute [rw] status
438
+ # The status of this workspace.
439
+ # @return [Types::WorkspaceStatus]
440
+ #
441
+ # @!attribute [rw] workspace_id
442
+ # Unique string identifying this workspace.
443
+ # @return [String]
444
+ #
445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/WorkspaceDescription AWS API Documentation
446
+ #
447
+ class WorkspaceDescription < Struct.new(
448
+ :alias,
449
+ :arn,
450
+ :created_at,
451
+ :prometheus_endpoint,
452
+ :status,
453
+ :workspace_id)
454
+ SENSITIVE = []
455
+ include Aws::Structure
456
+ end
457
+
458
+ # Represents the status of a workspace.
459
+ #
460
+ # @!attribute [rw] status_code
461
+ # Status code of this workspace.
462
+ # @return [String]
463
+ #
464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/WorkspaceStatus AWS API Documentation
465
+ #
466
+ class WorkspaceStatus < Struct.new(
467
+ :status_code)
468
+ SENSITIVE = []
469
+ include Aws::Structure
470
+ end
471
+
472
+ # Represents a summary of the properties of a workspace.
473
+ #
474
+ # @!attribute [rw] alias
475
+ # Alias of this workspace.
476
+ # @return [String]
477
+ #
478
+ # @!attribute [rw] arn
479
+ # The AmazonResourceName of this workspace.
480
+ # @return [String]
481
+ #
482
+ # @!attribute [rw] created_at
483
+ # The time when the workspace was created.
484
+ # @return [Time]
485
+ #
486
+ # @!attribute [rw] status
487
+ # The status of this workspace.
488
+ # @return [Types::WorkspaceStatus]
489
+ #
490
+ # @!attribute [rw] workspace_id
491
+ # Unique string identifying this workspace.
492
+ # @return [String]
493
+ #
494
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/WorkspaceSummary AWS API Documentation
495
+ #
496
+ class WorkspaceSummary < Struct.new(
497
+ :alias,
498
+ :arn,
499
+ :created_at,
500
+ :status,
501
+ :workspace_id)
502
+ SENSITIVE = []
503
+ include Aws::Structure
504
+ end
505
+
506
+ end
507
+ end