aws-sdk-b2bi 1.19.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,8 +36,6 @@ require 'aws-sdk-core/plugins/telemetry.rb'
36
36
  require 'aws-sdk-core/plugins/sign.rb'
37
37
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
38
38
 
39
- Aws::Plugins::GlobalConfiguration.add_identifier(:b2bi)
40
-
41
39
  module Aws::B2bi
42
40
  # An API client for B2bi. To construct a client, you need to configure a `:region` and `:credentials`.
43
41
  #
@@ -577,6 +575,7 @@ module Aws::B2bi
577
575
  # type: "edi", # required, accepts edi
578
576
  # configuration: { # required
579
577
  # edi: {
578
+ # capability_direction: "INBOUND", # accepts INBOUND, OUTBOUND
580
579
  # type: { # required
581
580
  # x12_details: {
582
581
  # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
@@ -615,6 +614,7 @@ module Aws::B2bi
615
614
  # resp.capability_arn #=> String
616
615
  # resp.name #=> String
617
616
  # resp.type #=> String, one of "edi"
617
+ # resp.configuration.edi.capability_direction #=> String, one of "INBOUND", "OUTBOUND"
618
618
  # resp.configuration.edi.type.x12_details.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
619
619
  # resp.configuration.edi.type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
620
620
  # resp.configuration.edi.input_location.bucket_name #=> String
@@ -657,6 +657,10 @@ module Aws::B2bi
657
657
  # @option params [required, Array<String>] :capabilities
658
658
  # Specifies a list of the capabilities associated with this partnership.
659
659
  #
660
+ # @option params [Types::CapabilityOptions] :capability_options
661
+ # Specify the structure that contains the details for the associated
662
+ # capabilities.
663
+ #
660
664
  # @option params [String] :client_token
661
665
  # Reserved for future use.
662
666
  #
@@ -677,6 +681,7 @@ module Aws::B2bi
677
681
  # * {Types::CreatePartnershipResponse#email #email} => String
678
682
  # * {Types::CreatePartnershipResponse#phone #phone} => String
679
683
  # * {Types::CreatePartnershipResponse#capabilities #capabilities} => Array&lt;String&gt;
684
+ # * {Types::CreatePartnershipResponse#capability_options #capability_options} => Types::CapabilityOptions
680
685
  # * {Types::CreatePartnershipResponse#trading_partner_id #trading_partner_id} => String
681
686
  # * {Types::CreatePartnershipResponse#created_at #created_at} => Time
682
687
  #
@@ -723,6 +728,34 @@ module Aws::B2bi
723
728
  # email: "Email", # required
724
729
  # phone: "Phone",
725
730
  # capabilities: ["CapabilityId"], # required
731
+ # capability_options: {
732
+ # outbound_edi: {
733
+ # x12: {
734
+ # common: {
735
+ # interchange_control_headers: {
736
+ # sender_id_qualifier: "X12IdQualifier",
737
+ # sender_id: "X12SenderId",
738
+ # receiver_id_qualifier: "X12IdQualifier",
739
+ # receiver_id: "X12ReceiverId",
740
+ # repetition_separator: "X12RepetitionSeparator",
741
+ # acknowledgment_requested_code: "X12AcknowledgmentRequestedCode",
742
+ # usage_indicator_code: "X12UsageIndicatorCode",
743
+ # },
744
+ # functional_group_headers: {
745
+ # application_sender_code: "X12ApplicationSenderCode",
746
+ # application_receiver_code: "X12ApplicationReceiverCode",
747
+ # responsible_agency_code: "X12ResponsibleAgencyCode",
748
+ # },
749
+ # delimiters: {
750
+ # component_separator: "X12ComponentSeparator",
751
+ # data_element_separator: "X12DataElementSeparator",
752
+ # segment_terminator: "X12SegmentTerminator",
753
+ # },
754
+ # validate_edi: false,
755
+ # },
756
+ # },
757
+ # },
758
+ # },
726
759
  # client_token: "String",
727
760
  # tags: [
728
761
  # {
@@ -742,6 +775,20 @@ module Aws::B2bi
742
775
  # resp.phone #=> String
743
776
  # resp.capabilities #=> Array
744
777
  # resp.capabilities[0] #=> String
778
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id_qualifier #=> String
779
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id #=> String
780
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id_qualifier #=> String
781
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id #=> String
782
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.repetition_separator #=> String
783
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.acknowledgment_requested_code #=> String
784
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.usage_indicator_code #=> String
785
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.application_sender_code #=> String
786
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.application_receiver_code #=> String
787
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.responsible_agency_code #=> String
788
+ # resp.capability_options.outbound_edi.x12.common.delimiters.component_separator #=> String
789
+ # resp.capability_options.outbound_edi.x12.common.delimiters.data_element_separator #=> String
790
+ # resp.capability_options.outbound_edi.x12.common.delimiters.segment_terminator #=> String
791
+ # resp.capability_options.outbound_edi.x12.common.validate_edi #=> Boolean
745
792
  # resp.trading_partner_id #=> String
746
793
  # resp.created_at #=> Time
747
794
  #
@@ -865,22 +912,154 @@ module Aws::B2bi
865
912
  req.send_request(options)
866
913
  end
867
914
 
868
- # Creates a transformer. A transformer describes how to process the
869
- # incoming EDI documents and extract the necessary information to the
870
- # output file.
915
+ # Amazon Web Services B2B Data Interchange uses a mapping template in
916
+ # JSONata or XSLT format to transform a customer input file into a JSON
917
+ # or XML file that can be converted to EDI.
918
+ #
919
+ # If you provide a sample EDI file with the same structure as the EDI
920
+ # files that you wish to generate, then the service can generate a
921
+ # mapping template. The starter template contains placeholder values
922
+ # which you can replace with JSONata or XSLT expressions to take data
923
+ # from your input file and insert it into the JSON or XML file that is
924
+ # used to generate the EDI.
925
+ #
926
+ # If you do not provide a sample EDI file, then the service can generate
927
+ # a mapping template based on the EDI settings in the `templateDetails`
928
+ # parameter.
929
+ #
930
+ # Currently, we only support generating a template that can generate the
931
+ # input to produce an Outbound X12 EDI file.
932
+ #
933
+ # @option params [Types::S3Location] :output_sample_location
934
+ # Specify the location of the sample EDI file that is used to generate
935
+ # the mapping template.
936
+ #
937
+ # @option params [required, String] :mapping_type
938
+ # Specify the format for the mapping template: either JSONATA or XSLT.
939
+ #
940
+ # @option params [required, Types::TemplateDetails] :template_details
941
+ # Describes the details needed for generating the template. Specify the
942
+ # X12 transaction set and version for which the template is used:
943
+ # currently, we only support X12.
944
+ #
945
+ # @return [Types::CreateStarterMappingTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
946
+ #
947
+ # * {Types::CreateStarterMappingTemplateResponse#mapping_template #mapping_template} => String
948
+ #
949
+ #
950
+ # @example Example: Sample CreateStarterMappingTemplate call
951
+ #
952
+ # resp = client.create_starter_mapping_template({
953
+ # mapping_type: "JSONATA",
954
+ # output_sample_location: {
955
+ # key: "output-sample-key",
956
+ # bucket_name: "output-sample-bucket",
957
+ # },
958
+ # template_details: {
959
+ # x12: {
960
+ # version: "VERSION_4010",
961
+ # transaction_set: "X12_110",
962
+ # },
963
+ # },
964
+ # })
965
+ #
966
+ # resp.to_h outputs the following:
967
+ # {
968
+ # mapping_template: "Example Mapping Template",
969
+ # }
970
+ #
971
+ # @example Request syntax with placeholder values
972
+ #
973
+ # resp = client.create_starter_mapping_template({
974
+ # output_sample_location: {
975
+ # bucket_name: "BucketName",
976
+ # key: "S3Key",
977
+ # },
978
+ # mapping_type: "JSONATA", # required, accepts JSONATA, XSLT
979
+ # template_details: { # required
980
+ # x12: {
981
+ # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
982
+ # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
983
+ # },
984
+ # },
985
+ # })
986
+ #
987
+ # @example Response structure
988
+ #
989
+ # resp.mapping_template #=> String
990
+ #
991
+ # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateStarterMappingTemplate AWS API Documentation
992
+ #
993
+ # @overload create_starter_mapping_template(params = {})
994
+ # @param [Hash] params ({})
995
+ def create_starter_mapping_template(params = {}, options = {})
996
+ req = build_request(:create_starter_mapping_template, params)
997
+ req.send_request(options)
998
+ end
999
+
1000
+ # Creates a transformer. Amazon Web Services B2B Data Interchange
1001
+ # currently supports two scenarios:
1002
+ #
1003
+ # * *Inbound EDI*: the Amazon Web Services customer receives an EDI file
1004
+ # from their trading partner. Amazon Web Services B2B Data Interchange
1005
+ # converts this EDI file into a JSON or XML file with a
1006
+ # service-defined structure. A mapping template provided by the
1007
+ # customer, in JSONata or XSLT format, is optionally applied to this
1008
+ # file to produce a JSON or XML file with the structure the customer
1009
+ # requires.
1010
+ #
1011
+ # * *Outbound EDI*: the Amazon Web Services customer has a JSON or XML
1012
+ # file containing data that they wish to use in an EDI file. A mapping
1013
+ # template, provided by the customer (in either JSONata or XSLT
1014
+ # format) is applied to this file to generate a JSON or XML file in
1015
+ # the service-defined structure. This file is then converted to an EDI
1016
+ # file.
1017
+ #
1018
+ # <note markdown="1"> The following fields are provided for backwards compatibility only:
1019
+ # `fileFormat`, `mappingTemplate`, `ediType`, and `sampleDocument`.
1020
+ #
1021
+ # * Use the `mapping` data type in place of `mappingTemplate` and
1022
+ # `fileFormat`
1023
+ #
1024
+ # * Use the `sampleDocuments` data type in place of `sampleDocument`
1025
+ #
1026
+ # * Use either the `inputConversion` or `outputConversion` in place of
1027
+ # `ediType`
1028
+ #
1029
+ # </note>
871
1030
  #
872
1031
  # @option params [required, String] :name
873
1032
  # Specifies the name of the transformer, used to identify it.
874
1033
  #
875
- # @option params [required, String] :file_format
1034
+ # @option params [String] :client_token
1035
+ # Reserved for future use.
1036
+ #
1037
+ # **A suitable default value is auto-generated.** You should normally
1038
+ # not need to pass this option.**
1039
+ #
1040
+ # @option params [Array<Types::Tag>] :tags
1041
+ # Specifies the key-value pairs assigned to ARNs that you can use to
1042
+ # group and search for resources by type. You can attach this metadata
1043
+ # to resources (capabilities, partnerships, and so on) for any purpose.
1044
+ #
1045
+ # @option params [String] :file_format
876
1046
  # Specifies that the currently supported file formats for EDI
877
1047
  # transformations are `JSON` and `XML`.
878
1048
  #
879
- # @option params [required, String] :mapping_template
1049
+ # @option params [String] :mapping_template
880
1050
  # Specifies the mapping template for the transformer. This template is
881
1051
  # used to map the parsed EDI file using JSONata or XSLT.
882
1052
  #
883
- # @option params [required, Types::EdiType] :edi_type
1053
+ # <note markdown="1"> This parameter is available for backwards compatibility. Use the
1054
+ # [Mapping][1] data type instead.
1055
+ #
1056
+ # </note>
1057
+ #
1058
+ #
1059
+ #
1060
+ # [1]: https://docs.aws.amazon.com/b2bi/latest/APIReference/API_Mapping.html
1061
+ #
1062
+ # @option params [Types::EdiType] :edi_type
884
1063
  # Specifies the details for the EDI standard that is being used for the
885
1064
  # transformer. Currently, only X12 is supported. X12 is a set of
886
1065
  # standards and corresponding messages that define specific business
@@ -890,44 +1069,66 @@ module Aws::B2bi
890
1069
  # Specifies a sample EDI document that is used by a transformer as a
891
1070
  # guide for processing the EDI data.
892
1071
  #
893
- # @option params [String] :client_token
894
- # Reserved for future use.
1072
+ # @option params [Types::InputConversion] :input_conversion
1073
+ # Specify the `InputConversion` object, which contains the format
1074
+ # options for the inbound transformation.
895
1075
  #
896
- # **A suitable default value is auto-generated.** You should normally
897
- # not need to pass this option.**
1076
+ # @option params [Types::Mapping] :mapping
1077
+ # Specify the structure that contains the mapping template and its
1078
+ # language (either XSLT or JSONATA).
898
1079
  #
899
- # @option params [Array<Types::Tag>] :tags
900
- # Specifies the key-value pairs assigned to ARNs that you can use to
901
- # group and search for resources by type. You can attach this metadata
902
- # to resources (capabilities, partnerships, and so on) for any purpose.
1080
+ # @option params [Types::OutputConversion] :output_conversion
1081
+ # A structure that contains the `OutputConversion` object, which
1082
+ # contains the format options for the outbound transformation.
1083
+ #
1084
+ # @option params [Types::SampleDocuments] :sample_documents
1085
+ # Specify a structure that contains the Amazon S3 bucket and an array of
1086
+ # the corresponding keys used to identify the location for your sample
1087
+ # documents.
903
1088
  #
904
1089
  # @return [Types::CreateTransformerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
905
1090
  #
906
1091
  # * {Types::CreateTransformerResponse#transformer_id #transformer_id} => String
907
1092
  # * {Types::CreateTransformerResponse#transformer_arn #transformer_arn} => String
908
1093
  # * {Types::CreateTransformerResponse#name #name} => String
1094
+ # * {Types::CreateTransformerResponse#status #status} => String
1095
+ # * {Types::CreateTransformerResponse#created_at #created_at} => Time
909
1096
  # * {Types::CreateTransformerResponse#file_format #file_format} => String
910
1097
  # * {Types::CreateTransformerResponse#mapping_template #mapping_template} => String
911
- # * {Types::CreateTransformerResponse#status #status} => String
912
1098
  # * {Types::CreateTransformerResponse#edi_type #edi_type} => Types::EdiType
913
1099
  # * {Types::CreateTransformerResponse#sample_document #sample_document} => String
914
- # * {Types::CreateTransformerResponse#created_at #created_at} => Time
1100
+ # * {Types::CreateTransformerResponse#input_conversion #input_conversion} => Types::InputConversion
1101
+ # * {Types::CreateTransformerResponse#mapping #mapping} => Types::Mapping
1102
+ # * {Types::CreateTransformerResponse#output_conversion #output_conversion} => Types::OutputConversion
1103
+ # * {Types::CreateTransformerResponse#sample_documents #sample_documents} => Types::SampleDocuments
915
1104
  #
916
1105
  #
917
1106
  # @example Example: Sample CreateTransformer call
918
1107
  #
919
1108
  # resp = client.create_transformer({
920
- # name: "transformJSON",
1109
+ # name: "transformX12",
921
1110
  # client_token: "foo",
922
- # edi_type: {
923
- # x12_details: {
924
- # version: "VERSION_4010",
925
- # transaction_set: "X12_110",
1111
+ # input_conversion: {
1112
+ # format_options: {
1113
+ # x12: {
1114
+ # version: "VERSION_4010",
1115
+ # transaction_set: "X12_110",
1116
+ # },
926
1117
  # },
1118
+ # from_format: "X12",
1119
+ # },
1120
+ # mapping: {
1121
+ # template: "{}",
1122
+ # template_language: "JSONATA",
1123
+ # },
1124
+ # sample_documents: {
1125
+ # bucket_name: "test-bucket",
1126
+ # keys: [
1127
+ # {
1128
+ # input: "sampleDoc.txt",
1129
+ # },
1130
+ # ],
927
1131
  # },
928
- # file_format: "JSON",
929
- # mapping_template: "{}",
930
- # sample_document: "s3://test-bucket/sampleDoc.txt",
931
1132
  # tags: [
932
1133
  # {
933
1134
  # key: "sampleKey",
@@ -938,17 +1139,29 @@ module Aws::B2bi
938
1139
  #
939
1140
  # resp.to_h outputs the following:
940
1141
  # {
941
- # name: "transformJSON",
1142
+ # name: "transformX12",
942
1143
  # created_at: Time.parse("2023-11-01T21:51:05.504Z"),
943
- # edi_type: {
944
- # x12_details: {
945
- # version: "VERSION_4010",
946
- # transaction_set: "X12_110",
1144
+ # input_conversion: {
1145
+ # format_options: {
1146
+ # x12: {
1147
+ # version: "VERSION_4010",
1148
+ # transaction_set: "X12_110",
1149
+ # },
947
1150
  # },
1151
+ # from_format: "X12",
1152
+ # },
1153
+ # mapping: {
1154
+ # template: "{}",
1155
+ # template_language: "JSONATA",
1156
+ # },
1157
+ # sample_documents: {
1158
+ # bucket_name: "test-bucket",
1159
+ # keys: [
1160
+ # {
1161
+ # input: "sampleDoc.txt",
1162
+ # },
1163
+ # ],
948
1164
  # },
949
- # file_format: "JSON",
950
- # mapping_template: "$",
951
- # sample_document: "s3://test-bucket/sampleDoc.txt",
952
1165
  # status: "inactive",
953
1166
  # transformer_arn: "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9",
954
1167
  # transformer_id: "tr-974c129999f84d8c9",
@@ -958,15 +1171,6 @@ module Aws::B2bi
958
1171
  #
959
1172
  # resp = client.create_transformer({
960
1173
  # name: "TransformerName", # required
961
- # file_format: "XML", # required, accepts XML, JSON
962
- # mapping_template: "MappingTemplate", # required
963
- # edi_type: { # required
964
- # x12_details: {
965
- # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
966
- # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
967
- # },
968
- # },
969
- # sample_document: "FileLocation",
970
1174
  # client_token: "String",
971
1175
  # tags: [
972
1176
  # {
@@ -974,6 +1178,46 @@ module Aws::B2bi
974
1178
  # value: "TagValue", # required
975
1179
  # },
976
1180
  # ],
1181
+ # file_format: "XML", # accepts XML, JSON, NOT_USED
1182
+ # mapping_template: "MappingTemplate",
1183
+ # edi_type: {
1184
+ # x12_details: {
1185
+ # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
1186
+ # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
1187
+ # },
1188
+ # },
1189
+ # sample_document: "FileLocation",
1190
+ # input_conversion: {
1191
+ # from_format: "X12", # required, accepts X12
1192
+ # format_options: {
1193
+ # x12: {
1194
+ # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
1195
+ # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
1196
+ # },
1197
+ # },
1198
+ # },
1199
+ # mapping: {
1200
+ # template_language: "XSLT", # required, accepts XSLT, JSONATA
1201
+ # template: "MappingTemplate",
1202
+ # },
1203
+ # output_conversion: {
1204
+ # to_format: "X12", # required, accepts X12
1205
+ # format_options: {
1206
+ # x12: {
1207
+ # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
1208
+ # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
1209
+ # },
1210
+ # },
1211
+ # },
1212
+ # sample_documents: {
1213
+ # bucket_name: "BucketName", # required
1214
+ # keys: [ # required
1215
+ # {
1216
+ # input: "S3Key",
1217
+ # output: "S3Key",
1218
+ # },
1219
+ # ],
1220
+ # },
977
1221
  # })
978
1222
  #
979
1223
  # @example Response structure
@@ -981,13 +1225,25 @@ module Aws::B2bi
981
1225
  # resp.transformer_id #=> String
982
1226
  # resp.transformer_arn #=> String
983
1227
  # resp.name #=> String
984
- # resp.file_format #=> String, one of "XML", "JSON"
985
- # resp.mapping_template #=> String
986
1228
  # resp.status #=> String, one of "active", "inactive"
1229
+ # resp.created_at #=> Time
1230
+ # resp.file_format #=> String, one of "XML", "JSON", "NOT_USED"
1231
+ # resp.mapping_template #=> String
987
1232
  # resp.edi_type.x12_details.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
988
1233
  # resp.edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
989
1234
  # resp.sample_document #=> String
990
- # resp.created_at #=> Time
1235
+ # resp.input_conversion.from_format #=> String, one of "X12"
1236
+ # resp.input_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
1237
+ # resp.input_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1238
+ # resp.mapping.template_language #=> String, one of "XSLT", "JSONATA"
1239
+ # resp.mapping.template #=> String
1240
+ # resp.output_conversion.to_format #=> String, one of "X12"
1241
+ # resp.output_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
1242
+ # resp.output_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1243
+ # resp.sample_documents.bucket_name #=> String
1244
+ # resp.sample_documents.keys #=> Array
1245
+ # resp.sample_documents.keys[0].input #=> String
1246
+ # resp.sample_documents.keys[0].output #=> String
991
1247
  #
992
1248
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateTransformer AWS API Documentation
993
1249
  #
@@ -1090,9 +1346,10 @@ module Aws::B2bi
1090
1346
  req.send_request(options)
1091
1347
  end
1092
1348
 
1093
- # Deletes the specified transformer. A transformer describes how to
1094
- # process the incoming EDI documents and extract the necessary
1095
- # information to the output file.
1349
+ # Deletes the specified transformer. A transformer can take an EDI file
1350
+ # as input and transform it into a JSON-or XML-formatted document.
1351
+ # Alternatively, a transformer can take a JSON-or XML-formatted document
1352
+ # as input and transform it into an EDI file.
1096
1353
  #
1097
1354
  # @option params [required, String] :transformer_id
1098
1355
  # Specifies the system-assigned unique identifier for the transformer.
@@ -1193,6 +1450,7 @@ module Aws::B2bi
1193
1450
  # resp.capability_arn #=> String
1194
1451
  # resp.name #=> String
1195
1452
  # resp.type #=> String, one of "edi"
1453
+ # resp.configuration.edi.capability_direction #=> String, one of "INBOUND", "OUTBOUND"
1196
1454
  # resp.configuration.edi.type.x12_details.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
1197
1455
  # resp.configuration.edi.type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1198
1456
  # resp.configuration.edi.input_location.bucket_name #=> String
@@ -1232,6 +1490,7 @@ module Aws::B2bi
1232
1490
  # * {Types::GetPartnershipResponse#email #email} => String
1233
1491
  # * {Types::GetPartnershipResponse#phone #phone} => String
1234
1492
  # * {Types::GetPartnershipResponse#capabilities #capabilities} => Array&lt;String&gt;
1493
+ # * {Types::GetPartnershipResponse#capability_options #capability_options} => Types::CapabilityOptions
1235
1494
  # * {Types::GetPartnershipResponse#trading_partner_id #trading_partner_id} => String
1236
1495
  # * {Types::GetPartnershipResponse#created_at #created_at} => Time
1237
1496
  # * {Types::GetPartnershipResponse#modified_at #modified_at} => Time
@@ -1275,6 +1534,20 @@ module Aws::B2bi
1275
1534
  # resp.phone #=> String
1276
1535
  # resp.capabilities #=> Array
1277
1536
  # resp.capabilities[0] #=> String
1537
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id_qualifier #=> String
1538
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id #=> String
1539
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id_qualifier #=> String
1540
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id #=> String
1541
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.repetition_separator #=> String
1542
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.acknowledgment_requested_code #=> String
1543
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.usage_indicator_code #=> String
1544
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.application_sender_code #=> String
1545
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.application_receiver_code #=> String
1546
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.responsible_agency_code #=> String
1547
+ # resp.capability_options.outbound_edi.x12.common.delimiters.component_separator #=> String
1548
+ # resp.capability_options.outbound_edi.x12.common.delimiters.data_element_separator #=> String
1549
+ # resp.capability_options.outbound_edi.x12.common.delimiters.segment_terminator #=> String
1550
+ # resp.capability_options.outbound_edi.x12.common.validate_edi #=> Boolean
1278
1551
  # resp.trading_partner_id #=> String
1279
1552
  # resp.created_at #=> Time
1280
1553
  # resp.modified_at #=> Time
@@ -1357,8 +1630,10 @@ module Aws::B2bi
1357
1630
  end
1358
1631
 
1359
1632
  # Retrieves the details for the transformer specified by the transformer
1360
- # ID. A transformer describes how to process the incoming EDI documents
1361
- # and extract the necessary information to the output file.
1633
+ # ID. A transformer can take an EDI file as input and transform it into
1634
+ # a JSON-or XML-formatted document. Alternatively, a transformer can
1635
+ # take a JSON-or XML-formatted document as input and transform it into
1636
+ # an EDI file.
1362
1637
  #
1363
1638
  # @option params [required, String] :transformer_id
1364
1639
  # Specifies the system-assigned unique identifier for the transformer.
@@ -1368,13 +1643,17 @@ module Aws::B2bi
1368
1643
  # * {Types::GetTransformerResponse#transformer_id #transformer_id} => String
1369
1644
  # * {Types::GetTransformerResponse#transformer_arn #transformer_arn} => String
1370
1645
  # * {Types::GetTransformerResponse#name #name} => String
1646
+ # * {Types::GetTransformerResponse#status #status} => String
1647
+ # * {Types::GetTransformerResponse#created_at #created_at} => Time
1648
+ # * {Types::GetTransformerResponse#modified_at #modified_at} => Time
1371
1649
  # * {Types::GetTransformerResponse#file_format #file_format} => String
1372
1650
  # * {Types::GetTransformerResponse#mapping_template #mapping_template} => String
1373
- # * {Types::GetTransformerResponse#status #status} => String
1374
1651
  # * {Types::GetTransformerResponse#edi_type #edi_type} => Types::EdiType
1375
1652
  # * {Types::GetTransformerResponse#sample_document #sample_document} => String
1376
- # * {Types::GetTransformerResponse#created_at #created_at} => Time
1377
- # * {Types::GetTransformerResponse#modified_at #modified_at} => Time
1653
+ # * {Types::GetTransformerResponse#input_conversion #input_conversion} => Types::InputConversion
1654
+ # * {Types::GetTransformerResponse#mapping #mapping} => Types::Mapping
1655
+ # * {Types::GetTransformerResponse#output_conversion #output_conversion} => Types::OutputConversion
1656
+ # * {Types::GetTransformerResponse#sample_documents #sample_documents} => Types::SampleDocuments
1378
1657
  #
1379
1658
  #
1380
1659
  # @example Example: Sample GetTransformer call
@@ -1385,18 +1664,29 @@ module Aws::B2bi
1385
1664
  #
1386
1665
  # resp.to_h outputs the following:
1387
1666
  # {
1388
- # name: "transformJSON",
1667
+ # name: "transformX12",
1389
1668
  # created_at: Time.parse("2023-11-01T21:51:05.504Z"),
1390
- # edi_type: {
1391
- # x12_details: {
1392
- # version: "VERSION_4010",
1393
- # transaction_set: "X12_110",
1669
+ # input_conversion: {
1670
+ # format_options: {
1671
+ # x12: {
1672
+ # version: "VERSION_4010",
1673
+ # transaction_set: "X12_110",
1674
+ # },
1394
1675
  # },
1676
+ # from_format: "X12",
1677
+ # },
1678
+ # mapping: {
1679
+ # template: "{}",
1680
+ # template_language: "JSONATA",
1681
+ # },
1682
+ # sample_documents: {
1683
+ # bucket_name: "test-bucket",
1684
+ # keys: [
1685
+ # {
1686
+ # input: "sampleDoc.txt",
1687
+ # },
1688
+ # ],
1395
1689
  # },
1396
- # file_format: "JSON",
1397
- # mapping_template: "$",
1398
- # modified_at: Time.parse("2023-11-01T21:51:05.504Z"),
1399
- # sample_document: "s3://test-bucket/sampleDoc.txt",
1400
1690
  # status: "inactive",
1401
1691
  # transformer_arn: "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9",
1402
1692
  # transformer_id: "tr-974c129999f84d8c9",
@@ -1413,14 +1703,26 @@ module Aws::B2bi
1413
1703
  # resp.transformer_id #=> String
1414
1704
  # resp.transformer_arn #=> String
1415
1705
  # resp.name #=> String
1416
- # resp.file_format #=> String, one of "XML", "JSON"
1417
- # resp.mapping_template #=> String
1418
1706
  # resp.status #=> String, one of "active", "inactive"
1707
+ # resp.created_at #=> Time
1708
+ # resp.modified_at #=> Time
1709
+ # resp.file_format #=> String, one of "XML", "JSON", "NOT_USED"
1710
+ # resp.mapping_template #=> String
1419
1711
  # resp.edi_type.x12_details.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
1420
1712
  # resp.edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1421
1713
  # resp.sample_document #=> String
1422
- # resp.created_at #=> Time
1423
- # resp.modified_at #=> Time
1714
+ # resp.input_conversion.from_format #=> String, one of "X12"
1715
+ # resp.input_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
1716
+ # resp.input_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1717
+ # resp.mapping.template_language #=> String, one of "XSLT", "JSONATA"
1718
+ # resp.mapping.template #=> String
1719
+ # resp.output_conversion.to_format #=> String, one of "X12"
1720
+ # resp.output_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
1721
+ # resp.output_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1722
+ # resp.sample_documents.bucket_name #=> String
1723
+ # resp.sample_documents.keys #=> Array
1724
+ # resp.sample_documents.keys[0].input #=> String
1725
+ # resp.sample_documents.keys[0].output #=> String
1424
1726
  #
1425
1727
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetTransformer AWS API Documentation
1426
1728
  #
@@ -1628,6 +1930,20 @@ module Aws::B2bi
1628
1930
  # resp.partnerships[0].name #=> String
1629
1931
  # resp.partnerships[0].capabilities #=> Array
1630
1932
  # resp.partnerships[0].capabilities[0] #=> String
1933
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id_qualifier #=> String
1934
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id #=> String
1935
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id_qualifier #=> String
1936
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id #=> String
1937
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.interchange_control_headers.repetition_separator #=> String
1938
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.interchange_control_headers.acknowledgment_requested_code #=> String
1939
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.interchange_control_headers.usage_indicator_code #=> String
1940
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.functional_group_headers.application_sender_code #=> String
1941
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.functional_group_headers.application_receiver_code #=> String
1942
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.functional_group_headers.responsible_agency_code #=> String
1943
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.delimiters.component_separator #=> String
1944
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.delimiters.data_element_separator #=> String
1945
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.delimiters.segment_terminator #=> String
1946
+ # resp.partnerships[0].capability_options.outbound_edi.x12.common.validate_edi #=> Boolean
1631
1947
  # resp.partnerships[0].trading_partner_id #=> String
1632
1948
  # resp.partnerships[0].created_at #=> Time
1633
1949
  # resp.partnerships[0].modified_at #=> Time
@@ -1764,9 +2080,10 @@ module Aws::B2bi
1764
2080
  req.send_request(options)
1765
2081
  end
1766
2082
 
1767
- # Lists the available transformers. A transformer describes how to
1768
- # process the incoming EDI documents and extract the necessary
1769
- # information to the output file.
2083
+ # Lists the available transformers. A transformer can take an EDI file
2084
+ # as input and transform it into a JSON-or XML-formatted document.
2085
+ # Alternatively, a transformer can take a JSON-or XML-formatted document
2086
+ # as input and transform it into an EDI file.
1770
2087
  #
1771
2088
  # @option params [String] :next_token
1772
2089
  # When additional results are obtained from the command, a `NextToken`
@@ -1827,14 +2144,26 @@ module Aws::B2bi
1827
2144
  # resp.transformers #=> Array
1828
2145
  # resp.transformers[0].transformer_id #=> String
1829
2146
  # resp.transformers[0].name #=> String
1830
- # resp.transformers[0].file_format #=> String, one of "XML", "JSON"
1831
- # resp.transformers[0].mapping_template #=> String
1832
2147
  # resp.transformers[0].status #=> String, one of "active", "inactive"
2148
+ # resp.transformers[0].created_at #=> Time
2149
+ # resp.transformers[0].modified_at #=> Time
2150
+ # resp.transformers[0].file_format #=> String, one of "XML", "JSON", "NOT_USED"
2151
+ # resp.transformers[0].mapping_template #=> String
1833
2152
  # resp.transformers[0].edi_type.x12_details.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
1834
2153
  # resp.transformers[0].edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1835
2154
  # resp.transformers[0].sample_document #=> String
1836
- # resp.transformers[0].created_at #=> Time
1837
- # resp.transformers[0].modified_at #=> Time
2155
+ # resp.transformers[0].input_conversion.from_format #=> String, one of "X12"
2156
+ # resp.transformers[0].input_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
2157
+ # resp.transformers[0].input_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
2158
+ # resp.transformers[0].mapping.template_language #=> String, one of "XSLT", "JSONATA"
2159
+ # resp.transformers[0].mapping.template #=> String
2160
+ # resp.transformers[0].output_conversion.to_format #=> String, one of "X12"
2161
+ # resp.transformers[0].output_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
2162
+ # resp.transformers[0].output_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
2163
+ # resp.transformers[0].sample_documents.bucket_name #=> String
2164
+ # resp.transformers[0].sample_documents.keys #=> Array
2165
+ # resp.transformers[0].sample_documents.keys[0].input #=> String
2166
+ # resp.transformers[0].sample_documents.keys[0].output #=> String
1838
2167
  # resp.next_token #=> String
1839
2168
  #
1840
2169
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListTransformers AWS API Documentation
@@ -1848,7 +2177,7 @@ module Aws::B2bi
1848
2177
 
1849
2178
  # Runs a job, using a transformer, to parse input EDI (electronic data
1850
2179
  # interchange) file into the output structures used by Amazon Web
1851
- # Services B2BI Data Interchange.
2180
+ # Services B2B Data Interchange.
1852
2181
  #
1853
2182
  # If you only want to transform EDI (electronic data interchange)
1854
2183
  # documents, you don't need to create profiles, partnerships or
@@ -1977,6 +2306,91 @@ module Aws::B2bi
1977
2306
  req.send_request(options)
1978
2307
  end
1979
2308
 
2309
+ # This operation mimics the latter half of a typical Outbound EDI
2310
+ # request. It takes an input JSON/XML in the B2Bi shape as input,
2311
+ # converts it to an X12 EDI string, and return that string.
2312
+ #
2313
+ # @option params [required, Types::ConversionSource] :source
2314
+ # Specify the source file for an outbound EDI request.
2315
+ #
2316
+ # @option params [required, Types::ConversionTarget] :target
2317
+ # Specify the format (X12 is the only currently supported format), and
2318
+ # other details for the conversion target.
2319
+ #
2320
+ # @return [Types::TestConversionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2321
+ #
2322
+ # * {Types::TestConversionResponse#converted_file_content #converted_file_content} => String
2323
+ # * {Types::TestConversionResponse#validation_messages #validation_messages} => Array&lt;String&gt;
2324
+ #
2325
+ #
2326
+ # @example Example: Sample TestConversion call
2327
+ #
2328
+ # resp = client.test_conversion({
2329
+ # source: {
2330
+ # file_format: "JSON",
2331
+ # input_file: {
2332
+ # file_content: "Sample file content",
2333
+ # },
2334
+ # },
2335
+ # target: {
2336
+ # file_format: "X12",
2337
+ # format_details: {
2338
+ # x12: {
2339
+ # version: "VERSION_4010",
2340
+ # transaction_set: "X12_110",
2341
+ # },
2342
+ # },
2343
+ # },
2344
+ # })
2345
+ #
2346
+ # resp.to_h outputs the following:
2347
+ # {
2348
+ # converted_file_content: "Sample converted file content",
2349
+ # validation_messages: [
2350
+ # ],
2351
+ # }
2352
+ #
2353
+ # @example Request syntax with placeholder values
2354
+ #
2355
+ # resp = client.test_conversion({
2356
+ # source: { # required
2357
+ # file_format: "JSON", # required, accepts JSON, XML
2358
+ # input_file: { # required
2359
+ # file_content: "InputFileSourceFileContentString",
2360
+ # },
2361
+ # },
2362
+ # target: { # required
2363
+ # file_format: "X12", # required, accepts X12
2364
+ # format_details: {
2365
+ # x12: {
2366
+ # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
2367
+ # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
2368
+ # },
2369
+ # },
2370
+ # output_sample_file: {
2371
+ # file_location: {
2372
+ # bucket_name: "BucketName",
2373
+ # key: "S3Key",
2374
+ # },
2375
+ # },
2376
+ # },
2377
+ # })
2378
+ #
2379
+ # @example Response structure
2380
+ #
2381
+ # resp.converted_file_content #=> String
2382
+ # resp.validation_messages #=> Array
2383
+ # resp.validation_messages[0] #=> String
2384
+ #
2385
+ # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TestConversion AWS API Documentation
2386
+ #
2387
+ # @overload test_conversion(params = {})
2388
+ # @param [Hash] params ({})
2389
+ def test_conversion(params = {}, options = {})
2390
+ req = build_request(:test_conversion, params)
2391
+ req.send_request(options)
2392
+ end
2393
+
1980
2394
  # Maps the input file according to the provided template file. The API
1981
2395
  # call downloads the file contents from the Amazon S3 location, and
1982
2396
  # passes the contents in as a string, to the `inputFileContent`
@@ -1990,6 +2404,15 @@ module Aws::B2bi
1990
2404
  # Specifies the mapping template for the transformer. This template is
1991
2405
  # used to map the parsed EDI file using JSONata or XSLT.
1992
2406
  #
2407
+ # <note markdown="1"> This parameter is available for backwards compatibility. Use the
2408
+ # [Mapping][1] data type instead.
2409
+ #
2410
+ # </note>
2411
+ #
2412
+ #
2413
+ #
2414
+ # [1]: https://docs.aws.amazon.com/b2bi/latest/APIReference/API_Mapping.html
2415
+ #
1993
2416
  # @option params [required, String] :file_format
1994
2417
  # Specifies that the currently supported file formats for EDI
1995
2418
  # transformations are `JSON` and `XML`.
@@ -2017,7 +2440,7 @@ module Aws::B2bi
2017
2440
  # resp = client.test_mapping({
2018
2441
  # input_file_content: "TestMappingInputFileContent", # required
2019
2442
  # mapping_template: "MappingTemplate", # required
2020
- # file_format: "XML", # required, accepts XML, JSON
2443
+ # file_format: "XML", # required, accepts XML, JSON, NOT_USED
2021
2444
  # })
2022
2445
  #
2023
2446
  # @example Response structure
@@ -2083,7 +2506,7 @@ module Aws::B2bi
2083
2506
  # bucket_name: "BucketName",
2084
2507
  # key: "S3Key",
2085
2508
  # },
2086
- # file_format: "XML", # required, accepts XML, JSON
2509
+ # file_format: "XML", # required, accepts XML, JSON, NOT_USED
2087
2510
  # edi_type: { # required
2088
2511
  # x12_details: {
2089
2512
  # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
@@ -2251,6 +2674,7 @@ module Aws::B2bi
2251
2674
  # name: "CapabilityName",
2252
2675
  # configuration: {
2253
2676
  # edi: {
2677
+ # capability_direction: "INBOUND", # accepts INBOUND, OUTBOUND
2254
2678
  # type: { # required
2255
2679
  # x12_details: {
2256
2680
  # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
@@ -2282,6 +2706,7 @@ module Aws::B2bi
2282
2706
  # resp.capability_arn #=> String
2283
2707
  # resp.name #=> String
2284
2708
  # resp.type #=> String, one of "edi"
2709
+ # resp.configuration.edi.capability_direction #=> String, one of "INBOUND", "OUTBOUND"
2285
2710
  # resp.configuration.edi.type.x12_details.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
2286
2711
  # resp.configuration.edi.type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
2287
2712
  # resp.configuration.edi.input_location.bucket_name #=> String
@@ -2318,6 +2743,10 @@ module Aws::B2bi
2318
2743
  # @option params [Array<String>] :capabilities
2319
2744
  # List of the capabilities associated with this partnership.
2320
2745
  #
2746
+ # @option params [Types::CapabilityOptions] :capability_options
2747
+ # To update, specify the structure that contains the details for the
2748
+ # associated capabilities.
2749
+ #
2321
2750
  # @return [Types::UpdatePartnershipResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2322
2751
  #
2323
2752
  # * {Types::UpdatePartnershipResponse#profile_id #profile_id} => String
@@ -2327,6 +2756,7 @@ module Aws::B2bi
2327
2756
  # * {Types::UpdatePartnershipResponse#email #email} => String
2328
2757
  # * {Types::UpdatePartnershipResponse#phone #phone} => String
2329
2758
  # * {Types::UpdatePartnershipResponse#capabilities #capabilities} => Array&lt;String&gt;
2759
+ # * {Types::UpdatePartnershipResponse#capability_options #capability_options} => Types::CapabilityOptions
2330
2760
  # * {Types::UpdatePartnershipResponse#trading_partner_id #trading_partner_id} => String
2331
2761
  # * {Types::UpdatePartnershipResponse#created_at #created_at} => Time
2332
2762
  # * {Types::UpdatePartnershipResponse#modified_at #modified_at} => Time
@@ -2364,6 +2794,34 @@ module Aws::B2bi
2364
2794
  # partnership_id: "PartnershipId", # required
2365
2795
  # name: "PartnerName",
2366
2796
  # capabilities: ["CapabilityId"],
2797
+ # capability_options: {
2798
+ # outbound_edi: {
2799
+ # x12: {
2800
+ # common: {
2801
+ # interchange_control_headers: {
2802
+ # sender_id_qualifier: "X12IdQualifier",
2803
+ # sender_id: "X12SenderId",
2804
+ # receiver_id_qualifier: "X12IdQualifier",
2805
+ # receiver_id: "X12ReceiverId",
2806
+ # repetition_separator: "X12RepetitionSeparator",
2807
+ # acknowledgment_requested_code: "X12AcknowledgmentRequestedCode",
2808
+ # usage_indicator_code: "X12UsageIndicatorCode",
2809
+ # },
2810
+ # functional_group_headers: {
2811
+ # application_sender_code: "X12ApplicationSenderCode",
2812
+ # application_receiver_code: "X12ApplicationReceiverCode",
2813
+ # responsible_agency_code: "X12ResponsibleAgencyCode",
2814
+ # },
2815
+ # delimiters: {
2816
+ # component_separator: "X12ComponentSeparator",
2817
+ # data_element_separator: "X12DataElementSeparator",
2818
+ # segment_terminator: "X12SegmentTerminator",
2819
+ # },
2820
+ # validate_edi: false,
2821
+ # },
2822
+ # },
2823
+ # },
2824
+ # },
2367
2825
  # })
2368
2826
  #
2369
2827
  # @example Response structure
@@ -2376,6 +2834,20 @@ module Aws::B2bi
2376
2834
  # resp.phone #=> String
2377
2835
  # resp.capabilities #=> Array
2378
2836
  # resp.capabilities[0] #=> String
2837
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id_qualifier #=> String
2838
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.sender_id #=> String
2839
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id_qualifier #=> String
2840
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.receiver_id #=> String
2841
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.repetition_separator #=> String
2842
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.acknowledgment_requested_code #=> String
2843
+ # resp.capability_options.outbound_edi.x12.common.interchange_control_headers.usage_indicator_code #=> String
2844
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.application_sender_code #=> String
2845
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.application_receiver_code #=> String
2846
+ # resp.capability_options.outbound_edi.x12.common.functional_group_headers.responsible_agency_code #=> String
2847
+ # resp.capability_options.outbound_edi.x12.common.delimiters.component_separator #=> String
2848
+ # resp.capability_options.outbound_edi.x12.common.delimiters.data_element_separator #=> String
2849
+ # resp.capability_options.outbound_edi.x12.common.delimiters.segment_terminator #=> String
2850
+ # resp.capability_options.outbound_edi.x12.common.validate_edi #=> Boolean
2379
2851
  # resp.trading_partner_id #=> String
2380
2852
  # resp.created_at #=> Time
2381
2853
  # resp.modified_at #=> Time
@@ -2477,9 +2949,11 @@ module Aws::B2bi
2477
2949
  req.send_request(options)
2478
2950
  end
2479
2951
 
2480
- # Updates the specified parameters for a transformer. A transformer
2481
- # describes how to process the incoming EDI documents and extract the
2482
- # necessary information to the output file.
2952
+ # Updates the specified parameters for a transformer. A transformer can
2953
+ # take an EDI file as input and transform it into a JSON-or
2954
+ # XML-formatted document. Alternatively, a transformer can take a
2955
+ # JSON-or XML-formatted document as input and transform it into an EDI
2956
+ # file.
2483
2957
  #
2484
2958
  # @option params [required, String] :transformer_id
2485
2959
  # Specifies the system-assigned unique identifier for the transformer.
@@ -2487,6 +2961,10 @@ module Aws::B2bi
2487
2961
  # @option params [String] :name
2488
2962
  # Specify a new name for the transformer, if you want to update it.
2489
2963
  #
2964
+ # @option params [String] :status
2965
+ # Specifies the transformer's status. You can update the state of the
2966
+ # transformer, from `active` to `inactive`, or `inactive` to `active`.
2967
+ #
2490
2968
  # @option params [String] :file_format
2491
2969
  # Specifies that the currently supported file formats for EDI
2492
2970
  # transformations are `JSON` and `XML`.
@@ -2495,9 +2973,14 @@ module Aws::B2bi
2495
2973
  # Specifies the mapping template for the transformer. This template is
2496
2974
  # used to map the parsed EDI file using JSONata or XSLT.
2497
2975
  #
2498
- # @option params [String] :status
2499
- # Specifies the transformer's status. You can update the state of the
2500
- # transformer, from `active` to `inactive`, or `inactive` to `active`.
2976
+ # <note markdown="1"> This parameter is available for backwards compatibility. Use the
2977
+ # [Mapping][1] data type instead.
2978
+ #
2979
+ # </note>
2980
+ #
2981
+ #
2982
+ #
2983
+ # [1]: https://docs.aws.amazon.com/b2bi/latest/APIReference/API_Mapping.html
2501
2984
  #
2502
2985
  # @option params [Types::EdiType] :edi_type
2503
2986
  # Specifies the details for the EDI standard that is being used for the
@@ -2509,53 +2992,98 @@ module Aws::B2bi
2509
2992
  # Specifies a sample EDI document that is used by a transformer as a
2510
2993
  # guide for processing the EDI data.
2511
2994
  #
2995
+ # @option params [Types::InputConversion] :input_conversion
2996
+ # To update, specify the `InputConversion` object, which contains the
2997
+ # format options for the inbound transformation.
2998
+ #
2999
+ # @option params [Types::Mapping] :mapping
3000
+ # Specify the structure that contains the mapping template and its
3001
+ # language (either XSLT or JSONATA).
3002
+ #
3003
+ # @option params [Types::OutputConversion] :output_conversion
3004
+ # To update, specify the `OutputConversion` object, which contains the
3005
+ # format options for the outbound transformation.
3006
+ #
3007
+ # @option params [Types::SampleDocuments] :sample_documents
3008
+ # Specify a structure that contains the Amazon S3 bucket and an array of
3009
+ # the corresponding keys used to identify the location for your sample
3010
+ # documents.
3011
+ #
2512
3012
  # @return [Types::UpdateTransformerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2513
3013
  #
2514
3014
  # * {Types::UpdateTransformerResponse#transformer_id #transformer_id} => String
2515
3015
  # * {Types::UpdateTransformerResponse#transformer_arn #transformer_arn} => String
2516
3016
  # * {Types::UpdateTransformerResponse#name #name} => String
3017
+ # * {Types::UpdateTransformerResponse#status #status} => String
3018
+ # * {Types::UpdateTransformerResponse#created_at #created_at} => Time
3019
+ # * {Types::UpdateTransformerResponse#modified_at #modified_at} => Time
2517
3020
  # * {Types::UpdateTransformerResponse#file_format #file_format} => String
2518
3021
  # * {Types::UpdateTransformerResponse#mapping_template #mapping_template} => String
2519
- # * {Types::UpdateTransformerResponse#status #status} => String
2520
3022
  # * {Types::UpdateTransformerResponse#edi_type #edi_type} => Types::EdiType
2521
3023
  # * {Types::UpdateTransformerResponse#sample_document #sample_document} => String
2522
- # * {Types::UpdateTransformerResponse#created_at #created_at} => Time
2523
- # * {Types::UpdateTransformerResponse#modified_at #modified_at} => Time
3024
+ # * {Types::UpdateTransformerResponse#input_conversion #input_conversion} => Types::InputConversion
3025
+ # * {Types::UpdateTransformerResponse#mapping #mapping} => Types::Mapping
3026
+ # * {Types::UpdateTransformerResponse#output_conversion #output_conversion} => Types::OutputConversion
3027
+ # * {Types::UpdateTransformerResponse#sample_documents #sample_documents} => Types::SampleDocuments
2524
3028
  #
2525
3029
  #
2526
3030
  # @example Example: Sample UpdateTransformer call
2527
3031
  #
2528
3032
  # resp = client.update_transformer({
2529
- # name: "transformJSON",
2530
- # edi_type: {
2531
- # x12_details: {
2532
- # version: "VERSION_4010",
2533
- # transaction_set: "X12_110",
3033
+ # name: "transformX12",
3034
+ # input_conversion: {
3035
+ # format_options: {
3036
+ # x12: {
3037
+ # version: "VERSION_4010",
3038
+ # transaction_set: "X12_110",
3039
+ # },
2534
3040
  # },
3041
+ # from_format: "X12",
3042
+ # },
3043
+ # mapping: {
3044
+ # template: "{}",
3045
+ # template_language: "JSONATA",
3046
+ # },
3047
+ # sample_documents: {
3048
+ # bucket_name: "test-bucket",
3049
+ # keys: [
3050
+ # {
3051
+ # input: "sampleDoc.txt",
3052
+ # },
3053
+ # ],
2535
3054
  # },
2536
- # file_format: "JSON",
2537
- # mapping_template: "{}",
2538
- # sample_document: "s3://test-bucket/sampleDoc.txt",
2539
3055
  # status: "inactive",
2540
3056
  # transformer_id: "tr-974c129999f84d8c9",
2541
3057
  # })
2542
3058
  #
2543
3059
  # resp.to_h outputs the following:
2544
3060
  # {
2545
- # name: "transformJSON",
3061
+ # name: "transformX12",
2546
3062
  # created_at: Time.parse("2023-11-01T21:51:05.504Z"),
2547
- # edi_type: {
2548
- # x12_details: {
2549
- # version: "VERSION_4010",
2550
- # transaction_set: "X12_110",
3063
+ # input_conversion: {
3064
+ # format_options: {
3065
+ # x12: {
3066
+ # version: "VERSION_4010",
3067
+ # transaction_set: "X12_110",
3068
+ # },
2551
3069
  # },
3070
+ # from_format: "X12",
3071
+ # },
3072
+ # mapping: {
3073
+ # template: "{}",
3074
+ # template_language: "JSONATA",
3075
+ # },
3076
+ # modified_at: Time.parse("2023-11-02T22:31:05.504Z"),
3077
+ # sample_documents: {
3078
+ # bucket_name: "test-bucket",
3079
+ # keys: [
3080
+ # {
3081
+ # input: "sampleDoc.txt",
3082
+ # },
3083
+ # ],
2552
3084
  # },
2553
- # file_format: "JSON",
2554
- # mapping_template: "$",
2555
- # modified_at: Time.parse("2023-11-01T21:51:05.504Z"),
2556
- # sample_document: "s3://test-bucket/sampleDoc.txt",
2557
3085
  # status: "inactive",
2558
- # transformer_arn: "arn:aws:b2bi:us-west-2:607686414464:transformer/tr-974c129999f84d8c9",
3086
+ # transformer_arn: "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9",
2559
3087
  # transformer_id: "tr-974c129999f84d8c9",
2560
3088
  # }
2561
3089
  #
@@ -2564,9 +3092,9 @@ module Aws::B2bi
2564
3092
  # resp = client.update_transformer({
2565
3093
  # transformer_id: "TransformerId", # required
2566
3094
  # name: "TransformerName",
2567
- # file_format: "XML", # accepts XML, JSON
2568
- # mapping_template: "MappingTemplate",
2569
3095
  # status: "active", # accepts active, inactive
3096
+ # file_format: "XML", # accepts XML, JSON, NOT_USED
3097
+ # mapping_template: "MappingTemplate",
2570
3098
  # edi_type: {
2571
3099
  # x12_details: {
2572
3100
  # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
@@ -2574,6 +3102,37 @@ module Aws::B2bi
2574
3102
  # },
2575
3103
  # },
2576
3104
  # sample_document: "FileLocation",
3105
+ # input_conversion: {
3106
+ # from_format: "X12", # required, accepts X12
3107
+ # format_options: {
3108
+ # x12: {
3109
+ # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
3110
+ # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
3111
+ # },
3112
+ # },
3113
+ # },
3114
+ # mapping: {
3115
+ # template_language: "XSLT", # required, accepts XSLT, JSONATA
3116
+ # template: "MappingTemplate",
3117
+ # },
3118
+ # output_conversion: {
3119
+ # to_format: "X12", # required, accepts X12
3120
+ # format_options: {
3121
+ # x12: {
3122
+ # transaction_set: "X12_110", # accepts X12_110, X12_180, X12_204, X12_210, X12_211, X12_214, X12_215, X12_259, X12_260, X12_266, X12_269, X12_270, X12_271, X12_274, X12_275, X12_276, X12_277, X12_278, X12_310, X12_315, X12_322, X12_404, X12_410, X12_417, X12_421, X12_426, X12_810, X12_820, X12_824, X12_830, X12_832, X12_834, X12_835, X12_837, X12_844, X12_846, X12_849, X12_850, X12_852, X12_855, X12_856, X12_860, X12_861, X12_864, X12_865, X12_869, X12_870, X12_940, X12_945, X12_990, X12_997, X12_999, X12_270_X279, X12_271_X279, X12_275_X210, X12_275_X211, X12_276_X212, X12_277_X212, X12_277_X214, X12_277_X364, X12_278_X217, X12_820_X218, X12_820_X306, X12_824_X186, X12_834_X220, X12_834_X307, X12_834_X318, X12_835_X221, X12_837_X222, X12_837_X223, X12_837_X224, X12_837_X291, X12_837_X292, X12_837_X298, X12_999_X231
3123
+ # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
3124
+ # },
3125
+ # },
3126
+ # },
3127
+ # sample_documents: {
3128
+ # bucket_name: "BucketName", # required
3129
+ # keys: [ # required
3130
+ # {
3131
+ # input: "S3Key",
3132
+ # output: "S3Key",
3133
+ # },
3134
+ # ],
3135
+ # },
2577
3136
  # })
2578
3137
  #
2579
3138
  # @example Response structure
@@ -2581,14 +3140,26 @@ module Aws::B2bi
2581
3140
  # resp.transformer_id #=> String
2582
3141
  # resp.transformer_arn #=> String
2583
3142
  # resp.name #=> String
2584
- # resp.file_format #=> String, one of "XML", "JSON"
2585
- # resp.mapping_template #=> String
2586
3143
  # resp.status #=> String, one of "active", "inactive"
3144
+ # resp.created_at #=> Time
3145
+ # resp.modified_at #=> Time
3146
+ # resp.file_format #=> String, one of "XML", "JSON", "NOT_USED"
3147
+ # resp.mapping_template #=> String
2587
3148
  # resp.edi_type.x12_details.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
2588
3149
  # resp.edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
2589
3150
  # resp.sample_document #=> String
2590
- # resp.created_at #=> Time
2591
- # resp.modified_at #=> Time
3151
+ # resp.input_conversion.from_format #=> String, one of "X12"
3152
+ # resp.input_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
3153
+ # resp.input_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
3154
+ # resp.mapping.template_language #=> String, one of "XSLT", "JSONATA"
3155
+ # resp.mapping.template #=> String
3156
+ # resp.output_conversion.to_format #=> String, one of "X12"
3157
+ # resp.output_conversion.format_options.x12.transaction_set #=> String, one of "X12_110", "X12_180", "X12_204", "X12_210", "X12_211", "X12_214", "X12_215", "X12_259", "X12_260", "X12_266", "X12_269", "X12_270", "X12_271", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", "X12_310", "X12_315", "X12_322", "X12_404", "X12_410", "X12_417", "X12_421", "X12_426", "X12_810", "X12_820", "X12_824", "X12_830", "X12_832", "X12_834", "X12_835", "X12_837", "X12_844", "X12_846", "X12_849", "X12_850", "X12_852", "X12_855", "X12_856", "X12_860", "X12_861", "X12_864", "X12_865", "X12_869", "X12_870", "X12_940", "X12_945", "X12_990", "X12_997", "X12_999", "X12_270_X279", "X12_271_X279", "X12_275_X210", "X12_275_X211", "X12_276_X212", "X12_277_X212", "X12_277_X214", "X12_277_X364", "X12_278_X217", "X12_820_X218", "X12_820_X306", "X12_824_X186", "X12_834_X220", "X12_834_X307", "X12_834_X318", "X12_835_X221", "X12_837_X222", "X12_837_X223", "X12_837_X224", "X12_837_X291", "X12_837_X292", "X12_837_X298", "X12_999_X231"
3158
+ # resp.output_conversion.format_options.x12.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
3159
+ # resp.sample_documents.bucket_name #=> String
3160
+ # resp.sample_documents.keys #=> Array
3161
+ # resp.sample_documents.keys[0].input #=> String
3162
+ # resp.sample_documents.keys[0].output #=> String
2592
3163
  #
2593
3164
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateTransformer AWS API Documentation
2594
3165
  #
@@ -2617,7 +3188,7 @@ module Aws::B2bi
2617
3188
  tracer: tracer
2618
3189
  )
2619
3190
  context[:gem_name] = 'aws-sdk-b2bi'
2620
- context[:gem_version] = '1.19.0'
3191
+ context[:gem_version] = '1.21.0'
2621
3192
  Seahorse::Client::Request.new(handlers, context)
2622
3193
  end
2623
3194