aws-sdk-codecatalyst 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -0,0 +1,54 @@
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::CodeCatalyst
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute use_fips
14
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
15
+ #
16
+ # @return [Boolean]
17
+ #
18
+ # @!attribute region
19
+ # The AWS region used to dispatch the request.
20
+ #
21
+ # @return [String]
22
+ #
23
+ # @!attribute endpoint
24
+ # Override the endpoint used to send this request
25
+ #
26
+ # @return [String]
27
+ #
28
+ EndpointParameters = Struct.new(
29
+ :use_fips,
30
+ :region,
31
+ :endpoint,
32
+ ) do
33
+ include Aws::Structure
34
+
35
+ # @api private
36
+ class << self
37
+ PARAM_MAP = {
38
+ 'UseFIPS' => :use_fips,
39
+ 'Region' => :region,
40
+ 'Endpoint' => :endpoint,
41
+ }.freeze
42
+ end
43
+
44
+ def initialize(options = {})
45
+ self[:use_fips] = options[:use_fips]
46
+ self[:use_fips] = false if self[:use_fips].nil?
47
+ if self[:use_fips].nil?
48
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
49
+ end
50
+ self[:region] = options[:region]
51
+ self[:endpoint] = options[:endpoint]
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,85 @@
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::CodeCatalyst
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4zIiwicGFyYW1ldGVycyI6eyJVc2VGSVBTIjp7ImJ1
32
+ aWx0SW4iOiJBV1M6OlVzZUZJUFMiLCJyZXF1aXJlZCI6dHJ1ZSwiZGVmYXVs
33
+ dCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHNlbmQgdGhp
34
+ cyByZXF1ZXN0IHRvIHRoZSBGSVBTLWNvbXBsaWFudCByZWdpb25hbCBlbmRw
35
+ b2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQgZW5kcG9pbnQgZG9lcyBub3QgaGF2
36
+ ZSBhIEZJUFMgY29tcGxpYW50IGVuZHBvaW50LCBkaXNwYXRjaGluZyB0aGUg
37
+ cmVxdWVzdCB3aWxsIHJldHVybiBhbiBlcnJvci4iLCJ0eXBlIjoiQm9vbGVh
38
+ biJ9LCJSZWdpb24iOnsiYnVpbHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWly
39
+ ZWQiOmZhbHNlLCJkb2N1bWVudGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNl
40
+ ZCB0byBkaXNwYXRjaCB0aGUgcmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0s
41
+ IkVuZHBvaW50Ijp7ImJ1aWx0SW4iOiJTREs6OkVuZHBvaW50IiwicmVxdWly
42
+ ZWQi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9yIn0seyJjb25kaXRp
75
+ b25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9jb2RlY2F0YWx5
76
+ c3QtZmlwcy5nbG9iYWwue1BhcnRpdGlvblJlc3VsdCNkdWFsU3RhY2tEbnNT
77
+ dWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6
78
+ ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1
79
+ cmwiOiJodHRwczovL2NvZGVjYXRhbHlzdC5nbG9iYWwue1BhcnRpdGlvblJl
80
+ c3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
81
+ YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19XX0=
82
+
83
+ JSON
84
+ end
85
+ end
@@ -0,0 +1,327 @@
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::CodeCatalyst
12
+ module Endpoints
13
+
14
+ class CreateAccessToken
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::CodeCatalyst::EndpointParameters.new(
20
+ use_fips: context.config.use_fips_endpoint,
21
+ region: context.config.region,
22
+ endpoint: endpoint,
23
+ )
24
+ end
25
+ end
26
+
27
+ class CreateDevEnvironment
28
+ def self.build(context)
29
+ unless context.config.regional_endpoint
30
+ endpoint = context.config.endpoint.to_s
31
+ end
32
+ Aws::CodeCatalyst::EndpointParameters.new(
33
+ use_fips: context.config.use_fips_endpoint,
34
+ region: context.config.region,
35
+ endpoint: endpoint,
36
+ )
37
+ end
38
+ end
39
+
40
+ class CreateProject
41
+ def self.build(context)
42
+ unless context.config.regional_endpoint
43
+ endpoint = context.config.endpoint.to_s
44
+ end
45
+ Aws::CodeCatalyst::EndpointParameters.new(
46
+ use_fips: context.config.use_fips_endpoint,
47
+ region: context.config.region,
48
+ endpoint: endpoint,
49
+ )
50
+ end
51
+ end
52
+
53
+ class CreateSourceRepositoryBranch
54
+ def self.build(context)
55
+ unless context.config.regional_endpoint
56
+ endpoint = context.config.endpoint.to_s
57
+ end
58
+ Aws::CodeCatalyst::EndpointParameters.new(
59
+ use_fips: context.config.use_fips_endpoint,
60
+ region: context.config.region,
61
+ endpoint: endpoint,
62
+ )
63
+ end
64
+ end
65
+
66
+ class DeleteAccessToken
67
+ def self.build(context)
68
+ unless context.config.regional_endpoint
69
+ endpoint = context.config.endpoint.to_s
70
+ end
71
+ Aws::CodeCatalyst::EndpointParameters.new(
72
+ use_fips: context.config.use_fips_endpoint,
73
+ region: context.config.region,
74
+ endpoint: endpoint,
75
+ )
76
+ end
77
+ end
78
+
79
+ class DeleteDevEnvironment
80
+ def self.build(context)
81
+ unless context.config.regional_endpoint
82
+ endpoint = context.config.endpoint.to_s
83
+ end
84
+ Aws::CodeCatalyst::EndpointParameters.new(
85
+ use_fips: context.config.use_fips_endpoint,
86
+ region: context.config.region,
87
+ endpoint: endpoint,
88
+ )
89
+ end
90
+ end
91
+
92
+ class GetDevEnvironment
93
+ def self.build(context)
94
+ unless context.config.regional_endpoint
95
+ endpoint = context.config.endpoint.to_s
96
+ end
97
+ Aws::CodeCatalyst::EndpointParameters.new(
98
+ use_fips: context.config.use_fips_endpoint,
99
+ region: context.config.region,
100
+ endpoint: endpoint,
101
+ )
102
+ end
103
+ end
104
+
105
+ class GetProject
106
+ def self.build(context)
107
+ unless context.config.regional_endpoint
108
+ endpoint = context.config.endpoint.to_s
109
+ end
110
+ Aws::CodeCatalyst::EndpointParameters.new(
111
+ use_fips: context.config.use_fips_endpoint,
112
+ region: context.config.region,
113
+ endpoint: endpoint,
114
+ )
115
+ end
116
+ end
117
+
118
+ class GetSourceRepositoryCloneUrls
119
+ def self.build(context)
120
+ unless context.config.regional_endpoint
121
+ endpoint = context.config.endpoint.to_s
122
+ end
123
+ Aws::CodeCatalyst::EndpointParameters.new(
124
+ use_fips: context.config.use_fips_endpoint,
125
+ region: context.config.region,
126
+ endpoint: endpoint,
127
+ )
128
+ end
129
+ end
130
+
131
+ class GetSpace
132
+ def self.build(context)
133
+ unless context.config.regional_endpoint
134
+ endpoint = context.config.endpoint.to_s
135
+ end
136
+ Aws::CodeCatalyst::EndpointParameters.new(
137
+ use_fips: context.config.use_fips_endpoint,
138
+ region: context.config.region,
139
+ endpoint: endpoint,
140
+ )
141
+ end
142
+ end
143
+
144
+ class GetSubscription
145
+ def self.build(context)
146
+ unless context.config.regional_endpoint
147
+ endpoint = context.config.endpoint.to_s
148
+ end
149
+ Aws::CodeCatalyst::EndpointParameters.new(
150
+ use_fips: context.config.use_fips_endpoint,
151
+ region: context.config.region,
152
+ endpoint: endpoint,
153
+ )
154
+ end
155
+ end
156
+
157
+ class GetUserDetails
158
+ def self.build(context)
159
+ unless context.config.regional_endpoint
160
+ endpoint = context.config.endpoint.to_s
161
+ end
162
+ Aws::CodeCatalyst::EndpointParameters.new(
163
+ use_fips: context.config.use_fips_endpoint,
164
+ region: context.config.region,
165
+ endpoint: endpoint,
166
+ )
167
+ end
168
+ end
169
+
170
+ class ListAccessTokens
171
+ def self.build(context)
172
+ unless context.config.regional_endpoint
173
+ endpoint = context.config.endpoint.to_s
174
+ end
175
+ Aws::CodeCatalyst::EndpointParameters.new(
176
+ use_fips: context.config.use_fips_endpoint,
177
+ region: context.config.region,
178
+ endpoint: endpoint,
179
+ )
180
+ end
181
+ end
182
+
183
+ class ListDevEnvironments
184
+ def self.build(context)
185
+ unless context.config.regional_endpoint
186
+ endpoint = context.config.endpoint.to_s
187
+ end
188
+ Aws::CodeCatalyst::EndpointParameters.new(
189
+ use_fips: context.config.use_fips_endpoint,
190
+ region: context.config.region,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class ListEventLogs
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::CodeCatalyst::EndpointParameters.new(
202
+ use_fips: context.config.use_fips_endpoint,
203
+ region: context.config.region,
204
+ endpoint: endpoint,
205
+ )
206
+ end
207
+ end
208
+
209
+ class ListProjects
210
+ def self.build(context)
211
+ unless context.config.regional_endpoint
212
+ endpoint = context.config.endpoint.to_s
213
+ end
214
+ Aws::CodeCatalyst::EndpointParameters.new(
215
+ use_fips: context.config.use_fips_endpoint,
216
+ region: context.config.region,
217
+ endpoint: endpoint,
218
+ )
219
+ end
220
+ end
221
+
222
+ class ListSourceRepositories
223
+ def self.build(context)
224
+ unless context.config.regional_endpoint
225
+ endpoint = context.config.endpoint.to_s
226
+ end
227
+ Aws::CodeCatalyst::EndpointParameters.new(
228
+ use_fips: context.config.use_fips_endpoint,
229
+ region: context.config.region,
230
+ endpoint: endpoint,
231
+ )
232
+ end
233
+ end
234
+
235
+ class ListSourceRepositoryBranches
236
+ def self.build(context)
237
+ unless context.config.regional_endpoint
238
+ endpoint = context.config.endpoint.to_s
239
+ end
240
+ Aws::CodeCatalyst::EndpointParameters.new(
241
+ use_fips: context.config.use_fips_endpoint,
242
+ region: context.config.region,
243
+ endpoint: endpoint,
244
+ )
245
+ end
246
+ end
247
+
248
+ class ListSpaces
249
+ def self.build(context)
250
+ unless context.config.regional_endpoint
251
+ endpoint = context.config.endpoint.to_s
252
+ end
253
+ Aws::CodeCatalyst::EndpointParameters.new(
254
+ use_fips: context.config.use_fips_endpoint,
255
+ region: context.config.region,
256
+ endpoint: endpoint,
257
+ )
258
+ end
259
+ end
260
+
261
+ class StartDevEnvironment
262
+ def self.build(context)
263
+ unless context.config.regional_endpoint
264
+ endpoint = context.config.endpoint.to_s
265
+ end
266
+ Aws::CodeCatalyst::EndpointParameters.new(
267
+ use_fips: context.config.use_fips_endpoint,
268
+ region: context.config.region,
269
+ endpoint: endpoint,
270
+ )
271
+ end
272
+ end
273
+
274
+ class StartDevEnvironmentSession
275
+ def self.build(context)
276
+ unless context.config.regional_endpoint
277
+ endpoint = context.config.endpoint.to_s
278
+ end
279
+ Aws::CodeCatalyst::EndpointParameters.new(
280
+ use_fips: context.config.use_fips_endpoint,
281
+ region: context.config.region,
282
+ endpoint: endpoint,
283
+ )
284
+ end
285
+ end
286
+
287
+ class StopDevEnvironment
288
+ def self.build(context)
289
+ unless context.config.regional_endpoint
290
+ endpoint = context.config.endpoint.to_s
291
+ end
292
+ Aws::CodeCatalyst::EndpointParameters.new(
293
+ use_fips: context.config.use_fips_endpoint,
294
+ region: context.config.region,
295
+ endpoint: endpoint,
296
+ )
297
+ end
298
+ end
299
+
300
+ class UpdateDevEnvironment
301
+ def self.build(context)
302
+ unless context.config.regional_endpoint
303
+ endpoint = context.config.endpoint.to_s
304
+ end
305
+ Aws::CodeCatalyst::EndpointParameters.new(
306
+ use_fips: context.config.use_fips_endpoint,
307
+ region: context.config.region,
308
+ endpoint: endpoint,
309
+ )
310
+ end
311
+ end
312
+
313
+ class VerifySession
314
+ def self.build(context)
315
+ unless context.config.regional_endpoint
316
+ endpoint = context.config.endpoint.to_s
317
+ end
318
+ Aws::CodeCatalyst::EndpointParameters.new(
319
+ use_fips: context.config.use_fips_endpoint,
320
+ region: context.config.region,
321
+ endpoint: endpoint,
322
+ )
323
+ end
324
+ end
325
+
326
+ end
327
+ end
@@ -0,0 +1,138 @@
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::CodeCatalyst
11
+
12
+ # When CodeCatalyst returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::CodeCatalyst::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all CodeCatalyst errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::CodeCatalyst::Errors::ServiceError
20
+ # # rescues all CodeCatalyst 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
+ # * {ResourceNotFoundException}
33
+ # * {ServiceQuotaExceededException}
34
+ # * {ThrottlingException}
35
+ # * {ValidationException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
39
+ module Errors
40
+
41
+ extend Aws::Errors::DynamicErrors
42
+
43
+ class AccessDeniedException < ServiceError
44
+
45
+ # @param [Seahorse::Client::RequestContext] context
46
+ # @param [String] message
47
+ # @param [Aws::CodeCatalyst::Types::AccessDeniedException] data
48
+ def initialize(context, message, data = Aws::EmptyStructure.new)
49
+ super(context, message, data)
50
+ end
51
+
52
+ # @return [String]
53
+ def message
54
+ @message || @data[:message]
55
+ end
56
+ end
57
+
58
+ class ConflictException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::CodeCatalyst::Types::ConflictException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+
67
+ # @return [String]
68
+ def message
69
+ @message || @data[:message]
70
+ end
71
+ end
72
+
73
+ class ResourceNotFoundException < ServiceError
74
+
75
+ # @param [Seahorse::Client::RequestContext] context
76
+ # @param [String] message
77
+ # @param [Aws::CodeCatalyst::Types::ResourceNotFoundException] data
78
+ def initialize(context, message, data = Aws::EmptyStructure.new)
79
+ super(context, message, data)
80
+ end
81
+
82
+ # @return [String]
83
+ def message
84
+ @message || @data[:message]
85
+ end
86
+ end
87
+
88
+ class ServiceQuotaExceededException < ServiceError
89
+
90
+ # @param [Seahorse::Client::RequestContext] context
91
+ # @param [String] message
92
+ # @param [Aws::CodeCatalyst::Types::ServiceQuotaExceededException] data
93
+ def initialize(context, message, data = Aws::EmptyStructure.new)
94
+ super(context, message, data)
95
+ end
96
+
97
+ # @return [String]
98
+ def message
99
+ @message || @data[:message]
100
+ end
101
+ end
102
+
103
+ class ThrottlingException < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::CodeCatalyst::Types::ThrottlingException] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+
112
+ # @return [String]
113
+ def message
114
+ @message || @data[:message]
115
+ end
116
+
117
+ def retryable?
118
+ true
119
+ end
120
+ end
121
+
122
+ class ValidationException < ServiceError
123
+
124
+ # @param [Seahorse::Client::RequestContext] context
125
+ # @param [String] message
126
+ # @param [Aws::CodeCatalyst::Types::ValidationException] data
127
+ def initialize(context, message, data = Aws::EmptyStructure.new)
128
+ super(context, message, data)
129
+ end
130
+
131
+ # @return [String]
132
+ def message
133
+ @message || @data[:message]
134
+ end
135
+ end
136
+
137
+ end
138
+ end