aws-sdk-launchwizard 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,346 @@
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::LaunchWizard
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
17
+ CreateDeploymentInput = Shapes::StructureShape.new(name: 'CreateDeploymentInput')
18
+ CreateDeploymentOutput = Shapes::StructureShape.new(name: 'CreateDeploymentOutput')
19
+ DeleteDeploymentInput = Shapes::StructureShape.new(name: 'DeleteDeploymentInput')
20
+ DeleteDeploymentOutput = Shapes::StructureShape.new(name: 'DeleteDeploymentOutput')
21
+ DeploymentData = Shapes::StructureShape.new(name: 'DeploymentData')
22
+ DeploymentDataSummary = Shapes::StructureShape.new(name: 'DeploymentDataSummary')
23
+ DeploymentDataSummaryList = Shapes::ListShape.new(name: 'DeploymentDataSummaryList')
24
+ DeploymentEventDataSummary = Shapes::StructureShape.new(name: 'DeploymentEventDataSummary')
25
+ DeploymentEventDataSummaryList = Shapes::ListShape.new(name: 'DeploymentEventDataSummaryList')
26
+ DeploymentFilter = Shapes::StructureShape.new(name: 'DeploymentFilter')
27
+ DeploymentFilterKey = Shapes::StringShape.new(name: 'DeploymentFilterKey')
28
+ DeploymentFilterList = Shapes::ListShape.new(name: 'DeploymentFilterList')
29
+ DeploymentFilterValues = Shapes::ListShape.new(name: 'DeploymentFilterValues')
30
+ DeploymentFilterValuesMemberString = Shapes::StringShape.new(name: 'DeploymentFilterValuesMemberString')
31
+ DeploymentId = Shapes::StringShape.new(name: 'DeploymentId')
32
+ DeploymentName = Shapes::StringShape.new(name: 'DeploymentName')
33
+ DeploymentPatternName = Shapes::StringShape.new(name: 'DeploymentPatternName')
34
+ DeploymentSpecifications = Shapes::MapShape.new(name: 'DeploymentSpecifications')
35
+ DeploymentStatus = Shapes::StringShape.new(name: 'DeploymentStatus')
36
+ EventStatus = Shapes::StringShape.new(name: 'EventStatus')
37
+ GetDeploymentInput = Shapes::StructureShape.new(name: 'GetDeploymentInput')
38
+ GetDeploymentOutput = Shapes::StructureShape.new(name: 'GetDeploymentOutput')
39
+ GetWorkloadInput = Shapes::StructureShape.new(name: 'GetWorkloadInput')
40
+ GetWorkloadOutput = Shapes::StructureShape.new(name: 'GetWorkloadOutput')
41
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
42
+ KeyString = Shapes::StringShape.new(name: 'KeyString')
43
+ ListDeploymentEventsInput = Shapes::StructureShape.new(name: 'ListDeploymentEventsInput')
44
+ ListDeploymentEventsOutput = Shapes::StructureShape.new(name: 'ListDeploymentEventsOutput')
45
+ ListDeploymentsInput = Shapes::StructureShape.new(name: 'ListDeploymentsInput')
46
+ ListDeploymentsOutput = Shapes::StructureShape.new(name: 'ListDeploymentsOutput')
47
+ ListWorkloadDeploymentPatternsInput = Shapes::StructureShape.new(name: 'ListWorkloadDeploymentPatternsInput')
48
+ ListWorkloadDeploymentPatternsOutput = Shapes::StructureShape.new(name: 'ListWorkloadDeploymentPatternsOutput')
49
+ ListWorkloadsInput = Shapes::StructureShape.new(name: 'ListWorkloadsInput')
50
+ ListWorkloadsOutput = Shapes::StructureShape.new(name: 'ListWorkloadsOutput')
51
+ MaxDeploymentEventResults = Shapes::IntegerShape.new(name: 'MaxDeploymentEventResults')
52
+ MaxDeploymentResults = Shapes::IntegerShape.new(name: 'MaxDeploymentResults')
53
+ MaxWorkloadDeploymentPatternResults = Shapes::IntegerShape.new(name: 'MaxWorkloadDeploymentPatternResults')
54
+ MaxWorkloadResults = Shapes::IntegerShape.new(name: 'MaxWorkloadResults')
55
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
56
+ ResourceLimitException = Shapes::StructureShape.new(name: 'ResourceLimitException')
57
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
58
+ String = Shapes::StringShape.new(name: 'String')
59
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
60
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
61
+ ValueString = Shapes::StringShape.new(name: 'ValueString')
62
+ WorkloadData = Shapes::StructureShape.new(name: 'WorkloadData')
63
+ WorkloadDataSummary = Shapes::StructureShape.new(name: 'WorkloadDataSummary')
64
+ WorkloadDataSummaryList = Shapes::ListShape.new(name: 'WorkloadDataSummaryList')
65
+ WorkloadDeploymentPatternDataSummary = Shapes::StructureShape.new(name: 'WorkloadDeploymentPatternDataSummary')
66
+ WorkloadDeploymentPatternDataSummaryList = Shapes::ListShape.new(name: 'WorkloadDeploymentPatternDataSummaryList')
67
+ WorkloadDeploymentPatternStatus = Shapes::StringShape.new(name: 'WorkloadDeploymentPatternStatus')
68
+ WorkloadName = Shapes::StringShape.new(name: 'WorkloadName')
69
+ WorkloadStatus = Shapes::StringShape.new(name: 'WorkloadStatus')
70
+ WorkloadVersionName = Shapes::StringShape.new(name: 'WorkloadVersionName')
71
+
72
+ CreateDeploymentInput.add_member(:deployment_pattern_name, Shapes::ShapeRef.new(shape: DeploymentPatternName, required: true, location_name: "deploymentPatternName"))
73
+ CreateDeploymentInput.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
74
+ CreateDeploymentInput.add_member(:name, Shapes::ShapeRef.new(shape: DeploymentName, required: true, location_name: "name"))
75
+ CreateDeploymentInput.add_member(:specifications, Shapes::ShapeRef.new(shape: DeploymentSpecifications, required: true, location_name: "specifications"))
76
+ CreateDeploymentInput.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, required: true, location_name: "workloadName"))
77
+ CreateDeploymentInput.struct_class = Types::CreateDeploymentInput
78
+
79
+ CreateDeploymentOutput.add_member(:deployment_id, Shapes::ShapeRef.new(shape: DeploymentId, location_name: "deploymentId"))
80
+ CreateDeploymentOutput.struct_class = Types::CreateDeploymentOutput
81
+
82
+ DeleteDeploymentInput.add_member(:deployment_id, Shapes::ShapeRef.new(shape: DeploymentId, required: true, location_name: "deploymentId"))
83
+ DeleteDeploymentInput.struct_class = Types::DeleteDeploymentInput
84
+
85
+ DeleteDeploymentOutput.add_member(:status, Shapes::ShapeRef.new(shape: DeploymentStatus, location_name: "status"))
86
+ DeleteDeploymentOutput.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
87
+ DeleteDeploymentOutput.struct_class = Types::DeleteDeploymentOutput
88
+
89
+ DeploymentData.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
90
+ DeploymentData.add_member(:deleted_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "deletedAt"))
91
+ DeploymentData.add_member(:id, Shapes::ShapeRef.new(shape: DeploymentId, location_name: "id"))
92
+ DeploymentData.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
93
+ DeploymentData.add_member(:pattern_name, Shapes::ShapeRef.new(shape: DeploymentPatternName, location_name: "patternName"))
94
+ DeploymentData.add_member(:resource_group, Shapes::ShapeRef.new(shape: String, location_name: "resourceGroup"))
95
+ DeploymentData.add_member(:specifications, Shapes::ShapeRef.new(shape: DeploymentSpecifications, location_name: "specifications"))
96
+ DeploymentData.add_member(:status, Shapes::ShapeRef.new(shape: DeploymentStatus, location_name: "status"))
97
+ DeploymentData.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "workloadName"))
98
+ DeploymentData.struct_class = Types::DeploymentData
99
+
100
+ DeploymentDataSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
101
+ DeploymentDataSummary.add_member(:id, Shapes::ShapeRef.new(shape: DeploymentId, location_name: "id"))
102
+ DeploymentDataSummary.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
103
+ DeploymentDataSummary.add_member(:pattern_name, Shapes::ShapeRef.new(shape: DeploymentPatternName, location_name: "patternName"))
104
+ DeploymentDataSummary.add_member(:status, Shapes::ShapeRef.new(shape: DeploymentStatus, location_name: "status"))
105
+ DeploymentDataSummary.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "workloadName"))
106
+ DeploymentDataSummary.struct_class = Types::DeploymentDataSummary
107
+
108
+ DeploymentDataSummaryList.member = Shapes::ShapeRef.new(shape: DeploymentDataSummary)
109
+
110
+ DeploymentEventDataSummary.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
111
+ DeploymentEventDataSummary.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
112
+ DeploymentEventDataSummary.add_member(:status, Shapes::ShapeRef.new(shape: EventStatus, location_name: "status"))
113
+ DeploymentEventDataSummary.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
114
+ DeploymentEventDataSummary.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
115
+ DeploymentEventDataSummary.struct_class = Types::DeploymentEventDataSummary
116
+
117
+ DeploymentEventDataSummaryList.member = Shapes::ShapeRef.new(shape: DeploymentEventDataSummary)
118
+
119
+ DeploymentFilter.add_member(:name, Shapes::ShapeRef.new(shape: DeploymentFilterKey, location_name: "name"))
120
+ DeploymentFilter.add_member(:values, Shapes::ShapeRef.new(shape: DeploymentFilterValues, location_name: "values"))
121
+ DeploymentFilter.struct_class = Types::DeploymentFilter
122
+
123
+ DeploymentFilterList.member = Shapes::ShapeRef.new(shape: DeploymentFilter)
124
+
125
+ DeploymentFilterValues.member = Shapes::ShapeRef.new(shape: DeploymentFilterValuesMemberString)
126
+
127
+ DeploymentSpecifications.key = Shapes::ShapeRef.new(shape: KeyString)
128
+ DeploymentSpecifications.value = Shapes::ShapeRef.new(shape: ValueString)
129
+
130
+ GetDeploymentInput.add_member(:deployment_id, Shapes::ShapeRef.new(shape: DeploymentId, required: true, location_name: "deploymentId"))
131
+ GetDeploymentInput.struct_class = Types::GetDeploymentInput
132
+
133
+ GetDeploymentOutput.add_member(:deployment, Shapes::ShapeRef.new(shape: DeploymentData, location_name: "deployment"))
134
+ GetDeploymentOutput.struct_class = Types::GetDeploymentOutput
135
+
136
+ GetWorkloadInput.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, required: true, location_name: "workloadName"))
137
+ GetWorkloadInput.struct_class = Types::GetWorkloadInput
138
+
139
+ GetWorkloadOutput.add_member(:workload, Shapes::ShapeRef.new(shape: WorkloadData, location_name: "workload"))
140
+ GetWorkloadOutput.struct_class = Types::GetWorkloadOutput
141
+
142
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
143
+ InternalServerException.struct_class = Types::InternalServerException
144
+
145
+ ListDeploymentEventsInput.add_member(:deployment_id, Shapes::ShapeRef.new(shape: DeploymentId, required: true, location_name: "deploymentId"))
146
+ ListDeploymentEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxDeploymentEventResults, location_name: "maxResults"))
147
+ ListDeploymentEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
148
+ ListDeploymentEventsInput.struct_class = Types::ListDeploymentEventsInput
149
+
150
+ ListDeploymentEventsOutput.add_member(:deployment_events, Shapes::ShapeRef.new(shape: DeploymentEventDataSummaryList, location_name: "deploymentEvents"))
151
+ ListDeploymentEventsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
152
+ ListDeploymentEventsOutput.struct_class = Types::ListDeploymentEventsOutput
153
+
154
+ ListDeploymentsInput.add_member(:filters, Shapes::ShapeRef.new(shape: DeploymentFilterList, location_name: "filters"))
155
+ ListDeploymentsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxDeploymentResults, location_name: "maxResults"))
156
+ ListDeploymentsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
157
+ ListDeploymentsInput.struct_class = Types::ListDeploymentsInput
158
+
159
+ ListDeploymentsOutput.add_member(:deployments, Shapes::ShapeRef.new(shape: DeploymentDataSummaryList, location_name: "deployments"))
160
+ ListDeploymentsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
161
+ ListDeploymentsOutput.struct_class = Types::ListDeploymentsOutput
162
+
163
+ ListWorkloadDeploymentPatternsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxWorkloadDeploymentPatternResults, location_name: "maxResults"))
164
+ ListWorkloadDeploymentPatternsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
165
+ ListWorkloadDeploymentPatternsInput.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, required: true, location_name: "workloadName"))
166
+ ListWorkloadDeploymentPatternsInput.struct_class = Types::ListWorkloadDeploymentPatternsInput
167
+
168
+ ListWorkloadDeploymentPatternsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
169
+ ListWorkloadDeploymentPatternsOutput.add_member(:workload_deployment_patterns, Shapes::ShapeRef.new(shape: WorkloadDeploymentPatternDataSummaryList, location_name: "workloadDeploymentPatterns"))
170
+ ListWorkloadDeploymentPatternsOutput.struct_class = Types::ListWorkloadDeploymentPatternsOutput
171
+
172
+ ListWorkloadsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxWorkloadResults, location_name: "maxResults"))
173
+ ListWorkloadsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
174
+ ListWorkloadsInput.struct_class = Types::ListWorkloadsInput
175
+
176
+ ListWorkloadsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
177
+ ListWorkloadsOutput.add_member(:workloads, Shapes::ShapeRef.new(shape: WorkloadDataSummaryList, location_name: "workloads"))
178
+ ListWorkloadsOutput.struct_class = Types::ListWorkloadsOutput
179
+
180
+ ResourceLimitException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
181
+ ResourceLimitException.struct_class = Types::ResourceLimitException
182
+
183
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
184
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
185
+
186
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
187
+ ValidationException.struct_class = Types::ValidationException
188
+
189
+ WorkloadData.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
190
+ WorkloadData.add_member(:display_name, Shapes::ShapeRef.new(shape: String, location_name: "displayName"))
191
+ WorkloadData.add_member(:documentation_url, Shapes::ShapeRef.new(shape: String, location_name: "documentationUrl"))
192
+ WorkloadData.add_member(:icon_url, Shapes::ShapeRef.new(shape: String, location_name: "iconUrl"))
193
+ WorkloadData.add_member(:status, Shapes::ShapeRef.new(shape: WorkloadStatus, location_name: "status"))
194
+ WorkloadData.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
195
+ WorkloadData.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "workloadName"))
196
+ WorkloadData.struct_class = Types::WorkloadData
197
+
198
+ WorkloadDataSummary.add_member(:display_name, Shapes::ShapeRef.new(shape: String, location_name: "displayName"))
199
+ WorkloadDataSummary.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "workloadName"))
200
+ WorkloadDataSummary.struct_class = Types::WorkloadDataSummary
201
+
202
+ WorkloadDataSummaryList.member = Shapes::ShapeRef.new(shape: WorkloadDataSummary)
203
+
204
+ WorkloadDeploymentPatternDataSummary.add_member(:deployment_pattern_name, Shapes::ShapeRef.new(shape: DeploymentPatternName, location_name: "deploymentPatternName"))
205
+ WorkloadDeploymentPatternDataSummary.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
206
+ WorkloadDeploymentPatternDataSummary.add_member(:display_name, Shapes::ShapeRef.new(shape: String, location_name: "displayName"))
207
+ WorkloadDeploymentPatternDataSummary.add_member(:status, Shapes::ShapeRef.new(shape: WorkloadDeploymentPatternStatus, location_name: "status"))
208
+ WorkloadDeploymentPatternDataSummary.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
209
+ WorkloadDeploymentPatternDataSummary.add_member(:workload_name, Shapes::ShapeRef.new(shape: WorkloadName, location_name: "workloadName"))
210
+ WorkloadDeploymentPatternDataSummary.add_member(:workload_version_name, Shapes::ShapeRef.new(shape: WorkloadVersionName, location_name: "workloadVersionName"))
211
+ WorkloadDeploymentPatternDataSummary.struct_class = Types::WorkloadDeploymentPatternDataSummary
212
+
213
+ WorkloadDeploymentPatternDataSummaryList.member = Shapes::ShapeRef.new(shape: WorkloadDeploymentPatternDataSummary)
214
+
215
+
216
+ # @api private
217
+ API = Seahorse::Model::Api.new.tap do |api|
218
+
219
+ api.version = "2018-05-10"
220
+
221
+ api.metadata = {
222
+ "apiVersion" => "2018-05-10",
223
+ "endpointPrefix" => "launchwizard",
224
+ "jsonVersion" => "1.1",
225
+ "protocol" => "rest-json",
226
+ "serviceFullName" => "AWS Launch Wizard",
227
+ "serviceId" => "Launch Wizard",
228
+ "signatureVersion" => "v4",
229
+ "signingName" => "launchwizard",
230
+ "uid" => "launch-wizard-2018-05-10",
231
+ }
232
+
233
+ api.add_operation(:create_deployment, Seahorse::Model::Operation.new.tap do |o|
234
+ o.name = "CreateDeployment"
235
+ o.http_method = "POST"
236
+ o.http_request_uri = "/createDeployment"
237
+ o.input = Shapes::ShapeRef.new(shape: CreateDeploymentInput)
238
+ o.output = Shapes::ShapeRef.new(shape: CreateDeploymentOutput)
239
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitException)
240
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
241
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
242
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
243
+ end)
244
+
245
+ api.add_operation(:delete_deployment, Seahorse::Model::Operation.new.tap do |o|
246
+ o.name = "DeleteDeployment"
247
+ o.http_method = "POST"
248
+ o.http_request_uri = "/deleteDeployment"
249
+ o.input = Shapes::ShapeRef.new(shape: DeleteDeploymentInput)
250
+ o.output = Shapes::ShapeRef.new(shape: DeleteDeploymentOutput)
251
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
252
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
253
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
254
+ end)
255
+
256
+ api.add_operation(:get_deployment, Seahorse::Model::Operation.new.tap do |o|
257
+ o.name = "GetDeployment"
258
+ o.http_method = "POST"
259
+ o.http_request_uri = "/getDeployment"
260
+ o.input = Shapes::ShapeRef.new(shape: GetDeploymentInput)
261
+ o.output = Shapes::ShapeRef.new(shape: GetDeploymentOutput)
262
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
263
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
264
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
265
+ end)
266
+
267
+ api.add_operation(:get_workload, Seahorse::Model::Operation.new.tap do |o|
268
+ o.name = "GetWorkload"
269
+ o.http_method = "POST"
270
+ o.http_request_uri = "/getWorkload"
271
+ o.input = Shapes::ShapeRef.new(shape: GetWorkloadInput)
272
+ o.output = Shapes::ShapeRef.new(shape: GetWorkloadOutput)
273
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
274
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
275
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
276
+ end)
277
+
278
+ api.add_operation(:list_deployment_events, Seahorse::Model::Operation.new.tap do |o|
279
+ o.name = "ListDeploymentEvents"
280
+ o.http_method = "POST"
281
+ o.http_request_uri = "/listDeploymentEvents"
282
+ o.input = Shapes::ShapeRef.new(shape: ListDeploymentEventsInput)
283
+ o.output = Shapes::ShapeRef.new(shape: ListDeploymentEventsOutput)
284
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
285
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
286
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
287
+ o[:pager] = Aws::Pager.new(
288
+ limit_key: "max_results",
289
+ tokens: {
290
+ "next_token" => "next_token"
291
+ }
292
+ )
293
+ end)
294
+
295
+ api.add_operation(:list_deployments, Seahorse::Model::Operation.new.tap do |o|
296
+ o.name = "ListDeployments"
297
+ o.http_method = "POST"
298
+ o.http_request_uri = "/listDeployments"
299
+ o.input = Shapes::ShapeRef.new(shape: ListDeploymentsInput)
300
+ o.output = Shapes::ShapeRef.new(shape: ListDeploymentsOutput)
301
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
302
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
303
+ o[:pager] = Aws::Pager.new(
304
+ limit_key: "max_results",
305
+ tokens: {
306
+ "next_token" => "next_token"
307
+ }
308
+ )
309
+ end)
310
+
311
+ api.add_operation(:list_workload_deployment_patterns, Seahorse::Model::Operation.new.tap do |o|
312
+ o.name = "ListWorkloadDeploymentPatterns"
313
+ o.http_method = "POST"
314
+ o.http_request_uri = "/listWorkloadDeploymentPatterns"
315
+ o.input = Shapes::ShapeRef.new(shape: ListWorkloadDeploymentPatternsInput)
316
+ o.output = Shapes::ShapeRef.new(shape: ListWorkloadDeploymentPatternsOutput)
317
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
318
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
319
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
320
+ o[:pager] = Aws::Pager.new(
321
+ limit_key: "max_results",
322
+ tokens: {
323
+ "next_token" => "next_token"
324
+ }
325
+ )
326
+ end)
327
+
328
+ api.add_operation(:list_workloads, Seahorse::Model::Operation.new.tap do |o|
329
+ o.name = "ListWorkloads"
330
+ o.http_method = "POST"
331
+ o.http_request_uri = "/listWorkloads"
332
+ o.input = Shapes::ShapeRef.new(shape: ListWorkloadsInput)
333
+ o.output = Shapes::ShapeRef.new(shape: ListWorkloadsOutput)
334
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
335
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
336
+ o[:pager] = Aws::Pager.new(
337
+ limit_key: "max_results",
338
+ tokens: {
339
+ "next_token" => "next_token"
340
+ }
341
+ )
342
+ end)
343
+ end
344
+
345
+ end
346
+ end
File without changes
@@ -0,0 +1,66 @@
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::LaunchWizard
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # 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.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -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::LaunchWizard
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://launchwizard-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://launchwizard-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://launchwizard.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://launchwizard.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
51
+
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,128 @@
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::LaunchWizard
12
+ # @api private
13
+ module Endpoints
14
+
15
+ class CreateDeployment
16
+ def self.build(context)
17
+ unless context.config.regional_endpoint
18
+ endpoint = context.config.endpoint.to_s
19
+ end
20
+ Aws::LaunchWizard::EndpointParameters.new(
21
+ region: context.config.region,
22
+ use_dual_stack: context.config.use_dualstack_endpoint,
23
+ use_fips: context.config.use_fips_endpoint,
24
+ endpoint: endpoint,
25
+ )
26
+ end
27
+ end
28
+
29
+ class DeleteDeployment
30
+ def self.build(context)
31
+ unless context.config.regional_endpoint
32
+ endpoint = context.config.endpoint.to_s
33
+ end
34
+ Aws::LaunchWizard::EndpointParameters.new(
35
+ region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
37
+ use_fips: context.config.use_fips_endpoint,
38
+ endpoint: endpoint,
39
+ )
40
+ end
41
+ end
42
+
43
+ class GetDeployment
44
+ def self.build(context)
45
+ unless context.config.regional_endpoint
46
+ endpoint = context.config.endpoint.to_s
47
+ end
48
+ Aws::LaunchWizard::EndpointParameters.new(
49
+ region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
51
+ use_fips: context.config.use_fips_endpoint,
52
+ endpoint: endpoint,
53
+ )
54
+ end
55
+ end
56
+
57
+ class GetWorkload
58
+ def self.build(context)
59
+ unless context.config.regional_endpoint
60
+ endpoint = context.config.endpoint.to_s
61
+ end
62
+ Aws::LaunchWizard::EndpointParameters.new(
63
+ region: context.config.region,
64
+ use_dual_stack: context.config.use_dualstack_endpoint,
65
+ use_fips: context.config.use_fips_endpoint,
66
+ endpoint: endpoint,
67
+ )
68
+ end
69
+ end
70
+
71
+ class ListDeploymentEvents
72
+ def self.build(context)
73
+ unless context.config.regional_endpoint
74
+ endpoint = context.config.endpoint.to_s
75
+ end
76
+ Aws::LaunchWizard::EndpointParameters.new(
77
+ region: context.config.region,
78
+ use_dual_stack: context.config.use_dualstack_endpoint,
79
+ use_fips: context.config.use_fips_endpoint,
80
+ endpoint: endpoint,
81
+ )
82
+ end
83
+ end
84
+
85
+ class ListDeployments
86
+ def self.build(context)
87
+ unless context.config.regional_endpoint
88
+ endpoint = context.config.endpoint.to_s
89
+ end
90
+ Aws::LaunchWizard::EndpointParameters.new(
91
+ region: context.config.region,
92
+ use_dual_stack: context.config.use_dualstack_endpoint,
93
+ use_fips: context.config.use_fips_endpoint,
94
+ endpoint: endpoint,
95
+ )
96
+ end
97
+ end
98
+
99
+ class ListWorkloadDeploymentPatterns
100
+ def self.build(context)
101
+ unless context.config.regional_endpoint
102
+ endpoint = context.config.endpoint.to_s
103
+ end
104
+ Aws::LaunchWizard::EndpointParameters.new(
105
+ region: context.config.region,
106
+ use_dual_stack: context.config.use_dualstack_endpoint,
107
+ use_fips: context.config.use_fips_endpoint,
108
+ endpoint: endpoint,
109
+ )
110
+ end
111
+ end
112
+
113
+ class ListWorkloads
114
+ def self.build(context)
115
+ unless context.config.regional_endpoint
116
+ endpoint = context.config.endpoint.to_s
117
+ end
118
+ Aws::LaunchWizard::EndpointParameters.new(
119
+ region: context.config.region,
120
+ use_dual_stack: context.config.use_dualstack_endpoint,
121
+ use_fips: context.config.use_fips_endpoint,
122
+ endpoint: endpoint,
123
+ )
124
+ end
125
+ end
126
+
127
+ end
128
+ end