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.
-
#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 |
#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.
1471 1472 1473 1474 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1471 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.
1559 1560 1561 1562 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1559 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.
1627 1628 1629 1630 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1627 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.
1731 1732 1733 1734 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1731 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.
1791 1792 1793 1794 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1791 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.
1860 1861 1862 1863 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1860 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.
1956 1957 1958 1959 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 1956 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.
2027 2028 2029 2030 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2027 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.
2078 2079 2080 2081 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2078 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.
2173 2174 2175 2176 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2173 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.
2252 2253 2254 2255 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2252 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.
2304 2305 2306 2307 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2304 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.
2389 2390 2391 2392 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2389 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.
2454 2455 2456 2457 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2454 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.
2526 2527 2528 2529 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2526 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.
2568 2569 2570 2571 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2568 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.
2727 2728 2729 2730 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2727 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.
2859 2860 2861 2862 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2859 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.
2947 2948 2949 2950 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 2947 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.
3168 3169 3170 3171 |
# File 'gems/aws-sdk-b2bi/lib/aws-sdk-b2bi/client.rb', line 3168 def update_transformer(params = {}, = {}) req = build_request(:update_transformer, params) req.send_request() end |