@aws-sdk/client-b2bi 3.687.0 → 3.691.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.
- package/README.md +8 -0
- package/dist-cjs/index.js +42 -0
- package/dist-es/B2bi.js +2 -0
- package/dist-es/commands/GenerateMappingCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +26 -1
- package/dist-types/B2bi.d.ts +7 -0
- package/dist-types/B2biClient.d.ts +3 -2
- package/dist-types/commands/GenerateMappingCommand.d.ts +109 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +208 -172
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/B2bi.d.ts +17 -0
- package/dist-types/ts3.4/B2biClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GenerateMappingCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +180 -171
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -284,6 +284,14 @@ DeleteTransformer
|
|
|
284
284
|
|
|
285
285
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/b2bi/command/DeleteTransformerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-b2bi/Interface/DeleteTransformerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-b2bi/Interface/DeleteTransformerCommandOutput/)
|
|
286
286
|
|
|
287
|
+
</details>
|
|
288
|
+
<details>
|
|
289
|
+
<summary>
|
|
290
|
+
GenerateMapping
|
|
291
|
+
</summary>
|
|
292
|
+
|
|
293
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/b2bi/command/GenerateMappingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-b2bi/Interface/GenerateMappingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-b2bi/Interface/GenerateMappingCommandOutput/)
|
|
294
|
+
|
|
287
295
|
</details>
|
|
288
296
|
<details>
|
|
289
297
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -49,6 +49,7 @@ __export(src_exports, {
|
|
|
49
49
|
FileFormat: () => FileFormat,
|
|
50
50
|
FormatOptions: () => FormatOptions,
|
|
51
51
|
FromFormat: () => FromFormat,
|
|
52
|
+
GenerateMappingCommand: () => GenerateMappingCommand,
|
|
52
53
|
GetCapabilityCommand: () => GetCapabilityCommand,
|
|
53
54
|
GetPartnershipCommand: () => GetPartnershipCommand,
|
|
54
55
|
GetPartnershipResponseFilterSensitiveLog: () => GetPartnershipResponseFilterSensitiveLog,
|
|
@@ -692,6 +693,12 @@ var se_DeleteTransformerCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
692
693
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
693
694
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
694
695
|
}, "se_DeleteTransformerCommand");
|
|
696
|
+
var se_GenerateMappingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
697
|
+
const headers = sharedHeaders("GenerateMapping");
|
|
698
|
+
let body;
|
|
699
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
700
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
701
|
+
}, "se_GenerateMappingCommand");
|
|
695
702
|
var se_GetCapabilityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
696
703
|
const headers = sharedHeaders("GetCapability");
|
|
697
704
|
let body;
|
|
@@ -917,6 +924,19 @@ var de_DeleteTransformerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
917
924
|
};
|
|
918
925
|
return response;
|
|
919
926
|
}, "de_DeleteTransformerCommand");
|
|
927
|
+
var de_GenerateMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
+
if (output.statusCode >= 300) {
|
|
929
|
+
return de_CommandError(output, context);
|
|
930
|
+
}
|
|
931
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
932
|
+
let contents = {};
|
|
933
|
+
contents = de_GenerateMappingResponse(data, context);
|
|
934
|
+
const response = {
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
...contents
|
|
937
|
+
};
|
|
938
|
+
return response;
|
|
939
|
+
}, "de_GenerateMappingCommand");
|
|
920
940
|
var de_GetCapabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
941
|
if (output.statusCode >= 300) {
|
|
922
942
|
return de_CommandError(output, context);
|
|
@@ -1397,6 +1417,12 @@ var de_CreateTransformerResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
1397
1417
|
transformerId: import_smithy_client.expectString
|
|
1398
1418
|
});
|
|
1399
1419
|
}, "de_CreateTransformerResponse");
|
|
1420
|
+
var de_GenerateMappingResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1421
|
+
return (0, import_smithy_client.take)(output, {
|
|
1422
|
+
mappingAccuracy: import_smithy_client.limitedParseFloat32,
|
|
1423
|
+
mappingTemplate: import_smithy_client.expectString
|
|
1424
|
+
});
|
|
1425
|
+
}, "de_GenerateMappingResponse");
|
|
1400
1426
|
var de_GetCapabilityResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1401
1427
|
return (0, import_smithy_client.take)(output, {
|
|
1402
1428
|
capabilityArn: import_smithy_client.expectString,
|
|
@@ -1753,6 +1779,20 @@ var _DeleteTransformerCommand = class _DeleteTransformerCommand extends import_s
|
|
|
1753
1779
|
__name(_DeleteTransformerCommand, "DeleteTransformerCommand");
|
|
1754
1780
|
var DeleteTransformerCommand = _DeleteTransformerCommand;
|
|
1755
1781
|
|
|
1782
|
+
// src/commands/GenerateMappingCommand.ts
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
var _GenerateMappingCommand = class _GenerateMappingCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1787
|
+
return [
|
|
1788
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1789
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1790
|
+
];
|
|
1791
|
+
}).s("B2BI", "GenerateMapping", {}).n("B2biClient", "GenerateMappingCommand").f(void 0, void 0).ser(se_GenerateMappingCommand).de(de_GenerateMappingCommand).build() {
|
|
1792
|
+
};
|
|
1793
|
+
__name(_GenerateMappingCommand, "GenerateMappingCommand");
|
|
1794
|
+
var GenerateMappingCommand = _GenerateMappingCommand;
|
|
1795
|
+
|
|
1756
1796
|
// src/commands/GetCapabilityCommand.ts
|
|
1757
1797
|
|
|
1758
1798
|
|
|
@@ -2044,6 +2084,7 @@ var commands = {
|
|
|
2044
2084
|
DeletePartnershipCommand,
|
|
2045
2085
|
DeleteProfileCommand,
|
|
2046
2086
|
DeleteTransformerCommand,
|
|
2087
|
+
GenerateMappingCommand,
|
|
2047
2088
|
GetCapabilityCommand,
|
|
2048
2089
|
GetPartnershipCommand,
|
|
2049
2090
|
GetProfileCommand,
|
|
@@ -2103,6 +2144,7 @@ var paginateListTransformers = (0, import_core.createPaginator)(B2biClient, List
|
|
|
2103
2144
|
DeletePartnershipCommand,
|
|
2104
2145
|
DeleteProfileCommand,
|
|
2105
2146
|
DeleteTransformerCommand,
|
|
2147
|
+
GenerateMappingCommand,
|
|
2106
2148
|
GetCapabilityCommand,
|
|
2107
2149
|
GetPartnershipCommand,
|
|
2108
2150
|
GetProfileCommand,
|
package/dist-es/B2bi.js
CHANGED
|
@@ -9,6 +9,7 @@ import { DeleteCapabilityCommand, } from "./commands/DeleteCapabilityCommand";
|
|
|
9
9
|
import { DeletePartnershipCommand, } from "./commands/DeletePartnershipCommand";
|
|
10
10
|
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
11
11
|
import { DeleteTransformerCommand, } from "./commands/DeleteTransformerCommand";
|
|
12
|
+
import { GenerateMappingCommand, } from "./commands/GenerateMappingCommand";
|
|
12
13
|
import { GetCapabilityCommand, } from "./commands/GetCapabilityCommand";
|
|
13
14
|
import { GetPartnershipCommand, } from "./commands/GetPartnershipCommand";
|
|
14
15
|
import { GetProfileCommand } from "./commands/GetProfileCommand";
|
|
@@ -39,6 +40,7 @@ const commands = {
|
|
|
39
40
|
DeletePartnershipCommand,
|
|
40
41
|
DeleteProfileCommand,
|
|
41
42
|
DeleteTransformerCommand,
|
|
43
|
+
GenerateMappingCommand,
|
|
42
44
|
GetCapabilityCommand,
|
|
43
45
|
GetPartnershipCommand,
|
|
44
46
|
GetProfileCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GenerateMappingCommand, se_GenerateMappingCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GenerateMappingCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("B2BI", "GenerateMapping", {})
|
|
17
|
+
.n("B2biClient", "GenerateMappingCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GenerateMappingCommand)
|
|
20
|
+
.de(de_GenerateMappingCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from "./DeleteCapabilityCommand";
|
|
|
7
7
|
export * from "./DeletePartnershipCommand";
|
|
8
8
|
export * from "./DeleteProfileCommand";
|
|
9
9
|
export * from "./DeleteTransformerCommand";
|
|
10
|
+
export * from "./GenerateMappingCommand";
|
|
10
11
|
export * from "./GetCapabilityCommand";
|
|
11
12
|
export * from "./GetPartnershipCommand";
|
|
12
13
|
export * from "./GetProfileCommand";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { B2biServiceException as __BaseException } from "../models/B2biServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -58,6 +58,12 @@ export const se_DeleteTransformerCommand = async (input, context) => {
|
|
|
58
58
|
body = JSON.stringify(_json(input));
|
|
59
59
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
60
|
};
|
|
61
|
+
export const se_GenerateMappingCommand = async (input, context) => {
|
|
62
|
+
const headers = sharedHeaders("GenerateMapping");
|
|
63
|
+
let body;
|
|
64
|
+
body = JSON.stringify(_json(input));
|
|
65
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
+
};
|
|
61
67
|
export const se_GetCapabilityCommand = async (input, context) => {
|
|
62
68
|
const headers = sharedHeaders("GetCapability");
|
|
63
69
|
let body;
|
|
@@ -283,6 +289,19 @@ export const de_DeleteTransformerCommand = async (output, context) => {
|
|
|
283
289
|
};
|
|
284
290
|
return response;
|
|
285
291
|
};
|
|
292
|
+
export const de_GenerateMappingCommand = async (output, context) => {
|
|
293
|
+
if (output.statusCode >= 300) {
|
|
294
|
+
return de_CommandError(output, context);
|
|
295
|
+
}
|
|
296
|
+
const data = await parseBody(output.body, context);
|
|
297
|
+
let contents = {};
|
|
298
|
+
contents = de_GenerateMappingResponse(data, context);
|
|
299
|
+
const response = {
|
|
300
|
+
$metadata: deserializeMetadata(output),
|
|
301
|
+
...contents,
|
|
302
|
+
};
|
|
303
|
+
return response;
|
|
304
|
+
};
|
|
286
305
|
export const de_GetCapabilityCommand = async (output, context) => {
|
|
287
306
|
if (output.statusCode >= 300) {
|
|
288
307
|
return de_CommandError(output, context);
|
|
@@ -765,6 +784,12 @@ const de_CreateTransformerResponse = (output, context) => {
|
|
|
765
784
|
transformerId: __expectString,
|
|
766
785
|
});
|
|
767
786
|
};
|
|
787
|
+
const de_GenerateMappingResponse = (output, context) => {
|
|
788
|
+
return take(output, {
|
|
789
|
+
mappingAccuracy: __limitedParseFloat32,
|
|
790
|
+
mappingTemplate: __expectString,
|
|
791
|
+
});
|
|
792
|
+
};
|
|
768
793
|
const de_GetCapabilityResponse = (output, context) => {
|
|
769
794
|
return take(output, {
|
|
770
795
|
capabilityArn: __expectString,
|
package/dist-types/B2bi.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput } from "./c
|
|
|
9
9
|
import { DeletePartnershipCommandInput, DeletePartnershipCommandOutput } from "./commands/DeletePartnershipCommand";
|
|
10
10
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
11
11
|
import { DeleteTransformerCommandInput, DeleteTransformerCommandOutput } from "./commands/DeleteTransformerCommand";
|
|
12
|
+
import { GenerateMappingCommandInput, GenerateMappingCommandOutput } from "./commands/GenerateMappingCommand";
|
|
12
13
|
import { GetCapabilityCommandInput, GetCapabilityCommandOutput } from "./commands/GetCapabilityCommand";
|
|
13
14
|
import { GetPartnershipCommandInput, GetPartnershipCommandOutput } from "./commands/GetPartnershipCommand";
|
|
14
15
|
import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
|
|
@@ -84,6 +85,12 @@ export interface B2bi {
|
|
|
84
85
|
deleteTransformer(args: DeleteTransformerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTransformerCommandOutput>;
|
|
85
86
|
deleteTransformer(args: DeleteTransformerCommandInput, cb: (err: any, data?: DeleteTransformerCommandOutput) => void): void;
|
|
86
87
|
deleteTransformer(args: DeleteTransformerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTransformerCommandOutput) => void): void;
|
|
88
|
+
/**
|
|
89
|
+
* @see {@link GenerateMappingCommand}
|
|
90
|
+
*/
|
|
91
|
+
generateMapping(args: GenerateMappingCommandInput, options?: __HttpHandlerOptions): Promise<GenerateMappingCommandOutput>;
|
|
92
|
+
generateMapping(args: GenerateMappingCommandInput, cb: (err: any, data?: GenerateMappingCommandOutput) => void): void;
|
|
93
|
+
generateMapping(args: GenerateMappingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateMappingCommandOutput) => void): void;
|
|
87
94
|
/**
|
|
88
95
|
* @see {@link GetCapabilityCommand}
|
|
89
96
|
*/
|
|
@@ -16,6 +16,7 @@ import { DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput } from "./c
|
|
|
16
16
|
import { DeletePartnershipCommandInput, DeletePartnershipCommandOutput } from "./commands/DeletePartnershipCommand";
|
|
17
17
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
18
18
|
import { DeleteTransformerCommandInput, DeleteTransformerCommandOutput } from "./commands/DeleteTransformerCommand";
|
|
19
|
+
import { GenerateMappingCommandInput, GenerateMappingCommandOutput } from "./commands/GenerateMappingCommand";
|
|
19
20
|
import { GetCapabilityCommandInput, GetCapabilityCommandOutput } from "./commands/GetCapabilityCommand";
|
|
20
21
|
import { GetPartnershipCommandInput, GetPartnershipCommandOutput } from "./commands/GetPartnershipCommand";
|
|
21
22
|
import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
|
|
@@ -42,11 +43,11 @@ export { __Client };
|
|
|
42
43
|
/**
|
|
43
44
|
* @public
|
|
44
45
|
*/
|
|
45
|
-
export type ServiceInputTypes = CreateCapabilityCommandInput | CreatePartnershipCommandInput | CreateProfileCommandInput | CreateStarterMappingTemplateCommandInput | CreateTransformerCommandInput | DeleteCapabilityCommandInput | DeletePartnershipCommandInput | DeleteProfileCommandInput | DeleteTransformerCommandInput | GetCapabilityCommandInput | GetPartnershipCommandInput | GetProfileCommandInput | GetTransformerCommandInput | GetTransformerJobCommandInput | ListCapabilitiesCommandInput | ListPartnershipsCommandInput | ListProfilesCommandInput | ListTagsForResourceCommandInput | ListTransformersCommandInput | StartTransformerJobCommandInput | TagResourceCommandInput | TestConversionCommandInput | TestMappingCommandInput | TestParsingCommandInput | UntagResourceCommandInput | UpdateCapabilityCommandInput | UpdatePartnershipCommandInput | UpdateProfileCommandInput | UpdateTransformerCommandInput;
|
|
46
|
+
export type ServiceInputTypes = CreateCapabilityCommandInput | CreatePartnershipCommandInput | CreateProfileCommandInput | CreateStarterMappingTemplateCommandInput | CreateTransformerCommandInput | DeleteCapabilityCommandInput | DeletePartnershipCommandInput | DeleteProfileCommandInput | DeleteTransformerCommandInput | GenerateMappingCommandInput | GetCapabilityCommandInput | GetPartnershipCommandInput | GetProfileCommandInput | GetTransformerCommandInput | GetTransformerJobCommandInput | ListCapabilitiesCommandInput | ListPartnershipsCommandInput | ListProfilesCommandInput | ListTagsForResourceCommandInput | ListTransformersCommandInput | StartTransformerJobCommandInput | TagResourceCommandInput | TestConversionCommandInput | TestMappingCommandInput | TestParsingCommandInput | UntagResourceCommandInput | UpdateCapabilityCommandInput | UpdatePartnershipCommandInput | UpdateProfileCommandInput | UpdateTransformerCommandInput;
|
|
46
47
|
/**
|
|
47
48
|
* @public
|
|
48
49
|
*/
|
|
49
|
-
export type ServiceOutputTypes = CreateCapabilityCommandOutput | CreatePartnershipCommandOutput | CreateProfileCommandOutput | CreateStarterMappingTemplateCommandOutput | CreateTransformerCommandOutput | DeleteCapabilityCommandOutput | DeletePartnershipCommandOutput | DeleteProfileCommandOutput | DeleteTransformerCommandOutput | GetCapabilityCommandOutput | GetPartnershipCommandOutput | GetProfileCommandOutput | GetTransformerCommandOutput | GetTransformerJobCommandOutput | ListCapabilitiesCommandOutput | ListPartnershipsCommandOutput | ListProfilesCommandOutput | ListTagsForResourceCommandOutput | ListTransformersCommandOutput | StartTransformerJobCommandOutput | TagResourceCommandOutput | TestConversionCommandOutput | TestMappingCommandOutput | TestParsingCommandOutput | UntagResourceCommandOutput | UpdateCapabilityCommandOutput | UpdatePartnershipCommandOutput | UpdateProfileCommandOutput | UpdateTransformerCommandOutput;
|
|
50
|
+
export type ServiceOutputTypes = CreateCapabilityCommandOutput | CreatePartnershipCommandOutput | CreateProfileCommandOutput | CreateStarterMappingTemplateCommandOutput | CreateTransformerCommandOutput | DeleteCapabilityCommandOutput | DeletePartnershipCommandOutput | DeleteProfileCommandOutput | DeleteTransformerCommandOutput | GenerateMappingCommandOutput | GetCapabilityCommandOutput | GetPartnershipCommandOutput | GetProfileCommandOutput | GetTransformerCommandOutput | GetTransformerJobCommandOutput | ListCapabilitiesCommandOutput | ListPartnershipsCommandOutput | ListProfilesCommandOutput | ListTagsForResourceCommandOutput | ListTransformersCommandOutput | StartTransformerJobCommandOutput | TagResourceCommandOutput | TestConversionCommandOutput | TestMappingCommandOutput | TestParsingCommandOutput | UntagResourceCommandOutput | UpdateCapabilityCommandOutput | UpdatePartnershipCommandOutput | UpdateProfileCommandOutput | UpdateTransformerCommandOutput;
|
|
50
51
|
/**
|
|
51
52
|
* @public
|
|
52
53
|
*/
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../B2biClient";
|
|
4
|
+
import { GenerateMappingRequest, GenerateMappingResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GenerateMappingCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GenerateMappingCommandInput extends GenerateMappingRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GenerateMappingCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GenerateMappingCommandOutput extends GenerateMappingResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GenerateMappingCommand_base: {
|
|
25
|
+
new (input: GenerateMappingCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateMappingCommandInput, GenerateMappingCommandOutput, B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GenerateMappingCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateMappingCommandInput, GenerateMappingCommandOutput, B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Takes sample input and output documents and uses Amazon Bedrock to generate a mapping automatically. Depending on the accuracy and other factors, you can then edit the mapping for your needs.</p>
|
|
31
|
+
* <note>
|
|
32
|
+
* <p>Before you can use the AI-assisted feature for Amazon Web Services B2B Data Interchange you must enable models in Amazon Bedrock. For details, see <a href="https://docs.aws.amazon.com/b2bi/latest/userguide/ai-assisted-mapping.html#ai-assist-prereq">AI-assisted template mapping prerequisites</a> in
|
|
33
|
+
* the <i>Amazon Web Services B2B Data Interchange User guide</i>.</p>
|
|
34
|
+
* </note>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { B2biClient, GenerateMappingCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
|
|
39
|
+
* // const { B2biClient, GenerateMappingCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
|
|
40
|
+
* const client = new B2biClient(config);
|
|
41
|
+
* const input = { // GenerateMappingRequest
|
|
42
|
+
* inputFileContent: "STRING_VALUE", // required
|
|
43
|
+
* outputFileContent: "STRING_VALUE", // required
|
|
44
|
+
* mappingType: "JSONATA" || "XSLT", // required
|
|
45
|
+
* };
|
|
46
|
+
* const command = new GenerateMappingCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // GenerateMappingResponse
|
|
49
|
+
* // mappingTemplate: "STRING_VALUE", // required
|
|
50
|
+
* // mappingAccuracy: Number("float"),
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param GenerateMappingCommandInput - {@link GenerateMappingCommandInput}
|
|
56
|
+
* @returns {@link GenerateMappingCommandOutput}
|
|
57
|
+
* @see {@link GenerateMappingCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link GenerateMappingCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link B2biServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
* @example Sample GenerateMapping call
|
|
78
|
+
* ```javascript
|
|
79
|
+
* //
|
|
80
|
+
* const input = {
|
|
81
|
+
* "inputFileContent": "Sample input file content",
|
|
82
|
+
* "mappingType": "JSONATA",
|
|
83
|
+
* "outputFileContent": "Sample output file content"
|
|
84
|
+
* };
|
|
85
|
+
* const command = new GenerateMappingCommand(input);
|
|
86
|
+
* const response = await client.send(command);
|
|
87
|
+
* /* response ==
|
|
88
|
+
* {
|
|
89
|
+
* "mappingAccuracy": 0.95,
|
|
90
|
+
* "mappingTemplate": "Sample mapping content"
|
|
91
|
+
* }
|
|
92
|
+
* *\/
|
|
93
|
+
* // example id: example-1
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
export declare class GenerateMappingCommand extends GenerateMappingCommand_base {
|
|
98
|
+
/** @internal type navigation helper, not in runtime. */
|
|
99
|
+
protected static __types: {
|
|
100
|
+
api: {
|
|
101
|
+
input: GenerateMappingRequest;
|
|
102
|
+
output: GenerateMappingResponse;
|
|
103
|
+
};
|
|
104
|
+
sdk: {
|
|
105
|
+
input: GenerateMappingCommandInput;
|
|
106
|
+
output: GenerateMappingCommandOutput;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from "./DeleteCapabilityCommand";
|
|
|
7
7
|
export * from "./DeletePartnershipCommand";
|
|
8
8
|
export * from "./DeleteProfileCommand";
|
|
9
9
|
export * from "./DeleteTransformerCommand";
|
|
10
|
+
export * from "./GenerateMappingCommand";
|
|
10
11
|
export * from "./GetCapabilityCommand";
|
|
11
12
|
export * from "./GetPartnershipCommand";
|
|
12
13
|
export * from "./GetProfileCommand";
|