aws-sdk-b2bi 1.21.0 → 1.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-b2bi/client.rb +71 -2
- data/lib/aws-sdk-b2bi/client_api.rb +26 -0
- data/lib/aws-sdk-b2bi/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-b2bi/endpoints.rb +2 -317
- data/lib/aws-sdk-b2bi/plugins/endpoints.rb +1 -64
- data/lib/aws-sdk-b2bi/types.rb +44 -1
- data/lib/aws-sdk-b2bi.rb +1 -1
- data/sig/client.rbs +13 -0
- data/sig/types.rbs +13 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '089b85f46a430ea09d71be32f5c2e11f1e5bf92e676a353eb3f4d5de38b2bdab'
|
4
|
+
data.tar.gz: c4d42688be83276d2822f7f7cbf244bea0df3fe0a155867a80a2760bb8b1ecaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3587fb71f5913555549c1e4a1be157e686d547fdb2e442d1e4a999f5fad5a2b3bd05d6d81c6f431d98b065f9ff7230bf1e2b7377e48e214f9413bc5953d80a99
|
7
|
+
data.tar.gz: b217ca0418a937983a131a2c7644d6401180b750fe7c590bedd965584ced4da205b5b243d90384f6ecb1a3c846ad5c9dfd7b1a1d820ea47e581b9a13543a077b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.23.0 (2024-11-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds a GenerateMapping API to allow generation of JSONata or XSLT transformer code based on input and output samples.
|
8
|
+
|
9
|
+
1.22.0 (2024-10-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.21.0 (2024-10-02)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.23.0
|
data/lib/aws-sdk-b2bi/client.rb
CHANGED
@@ -1378,6 +1378,75 @@ module Aws::B2bi
|
|
1378
1378
|
req.send_request(options)
|
1379
1379
|
end
|
1380
1380
|
|
1381
|
+
# Takes sample input and output documents and uses Amazon Bedrock to
|
1382
|
+
# generate a mapping automatically. Depending on the accuracy and other
|
1383
|
+
# factors, you can then edit the mapping for your needs.
|
1384
|
+
#
|
1385
|
+
# <note markdown="1"> Before you can use the AI-assisted feature for Amazon Web Services B2B
|
1386
|
+
# Data Interchange you must enable models in Amazon Bedrock. For
|
1387
|
+
# details, see [AI-assisted template mapping prerequisites][1] in the
|
1388
|
+
# *Amazon Web Services B2B Data Interchange User guide*.
|
1389
|
+
#
|
1390
|
+
# </note>
|
1391
|
+
#
|
1392
|
+
#
|
1393
|
+
#
|
1394
|
+
# [1]: https://docs.aws.amazon.com/b2bi/latest/userguide/ai-assisted-mapping.html#ai-assist-prereq
|
1395
|
+
#
|
1396
|
+
# @option params [required, String] :input_file_content
|
1397
|
+
# Provide the contents of a sample X12 EDI file (for inbound EDI) or
|
1398
|
+
# JSON/XML file (for outbound EDI) to use as a starting point for the
|
1399
|
+
# mapping.
|
1400
|
+
#
|
1401
|
+
# @option params [required, String] :output_file_content
|
1402
|
+
# Provide the contents of a sample X12 EDI file (for outbound EDI) or
|
1403
|
+
# JSON/XML file (for inbound EDI) to use as a target for the mapping.
|
1404
|
+
#
|
1405
|
+
# @option params [required, String] :mapping_type
|
1406
|
+
# Specify the mapping type: either `JSONATA` or `XSLT.`
|
1407
|
+
#
|
1408
|
+
# @return [Types::GenerateMappingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1409
|
+
#
|
1410
|
+
# * {Types::GenerateMappingResponse#mapping_template #mapping_template} => String
|
1411
|
+
# * {Types::GenerateMappingResponse#mapping_accuracy #mapping_accuracy} => Float
|
1412
|
+
#
|
1413
|
+
#
|
1414
|
+
# @example Example: Sample GenerateMapping call
|
1415
|
+
#
|
1416
|
+
# resp = client.generate_mapping({
|
1417
|
+
# input_file_content: "Sample input file content",
|
1418
|
+
# mapping_type: "JSONATA",
|
1419
|
+
# output_file_content: "Sample output file content",
|
1420
|
+
# })
|
1421
|
+
#
|
1422
|
+
# resp.to_h outputs the following:
|
1423
|
+
# {
|
1424
|
+
# mapping_accuracy: 0.95,
|
1425
|
+
# mapping_template: "Sample mapping content",
|
1426
|
+
# }
|
1427
|
+
#
|
1428
|
+
# @example Request syntax with placeholder values
|
1429
|
+
#
|
1430
|
+
# resp = client.generate_mapping({
|
1431
|
+
# input_file_content: "GenerateMappingInputFileContent", # required
|
1432
|
+
# output_file_content: "GenerateMappingOutputFileContent", # required
|
1433
|
+
# mapping_type: "JSONATA", # required, accepts JSONATA, XSLT
|
1434
|
+
# })
|
1435
|
+
#
|
1436
|
+
# @example Response structure
|
1437
|
+
#
|
1438
|
+
# resp.mapping_template #=> String
|
1439
|
+
# resp.mapping_accuracy #=> Float
|
1440
|
+
#
|
1441
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GenerateMapping AWS API Documentation
|
1442
|
+
#
|
1443
|
+
# @overload generate_mapping(params = {})
|
1444
|
+
# @param [Hash] params ({})
|
1445
|
+
def generate_mapping(params = {}, options = {})
|
1446
|
+
req = build_request(:generate_mapping, params)
|
1447
|
+
req.send_request(options)
|
1448
|
+
end
|
1449
|
+
|
1381
1450
|
# Retrieves the details for the specified capability. A trading
|
1382
1451
|
# capability contains the information required to transform incoming EDI
|
1383
1452
|
# documents into JSON or XML outputs.
|
@@ -2963,7 +3032,7 @@ module Aws::B2bi
|
|
2963
3032
|
#
|
2964
3033
|
# @option params [String] :status
|
2965
3034
|
# Specifies the transformer's status. You can update the state of the
|
2966
|
-
# transformer
|
3035
|
+
# transformer from `inactive` to `active`.
|
2967
3036
|
#
|
2968
3037
|
# @option params [String] :file_format
|
2969
3038
|
# Specifies that the currently supported file formats for EDI
|
@@ -3188,7 +3257,7 @@ module Aws::B2bi
|
|
3188
3257
|
tracer: tracer
|
3189
3258
|
)
|
3190
3259
|
context[:gem_name] = 'aws-sdk-b2bi'
|
3191
|
-
context[:gem_version] = '1.
|
3260
|
+
context[:gem_version] = '1.23.0'
|
3192
3261
|
Seahorse::Client::Request.new(handlers, context)
|
3193
3262
|
end
|
3194
3263
|
|
@@ -55,6 +55,11 @@ module Aws::B2bi
|
|
55
55
|
FileLocation = Shapes::StringShape.new(name: 'FileLocation')
|
56
56
|
FormatOptions = Shapes::UnionShape.new(name: 'FormatOptions')
|
57
57
|
FromFormat = Shapes::StringShape.new(name: 'FromFormat')
|
58
|
+
GenerateMappingInputFileContent = Shapes::StringShape.new(name: 'GenerateMappingInputFileContent')
|
59
|
+
GenerateMappingOutputFileContent = Shapes::StringShape.new(name: 'GenerateMappingOutputFileContent')
|
60
|
+
GenerateMappingRequest = Shapes::StructureShape.new(name: 'GenerateMappingRequest')
|
61
|
+
GenerateMappingResponse = Shapes::StructureShape.new(name: 'GenerateMappingResponse')
|
62
|
+
GenerateMappingResponseMappingAccuracyFloat = Shapes::FloatShape.new(name: 'GenerateMappingResponseMappingAccuracyFloat')
|
58
63
|
GetCapabilityRequest = Shapes::StructureShape.new(name: 'GetCapabilityRequest')
|
59
64
|
GetCapabilityResponse = Shapes::StructureShape.new(name: 'GetCapabilityResponse')
|
60
65
|
GetPartnershipRequest = Shapes::StructureShape.new(name: 'GetPartnershipRequest')
|
@@ -337,6 +342,15 @@ module Aws::B2bi
|
|
337
342
|
FormatOptions.add_member_subclass(:unknown, Types::FormatOptions::Unknown)
|
338
343
|
FormatOptions.struct_class = Types::FormatOptions
|
339
344
|
|
345
|
+
GenerateMappingRequest.add_member(:input_file_content, Shapes::ShapeRef.new(shape: GenerateMappingInputFileContent, required: true, location_name: "inputFileContent"))
|
346
|
+
GenerateMappingRequest.add_member(:output_file_content, Shapes::ShapeRef.new(shape: GenerateMappingOutputFileContent, required: true, location_name: "outputFileContent"))
|
347
|
+
GenerateMappingRequest.add_member(:mapping_type, Shapes::ShapeRef.new(shape: MappingType, required: true, location_name: "mappingType"))
|
348
|
+
GenerateMappingRequest.struct_class = Types::GenerateMappingRequest
|
349
|
+
|
350
|
+
GenerateMappingResponse.add_member(:mapping_template, Shapes::ShapeRef.new(shape: String, required: true, location_name: "mappingTemplate"))
|
351
|
+
GenerateMappingResponse.add_member(:mapping_accuracy, Shapes::ShapeRef.new(shape: GenerateMappingResponseMappingAccuracyFloat, location_name: "mappingAccuracy"))
|
352
|
+
GenerateMappingResponse.struct_class = Types::GenerateMappingResponse
|
353
|
+
|
340
354
|
GetCapabilityRequest.add_member(:capability_id, Shapes::ShapeRef.new(shape: CapabilityId, required: true, location_name: "capabilityId"))
|
341
355
|
GetCapabilityRequest.struct_class = Types::GetCapabilityRequest
|
342
356
|
|
@@ -881,6 +895,18 @@ module Aws::B2bi
|
|
881
895
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
882
896
|
end)
|
883
897
|
|
898
|
+
api.add_operation(:generate_mapping, Seahorse::Model::Operation.new.tap do |o|
|
899
|
+
o.name = "GenerateMapping"
|
900
|
+
o.http_method = "POST"
|
901
|
+
o.http_request_uri = "/"
|
902
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateMappingRequest)
|
903
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateMappingResponse)
|
904
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
905
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
906
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
907
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
908
|
+
end)
|
909
|
+
|
884
910
|
api.add_operation(:get_capability, Seahorse::Model::Operation.new.tap do |o|
|
885
911
|
o.name = "GetCapability"
|
886
912
|
o.http_method = "POST"
|
@@ -52,15 +52,18 @@ module Aws::B2bi
|
|
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,324 +12,9 @@ module Aws::B2bi
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
-
class CreateCapability
|
16
|
-
def self.build(context)
|
17
|
-
Aws::B2bi::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 CreatePartnership
|
27
|
-
def self.build(context)
|
28
|
-
Aws::B2bi::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 CreateProfile
|
38
|
-
def self.build(context)
|
39
|
-
Aws::B2bi::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 CreateStarterMappingTemplate
|
49
|
-
def self.build(context)
|
50
|
-
Aws::B2bi::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 CreateTransformer
|
60
|
-
def self.build(context)
|
61
|
-
Aws::B2bi::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 DeleteCapability
|
71
|
-
def self.build(context)
|
72
|
-
Aws::B2bi::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 DeletePartnership
|
82
|
-
def self.build(context)
|
83
|
-
Aws::B2bi::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 DeleteProfile
|
93
|
-
def self.build(context)
|
94
|
-
Aws::B2bi::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
|
-
|
103
|
-
class DeleteTransformer
|
104
|
-
def self.build(context)
|
105
|
-
Aws::B2bi::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
|
112
|
-
end
|
113
|
-
|
114
|
-
class GetCapability
|
115
|
-
def self.build(context)
|
116
|
-
Aws::B2bi::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 GetPartnership
|
126
|
-
def self.build(context)
|
127
|
-
Aws::B2bi::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 GetProfile
|
137
|
-
def self.build(context)
|
138
|
-
Aws::B2bi::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 GetTransformer
|
148
|
-
def self.build(context)
|
149
|
-
Aws::B2bi::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 GetTransformerJob
|
159
|
-
def self.build(context)
|
160
|
-
Aws::B2bi::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 ListCapabilities
|
170
|
-
def self.build(context)
|
171
|
-
Aws::B2bi::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 ListPartnerships
|
181
|
-
def self.build(context)
|
182
|
-
Aws::B2bi::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
|
-
class ListProfiles
|
192
|
-
def self.build(context)
|
193
|
-
Aws::B2bi::EndpointParameters.new(
|
194
|
-
region: context.config.region,
|
195
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
196
|
-
use_fips: context.config.use_fips_endpoint,
|
197
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
198
|
-
)
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
class ListTagsForResource
|
203
|
-
def self.build(context)
|
204
|
-
Aws::B2bi::EndpointParameters.new(
|
205
|
-
region: context.config.region,
|
206
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
207
|
-
use_fips: context.config.use_fips_endpoint,
|
208
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
209
|
-
)
|
210
|
-
end
|
211
|
-
end
|
212
|
-
|
213
|
-
class ListTransformers
|
214
|
-
def self.build(context)
|
215
|
-
Aws::B2bi::EndpointParameters.new(
|
216
|
-
region: context.config.region,
|
217
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
-
use_fips: context.config.use_fips_endpoint,
|
219
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
220
|
-
)
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
class StartTransformerJob
|
225
|
-
def self.build(context)
|
226
|
-
Aws::B2bi::EndpointParameters.new(
|
227
|
-
region: context.config.region,
|
228
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
229
|
-
use_fips: context.config.use_fips_endpoint,
|
230
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
231
|
-
)
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
class TagResource
|
236
|
-
def self.build(context)
|
237
|
-
Aws::B2bi::EndpointParameters.new(
|
238
|
-
region: context.config.region,
|
239
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
240
|
-
use_fips: context.config.use_fips_endpoint,
|
241
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
242
|
-
)
|
243
|
-
end
|
244
|
-
end
|
245
|
-
|
246
|
-
class TestConversion
|
247
|
-
def self.build(context)
|
248
|
-
Aws::B2bi::EndpointParameters.new(
|
249
|
-
region: context.config.region,
|
250
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
251
|
-
use_fips: context.config.use_fips_endpoint,
|
252
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
253
|
-
)
|
254
|
-
end
|
255
|
-
end
|
256
|
-
|
257
|
-
class TestMapping
|
258
|
-
def self.build(context)
|
259
|
-
Aws::B2bi::EndpointParameters.new(
|
260
|
-
region: context.config.region,
|
261
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
262
|
-
use_fips: context.config.use_fips_endpoint,
|
263
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
264
|
-
)
|
265
|
-
end
|
266
|
-
end
|
267
|
-
|
268
|
-
class TestParsing
|
269
|
-
def self.build(context)
|
270
|
-
Aws::B2bi::EndpointParameters.new(
|
271
|
-
region: context.config.region,
|
272
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
273
|
-
use_fips: context.config.use_fips_endpoint,
|
274
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
275
|
-
)
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
|
-
class UntagResource
|
280
|
-
def self.build(context)
|
281
|
-
Aws::B2bi::EndpointParameters.new(
|
282
|
-
region: context.config.region,
|
283
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
284
|
-
use_fips: context.config.use_fips_endpoint,
|
285
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
286
|
-
)
|
287
|
-
end
|
288
|
-
end
|
289
15
|
|
290
|
-
|
291
|
-
|
292
|
-
Aws::B2bi::EndpointParameters.new(
|
293
|
-
region: context.config.region,
|
294
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
295
|
-
use_fips: context.config.use_fips_endpoint,
|
296
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
297
|
-
)
|
298
|
-
end
|
16
|
+
def self.parameters_for_operation(context)
|
17
|
+
Aws::B2bi::EndpointParameters.create(context.config)
|
299
18
|
end
|
300
|
-
|
301
|
-
class UpdatePartnership
|
302
|
-
def self.build(context)
|
303
|
-
Aws::B2bi::EndpointParameters.new(
|
304
|
-
region: context.config.region,
|
305
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
306
|
-
use_fips: context.config.use_fips_endpoint,
|
307
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
308
|
-
)
|
309
|
-
end
|
310
|
-
end
|
311
|
-
|
312
|
-
class UpdateProfile
|
313
|
-
def self.build(context)
|
314
|
-
Aws::B2bi::EndpointParameters.new(
|
315
|
-
region: context.config.region,
|
316
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
317
|
-
use_fips: context.config.use_fips_endpoint,
|
318
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
319
|
-
)
|
320
|
-
end
|
321
|
-
end
|
322
|
-
|
323
|
-
class UpdateTransformer
|
324
|
-
def self.build(context)
|
325
|
-
Aws::B2bi::EndpointParameters.new(
|
326
|
-
region: context.config.region,
|
327
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
328
|
-
use_fips: context.config.use_fips_endpoint,
|
329
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
330
|
-
)
|
331
|
-
end
|
332
|
-
end
|
333
|
-
|
334
19
|
end
|
335
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::B2bi::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,69 +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_capability
|
74
|
-
Aws::B2bi::Endpoints::CreateCapability.build(context)
|
75
|
-
when :create_partnership
|
76
|
-
Aws::B2bi::Endpoints::CreatePartnership.build(context)
|
77
|
-
when :create_profile
|
78
|
-
Aws::B2bi::Endpoints::CreateProfile.build(context)
|
79
|
-
when :create_starter_mapping_template
|
80
|
-
Aws::B2bi::Endpoints::CreateStarterMappingTemplate.build(context)
|
81
|
-
when :create_transformer
|
82
|
-
Aws::B2bi::Endpoints::CreateTransformer.build(context)
|
83
|
-
when :delete_capability
|
84
|
-
Aws::B2bi::Endpoints::DeleteCapability.build(context)
|
85
|
-
when :delete_partnership
|
86
|
-
Aws::B2bi::Endpoints::DeletePartnership.build(context)
|
87
|
-
when :delete_profile
|
88
|
-
Aws::B2bi::Endpoints::DeleteProfile.build(context)
|
89
|
-
when :delete_transformer
|
90
|
-
Aws::B2bi::Endpoints::DeleteTransformer.build(context)
|
91
|
-
when :get_capability
|
92
|
-
Aws::B2bi::Endpoints::GetCapability.build(context)
|
93
|
-
when :get_partnership
|
94
|
-
Aws::B2bi::Endpoints::GetPartnership.build(context)
|
95
|
-
when :get_profile
|
96
|
-
Aws::B2bi::Endpoints::GetProfile.build(context)
|
97
|
-
when :get_transformer
|
98
|
-
Aws::B2bi::Endpoints::GetTransformer.build(context)
|
99
|
-
when :get_transformer_job
|
100
|
-
Aws::B2bi::Endpoints::GetTransformerJob.build(context)
|
101
|
-
when :list_capabilities
|
102
|
-
Aws::B2bi::Endpoints::ListCapabilities.build(context)
|
103
|
-
when :list_partnerships
|
104
|
-
Aws::B2bi::Endpoints::ListPartnerships.build(context)
|
105
|
-
when :list_profiles
|
106
|
-
Aws::B2bi::Endpoints::ListProfiles.build(context)
|
107
|
-
when :list_tags_for_resource
|
108
|
-
Aws::B2bi::Endpoints::ListTagsForResource.build(context)
|
109
|
-
when :list_transformers
|
110
|
-
Aws::B2bi::Endpoints::ListTransformers.build(context)
|
111
|
-
when :start_transformer_job
|
112
|
-
Aws::B2bi::Endpoints::StartTransformerJob.build(context)
|
113
|
-
when :tag_resource
|
114
|
-
Aws::B2bi::Endpoints::TagResource.build(context)
|
115
|
-
when :test_conversion
|
116
|
-
Aws::B2bi::Endpoints::TestConversion.build(context)
|
117
|
-
when :test_mapping
|
118
|
-
Aws::B2bi::Endpoints::TestMapping.build(context)
|
119
|
-
when :test_parsing
|
120
|
-
Aws::B2bi::Endpoints::TestParsing.build(context)
|
121
|
-
when :untag_resource
|
122
|
-
Aws::B2bi::Endpoints::UntagResource.build(context)
|
123
|
-
when :update_capability
|
124
|
-
Aws::B2bi::Endpoints::UpdateCapability.build(context)
|
125
|
-
when :update_partnership
|
126
|
-
Aws::B2bi::Endpoints::UpdatePartnership.build(context)
|
127
|
-
when :update_profile
|
128
|
-
Aws::B2bi::Endpoints::UpdateProfile.build(context)
|
129
|
-
when :update_transformer
|
130
|
-
Aws::B2bi::Endpoints::UpdateTransformer.build(context)
|
131
|
-
end
|
132
|
-
end
|
133
70
|
end
|
134
71
|
|
135
72
|
def add_handlers(handlers, _config)
|
data/lib/aws-sdk-b2bi/types.rb
CHANGED
@@ -865,6 +865,49 @@ module Aws::B2bi
|
|
865
865
|
class Unknown < FormatOptions; end
|
866
866
|
end
|
867
867
|
|
868
|
+
# @!attribute [rw] input_file_content
|
869
|
+
# Provide the contents of a sample X12 EDI file (for inbound EDI) or
|
870
|
+
# JSON/XML file (for outbound EDI) to use as a starting point for the
|
871
|
+
# mapping.
|
872
|
+
# @return [String]
|
873
|
+
#
|
874
|
+
# @!attribute [rw] output_file_content
|
875
|
+
# Provide the contents of a sample X12 EDI file (for outbound EDI) or
|
876
|
+
# JSON/XML file (for inbound EDI) to use as a target for the mapping.
|
877
|
+
# @return [String]
|
878
|
+
#
|
879
|
+
# @!attribute [rw] mapping_type
|
880
|
+
# Specify the mapping type: either `JSONATA` or `XSLT.`
|
881
|
+
# @return [String]
|
882
|
+
#
|
883
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GenerateMappingRequest AWS API Documentation
|
884
|
+
#
|
885
|
+
class GenerateMappingRequest < Struct.new(
|
886
|
+
:input_file_content,
|
887
|
+
:output_file_content,
|
888
|
+
:mapping_type)
|
889
|
+
SENSITIVE = []
|
890
|
+
include Aws::Structure
|
891
|
+
end
|
892
|
+
|
893
|
+
# @!attribute [rw] mapping_template
|
894
|
+
# Returns a mapping template based on your inputs.
|
895
|
+
# @return [String]
|
896
|
+
#
|
897
|
+
# @!attribute [rw] mapping_accuracy
|
898
|
+
# Returns a percentage that estimates the accuracy of the generated
|
899
|
+
# mapping.
|
900
|
+
# @return [Float]
|
901
|
+
#
|
902
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GenerateMappingResponse AWS API Documentation
|
903
|
+
#
|
904
|
+
class GenerateMappingResponse < Struct.new(
|
905
|
+
:mapping_template,
|
906
|
+
:mapping_accuracy)
|
907
|
+
SENSITIVE = []
|
908
|
+
include Aws::Structure
|
909
|
+
end
|
910
|
+
|
868
911
|
# @!attribute [rw] capability_id
|
869
912
|
# Specifies a system-assigned unique identifier for the capability.
|
870
913
|
# @return [String]
|
@@ -2460,7 +2503,7 @@ module Aws::B2bi
|
|
2460
2503
|
#
|
2461
2504
|
# @!attribute [rw] status
|
2462
2505
|
# Specifies the transformer's status. You can update the state of the
|
2463
|
-
# transformer
|
2506
|
+
# transformer from `inactive` to `active`.
|
2464
2507
|
# @return [String]
|
2465
2508
|
#
|
2466
2509
|
# @!attribute [rw] file_format
|
data/lib/aws-sdk-b2bi.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -326,6 +326,19 @@ module Aws
|
|
326
326
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
327
327
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
328
328
|
|
329
|
+
interface _GenerateMappingResponseSuccess
|
330
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GenerateMappingResponse]
|
331
|
+
def mapping_template: () -> ::String
|
332
|
+
def mapping_accuracy: () -> ::Float
|
333
|
+
end
|
334
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/B2bi/Client.html#generate_mapping-instance_method
|
335
|
+
def generate_mapping: (
|
336
|
+
input_file_content: ::String,
|
337
|
+
output_file_content: ::String,
|
338
|
+
mapping_type: ("JSONATA" | "XSLT")
|
339
|
+
) -> _GenerateMappingResponseSuccess
|
340
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMappingResponseSuccess
|
341
|
+
|
329
342
|
interface _GetCapabilityResponseSuccess
|
330
343
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetCapabilityResponse]
|
331
344
|
def capability_id: () -> ::String
|
data/sig/types.rbs
CHANGED
@@ -233,6 +233,19 @@ module Aws::B2bi
|
|
233
233
|
end
|
234
234
|
end
|
235
235
|
|
236
|
+
class GenerateMappingRequest
|
237
|
+
attr_accessor input_file_content: ::String
|
238
|
+
attr_accessor output_file_content: ::String
|
239
|
+
attr_accessor mapping_type: ("JSONATA" | "XSLT")
|
240
|
+
SENSITIVE: []
|
241
|
+
end
|
242
|
+
|
243
|
+
class GenerateMappingResponse
|
244
|
+
attr_accessor mapping_template: ::String
|
245
|
+
attr_accessor mapping_accuracy: ::Float
|
246
|
+
SENSITIVE: []
|
247
|
+
end
|
248
|
+
|
236
249
|
class GetCapabilityRequest
|
237
250
|
attr_accessor capability_id: ::String
|
238
251
|
SENSITIVE: []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-b2bi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.210.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.210.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|