aws-sdk-b2bi 1.20.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -575,6 +575,7 @@ module Aws::B2bi
575
575
  # type: "edi", # required, accepts edi
576
576
  # configuration: { # required
577
577
  # edi: {
578
+ # capability_direction: "INBOUND", # accepts INBOUND, OUTBOUND
578
579
  # type: { # required
579
580
  # x12_details: {
580
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
@@ -613,6 +614,7 @@ module Aws::B2bi
613
614
  # resp.capability_arn #=> String
614
615
  # resp.name #=> String
615
616
  # resp.type #=> String, one of "edi"
617
+ # resp.configuration.edi.capability_direction #=> String, one of "INBOUND", "OUTBOUND"
616
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"
617
619
  # resp.configuration.edi.type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
618
620
  # resp.configuration.edi.input_location.bucket_name #=> String
@@ -655,6 +657,10 @@ module Aws::B2bi
655
657
  # @option params [required, Array<String>] :capabilities
656
658
  # Specifies a list of the capabilities associated with this partnership.
657
659
  #
660
+ # @option params [Types::CapabilityOptions] :capability_options
661
+ # Specify the structure that contains the details for the associated
662
+ # capabilities.
663
+ #
658
664
  # @option params [String] :client_token
659
665
  # Reserved for future use.
660
666
  #
@@ -675,6 +681,7 @@ module Aws::B2bi
675
681
  # * {Types::CreatePartnershipResponse#email #email} => String
676
682
  # * {Types::CreatePartnershipResponse#phone #phone} => String
677
683
  # * {Types::CreatePartnershipResponse#capabilities #capabilities} => Array&lt;String&gt;
684
+ # * {Types::CreatePartnershipResponse#capability_options #capability_options} => Types::CapabilityOptions
678
685
  # * {Types::CreatePartnershipResponse#trading_partner_id #trading_partner_id} => String
679
686
  # * {Types::CreatePartnershipResponse#created_at #created_at} => Time
680
687
  #
@@ -721,6 +728,34 @@ module Aws::B2bi
721
728
  # email: "Email", # required
722
729
  # phone: "Phone",
723
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
+ # },
724
759
  # client_token: "String",
725
760
  # tags: [
726
761
  # {
@@ -740,6 +775,20 @@ module Aws::B2bi
740
775
  # resp.phone #=> String
741
776
  # resp.capabilities #=> Array
742
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
743
792
  # resp.trading_partner_id #=> String
744
793
  # resp.created_at #=> Time
745
794
  #
@@ -863,22 +912,154 @@ module Aws::B2bi
863
912
  req.send_request(options)
864
913
  end
865
914
 
866
- # Creates a transformer. A transformer describes how to process the
867
- # incoming EDI documents and extract the necessary information to the
868
- # 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>
869
1030
  #
870
1031
  # @option params [required, String] :name
871
1032
  # Specifies the name of the transformer, used to identify it.
872
1033
  #
873
- # @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
874
1046
  # Specifies that the currently supported file formats for EDI
875
1047
  # transformations are `JSON` and `XML`.
876
1048
  #
877
- # @option params [required, String] :mapping_template
1049
+ # @option params [String] :mapping_template
878
1050
  # Specifies the mapping template for the transformer. This template is
879
1051
  # used to map the parsed EDI file using JSONata or XSLT.
880
1052
  #
881
- # @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
882
1063
  # Specifies the details for the EDI standard that is being used for the
883
1064
  # transformer. Currently, only X12 is supported. X12 is a set of
884
1065
  # standards and corresponding messages that define specific business
@@ -888,44 +1069,66 @@ module Aws::B2bi
888
1069
  # Specifies a sample EDI document that is used by a transformer as a
889
1070
  # guide for processing the EDI data.
890
1071
  #
891
- # @option params [String] :client_token
892
- # 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.
893
1075
  #
894
- # **A suitable default value is auto-generated.** You should normally
895
- # 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).
896
1079
  #
897
- # @option params [Array<Types::Tag>] :tags
898
- # Specifies the key-value pairs assigned to ARNs that you can use to
899
- # group and search for resources by type. You can attach this metadata
900
- # 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.
901
1088
  #
902
1089
  # @return [Types::CreateTransformerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
903
1090
  #
904
1091
  # * {Types::CreateTransformerResponse#transformer_id #transformer_id} => String
905
1092
  # * {Types::CreateTransformerResponse#transformer_arn #transformer_arn} => String
906
1093
  # * {Types::CreateTransformerResponse#name #name} => String
1094
+ # * {Types::CreateTransformerResponse#status #status} => String
1095
+ # * {Types::CreateTransformerResponse#created_at #created_at} => Time
907
1096
  # * {Types::CreateTransformerResponse#file_format #file_format} => String
908
1097
  # * {Types::CreateTransformerResponse#mapping_template #mapping_template} => String
909
- # * {Types::CreateTransformerResponse#status #status} => String
910
1098
  # * {Types::CreateTransformerResponse#edi_type #edi_type} => Types::EdiType
911
1099
  # * {Types::CreateTransformerResponse#sample_document #sample_document} => String
912
- # * {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
913
1104
  #
914
1105
  #
915
1106
  # @example Example: Sample CreateTransformer call
916
1107
  #
917
1108
  # resp = client.create_transformer({
918
- # name: "transformJSON",
1109
+ # name: "transformX12",
919
1110
  # client_token: "foo",
920
- # edi_type: {
921
- # x12_details: {
922
- # version: "VERSION_4010",
923
- # transaction_set: "X12_110",
1111
+ # input_conversion: {
1112
+ # format_options: {
1113
+ # x12: {
1114
+ # version: "VERSION_4010",
1115
+ # transaction_set: "X12_110",
1116
+ # },
924
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
+ # ],
925
1131
  # },
926
- # file_format: "JSON",
927
- # mapping_template: "{}",
928
- # sample_document: "s3://test-bucket/sampleDoc.txt",
929
1132
  # tags: [
930
1133
  # {
931
1134
  # key: "sampleKey",
@@ -936,17 +1139,29 @@ module Aws::B2bi
936
1139
  #
937
1140
  # resp.to_h outputs the following:
938
1141
  # {
939
- # name: "transformJSON",
1142
+ # name: "transformX12",
940
1143
  # created_at: Time.parse("2023-11-01T21:51:05.504Z"),
941
- # edi_type: {
942
- # x12_details: {
943
- # version: "VERSION_4010",
944
- # transaction_set: "X12_110",
1144
+ # input_conversion: {
1145
+ # format_options: {
1146
+ # x12: {
1147
+ # version: "VERSION_4010",
1148
+ # transaction_set: "X12_110",
1149
+ # },
945
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
+ # ],
946
1164
  # },
947
- # file_format: "JSON",
948
- # mapping_template: "$",
949
- # sample_document: "s3://test-bucket/sampleDoc.txt",
950
1165
  # status: "inactive",
951
1166
  # transformer_arn: "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9",
952
1167
  # transformer_id: "tr-974c129999f84d8c9",
@@ -956,15 +1171,6 @@ module Aws::B2bi
956
1171
  #
957
1172
  # resp = client.create_transformer({
958
1173
  # name: "TransformerName", # required
959
- # file_format: "XML", # required, accepts XML, JSON
960
- # mapping_template: "MappingTemplate", # required
961
- # edi_type: { # required
962
- # x12_details: {
963
- # 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
964
- # version: "VERSION_4010", # accepts VERSION_4010, VERSION_4030, VERSION_5010, VERSION_5010_HIPAA
965
- # },
966
- # },
967
- # sample_document: "FileLocation",
968
1174
  # client_token: "String",
969
1175
  # tags: [
970
1176
  # {
@@ -972,6 +1178,46 @@ module Aws::B2bi
972
1178
  # value: "TagValue", # required
973
1179
  # },
974
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
+ # },
975
1221
  # })
976
1222
  #
977
1223
  # @example Response structure
@@ -979,13 +1225,25 @@ module Aws::B2bi
979
1225
  # resp.transformer_id #=> String
980
1226
  # resp.transformer_arn #=> String
981
1227
  # resp.name #=> String
982
- # resp.file_format #=> String, one of "XML", "JSON"
983
- # resp.mapping_template #=> String
984
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
985
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"
986
1233
  # resp.edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
987
1234
  # resp.sample_document #=> String
988
- # 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
989
1247
  #
990
1248
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateTransformer AWS API Documentation
991
1249
  #
@@ -1088,9 +1346,10 @@ module Aws::B2bi
1088
1346
  req.send_request(options)
1089
1347
  end
1090
1348
 
1091
- # Deletes the specified transformer. A transformer describes how to
1092
- # process the incoming EDI documents and extract the necessary
1093
- # 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.
1094
1353
  #
1095
1354
  # @option params [required, String] :transformer_id
1096
1355
  # Specifies the system-assigned unique identifier for the transformer.
@@ -1191,6 +1450,7 @@ module Aws::B2bi
1191
1450
  # resp.capability_arn #=> String
1192
1451
  # resp.name #=> String
1193
1452
  # resp.type #=> String, one of "edi"
1453
+ # resp.configuration.edi.capability_direction #=> String, one of "INBOUND", "OUTBOUND"
1194
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"
1195
1455
  # resp.configuration.edi.type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1196
1456
  # resp.configuration.edi.input_location.bucket_name #=> String
@@ -1230,6 +1490,7 @@ module Aws::B2bi
1230
1490
  # * {Types::GetPartnershipResponse#email #email} => String
1231
1491
  # * {Types::GetPartnershipResponse#phone #phone} => String
1232
1492
  # * {Types::GetPartnershipResponse#capabilities #capabilities} => Array&lt;String&gt;
1493
+ # * {Types::GetPartnershipResponse#capability_options #capability_options} => Types::CapabilityOptions
1233
1494
  # * {Types::GetPartnershipResponse#trading_partner_id #trading_partner_id} => String
1234
1495
  # * {Types::GetPartnershipResponse#created_at #created_at} => Time
1235
1496
  # * {Types::GetPartnershipResponse#modified_at #modified_at} => Time
@@ -1273,6 +1534,20 @@ module Aws::B2bi
1273
1534
  # resp.phone #=> String
1274
1535
  # resp.capabilities #=> Array
1275
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
1276
1551
  # resp.trading_partner_id #=> String
1277
1552
  # resp.created_at #=> Time
1278
1553
  # resp.modified_at #=> Time
@@ -1355,8 +1630,10 @@ module Aws::B2bi
1355
1630
  end
1356
1631
 
1357
1632
  # Retrieves the details for the transformer specified by the transformer
1358
- # ID. A transformer describes how to process the incoming EDI documents
1359
- # 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.
1360
1637
  #
1361
1638
  # @option params [required, String] :transformer_id
1362
1639
  # Specifies the system-assigned unique identifier for the transformer.
@@ -1366,13 +1643,17 @@ module Aws::B2bi
1366
1643
  # * {Types::GetTransformerResponse#transformer_id #transformer_id} => String
1367
1644
  # * {Types::GetTransformerResponse#transformer_arn #transformer_arn} => String
1368
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
1369
1649
  # * {Types::GetTransformerResponse#file_format #file_format} => String
1370
1650
  # * {Types::GetTransformerResponse#mapping_template #mapping_template} => String
1371
- # * {Types::GetTransformerResponse#status #status} => String
1372
1651
  # * {Types::GetTransformerResponse#edi_type #edi_type} => Types::EdiType
1373
1652
  # * {Types::GetTransformerResponse#sample_document #sample_document} => String
1374
- # * {Types::GetTransformerResponse#created_at #created_at} => Time
1375
- # * {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
1376
1657
  #
1377
1658
  #
1378
1659
  # @example Example: Sample GetTransformer call
@@ -1383,18 +1664,29 @@ module Aws::B2bi
1383
1664
  #
1384
1665
  # resp.to_h outputs the following:
1385
1666
  # {
1386
- # name: "transformJSON",
1667
+ # name: "transformX12",
1387
1668
  # created_at: Time.parse("2023-11-01T21:51:05.504Z"),
1388
- # edi_type: {
1389
- # x12_details: {
1390
- # version: "VERSION_4010",
1391
- # transaction_set: "X12_110",
1669
+ # input_conversion: {
1670
+ # format_options: {
1671
+ # x12: {
1672
+ # version: "VERSION_4010",
1673
+ # transaction_set: "X12_110",
1674
+ # },
1392
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
+ # ],
1393
1689
  # },
1394
- # file_format: "JSON",
1395
- # mapping_template: "$",
1396
- # modified_at: Time.parse("2023-11-01T21:51:05.504Z"),
1397
- # sample_document: "s3://test-bucket/sampleDoc.txt",
1398
1690
  # status: "inactive",
1399
1691
  # transformer_arn: "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9",
1400
1692
  # transformer_id: "tr-974c129999f84d8c9",
@@ -1411,14 +1703,26 @@ module Aws::B2bi
1411
1703
  # resp.transformer_id #=> String
1412
1704
  # resp.transformer_arn #=> String
1413
1705
  # resp.name #=> String
1414
- # resp.file_format #=> String, one of "XML", "JSON"
1415
- # resp.mapping_template #=> String
1416
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
1417
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"
1418
1712
  # resp.edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1419
1713
  # resp.sample_document #=> String
1420
- # resp.created_at #=> Time
1421
- # 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
1422
1726
  #
1423
1727
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetTransformer AWS API Documentation
1424
1728
  #
@@ -1626,6 +1930,20 @@ module Aws::B2bi
1626
1930
  # resp.partnerships[0].name #=> String
1627
1931
  # resp.partnerships[0].capabilities #=> Array
1628
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
1629
1947
  # resp.partnerships[0].trading_partner_id #=> String
1630
1948
  # resp.partnerships[0].created_at #=> Time
1631
1949
  # resp.partnerships[0].modified_at #=> Time
@@ -1762,9 +2080,10 @@ module Aws::B2bi
1762
2080
  req.send_request(options)
1763
2081
  end
1764
2082
 
1765
- # Lists the available transformers. A transformer describes how to
1766
- # process the incoming EDI documents and extract the necessary
1767
- # 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.
1768
2087
  #
1769
2088
  # @option params [String] :next_token
1770
2089
  # When additional results are obtained from the command, a `NextToken`
@@ -1825,14 +2144,26 @@ module Aws::B2bi
1825
2144
  # resp.transformers #=> Array
1826
2145
  # resp.transformers[0].transformer_id #=> String
1827
2146
  # resp.transformers[0].name #=> String
1828
- # resp.transformers[0].file_format #=> String, one of "XML", "JSON"
1829
- # resp.transformers[0].mapping_template #=> String
1830
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
1831
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"
1832
2153
  # resp.transformers[0].edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
1833
2154
  # resp.transformers[0].sample_document #=> String
1834
- # resp.transformers[0].created_at #=> Time
1835
- # 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
1836
2167
  # resp.next_token #=> String
1837
2168
  #
1838
2169
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListTransformers AWS API Documentation
@@ -1846,7 +2177,7 @@ module Aws::B2bi
1846
2177
 
1847
2178
  # Runs a job, using a transformer, to parse input EDI (electronic data
1848
2179
  # interchange) file into the output structures used by Amazon Web
1849
- # Services B2BI Data Interchange.
2180
+ # Services B2B Data Interchange.
1850
2181
  #
1851
2182
  # If you only want to transform EDI (electronic data interchange)
1852
2183
  # documents, you don't need to create profiles, partnerships or
@@ -1975,6 +2306,91 @@ module Aws::B2bi
1975
2306
  req.send_request(options)
1976
2307
  end
1977
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
+
1978
2394
  # Maps the input file according to the provided template file. The API
1979
2395
  # call downloads the file contents from the Amazon S3 location, and
1980
2396
  # passes the contents in as a string, to the `inputFileContent`
@@ -1988,6 +2404,15 @@ module Aws::B2bi
1988
2404
  # Specifies the mapping template for the transformer. This template is
1989
2405
  # used to map the parsed EDI file using JSONata or XSLT.
1990
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
+ #
1991
2416
  # @option params [required, String] :file_format
1992
2417
  # Specifies that the currently supported file formats for EDI
1993
2418
  # transformations are `JSON` and `XML`.
@@ -2015,7 +2440,7 @@ module Aws::B2bi
2015
2440
  # resp = client.test_mapping({
2016
2441
  # input_file_content: "TestMappingInputFileContent", # required
2017
2442
  # mapping_template: "MappingTemplate", # required
2018
- # file_format: "XML", # required, accepts XML, JSON
2443
+ # file_format: "XML", # required, accepts XML, JSON, NOT_USED
2019
2444
  # })
2020
2445
  #
2021
2446
  # @example Response structure
@@ -2081,7 +2506,7 @@ module Aws::B2bi
2081
2506
  # bucket_name: "BucketName",
2082
2507
  # key: "S3Key",
2083
2508
  # },
2084
- # file_format: "XML", # required, accepts XML, JSON
2509
+ # file_format: "XML", # required, accepts XML, JSON, NOT_USED
2085
2510
  # edi_type: { # required
2086
2511
  # x12_details: {
2087
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
@@ -2249,6 +2674,7 @@ module Aws::B2bi
2249
2674
  # name: "CapabilityName",
2250
2675
  # configuration: {
2251
2676
  # edi: {
2677
+ # capability_direction: "INBOUND", # accepts INBOUND, OUTBOUND
2252
2678
  # type: { # required
2253
2679
  # x12_details: {
2254
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
@@ -2280,6 +2706,7 @@ module Aws::B2bi
2280
2706
  # resp.capability_arn #=> String
2281
2707
  # resp.name #=> String
2282
2708
  # resp.type #=> String, one of "edi"
2709
+ # resp.configuration.edi.capability_direction #=> String, one of "INBOUND", "OUTBOUND"
2283
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"
2284
2711
  # resp.configuration.edi.type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
2285
2712
  # resp.configuration.edi.input_location.bucket_name #=> String
@@ -2316,6 +2743,10 @@ module Aws::B2bi
2316
2743
  # @option params [Array<String>] :capabilities
2317
2744
  # List of the capabilities associated with this partnership.
2318
2745
  #
2746
+ # @option params [Types::CapabilityOptions] :capability_options
2747
+ # To update, specify the structure that contains the details for the
2748
+ # associated capabilities.
2749
+ #
2319
2750
  # @return [Types::UpdatePartnershipResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2320
2751
  #
2321
2752
  # * {Types::UpdatePartnershipResponse#profile_id #profile_id} => String
@@ -2325,6 +2756,7 @@ module Aws::B2bi
2325
2756
  # * {Types::UpdatePartnershipResponse#email #email} => String
2326
2757
  # * {Types::UpdatePartnershipResponse#phone #phone} => String
2327
2758
  # * {Types::UpdatePartnershipResponse#capabilities #capabilities} => Array&lt;String&gt;
2759
+ # * {Types::UpdatePartnershipResponse#capability_options #capability_options} => Types::CapabilityOptions
2328
2760
  # * {Types::UpdatePartnershipResponse#trading_partner_id #trading_partner_id} => String
2329
2761
  # * {Types::UpdatePartnershipResponse#created_at #created_at} => Time
2330
2762
  # * {Types::UpdatePartnershipResponse#modified_at #modified_at} => Time
@@ -2362,6 +2794,34 @@ module Aws::B2bi
2362
2794
  # partnership_id: "PartnershipId", # required
2363
2795
  # name: "PartnerName",
2364
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
+ # },
2365
2825
  # })
2366
2826
  #
2367
2827
  # @example Response structure
@@ -2374,6 +2834,20 @@ module Aws::B2bi
2374
2834
  # resp.phone #=> String
2375
2835
  # resp.capabilities #=> Array
2376
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
2377
2851
  # resp.trading_partner_id #=> String
2378
2852
  # resp.created_at #=> Time
2379
2853
  # resp.modified_at #=> Time
@@ -2475,9 +2949,11 @@ module Aws::B2bi
2475
2949
  req.send_request(options)
2476
2950
  end
2477
2951
 
2478
- # Updates the specified parameters for a transformer. A transformer
2479
- # describes how to process the incoming EDI documents and extract the
2480
- # 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.
2481
2957
  #
2482
2958
  # @option params [required, String] :transformer_id
2483
2959
  # Specifies the system-assigned unique identifier for the transformer.
@@ -2485,6 +2961,10 @@ module Aws::B2bi
2485
2961
  # @option params [String] :name
2486
2962
  # Specify a new name for the transformer, if you want to update it.
2487
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
+ #
2488
2968
  # @option params [String] :file_format
2489
2969
  # Specifies that the currently supported file formats for EDI
2490
2970
  # transformations are `JSON` and `XML`.
@@ -2493,9 +2973,14 @@ module Aws::B2bi
2493
2973
  # Specifies the mapping template for the transformer. This template is
2494
2974
  # used to map the parsed EDI file using JSONata or XSLT.
2495
2975
  #
2496
- # @option params [String] :status
2497
- # Specifies the transformer's status. You can update the state of the
2498
- # 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
2499
2984
  #
2500
2985
  # @option params [Types::EdiType] :edi_type
2501
2986
  # Specifies the details for the EDI standard that is being used for the
@@ -2507,53 +2992,98 @@ module Aws::B2bi
2507
2992
  # Specifies a sample EDI document that is used by a transformer as a
2508
2993
  # guide for processing the EDI data.
2509
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
+ #
2510
3012
  # @return [Types::UpdateTransformerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2511
3013
  #
2512
3014
  # * {Types::UpdateTransformerResponse#transformer_id #transformer_id} => String
2513
3015
  # * {Types::UpdateTransformerResponse#transformer_arn #transformer_arn} => String
2514
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
2515
3020
  # * {Types::UpdateTransformerResponse#file_format #file_format} => String
2516
3021
  # * {Types::UpdateTransformerResponse#mapping_template #mapping_template} => String
2517
- # * {Types::UpdateTransformerResponse#status #status} => String
2518
3022
  # * {Types::UpdateTransformerResponse#edi_type #edi_type} => Types::EdiType
2519
3023
  # * {Types::UpdateTransformerResponse#sample_document #sample_document} => String
2520
- # * {Types::UpdateTransformerResponse#created_at #created_at} => Time
2521
- # * {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
2522
3028
  #
2523
3029
  #
2524
3030
  # @example Example: Sample UpdateTransformer call
2525
3031
  #
2526
3032
  # resp = client.update_transformer({
2527
- # name: "transformJSON",
2528
- # edi_type: {
2529
- # x12_details: {
2530
- # version: "VERSION_4010",
2531
- # 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
+ # },
2532
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
+ # ],
2533
3054
  # },
2534
- # file_format: "JSON",
2535
- # mapping_template: "{}",
2536
- # sample_document: "s3://test-bucket/sampleDoc.txt",
2537
3055
  # status: "inactive",
2538
3056
  # transformer_id: "tr-974c129999f84d8c9",
2539
3057
  # })
2540
3058
  #
2541
3059
  # resp.to_h outputs the following:
2542
3060
  # {
2543
- # name: "transformJSON",
3061
+ # name: "transformX12",
2544
3062
  # created_at: Time.parse("2023-11-01T21:51:05.504Z"),
2545
- # edi_type: {
2546
- # x12_details: {
2547
- # version: "VERSION_4010",
2548
- # transaction_set: "X12_110",
3063
+ # input_conversion: {
3064
+ # format_options: {
3065
+ # x12: {
3066
+ # version: "VERSION_4010",
3067
+ # transaction_set: "X12_110",
3068
+ # },
2549
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
+ # ],
2550
3084
  # },
2551
- # file_format: "JSON",
2552
- # mapping_template: "$",
2553
- # modified_at: Time.parse("2023-11-01T21:51:05.504Z"),
2554
- # sample_document: "s3://test-bucket/sampleDoc.txt",
2555
3085
  # status: "inactive",
2556
- # 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",
2557
3087
  # transformer_id: "tr-974c129999f84d8c9",
2558
3088
  # }
2559
3089
  #
@@ -2562,9 +3092,9 @@ module Aws::B2bi
2562
3092
  # resp = client.update_transformer({
2563
3093
  # transformer_id: "TransformerId", # required
2564
3094
  # name: "TransformerName",
2565
- # file_format: "XML", # accepts XML, JSON
2566
- # mapping_template: "MappingTemplate",
2567
3095
  # status: "active", # accepts active, inactive
3096
+ # file_format: "XML", # accepts XML, JSON, NOT_USED
3097
+ # mapping_template: "MappingTemplate",
2568
3098
  # edi_type: {
2569
3099
  # x12_details: {
2570
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
@@ -2572,6 +3102,37 @@ module Aws::B2bi
2572
3102
  # },
2573
3103
  # },
2574
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
+ # },
2575
3136
  # })
2576
3137
  #
2577
3138
  # @example Response structure
@@ -2579,14 +3140,26 @@ module Aws::B2bi
2579
3140
  # resp.transformer_id #=> String
2580
3141
  # resp.transformer_arn #=> String
2581
3142
  # resp.name #=> String
2582
- # resp.file_format #=> String, one of "XML", "JSON"
2583
- # resp.mapping_template #=> String
2584
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
2585
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"
2586
3149
  # resp.edi_type.x12_details.version #=> String, one of "VERSION_4010", "VERSION_4030", "VERSION_5010", "VERSION_5010_HIPAA"
2587
3150
  # resp.sample_document #=> String
2588
- # resp.created_at #=> Time
2589
- # 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
2590
3163
  #
2591
3164
  # @see http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateTransformer AWS API Documentation
2592
3165
  #
@@ -2615,7 +3188,7 @@ module Aws::B2bi
2615
3188
  tracer: tracer
2616
3189
  )
2617
3190
  context[:gem_name] = 'aws-sdk-b2bi'
2618
- context[:gem_version] = '1.20.0'
3191
+ context[:gem_version] = '1.21.0'
2619
3192
  Seahorse::Client::Request.new(handlers, context)
2620
3193
  end
2621
3194