Class: Aws::B2bi::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::B2bi::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb
Overview
An API client for B2bi. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::B2bi::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_capability(params = {}) ⇒ Types::CreateCapabilityResponse
Instantiates a capability based on the specified parameters.
-
#create_partnership(params = {}) ⇒ Types::CreatePartnershipResponse
Creates a partnership between a customer and a trading partner, based on the supplied parameters.
-
#create_profile(params = {}) ⇒ Types::CreateProfileResponse
Creates a customer profile.
-
#create_starter_mapping_template(params = {}) ⇒ Types::CreateStarterMappingTemplateResponse
Amazon Web Services B2B Data Interchange uses a mapping template in JSONata or XSLT format to transform a customer input file into a JSON or XML file that can be converted to EDI.
-
#create_transformer(params = {}) ⇒ Types::CreateTransformerResponse
Creates a transformer.
-
#delete_capability(params = {}) ⇒ Struct
Deletes the specified capability.
-
#delete_partnership(params = {}) ⇒ Struct
Deletes the specified partnership.
-
#delete_profile(params = {}) ⇒ Struct
Deletes the specified profile.
-
#delete_transformer(params = {}) ⇒ Struct
Deletes the specified transformer.
-
#generate_mapping(params = {}) ⇒ Types::GenerateMappingResponse
Takes sample input and output documents and uses Amazon Bedrock to generate a mapping automatically.
-
#get_capability(params = {}) ⇒ Types::GetCapabilityResponse
Retrieves the details for the specified capability.
-
#get_partnership(params = {}) ⇒ Types::GetPartnershipResponse
Retrieves the details for a partnership, based on the partner and profile IDs specified.
-
#get_profile(params = {}) ⇒ Types::GetProfileResponse
Retrieves the details for the profile specified by the profile ID.
-
#get_transformer(params = {}) ⇒ Types::GetTransformerResponse
Retrieves the details for the transformer specified by the transformer ID.
-
#get_transformer_job(params = {}) ⇒ Types::GetTransformerJobResponse
Returns the details of the transformer run, based on the Transformer job ID.
-
#list_capabilities(params = {}) ⇒ Types::ListCapabilitiesResponse
Lists the capabilities associated with your Amazon Web Services account for your current or specified region.
-
#list_partnerships(params = {}) ⇒ Types::ListPartnershipsResponse
Lists the partnerships associated with your Amazon Web Services account for your current or specified region.
-
#list_profiles(params = {}) ⇒ Types::ListProfilesResponse
Lists the profiles associated with your Amazon Web Services account for your current or specified region.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify.
-
#list_transformers(params = {}) ⇒ Types::ListTransformersResponse
Lists the available transformers.
-
#start_transformer_job(params = {}) ⇒ Types::StartTransformerJobResponse
Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2B Data Interchange.
-
#tag_resource(params = {}) ⇒ Struct
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
-
#test_conversion(params = {}) ⇒ Types::TestConversionResponse
This operation mimics the latter half of a typical Outbound EDI request.
-
#test_mapping(params = {}) ⇒ Types::TestMappingResponse
Maps the input file according to the provided template file.
-
#test_parsing(params = {}) ⇒ Types::TestParsingResponse
Parses the input EDI (electronic data interchange) file.
-
#untag_resource(params = {}) ⇒ Struct
Detaches a key-value pair from the specified resource, as identified by its Amazon Resource Name (ARN).
-
#update_capability(params = {}) ⇒ Types::UpdateCapabilityResponse
Updates some of the parameters for a capability, based on the specified parameters.
-
#update_partnership(params = {}) ⇒ Types::UpdatePartnershipResponse
Updates some of the parameters for a partnership between a customer and trading partner.
-
#update_profile(params = {}) ⇒ Types::UpdateProfileResponse
Updates the specified parameters for a profile.
-
#update_transformer(params = {}) ⇒ Types::UpdateTransformerResponse
Updates the specified parameters for a transformer.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
451 452 453 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 451 def initialize(*args) super end |
Instance Method Details
#create_capability(params = {}) ⇒ Types::CreateCapabilityResponse
Instantiates a capability based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
634 635 636 637 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 634 def create_capability(params = {}, = {}) req = build_request(:create_capability, params) req.send_request() end |
#create_partnership(params = {}) ⇒ Types::CreatePartnershipResponse
Creates a partnership between a customer and a trading partner, based on the supplied parameters. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
799 800 801 802 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 799 def create_partnership(params = {}, = {}) req = build_request(:create_partnership, params) req.send_request() end |
#create_profile(params = {}) ⇒ Types::CreateProfileResponse
Creates a customer profile. You can have up to five customer profiles, each representing a distinct private network. A profile is the mechanism used to create the concept of a private network.
910 911 912 913 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 910 def create_profile(params = {}, = {}) req = build_request(:create_profile, params) req.send_request() end |
#create_starter_mapping_template(params = {}) ⇒ Types::CreateStarterMappingTemplateResponse
Amazon Web Services B2B Data Interchange uses a mapping template in JSONata or XSLT format to transform a customer input file into a JSON or XML file that can be converted to EDI.
If you provide a sample EDI file with the same structure as the EDI files that you wish to generate, then the service can generate a mapping template. The starter template contains placeholder values which you can replace with JSONata or XSLT expressions to take data from your input file and insert it into the JSON or XML file that is used to generate the EDI.
If you do not provide a sample EDI file, then the service can generate
a mapping template based on the EDI settings in the templateDetails
parameter.
Currently, we only support generating a template that can generate the input to produce an Outbound X12 EDI file.
995 996 997 998 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 995 def create_starter_mapping_template(params = {}, = {}) req = build_request(:create_starter_mapping_template, params) req.send_request() end |
#create_transformer(params = {}) ⇒ Types::CreateTransformerResponse
Creates a transformer. Amazon Web Services B2B Data Interchange currently supports two scenarios:
Inbound EDI: the Amazon Web Services customer receives an EDI file from their trading partner. Amazon Web Services B2B Data Interchange converts this EDI file into a JSON or XML file with a service-defined structure. A mapping template provided by the customer, in JSONata or XSLT format, is optionally applied to this file to produce a JSON or XML file with the structure the customer requires.
Outbound EDI: the Amazon Web Services customer has a JSON or XML file containing data that they wish to use in an EDI file. A mapping template, provided by the customer (in either JSONata or XSLT format) is applied to this file to generate a JSON or XML file in the service-defined structure. This file is then converted to an EDI file.
fileFormat
, mappingTemplate
, ediType
, and sampleDocument
.
Use the
mapping
data type in place ofmappingTemplate
andfileFormat
Use the
sampleDocuments
data type in place ofsampleDocument
Use either the
inputConversion
oroutputConversion
in place ofediType
1252 1253 1254 1255 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1252 def create_transformer(params = {}, = {}) req = build_request(:create_transformer, params) req.send_request() end |
#delete_capability(params = {}) ⇒ Struct
Deletes the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
1283 1284 1285 1286 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1283 def delete_capability(params = {}, = {}) req = build_request(:delete_capability, params) req.send_request() end |
#delete_partnership(params = {}) ⇒ Struct
Deletes the specified partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
1314 1315 1316 1317 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1314 def delete_partnership(params = {}, = {}) req = build_request(:delete_partnership, params) req.send_request() end |
#delete_profile(params = {}) ⇒ Struct
Deletes the specified profile. A profile is the mechanism used to create the concept of a private network.
1344 1345 1346 1347 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1344 def delete_profile(params = {}, = {}) req = build_request(:delete_profile, params) req.send_request() end |
#delete_transformer(params = {}) ⇒ Struct
Deletes the specified transformer. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
1376 1377 1378 1379 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1376 def delete_transformer(params = {}, = {}) req = build_request(:delete_transformer, params) req.send_request() end |
#generate_mapping(params = {}) ⇒ Types::GenerateMappingResponse
Takes sample input and output documents and uses Amazon Bedrock to generate a mapping automatically. Depending on the accuracy and other factors, you can then edit the mapping for your needs.
1445 1446 1447 1448 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1445 def generate_mapping(params = {}, = {}) req = build_request(:generate_mapping, params) req.send_request() end |
#get_capability(params = {}) ⇒ Types::GetCapabilityResponse
Retrieves the details for the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
1540 1541 1542 1543 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1540 def get_capability(params = {}, = {}) req = build_request(:get_capability, params) req.send_request() end |
#get_partnership(params = {}) ⇒ Types::GetPartnershipResponse
Retrieves the details for a partnership, based on the partner and profile IDs specified. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
1628 1629 1630 1631 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1628 def get_partnership(params = {}, = {}) req = build_request(:get_partnership, params) req.send_request() end |
#get_profile(params = {}) ⇒ Types::GetProfileResponse
Retrieves the details for the profile specified by the profile ID. A profile is the mechanism used to create the concept of a private network.
1696 1697 1698 1699 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1696 def get_profile(params = {}, = {}) req = build_request(:get_profile, params) req.send_request() end |
#get_transformer(params = {}) ⇒ Types::GetTransformerResponse
Retrieves the details for the transformer specified by the transformer ID. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
1800 1801 1802 1803 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1800 def get_transformer(params = {}, = {}) req = build_request(:get_transformer, params) req.send_request() end |
#get_transformer_job(params = {}) ⇒ Types::GetTransformerJobResponse
Returns the details of the transformer run, based on the Transformer job ID.
1860 1861 1862 1863 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1860 def get_transformer_job(params = {}, = {}) req = build_request(:get_transformer_job, params) req.send_request() end |
#list_capabilities(params = {}) ⇒ Types::ListCapabilitiesResponse
Lists the capabilities associated with your Amazon Web Services account for your current or specified region. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1929 1930 1931 1932 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1929 def list_capabilities(params = {}, = {}) req = build_request(:list_capabilities, params) req.send_request() end |
#list_partnerships(params = {}) ⇒ Types::ListPartnershipsResponse
Lists the partnerships associated with your Amazon Web Services account for your current or specified region. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2025 2026 2027 2028 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2025 def list_partnerships(params = {}, = {}) req = build_request(:list_partnerships, params) req.send_request() end |
#list_profiles(params = {}) ⇒ Types::ListProfilesResponse
Lists the profiles associated with your Amazon Web Services account for your current or specified region. A profile is the mechanism used to create the concept of a private network.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2096 2097 2098 2099 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2096 def list_profiles(params = {}, = {}) req = build_request(:list_profiles, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a capability, partnership, profile, or transformer.
2147 2148 2149 2150 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2147 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_transformers(params = {}) ⇒ Types::ListTransformersResponse
Lists the available transformers. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2242 2243 2244 2245 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2242 def list_transformers(params = {}, = {}) req = build_request(:list_transformers, params) req.send_request() end |
#start_transformer_job(params = {}) ⇒ Types::StartTransformerJobResponse
Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2B Data Interchange.
If you only want to transform EDI (electronic data interchange)
documents, you don't need to create profiles, partnerships or
capabilities. Just create and configure a transformer, and then run
the StartTransformerJob
API to process your files.
2321 2322 2323 2324 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2321 def start_transformer_job(params = {}, = {}) req = build_request(:start_transformer_job, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.
There is no response returned from this call.
2373 2374 2375 2376 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2373 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#test_conversion(params = {}) ⇒ Types::TestConversionResponse
This operation mimics the latter half of a typical Outbound EDI request. It takes an input JSON/XML in the B2Bi shape as input, converts it to an X12 EDI string, and return that string.
2458 2459 2460 2461 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2458 def test_conversion(params = {}, = {}) req = build_request(:test_conversion, params) req.send_request() end |
#test_mapping(params = {}) ⇒ Types::TestMappingResponse
Maps the input file according to the provided template file. The API
call downloads the file contents from the Amazon S3 location, and
passes the contents in as a string, to the inputFileContent
parameter.
2523 2524 2525 2526 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2523 def test_mapping(params = {}, = {}) req = build_request(:test_mapping, params) req.send_request() end |
#test_parsing(params = {}) ⇒ Types::TestParsingResponse
Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.
2595 2596 2597 2598 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2595 def test_parsing(params = {}, = {}) req = build_request(:test_parsing, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Detaches a key-value pair from the specified resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.
2637 2638 2639 2640 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2637 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_capability(params = {}) ⇒ Types::UpdateCapabilityResponse
Updates some of the parameters for a capability, based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
2796 2797 2798 2799 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2796 def update_capability(params = {}, = {}) req = build_request(:update_capability, params) req.send_request() end |
#update_partnership(params = {}) ⇒ Types::UpdatePartnershipResponse
Updates some of the parameters for a partnership between a customer and trading partner. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
2928 2929 2930 2931 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2928 def update_partnership(params = {}, = {}) req = build_request(:update_partnership, params) req.send_request() end |
#update_profile(params = {}) ⇒ Types::UpdateProfileResponse
Updates the specified parameters for a profile. A profile is the mechanism used to create the concept of a private network.
3016 3017 3018 3019 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 3016 def update_profile(params = {}, = {}) req = build_request(:update_profile, params) req.send_request() end |
#update_transformer(params = {}) ⇒ Types::UpdateTransformerResponse
Updates the specified parameters for a transformer. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
3237 3238 3239 3240 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 3237 def update_transformer(params = {}, = {}) req = build_request(:update_transformer, params) req.send_request() end |