aws-sdk-supplychain 1.16.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,7 @@ module Aws::SupplyChain
16
16
 
17
17
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
18
  AscResourceArn = Shapes::StringShape.new(name: 'AscResourceArn')
19
+ AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
19
20
  BillOfMaterialsImportJob = Shapes::StructureShape.new(name: 'BillOfMaterialsImportJob')
20
21
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
21
22
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
@@ -28,6 +29,8 @@ module Aws::SupplyChain
28
29
  CreateDataIntegrationFlowResponse = Shapes::StructureShape.new(name: 'CreateDataIntegrationFlowResponse')
29
30
  CreateDataLakeDatasetRequest = Shapes::StructureShape.new(name: 'CreateDataLakeDatasetRequest')
30
31
  CreateDataLakeDatasetResponse = Shapes::StructureShape.new(name: 'CreateDataLakeDatasetResponse')
32
+ CreateInstanceRequest = Shapes::StructureShape.new(name: 'CreateInstanceRequest')
33
+ CreateInstanceResponse = Shapes::StructureShape.new(name: 'CreateInstanceResponse')
31
34
  DataIntegrationEventData = Shapes::StringShape.new(name: 'DataIntegrationEventData')
32
35
  DataIntegrationEventGroupId = Shapes::StringShape.new(name: 'DataIntegrationEventGroupId')
33
36
  DataIntegrationEventType = Shapes::StringShape.new(name: 'DataIntegrationEventType')
@@ -73,17 +76,35 @@ module Aws::SupplyChain
73
76
  DeleteDataIntegrationFlowResponse = Shapes::StructureShape.new(name: 'DeleteDataIntegrationFlowResponse')
74
77
  DeleteDataLakeDatasetRequest = Shapes::StructureShape.new(name: 'DeleteDataLakeDatasetRequest')
75
78
  DeleteDataLakeDatasetResponse = Shapes::StructureShape.new(name: 'DeleteDataLakeDatasetResponse')
79
+ DeleteInstanceRequest = Shapes::StructureShape.new(name: 'DeleteInstanceRequest')
80
+ DeleteInstanceResponse = Shapes::StructureShape.new(name: 'DeleteInstanceResponse')
81
+ Double = Shapes::FloatShape.new(name: 'Double')
76
82
  GetBillOfMaterialsImportJobRequest = Shapes::StructureShape.new(name: 'GetBillOfMaterialsImportJobRequest')
77
83
  GetBillOfMaterialsImportJobResponse = Shapes::StructureShape.new(name: 'GetBillOfMaterialsImportJobResponse')
78
84
  GetDataIntegrationFlowRequest = Shapes::StructureShape.new(name: 'GetDataIntegrationFlowRequest')
79
85
  GetDataIntegrationFlowResponse = Shapes::StructureShape.new(name: 'GetDataIntegrationFlowResponse')
80
86
  GetDataLakeDatasetRequest = Shapes::StructureShape.new(name: 'GetDataLakeDatasetRequest')
81
87
  GetDataLakeDatasetResponse = Shapes::StructureShape.new(name: 'GetDataLakeDatasetResponse')
88
+ GetInstanceRequest = Shapes::StructureShape.new(name: 'GetInstanceRequest')
89
+ GetInstanceResponse = Shapes::StructureShape.new(name: 'GetInstanceResponse')
90
+ Instance = Shapes::StructureShape.new(name: 'Instance')
91
+ InstanceDescription = Shapes::StringShape.new(name: 'InstanceDescription')
92
+ InstanceList = Shapes::ListShape.new(name: 'InstanceList')
93
+ InstanceMaxResults = Shapes::IntegerShape.new(name: 'InstanceMaxResults')
94
+ InstanceName = Shapes::StringShape.new(name: 'InstanceName')
95
+ InstanceNameList = Shapes::ListShape.new(name: 'InstanceNameList')
96
+ InstanceNextToken = Shapes::StringShape.new(name: 'InstanceNextToken')
97
+ InstanceState = Shapes::StringShape.new(name: 'InstanceState')
98
+ InstanceStateList = Shapes::ListShape.new(name: 'InstanceStateList')
99
+ InstanceWebAppDnsDomain = Shapes::StringShape.new(name: 'InstanceWebAppDnsDomain')
82
100
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
101
+ KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
83
102
  ListDataIntegrationFlowsRequest = Shapes::StructureShape.new(name: 'ListDataIntegrationFlowsRequest')
84
103
  ListDataIntegrationFlowsResponse = Shapes::StructureShape.new(name: 'ListDataIntegrationFlowsResponse')
85
104
  ListDataLakeDatasetsRequest = Shapes::StructureShape.new(name: 'ListDataLakeDatasetsRequest')
86
105
  ListDataLakeDatasetsResponse = Shapes::StructureShape.new(name: 'ListDataLakeDatasetsResponse')
106
+ ListInstancesRequest = Shapes::StructureShape.new(name: 'ListInstancesRequest')
107
+ ListInstancesResponse = Shapes::StructureShape.new(name: 'ListInstancesResponse')
87
108
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
88
109
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
89
110
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -108,6 +129,8 @@ module Aws::SupplyChain
108
129
  UpdateDataIntegrationFlowResponse = Shapes::StructureShape.new(name: 'UpdateDataIntegrationFlowResponse')
109
130
  UpdateDataLakeDatasetRequest = Shapes::StructureShape.new(name: 'UpdateDataLakeDatasetRequest')
110
131
  UpdateDataLakeDatasetResponse = Shapes::StructureShape.new(name: 'UpdateDataLakeDatasetResponse')
132
+ UpdateInstanceRequest = Shapes::StructureShape.new(name: 'UpdateInstanceRequest')
133
+ UpdateInstanceResponse = Shapes::StructureShape.new(name: 'UpdateInstanceResponse')
111
134
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
112
135
 
113
136
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
@@ -154,6 +177,16 @@ module Aws::SupplyChain
154
177
  CreateDataLakeDatasetResponse.add_member(:dataset, Shapes::ShapeRef.new(shape: DataLakeDataset, required: true, location_name: "dataset"))
155
178
  CreateDataLakeDatasetResponse.struct_class = Types::CreateDataLakeDatasetResponse
156
179
 
180
+ CreateInstanceRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: InstanceName, location_name: "instanceName"))
181
+ CreateInstanceRequest.add_member(:instance_description, Shapes::ShapeRef.new(shape: InstanceDescription, location_name: "instanceDescription"))
182
+ CreateInstanceRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKeyArn"))
183
+ CreateInstanceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
184
+ CreateInstanceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
185
+ CreateInstanceRequest.struct_class = Types::CreateInstanceRequest
186
+
187
+ CreateInstanceResponse.add_member(:instance, Shapes::ShapeRef.new(shape: Instance, required: true, location_name: "instance"))
188
+ CreateInstanceResponse.struct_class = Types::CreateInstanceResponse
189
+
157
190
  DataIntegrationFlow.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "instanceId"))
158
191
  DataIntegrationFlow.add_member(:name, Shapes::ShapeRef.new(shape: DataIntegrationFlowName, required: true, location_name: "name"))
159
192
  DataIntegrationFlow.add_member(:sources, Shapes::ShapeRef.new(shape: DataIntegrationFlowSourceList, required: true, location_name: "sources"))
@@ -251,6 +284,12 @@ module Aws::SupplyChain
251
284
  DeleteDataLakeDatasetResponse.add_member(:name, Shapes::ShapeRef.new(shape: DataLakeDatasetName, required: true, location_name: "name"))
252
285
  DeleteDataLakeDatasetResponse.struct_class = Types::DeleteDataLakeDatasetResponse
253
286
 
287
+ DeleteInstanceRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "instanceId"))
288
+ DeleteInstanceRequest.struct_class = Types::DeleteInstanceRequest
289
+
290
+ DeleteInstanceResponse.add_member(:instance, Shapes::ShapeRef.new(shape: Instance, required: true, location_name: "instance"))
291
+ DeleteInstanceResponse.struct_class = Types::DeleteInstanceResponse
292
+
254
293
  GetBillOfMaterialsImportJobRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "instanceId"))
255
294
  GetBillOfMaterialsImportJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "jobId"))
256
295
  GetBillOfMaterialsImportJobRequest.struct_class = Types::GetBillOfMaterialsImportJobRequest
@@ -273,6 +312,30 @@ module Aws::SupplyChain
273
312
  GetDataLakeDatasetResponse.add_member(:dataset, Shapes::ShapeRef.new(shape: DataLakeDataset, required: true, location_name: "dataset"))
274
313
  GetDataLakeDatasetResponse.struct_class = Types::GetDataLakeDatasetResponse
275
314
 
315
+ GetInstanceRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "instanceId"))
316
+ GetInstanceRequest.struct_class = Types::GetInstanceRequest
317
+
318
+ GetInstanceResponse.add_member(:instance, Shapes::ShapeRef.new(shape: Instance, required: true, location_name: "instance"))
319
+ GetInstanceResponse.struct_class = Types::GetInstanceResponse
320
+
321
+ Instance.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "instanceId"))
322
+ Instance.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: AwsAccountId, required: true, location_name: "awsAccountId"))
323
+ Instance.add_member(:state, Shapes::ShapeRef.new(shape: InstanceState, required: true, location_name: "state"))
324
+ Instance.add_member(:web_app_dns_domain, Shapes::ShapeRef.new(shape: InstanceWebAppDnsDomain, location_name: "webAppDnsDomain"))
325
+ Instance.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdTime"))
326
+ Instance.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
327
+ Instance.add_member(:instance_name, Shapes::ShapeRef.new(shape: InstanceName, location_name: "instanceName"))
328
+ Instance.add_member(:instance_description, Shapes::ShapeRef.new(shape: InstanceDescription, location_name: "instanceDescription"))
329
+ Instance.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKeyArn"))
330
+ Instance.add_member(:version_number, Shapes::ShapeRef.new(shape: Double, location_name: "versionNumber"))
331
+ Instance.struct_class = Types::Instance
332
+
333
+ InstanceList.member = Shapes::ShapeRef.new(shape: Instance)
334
+
335
+ InstanceNameList.member = Shapes::ShapeRef.new(shape: InstanceName)
336
+
337
+ InstanceStateList.member = Shapes::ShapeRef.new(shape: InstanceState)
338
+
276
339
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
277
340
  InternalServerException.struct_class = Types::InternalServerException
278
341
 
@@ -295,6 +358,16 @@ module Aws::SupplyChain
295
358
  ListDataLakeDatasetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: DataLakeDatasetNextToken, location_name: "nextToken"))
296
359
  ListDataLakeDatasetsResponse.struct_class = Types::ListDataLakeDatasetsResponse
297
360
 
361
+ ListInstancesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: InstanceNextToken, location: "querystring", location_name: "nextToken"))
362
+ ListInstancesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: InstanceMaxResults, location: "querystring", location_name: "maxResults"))
363
+ ListInstancesRequest.add_member(:instance_name_filter, Shapes::ShapeRef.new(shape: InstanceNameList, location: "querystring", location_name: "instanceNameFilter"))
364
+ ListInstancesRequest.add_member(:instance_state_filter, Shapes::ShapeRef.new(shape: InstanceStateList, location: "querystring", location_name: "instanceStateFilter"))
365
+ ListInstancesRequest.struct_class = Types::ListInstancesRequest
366
+
367
+ ListInstancesResponse.add_member(:instances, Shapes::ShapeRef.new(shape: InstanceList, required: true, location_name: "instances"))
368
+ ListInstancesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: InstanceNextToken, location_name: "nextToken"))
369
+ ListInstancesResponse.struct_class = Types::ListInstancesResponse
370
+
298
371
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AscResourceArn, required: true, location: "uri", location_name: "resourceArn"))
299
372
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
300
373
 
@@ -357,6 +430,14 @@ module Aws::SupplyChain
357
430
  UpdateDataLakeDatasetResponse.add_member(:dataset, Shapes::ShapeRef.new(shape: DataLakeDataset, required: true, location_name: "dataset"))
358
431
  UpdateDataLakeDatasetResponse.struct_class = Types::UpdateDataLakeDatasetResponse
359
432
 
433
+ UpdateInstanceRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "instanceId"))
434
+ UpdateInstanceRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: InstanceName, location_name: "instanceName"))
435
+ UpdateInstanceRequest.add_member(:instance_description, Shapes::ShapeRef.new(shape: InstanceDescription, location_name: "instanceDescription"))
436
+ UpdateInstanceRequest.struct_class = Types::UpdateInstanceRequest
437
+
438
+ UpdateInstanceResponse.add_member(:instance, Shapes::ShapeRef.new(shape: Instance, required: true, location_name: "instance"))
439
+ UpdateInstanceResponse.struct_class = Types::UpdateInstanceResponse
440
+
360
441
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
361
442
  ValidationException.struct_class = Types::ValidationException
362
443
 
@@ -424,6 +505,21 @@ module Aws::SupplyChain
424
505
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
425
506
  end)
426
507
 
508
+ api.add_operation(:create_instance, Seahorse::Model::Operation.new.tap do |o|
509
+ o.name = "CreateInstance"
510
+ o.http_method = "POST"
511
+ o.http_request_uri = "/api/instance"
512
+ o.input = Shapes::ShapeRef.new(shape: CreateInstanceRequest)
513
+ o.output = Shapes::ShapeRef.new(shape: CreateInstanceResponse)
514
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
515
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
516
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
517
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
518
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
519
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
520
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
521
+ end)
522
+
427
523
  api.add_operation(:delete_data_integration_flow, Seahorse::Model::Operation.new.tap do |o|
428
524
  o.name = "DeleteDataIntegrationFlow"
429
525
  o.http_method = "DELETE"
@@ -454,6 +550,21 @@ module Aws::SupplyChain
454
550
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
455
551
  end)
456
552
 
553
+ api.add_operation(:delete_instance, Seahorse::Model::Operation.new.tap do |o|
554
+ o.name = "DeleteInstance"
555
+ o.http_method = "DELETE"
556
+ o.http_request_uri = "/api/instance/{instanceId}"
557
+ o.input = Shapes::ShapeRef.new(shape: DeleteInstanceRequest)
558
+ o.output = Shapes::ShapeRef.new(shape: DeleteInstanceResponse)
559
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
560
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
561
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
562
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
563
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
564
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
565
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
566
+ end)
567
+
457
568
  api.add_operation(:get_bill_of_materials_import_job, Seahorse::Model::Operation.new.tap do |o|
458
569
  o.name = "GetBillOfMaterialsImportJob"
459
570
  o.http_method = "GET"
@@ -499,6 +610,21 @@ module Aws::SupplyChain
499
610
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
500
611
  end)
501
612
 
613
+ api.add_operation(:get_instance, Seahorse::Model::Operation.new.tap do |o|
614
+ o.name = "GetInstance"
615
+ o.http_method = "GET"
616
+ o.http_request_uri = "/api/instance/{instanceId}"
617
+ o.input = Shapes::ShapeRef.new(shape: GetInstanceRequest)
618
+ o.output = Shapes::ShapeRef.new(shape: GetInstanceResponse)
619
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
620
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
621
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
622
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
623
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
624
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
625
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
626
+ end)
627
+
502
628
  api.add_operation(:list_data_integration_flows, Seahorse::Model::Operation.new.tap do |o|
503
629
  o.name = "ListDataIntegrationFlows"
504
630
  o.http_method = "GET"
@@ -541,6 +667,27 @@ module Aws::SupplyChain
541
667
  )
542
668
  end)
543
669
 
670
+ api.add_operation(:list_instances, Seahorse::Model::Operation.new.tap do |o|
671
+ o.name = "ListInstances"
672
+ o.http_method = "GET"
673
+ o.http_request_uri = "/api/instance"
674
+ o.input = Shapes::ShapeRef.new(shape: ListInstancesRequest)
675
+ o.output = Shapes::ShapeRef.new(shape: ListInstancesResponse)
676
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
677
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
678
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
679
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
680
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
681
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
682
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
683
+ o[:pager] = Aws::Pager.new(
684
+ limit_key: "max_results",
685
+ tokens: {
686
+ "next_token" => "next_token"
687
+ }
688
+ )
689
+ end)
690
+
544
691
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
545
692
  o.name = "ListTagsForResource"
546
693
  o.http_method = "GET"
@@ -630,6 +777,21 @@ module Aws::SupplyChain
630
777
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
631
778
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
632
779
  end)
780
+
781
+ api.add_operation(:update_instance, Seahorse::Model::Operation.new.tap do |o|
782
+ o.name = "UpdateInstance"
783
+ o.http_method = "PATCH"
784
+ o.http_request_uri = "/api/instance/{instanceId}"
785
+ o.input = Shapes::ShapeRef.new(shape: UpdateInstanceRequest)
786
+ o.output = Shapes::ShapeRef.new(shape: UpdateInstanceResponse)
787
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
788
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
789
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
790
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
791
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
792
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
793
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
794
+ end)
633
795
  end
634
796
 
635
797
  end
@@ -52,15 +52,18 @@ module Aws::SupplyChain
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
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
55
  self[:use_fips] = options[:use_fips]
59
56
  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
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -12,181 +12,9 @@ module Aws::SupplyChain
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class CreateBillOfMaterialsImportJob
16
- def self.build(context)
17
- Aws::SupplyChain::EndpointParameters.new(
18
- region: context.config.region,
19
- use_dual_stack: context.config.use_dualstack_endpoint,
20
- use_fips: context.config.use_fips_endpoint,
21
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
22
- )
23
- end
24
- end
25
-
26
- class CreateDataIntegrationFlow
27
- def self.build(context)
28
- Aws::SupplyChain::EndpointParameters.new(
29
- region: context.config.region,
30
- use_dual_stack: context.config.use_dualstack_endpoint,
31
- use_fips: context.config.use_fips_endpoint,
32
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
33
- )
34
- end
35
- end
36
-
37
- class CreateDataLakeDataset
38
- def self.build(context)
39
- Aws::SupplyChain::EndpointParameters.new(
40
- region: context.config.region,
41
- use_dual_stack: context.config.use_dualstack_endpoint,
42
- use_fips: context.config.use_fips_endpoint,
43
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
44
- )
45
- end
46
- end
47
-
48
- class DeleteDataIntegrationFlow
49
- def self.build(context)
50
- Aws::SupplyChain::EndpointParameters.new(
51
- region: context.config.region,
52
- use_dual_stack: context.config.use_dualstack_endpoint,
53
- use_fips: context.config.use_fips_endpoint,
54
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
55
- )
56
- end
57
- end
58
-
59
- class DeleteDataLakeDataset
60
- def self.build(context)
61
- Aws::SupplyChain::EndpointParameters.new(
62
- region: context.config.region,
63
- use_dual_stack: context.config.use_dualstack_endpoint,
64
- use_fips: context.config.use_fips_endpoint,
65
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
66
- )
67
- end
68
- end
69
-
70
- class GetBillOfMaterialsImportJob
71
- def self.build(context)
72
- Aws::SupplyChain::EndpointParameters.new(
73
- region: context.config.region,
74
- use_dual_stack: context.config.use_dualstack_endpoint,
75
- use_fips: context.config.use_fips_endpoint,
76
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
77
- )
78
- end
79
- end
80
-
81
- class GetDataIntegrationFlow
82
- def self.build(context)
83
- Aws::SupplyChain::EndpointParameters.new(
84
- region: context.config.region,
85
- use_dual_stack: context.config.use_dualstack_endpoint,
86
- use_fips: context.config.use_fips_endpoint,
87
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
88
- )
89
- end
90
- end
91
-
92
- class GetDataLakeDataset
93
- def self.build(context)
94
- Aws::SupplyChain::EndpointParameters.new(
95
- region: context.config.region,
96
- use_dual_stack: context.config.use_dualstack_endpoint,
97
- use_fips: context.config.use_fips_endpoint,
98
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
99
- )
100
- end
101
- end
102
15
 
103
- class ListDataIntegrationFlows
104
- def self.build(context)
105
- Aws::SupplyChain::EndpointParameters.new(
106
- region: context.config.region,
107
- use_dual_stack: context.config.use_dualstack_endpoint,
108
- use_fips: context.config.use_fips_endpoint,
109
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
110
- )
111
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::SupplyChain::EndpointParameters.create(context.config)
112
18
  end
113
-
114
- class ListDataLakeDatasets
115
- def self.build(context)
116
- Aws::SupplyChain::EndpointParameters.new(
117
- region: context.config.region,
118
- use_dual_stack: context.config.use_dualstack_endpoint,
119
- use_fips: context.config.use_fips_endpoint,
120
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
121
- )
122
- end
123
- end
124
-
125
- class ListTagsForResource
126
- def self.build(context)
127
- Aws::SupplyChain::EndpointParameters.new(
128
- region: context.config.region,
129
- use_dual_stack: context.config.use_dualstack_endpoint,
130
- use_fips: context.config.use_fips_endpoint,
131
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
132
- )
133
- end
134
- end
135
-
136
- class SendDataIntegrationEvent
137
- def self.build(context)
138
- Aws::SupplyChain::EndpointParameters.new(
139
- region: context.config.region,
140
- use_dual_stack: context.config.use_dualstack_endpoint,
141
- use_fips: context.config.use_fips_endpoint,
142
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
143
- )
144
- end
145
- end
146
-
147
- class TagResource
148
- def self.build(context)
149
- Aws::SupplyChain::EndpointParameters.new(
150
- region: context.config.region,
151
- use_dual_stack: context.config.use_dualstack_endpoint,
152
- use_fips: context.config.use_fips_endpoint,
153
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
154
- )
155
- end
156
- end
157
-
158
- class UntagResource
159
- def self.build(context)
160
- Aws::SupplyChain::EndpointParameters.new(
161
- region: context.config.region,
162
- use_dual_stack: context.config.use_dualstack_endpoint,
163
- use_fips: context.config.use_fips_endpoint,
164
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
165
- )
166
- end
167
- end
168
-
169
- class UpdateDataIntegrationFlow
170
- def self.build(context)
171
- Aws::SupplyChain::EndpointParameters.new(
172
- region: context.config.region,
173
- use_dual_stack: context.config.use_dualstack_endpoint,
174
- use_fips: context.config.use_fips_endpoint,
175
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
176
- )
177
- end
178
- end
179
-
180
- class UpdateDataLakeDataset
181
- def self.build(context)
182
- Aws::SupplyChain::EndpointParameters.new(
183
- region: context.config.region,
184
- use_dual_stack: context.config.use_dualstack_endpoint,
185
- use_fips: context.config.use_fips_endpoint,
186
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
187
- )
188
- end
189
- end
190
-
191
19
  end
192
20
  end
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::SupplyChain::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,43 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :create_bill_of_materials_import_job
74
- Aws::SupplyChain::Endpoints::CreateBillOfMaterialsImportJob.build(context)
75
- when :create_data_integration_flow
76
- Aws::SupplyChain::Endpoints::CreateDataIntegrationFlow.build(context)
77
- when :create_data_lake_dataset
78
- Aws::SupplyChain::Endpoints::CreateDataLakeDataset.build(context)
79
- when :delete_data_integration_flow
80
- Aws::SupplyChain::Endpoints::DeleteDataIntegrationFlow.build(context)
81
- when :delete_data_lake_dataset
82
- Aws::SupplyChain::Endpoints::DeleteDataLakeDataset.build(context)
83
- when :get_bill_of_materials_import_job
84
- Aws::SupplyChain::Endpoints::GetBillOfMaterialsImportJob.build(context)
85
- when :get_data_integration_flow
86
- Aws::SupplyChain::Endpoints::GetDataIntegrationFlow.build(context)
87
- when :get_data_lake_dataset
88
- Aws::SupplyChain::Endpoints::GetDataLakeDataset.build(context)
89
- when :list_data_integration_flows
90
- Aws::SupplyChain::Endpoints::ListDataIntegrationFlows.build(context)
91
- when :list_data_lake_datasets
92
- Aws::SupplyChain::Endpoints::ListDataLakeDatasets.build(context)
93
- when :list_tags_for_resource
94
- Aws::SupplyChain::Endpoints::ListTagsForResource.build(context)
95
- when :send_data_integration_event
96
- Aws::SupplyChain::Endpoints::SendDataIntegrationEvent.build(context)
97
- when :tag_resource
98
- Aws::SupplyChain::Endpoints::TagResource.build(context)
99
- when :untag_resource
100
- Aws::SupplyChain::Endpoints::UntagResource.build(context)
101
- when :update_data_integration_flow
102
- Aws::SupplyChain::Endpoints::UpdateDataIntegrationFlow.build(context)
103
- when :update_data_lake_dataset
104
- Aws::SupplyChain::Endpoints::UpdateDataLakeDataset.build(context)
105
- end
106
- end
107
70
  end
108
71
 
109
72
  def add_handlers(handlers, _config)