aws-sdk-managedgrafana 1.0.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 +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-managedgrafana/client.rb +1211 -0
- data/lib/aws-sdk-managedgrafana/client_api.rb +546 -0
- data/lib/aws-sdk-managedgrafana/customizations.rb +0 -0
- data/lib/aws-sdk-managedgrafana/errors.rb +228 -0
- data/lib/aws-sdk-managedgrafana/resource.rb +26 -0
- data/lib/aws-sdk-managedgrafana/types.rb +1524 -0
- data/lib/aws-sdk-managedgrafana.rb +53 -0
- metadata +90 -0
@@ -0,0 +1,228 @@
|
|
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::ManagedGrafana
|
11
|
+
|
12
|
+
# When ManagedGrafana returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::ManagedGrafana::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all ManagedGrafana errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::ManagedGrafana::Errors::ServiceError
|
20
|
+
# # rescues all ManagedGrafana API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
31
|
+
# * {ConflictException}
|
32
|
+
# * {InternalServerException}
|
33
|
+
# * {ResourceNotFoundException}
|
34
|
+
# * {ServiceQuotaExceededException}
|
35
|
+
# * {ThrottlingException}
|
36
|
+
# * {ValidationException}
|
37
|
+
#
|
38
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
39
|
+
# if they are not defined above.
|
40
|
+
module Errors
|
41
|
+
|
42
|
+
extend Aws::Errors::DynamicErrors
|
43
|
+
|
44
|
+
class AccessDeniedException < ServiceError
|
45
|
+
|
46
|
+
# @param [Seahorse::Client::RequestContext] context
|
47
|
+
# @param [String] message
|
48
|
+
# @param [Aws::ManagedGrafana::Types::AccessDeniedException] data
|
49
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
50
|
+
super(context, message, data)
|
51
|
+
end
|
52
|
+
|
53
|
+
# @return [String]
|
54
|
+
def message
|
55
|
+
@message || @data[:message]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
class ConflictException < ServiceError
|
60
|
+
|
61
|
+
# @param [Seahorse::Client::RequestContext] context
|
62
|
+
# @param [String] message
|
63
|
+
# @param [Aws::ManagedGrafana::Types::ConflictException] data
|
64
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
65
|
+
super(context, message, data)
|
66
|
+
end
|
67
|
+
|
68
|
+
# @return [String]
|
69
|
+
def message
|
70
|
+
@message || @data[:message]
|
71
|
+
end
|
72
|
+
|
73
|
+
# @return [String]
|
74
|
+
def resource_id
|
75
|
+
@data[:resource_id]
|
76
|
+
end
|
77
|
+
|
78
|
+
# @return [String]
|
79
|
+
def resource_type
|
80
|
+
@data[:resource_type]
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class InternalServerException < ServiceError
|
85
|
+
|
86
|
+
# @param [Seahorse::Client::RequestContext] context
|
87
|
+
# @param [String] message
|
88
|
+
# @param [Aws::ManagedGrafana::Types::InternalServerException] data
|
89
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
90
|
+
super(context, message, data)
|
91
|
+
end
|
92
|
+
|
93
|
+
# @return [String]
|
94
|
+
def message
|
95
|
+
@message || @data[:message]
|
96
|
+
end
|
97
|
+
|
98
|
+
# @return [String]
|
99
|
+
def retry_after_seconds
|
100
|
+
@data[:retry_after_seconds]
|
101
|
+
end
|
102
|
+
|
103
|
+
def retryable?
|
104
|
+
true
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
class ResourceNotFoundException < ServiceError
|
109
|
+
|
110
|
+
# @param [Seahorse::Client::RequestContext] context
|
111
|
+
# @param [String] message
|
112
|
+
# @param [Aws::ManagedGrafana::Types::ResourceNotFoundException] data
|
113
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
114
|
+
super(context, message, data)
|
115
|
+
end
|
116
|
+
|
117
|
+
# @return [String]
|
118
|
+
def message
|
119
|
+
@message || @data[:message]
|
120
|
+
end
|
121
|
+
|
122
|
+
# @return [String]
|
123
|
+
def resource_id
|
124
|
+
@data[:resource_id]
|
125
|
+
end
|
126
|
+
|
127
|
+
# @return [String]
|
128
|
+
def resource_type
|
129
|
+
@data[:resource_type]
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
class ServiceQuotaExceededException < ServiceError
|
134
|
+
|
135
|
+
# @param [Seahorse::Client::RequestContext] context
|
136
|
+
# @param [String] message
|
137
|
+
# @param [Aws::ManagedGrafana::Types::ServiceQuotaExceededException] data
|
138
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
139
|
+
super(context, message, data)
|
140
|
+
end
|
141
|
+
|
142
|
+
# @return [String]
|
143
|
+
def message
|
144
|
+
@message || @data[:message]
|
145
|
+
end
|
146
|
+
|
147
|
+
# @return [String]
|
148
|
+
def quota_code
|
149
|
+
@data[:quota_code]
|
150
|
+
end
|
151
|
+
|
152
|
+
# @return [String]
|
153
|
+
def resource_id
|
154
|
+
@data[:resource_id]
|
155
|
+
end
|
156
|
+
|
157
|
+
# @return [String]
|
158
|
+
def resource_type
|
159
|
+
@data[:resource_type]
|
160
|
+
end
|
161
|
+
|
162
|
+
# @return [String]
|
163
|
+
def service_code
|
164
|
+
@data[:service_code]
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class ThrottlingException < ServiceError
|
169
|
+
|
170
|
+
# @param [Seahorse::Client::RequestContext] context
|
171
|
+
# @param [String] message
|
172
|
+
# @param [Aws::ManagedGrafana::Types::ThrottlingException] data
|
173
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
174
|
+
super(context, message, data)
|
175
|
+
end
|
176
|
+
|
177
|
+
# @return [String]
|
178
|
+
def message
|
179
|
+
@message || @data[:message]
|
180
|
+
end
|
181
|
+
|
182
|
+
# @return [String]
|
183
|
+
def quota_code
|
184
|
+
@data[:quota_code]
|
185
|
+
end
|
186
|
+
|
187
|
+
# @return [String]
|
188
|
+
def retry_after_seconds
|
189
|
+
@data[:retry_after_seconds]
|
190
|
+
end
|
191
|
+
|
192
|
+
# @return [String]
|
193
|
+
def service_code
|
194
|
+
@data[:service_code]
|
195
|
+
end
|
196
|
+
|
197
|
+
def retryable?
|
198
|
+
true
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class ValidationException < ServiceError
|
203
|
+
|
204
|
+
# @param [Seahorse::Client::RequestContext] context
|
205
|
+
# @param [String] message
|
206
|
+
# @param [Aws::ManagedGrafana::Types::ValidationException] data
|
207
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
208
|
+
super(context, message, data)
|
209
|
+
end
|
210
|
+
|
211
|
+
# @return [String]
|
212
|
+
def field_list
|
213
|
+
@data[:field_list]
|
214
|
+
end
|
215
|
+
|
216
|
+
# @return [String]
|
217
|
+
def message
|
218
|
+
@message || @data[:message]
|
219
|
+
end
|
220
|
+
|
221
|
+
# @return [String]
|
222
|
+
def reason
|
223
|
+
@data[:reason]
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
end
|
228
|
+
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::ManagedGrafana
|
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
|