aws-sdk-b2bi 1.22.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 +5 -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/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 +2 -2
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,11 @@
|
|
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
|
+
|
4
9
|
1.22.0 (2024-10-18)
|
5
10
|
------------------
|
6
11
|
|
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"
|
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
|