aws_sdk_b2bi/client/test_mapping.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`TestMapping`](crate::operation::test_mapping::builders::TestMappingFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`input_file_content(impl Into<String>)`](crate::operation::test_mapping::builders::TestMappingFluentBuilder::input_file_content) / [`set_input_file_content(Option<String>)`](crate::operation::test_mapping::builders::TestMappingFluentBuilder::set_input_file_content):<br>required: **true**<br><p>Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform.</p><br>
7 /// - [`mapping_template(impl Into<String>)`](crate::operation::test_mapping::builders::TestMappingFluentBuilder::mapping_template) / [`set_mapping_template(Option<String>)`](crate::operation::test_mapping::builders::TestMappingFluentBuilder::set_mapping_template):<br>required: **true**<br><p>Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.</p><note> <p>This parameter is available for backwards compatibility. Use the <a href="https://docs.aws.amazon.com/b2bi/latest/APIReference/API_Mapping.html">Mapping</a> data type instead.</p> </note><br>
8 /// - [`file_format(FileFormat)`](crate::operation::test_mapping::builders::TestMappingFluentBuilder::file_format) / [`set_file_format(Option<FileFormat>)`](crate::operation::test_mapping::builders::TestMappingFluentBuilder::set_file_format):<br>required: **true**<br><p>Specifies that the currently supported file formats for EDI transformations are <code>JSON</code> and <code>XML</code>.</p><br>
9 /// - On success, responds with [`TestMappingOutput`](crate::operation::test_mapping::TestMappingOutput) with field(s):
10 /// - [`mapped_file_content(String)`](crate::operation::test_mapping::TestMappingOutput::mapped_file_content): <p>Returns a string for the mapping that can be used to identify the mapping. Similar to a fingerprint</p>
11 /// - On failure, responds with [`SdkError<TestMappingError>`](crate::operation::test_mapping::TestMappingError)
12 pub fn test_mapping(&self) -> crate::operation::test_mapping::builders::TestMappingFluentBuilder {
13 crate::operation::test_mapping::builders::TestMappingFluentBuilder::new(self.handle.clone())
14 }
15}