@aws-sdk/client-b2bi 3.459.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.
Files changed (203) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +431 -0
  3. package/dist-cjs/B2bi.js +65 -0
  4. package/dist-cjs/B2biClient.js +43 -0
  5. package/dist-cjs/commands/CreateCapabilityCommand.js +51 -0
  6. package/dist-cjs/commands/CreatePartnershipCommand.js +52 -0
  7. package/dist-cjs/commands/CreateProfileCommand.js +52 -0
  8. package/dist-cjs/commands/CreateTransformerCommand.js +51 -0
  9. package/dist-cjs/commands/DeleteCapabilityCommand.js +51 -0
  10. package/dist-cjs/commands/DeletePartnershipCommand.js +51 -0
  11. package/dist-cjs/commands/DeleteProfileCommand.js +51 -0
  12. package/dist-cjs/commands/DeleteTransformerCommand.js +51 -0
  13. package/dist-cjs/commands/GetCapabilityCommand.js +51 -0
  14. package/dist-cjs/commands/GetPartnershipCommand.js +52 -0
  15. package/dist-cjs/commands/GetProfileCommand.js +52 -0
  16. package/dist-cjs/commands/GetTransformerCommand.js +51 -0
  17. package/dist-cjs/commands/GetTransformerJobCommand.js +51 -0
  18. package/dist-cjs/commands/ListCapabilitiesCommand.js +51 -0
  19. package/dist-cjs/commands/ListPartnershipsCommand.js +51 -0
  20. package/dist-cjs/commands/ListProfilesCommand.js +51 -0
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  22. package/dist-cjs/commands/ListTransformersCommand.js +51 -0
  23. package/dist-cjs/commands/StartTransformerJobCommand.js +51 -0
  24. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  25. package/dist-cjs/commands/TestMappingCommand.js +51 -0
  26. package/dist-cjs/commands/TestParsingCommand.js +51 -0
  27. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  28. package/dist-cjs/commands/UpdateCapabilityCommand.js +51 -0
  29. package/dist-cjs/commands/UpdatePartnershipCommand.js +52 -0
  30. package/dist-cjs/commands/UpdateProfileCommand.js +52 -0
  31. package/dist-cjs/commands/UpdateTransformerCommand.js +51 -0
  32. package/dist-cjs/commands/index.js +30 -0
  33. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  34. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  35. package/dist-cjs/endpoint/ruleset.js +7 -0
  36. package/dist-cjs/extensionConfiguration.js +2 -0
  37. package/dist-cjs/index.js +12 -0
  38. package/dist-cjs/models/B2biServiceException.js +12 -0
  39. package/dist-cjs/models/index.js +4 -0
  40. package/dist-cjs/models/models_0.js +227 -0
  41. package/dist-cjs/pagination/Interfaces.js +2 -0
  42. package/dist-cjs/pagination/ListCapabilitiesPaginator.js +29 -0
  43. package/dist-cjs/pagination/ListPartnershipsPaginator.js +29 -0
  44. package/dist-cjs/pagination/ListProfilesPaginator.js +29 -0
  45. package/dist-cjs/pagination/ListTransformersPaginator.js +29 -0
  46. package/dist-cjs/pagination/index.js +8 -0
  47. package/dist-cjs/protocols/Aws_json1_0.js +1822 -0
  48. package/dist-cjs/runtimeConfig.browser.js +39 -0
  49. package/dist-cjs/runtimeConfig.js +50 -0
  50. package/dist-cjs/runtimeConfig.native.js +15 -0
  51. package/dist-cjs/runtimeConfig.shared.js +24 -0
  52. package/dist-cjs/runtimeExtensions.js +22 -0
  53. package/dist-es/B2bi.js +61 -0
  54. package/dist-es/B2biClient.js +39 -0
  55. package/dist-es/commands/CreateCapabilityCommand.js +47 -0
  56. package/dist-es/commands/CreatePartnershipCommand.js +48 -0
  57. package/dist-es/commands/CreateProfileCommand.js +48 -0
  58. package/dist-es/commands/CreateTransformerCommand.js +47 -0
  59. package/dist-es/commands/DeleteCapabilityCommand.js +47 -0
  60. package/dist-es/commands/DeletePartnershipCommand.js +47 -0
  61. package/dist-es/commands/DeleteProfileCommand.js +47 -0
  62. package/dist-es/commands/DeleteTransformerCommand.js +47 -0
  63. package/dist-es/commands/GetCapabilityCommand.js +47 -0
  64. package/dist-es/commands/GetPartnershipCommand.js +48 -0
  65. package/dist-es/commands/GetProfileCommand.js +48 -0
  66. package/dist-es/commands/GetTransformerCommand.js +47 -0
  67. package/dist-es/commands/GetTransformerJobCommand.js +47 -0
  68. package/dist-es/commands/ListCapabilitiesCommand.js +47 -0
  69. package/dist-es/commands/ListPartnershipsCommand.js +47 -0
  70. package/dist-es/commands/ListProfilesCommand.js +47 -0
  71. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  72. package/dist-es/commands/ListTransformersCommand.js +47 -0
  73. package/dist-es/commands/StartTransformerJobCommand.js +47 -0
  74. package/dist-es/commands/TagResourceCommand.js +47 -0
  75. package/dist-es/commands/TestMappingCommand.js +47 -0
  76. package/dist-es/commands/TestParsingCommand.js +47 -0
  77. package/dist-es/commands/UntagResourceCommand.js +47 -0
  78. package/dist-es/commands/UpdateCapabilityCommand.js +47 -0
  79. package/dist-es/commands/UpdatePartnershipCommand.js +48 -0
  80. package/dist-es/commands/UpdateProfileCommand.js +48 -0
  81. package/dist-es/commands/UpdateTransformerCommand.js +47 -0
  82. package/dist-es/commands/index.js +27 -0
  83. package/dist-es/endpoint/EndpointParameters.js +8 -0
  84. package/dist-es/endpoint/endpointResolver.js +8 -0
  85. package/dist-es/endpoint/ruleset.js +4 -0
  86. package/dist-es/extensionConfiguration.js +1 -0
  87. package/dist-es/index.js +7 -0
  88. package/dist-es/models/B2biServiceException.js +8 -0
  89. package/dist-es/models/index.js +1 -0
  90. package/dist-es/models/models_0.js +208 -0
  91. package/dist-es/pagination/Interfaces.js +1 -0
  92. package/dist-es/pagination/ListCapabilitiesPaginator.js +25 -0
  93. package/dist-es/pagination/ListPartnershipsPaginator.js +25 -0
  94. package/dist-es/pagination/ListProfilesPaginator.js +25 -0
  95. package/dist-es/pagination/ListTransformersPaginator.js +25 -0
  96. package/dist-es/pagination/index.js +5 -0
  97. package/dist-es/protocols/Aws_json1_0.js +1764 -0
  98. package/dist-es/runtimeConfig.browser.js +34 -0
  99. package/dist-es/runtimeConfig.js +45 -0
  100. package/dist-es/runtimeConfig.native.js +11 -0
  101. package/dist-es/runtimeConfig.shared.js +20 -0
  102. package/dist-es/runtimeExtensions.js +18 -0
  103. package/dist-types/B2bi.d.ts +209 -0
  104. package/dist-types/B2biClient.d.ts +206 -0
  105. package/dist-types/commands/CreateCapabilityCommand.d.ts +156 -0
  106. package/dist-types/commands/CreatePartnershipCommand.d.ts +117 -0
  107. package/dist-types/commands/CreateProfileCommand.d.ts +113 -0
  108. package/dist-types/commands/CreateTransformerCommand.d.ts +123 -0
  109. package/dist-types/commands/DeleteCapabilityCommand.d.ts +89 -0
  110. package/dist-types/commands/DeletePartnershipCommand.d.ts +89 -0
  111. package/dist-types/commands/DeleteProfileCommand.d.ts +89 -0
  112. package/dist-types/commands/DeleteTransformerCommand.d.ts +89 -0
  113. package/dist-types/commands/GetCapabilityCommand.d.ts +118 -0
  114. package/dist-types/commands/GetPartnershipCommand.d.ts +99 -0
  115. package/dist-types/commands/GetProfileCommand.d.ts +97 -0
  116. package/dist-types/commands/GetTransformerCommand.d.ts +102 -0
  117. package/dist-types/commands/GetTransformerJobCommand.d.ts +96 -0
  118. package/dist-types/commands/ListCapabilitiesCommand.d.ts +83 -0
  119. package/dist-types/commands/ListPartnershipsCommand.d.ts +103 -0
  120. package/dist-types/commands/ListProfilesCommand.d.ts +85 -0
  121. package/dist-types/commands/ListTagsForResourceCommand.d.ts +84 -0
  122. package/dist-types/commands/ListTransformersCommand.d.ts +92 -0
  123. package/dist-types/commands/StartTransformerJobCommand.d.ts +97 -0
  124. package/dist-types/commands/TagResourceCommand.d.ts +87 -0
  125. package/dist-types/commands/TestMappingCommand.d.ts +90 -0
  126. package/dist-types/commands/TestParsingCommand.d.ts +98 -0
  127. package/dist-types/commands/UntagResourceCommand.d.ts +80 -0
  128. package/dist-types/commands/UpdateCapabilityCommand.d.ts +151 -0
  129. package/dist-types/commands/UpdatePartnershipCommand.d.ts +109 -0
  130. package/dist-types/commands/UpdateProfileCommand.d.ts +107 -0
  131. package/dist-types/commands/UpdateTransformerCommand.d.ts +119 -0
  132. package/dist-types/commands/index.d.ts +27 -0
  133. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  134. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  135. package/dist-types/endpoint/ruleset.d.ts +2 -0
  136. package/dist-types/extensionConfiguration.d.ts +8 -0
  137. package/dist-types/index.d.ts +25 -0
  138. package/dist-types/models/B2biServiceException.d.ts +13 -0
  139. package/dist-types/models/index.d.ts +1 -0
  140. package/dist-types/models/models_0.d.ts +1859 -0
  141. package/dist-types/pagination/Interfaces.d.ts +8 -0
  142. package/dist-types/pagination/ListCapabilitiesPaginator.d.ts +7 -0
  143. package/dist-types/pagination/ListPartnershipsPaginator.d.ts +7 -0
  144. package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
  145. package/dist-types/pagination/ListTransformersPaginator.d.ts +7 -0
  146. package/dist-types/pagination/index.d.ts +5 -0
  147. package/dist-types/protocols/Aws_json1_0.d.ts +245 -0
  148. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  149. package/dist-types/runtimeConfig.d.ts +46 -0
  150. package/dist-types/runtimeConfig.native.d.ts +45 -0
  151. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  152. package/dist-types/runtimeExtensions.d.ts +17 -0
  153. package/dist-types/ts3.4/B2bi.d.ts +464 -0
  154. package/dist-types/ts3.4/B2biClient.d.ts +280 -0
  155. package/dist-types/ts3.4/commands/CreateCapabilityCommand.d.ts +38 -0
  156. package/dist-types/ts3.4/commands/CreatePartnershipCommand.d.ts +39 -0
  157. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +38 -0
  158. package/dist-types/ts3.4/commands/CreateTransformerCommand.d.ts +39 -0
  159. package/dist-types/ts3.4/commands/DeleteCapabilityCommand.d.ts +33 -0
  160. package/dist-types/ts3.4/commands/DeletePartnershipCommand.d.ts +34 -0
  161. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +33 -0
  162. package/dist-types/ts3.4/commands/DeleteTransformerCommand.d.ts +34 -0
  163. package/dist-types/ts3.4/commands/GetCapabilityCommand.d.ts +38 -0
  164. package/dist-types/ts3.4/commands/GetPartnershipCommand.d.ts +38 -0
  165. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
  166. package/dist-types/ts3.4/commands/GetTransformerCommand.d.ts +38 -0
  167. package/dist-types/ts3.4/commands/GetTransformerJobCommand.d.ts +39 -0
  168. package/dist-types/ts3.4/commands/ListCapabilitiesCommand.d.ts +38 -0
  169. package/dist-types/ts3.4/commands/ListPartnershipsCommand.d.ts +38 -0
  170. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
  171. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  172. package/dist-types/ts3.4/commands/ListTransformersCommand.d.ts +38 -0
  173. package/dist-types/ts3.4/commands/StartTransformerJobCommand.d.ts +39 -0
  174. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +33 -0
  175. package/dist-types/ts3.4/commands/TestMappingCommand.d.ts +35 -0
  176. package/dist-types/ts3.4/commands/TestParsingCommand.d.ts +35 -0
  177. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +33 -0
  178. package/dist-types/ts3.4/commands/UpdateCapabilityCommand.d.ts +38 -0
  179. package/dist-types/ts3.4/commands/UpdatePartnershipCommand.d.ts +39 -0
  180. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +38 -0
  181. package/dist-types/ts3.4/commands/UpdateTransformerCommand.d.ts +39 -0
  182. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  183. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  184. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  185. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  186. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  187. package/dist-types/ts3.4/index.d.ts +10 -0
  188. package/dist-types/ts3.4/models/B2biServiceException.d.ts +8 -0
  189. package/dist-types/ts3.4/models/index.d.ts +1 -0
  190. package/dist-types/ts3.4/models/models_0.d.ts +537 -0
  191. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  192. package/dist-types/ts3.4/pagination/ListCapabilitiesPaginator.d.ts +11 -0
  193. package/dist-types/ts3.4/pagination/ListPartnershipsPaginator.d.ts +11 -0
  194. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
  195. package/dist-types/ts3.4/pagination/ListTransformersPaginator.d.ts +11 -0
  196. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  197. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +329 -0
  198. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  199. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  200. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  201. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  202. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  203. package/package.json +104 -0
@@ -0,0 +1,156 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../B2biClient";
5
+ import { CreateCapabilityRequest, CreateCapabilityResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateCapabilityCommand}.
14
+ */
15
+ export interface CreateCapabilityCommandInput extends CreateCapabilityRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateCapabilityCommand}.
21
+ */
22
+ export interface CreateCapabilityCommandOutput extends CreateCapabilityResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Instantiates a capability based on the specified parameters. Capabilities contain the information necessary to process incoming EDI (electronic data interchange) documents.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { B2biClient, CreateCapabilityCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
31
+ * // const { B2biClient, CreateCapabilityCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
32
+ * const client = new B2biClient(config);
33
+ * const input = { // CreateCapabilityRequest
34
+ * name: "STRING_VALUE", // required
35
+ * type: "edi", // required
36
+ * configuration: { // CapabilityConfiguration Union: only one key present
37
+ * edi: { // EdiConfiguration
38
+ * type: { // EdiType Union: only one key present
39
+ * x12Details: { // X12Details
40
+ * transactionSet: "X12_110" || "X12_180" || "X12_204" || "X12_210" || "X12_214" || "X12_215" || "X12_310" || "X12_315" || "X12_322" || "X12_404" || "X12_410" || "X12_820" || "X12_824" || "X12_830" || "X12_846" || "X12_850" || "X12_852" || "X12_855" || "X12_856" || "X12_860" || "X12_861" || "X12_864" || "X12_940" || "X12_990" || "X12_997",
41
+ * version: "VERSION_4010" || "VERSION_4030" || "VERSION_5010",
42
+ * },
43
+ * },
44
+ * inputLocation: { // S3Location
45
+ * bucketName: "STRING_VALUE",
46
+ * key: "STRING_VALUE",
47
+ * },
48
+ * outputLocation: {
49
+ * bucketName: "STRING_VALUE",
50
+ * key: "STRING_VALUE",
51
+ * },
52
+ * transformerId: "STRING_VALUE", // required
53
+ * },
54
+ * },
55
+ * instructionsDocuments: [ // InstructionsDocuments
56
+ * {
57
+ * bucketName: "STRING_VALUE",
58
+ * key: "STRING_VALUE",
59
+ * },
60
+ * ],
61
+ * clientToken: "STRING_VALUE",
62
+ * tags: [ // TagList
63
+ * { // Tag
64
+ * Key: "STRING_VALUE", // required
65
+ * Value: "STRING_VALUE", // required
66
+ * },
67
+ * ],
68
+ * };
69
+ * const command = new CreateCapabilityCommand(input);
70
+ * const response = await client.send(command);
71
+ * // { // CreateCapabilityResponse
72
+ * // capabilityId: "STRING_VALUE", // required
73
+ * // capabilityArn: "STRING_VALUE", // required
74
+ * // name: "STRING_VALUE", // required
75
+ * // type: "edi", // required
76
+ * // configuration: { // CapabilityConfiguration Union: only one key present
77
+ * // edi: { // EdiConfiguration
78
+ * // type: { // EdiType Union: only one key present
79
+ * // x12Details: { // X12Details
80
+ * // transactionSet: "X12_110" || "X12_180" || "X12_204" || "X12_210" || "X12_214" || "X12_215" || "X12_310" || "X12_315" || "X12_322" || "X12_404" || "X12_410" || "X12_820" || "X12_824" || "X12_830" || "X12_846" || "X12_850" || "X12_852" || "X12_855" || "X12_856" || "X12_860" || "X12_861" || "X12_864" || "X12_940" || "X12_990" || "X12_997",
81
+ * // version: "VERSION_4010" || "VERSION_4030" || "VERSION_5010",
82
+ * // },
83
+ * // },
84
+ * // inputLocation: { // S3Location
85
+ * // bucketName: "STRING_VALUE",
86
+ * // key: "STRING_VALUE",
87
+ * // },
88
+ * // outputLocation: {
89
+ * // bucketName: "STRING_VALUE",
90
+ * // key: "STRING_VALUE",
91
+ * // },
92
+ * // transformerId: "STRING_VALUE", // required
93
+ * // },
94
+ * // },
95
+ * // instructionsDocuments: [ // InstructionsDocuments
96
+ * // {
97
+ * // bucketName: "STRING_VALUE",
98
+ * // key: "STRING_VALUE",
99
+ * // },
100
+ * // ],
101
+ * // createdAt: new Date("TIMESTAMP"), // required
102
+ * // };
103
+ *
104
+ * ```
105
+ *
106
+ * @param CreateCapabilityCommandInput - {@link CreateCapabilityCommandInput}
107
+ * @returns {@link CreateCapabilityCommandOutput}
108
+ * @see {@link CreateCapabilityCommandInput} for command's `input` shape.
109
+ * @see {@link CreateCapabilityCommandOutput} for command's `response` shape.
110
+ * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
111
+ *
112
+ * @throws {@link AccessDeniedException} (client fault)
113
+ * <p>You do not have sufficient access to perform this action.</p>
114
+ *
115
+ * @throws {@link ConflictException} (client fault)
116
+ * <p>A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.</p>
117
+ *
118
+ * @throws {@link InternalServerException} (server fault)
119
+ * <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
120
+ *
121
+ * @throws {@link ResourceNotFoundException} (client fault)
122
+ * <p>Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.</p>
123
+ *
124
+ * @throws {@link ServiceQuotaExceededException} (client fault)
125
+ * <p>Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.</p>
126
+ *
127
+ * @throws {@link ThrottlingException} (client fault)
128
+ * <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
129
+ *
130
+ * @throws {@link ValidationException} (client fault)
131
+ * <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
132
+ *
133
+ * @throws {@link B2biServiceException}
134
+ * <p>Base exception class for all service exceptions from B2bi service.</p>
135
+ *
136
+ */
137
+ export declare class CreateCapabilityCommand extends $Command<CreateCapabilityCommandInput, CreateCapabilityCommandOutput, B2biClientResolvedConfig> {
138
+ readonly input: CreateCapabilityCommandInput;
139
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
140
+ /**
141
+ * @public
142
+ */
143
+ constructor(input: CreateCapabilityCommandInput);
144
+ /**
145
+ * @internal
146
+ */
147
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: B2biClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateCapabilityCommandInput, CreateCapabilityCommandOutput>;
148
+ /**
149
+ * @internal
150
+ */
151
+ private serialize;
152
+ /**
153
+ * @internal
154
+ */
155
+ private deserialize;
156
+ }
@@ -0,0 +1,117 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../B2biClient";
5
+ import { CreatePartnershipRequest, CreatePartnershipResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreatePartnershipCommand}.
14
+ */
15
+ export interface CreatePartnershipCommandInput extends CreatePartnershipRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePartnershipCommand}.
21
+ */
22
+ export interface CreatePartnershipCommandOutput extends CreatePartnershipResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a partnership between a customer and a trading partner, based on the supplied parameters. Partnerships link trading partners with your profile and a specific transformer, so that the EDI (electronic data interchange) documents that they upload to Amazon S3 can be processed according to their specifications.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { B2biClient, CreatePartnershipCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
31
+ * // const { B2biClient, CreatePartnershipCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
32
+ * const client = new B2biClient(config);
33
+ * const input = { // CreatePartnershipRequest
34
+ * profileId: "STRING_VALUE", // required
35
+ * name: "STRING_VALUE", // required
36
+ * email: "STRING_VALUE", // required
37
+ * phone: "STRING_VALUE",
38
+ * capabilities: [ // PartnershipCapabilities
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * clientToken: "STRING_VALUE",
42
+ * tags: [ // TagList
43
+ * { // Tag
44
+ * Key: "STRING_VALUE", // required
45
+ * Value: "STRING_VALUE", // required
46
+ * },
47
+ * ],
48
+ * };
49
+ * const command = new CreatePartnershipCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // CreatePartnershipResponse
52
+ * // profileId: "STRING_VALUE", // required
53
+ * // partnershipId: "STRING_VALUE", // required
54
+ * // partnershipArn: "STRING_VALUE", // required
55
+ * // name: "STRING_VALUE",
56
+ * // email: "STRING_VALUE",
57
+ * // phone: "STRING_VALUE",
58
+ * // capabilities: [ // PartnershipCapabilities
59
+ * // "STRING_VALUE",
60
+ * // ],
61
+ * // tradingPartnerId: "STRING_VALUE",
62
+ * // createdAt: new Date("TIMESTAMP"), // required
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param CreatePartnershipCommandInput - {@link CreatePartnershipCommandInput}
68
+ * @returns {@link CreatePartnershipCommandOutput}
69
+ * @see {@link CreatePartnershipCommandInput} for command's `input` shape.
70
+ * @see {@link CreatePartnershipCommandOutput} for command's `response` shape.
71
+ * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>You do not have sufficient access to perform this action.</p>
75
+ *
76
+ * @throws {@link ConflictException} (client fault)
77
+ * <p>A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.</p>
78
+ *
79
+ * @throws {@link InternalServerException} (server fault)
80
+ * <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.</p>
84
+ *
85
+ * @throws {@link ServiceQuotaExceededException} (client fault)
86
+ * <p>Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.</p>
87
+ *
88
+ * @throws {@link ThrottlingException} (client fault)
89
+ * <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
93
+ *
94
+ * @throws {@link B2biServiceException}
95
+ * <p>Base exception class for all service exceptions from B2bi service.</p>
96
+ *
97
+ */
98
+ export declare class CreatePartnershipCommand extends $Command<CreatePartnershipCommandInput, CreatePartnershipCommandOutput, B2biClientResolvedConfig> {
99
+ readonly input: CreatePartnershipCommandInput;
100
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
101
+ /**
102
+ * @public
103
+ */
104
+ constructor(input: CreatePartnershipCommandInput);
105
+ /**
106
+ * @internal
107
+ */
108
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: B2biClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePartnershipCommandInput, CreatePartnershipCommandOutput>;
109
+ /**
110
+ * @internal
111
+ */
112
+ private serialize;
113
+ /**
114
+ * @internal
115
+ */
116
+ private deserialize;
117
+ }
@@ -0,0 +1,113 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../B2biClient";
5
+ import { CreateProfileRequest, CreateProfileResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateProfileCommand}.
14
+ */
15
+ export interface CreateProfileCommandInput extends CreateProfileRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateProfileCommand}.
21
+ */
22
+ export interface CreateProfileCommandOutput extends CreateProfileResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a customer profile. You can have up to five customer profiles, each representing a distinct private network. Profiles contain basic information about you and your business.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { B2biClient, CreateProfileCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
31
+ * // const { B2biClient, CreateProfileCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
32
+ * const client = new B2biClient(config);
33
+ * const input = { // CreateProfileRequest
34
+ * name: "STRING_VALUE", // required
35
+ * email: "STRING_VALUE",
36
+ * phone: "STRING_VALUE", // required
37
+ * businessName: "STRING_VALUE", // required
38
+ * logging: "ENABLED" || "DISABLED", // required
39
+ * clientToken: "STRING_VALUE",
40
+ * tags: [ // TagList
41
+ * { // Tag
42
+ * Key: "STRING_VALUE", // required
43
+ * Value: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * };
47
+ * const command = new CreateProfileCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // CreateProfileResponse
50
+ * // profileId: "STRING_VALUE", // required
51
+ * // profileArn: "STRING_VALUE", // required
52
+ * // name: "STRING_VALUE", // required
53
+ * // businessName: "STRING_VALUE", // required
54
+ * // phone: "STRING_VALUE", // required
55
+ * // email: "STRING_VALUE",
56
+ * // logging: "ENABLED" || "DISABLED",
57
+ * // logGroupName: "STRING_VALUE",
58
+ * // createdAt: new Date("TIMESTAMP"), // required
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param CreateProfileCommandInput - {@link CreateProfileCommandInput}
64
+ * @returns {@link CreateProfileCommandOutput}
65
+ * @see {@link CreateProfileCommandInput} for command's `input` shape.
66
+ * @see {@link CreateProfileCommandOutput} for command's `response` shape.
67
+ * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p>You do not have sufficient access to perform this action.</p>
71
+ *
72
+ * @throws {@link ConflictException} (client fault)
73
+ * <p>A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.</p>
80
+ *
81
+ * @throws {@link ServiceQuotaExceededException} (client fault)
82
+ * <p>Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.</p>
83
+ *
84
+ * @throws {@link ThrottlingException} (client fault)
85
+ * <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
86
+ *
87
+ * @throws {@link ValidationException} (client fault)
88
+ * <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
89
+ *
90
+ * @throws {@link B2biServiceException}
91
+ * <p>Base exception class for all service exceptions from B2bi service.</p>
92
+ *
93
+ */
94
+ export declare class CreateProfileCommand extends $Command<CreateProfileCommandInput, CreateProfileCommandOutput, B2biClientResolvedConfig> {
95
+ readonly input: CreateProfileCommandInput;
96
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
+ /**
98
+ * @public
99
+ */
100
+ constructor(input: CreateProfileCommandInput);
101
+ /**
102
+ * @internal
103
+ */
104
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: B2biClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProfileCommandInput, CreateProfileCommandOutput>;
105
+ /**
106
+ * @internal
107
+ */
108
+ private serialize;
109
+ /**
110
+ * @internal
111
+ */
112
+ private deserialize;
113
+ }
@@ -0,0 +1,123 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../B2biClient";
5
+ import { CreateTransformerRequest, CreateTransformerResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateTransformerCommand}.
14
+ */
15
+ export interface CreateTransformerCommandInput extends CreateTransformerRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateTransformerCommand}.
21
+ */
22
+ export interface CreateTransformerCommandOutput extends CreateTransformerResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a transformer. Transformers describe how to process the incoming EDI (electronic data interchange) documents, and extract the necessary information.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { B2biClient, CreateTransformerCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
31
+ * // const { B2biClient, CreateTransformerCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
32
+ * const client = new B2biClient(config);
33
+ * const input = { // CreateTransformerRequest
34
+ * name: "STRING_VALUE", // required
35
+ * fileFormat: "XML" || "JSON", // required
36
+ * mappingTemplate: "STRING_VALUE", // required
37
+ * ediType: { // EdiType Union: only one key present
38
+ * x12Details: { // X12Details
39
+ * transactionSet: "X12_110" || "X12_180" || "X12_204" || "X12_210" || "X12_214" || "X12_215" || "X12_310" || "X12_315" || "X12_322" || "X12_404" || "X12_410" || "X12_820" || "X12_824" || "X12_830" || "X12_846" || "X12_850" || "X12_852" || "X12_855" || "X12_856" || "X12_860" || "X12_861" || "X12_864" || "X12_940" || "X12_990" || "X12_997",
40
+ * version: "VERSION_4010" || "VERSION_4030" || "VERSION_5010",
41
+ * },
42
+ * },
43
+ * sampleDocument: "STRING_VALUE",
44
+ * clientToken: "STRING_VALUE",
45
+ * tags: [ // TagList
46
+ * { // Tag
47
+ * Key: "STRING_VALUE", // required
48
+ * Value: "STRING_VALUE", // required
49
+ * },
50
+ * ],
51
+ * };
52
+ * const command = new CreateTransformerCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // CreateTransformerResponse
55
+ * // transformerId: "STRING_VALUE", // required
56
+ * // transformerArn: "STRING_VALUE", // required
57
+ * // name: "STRING_VALUE", // required
58
+ * // fileFormat: "XML" || "JSON", // required
59
+ * // mappingTemplate: "STRING_VALUE", // required
60
+ * // status: "active" || "inactive", // required
61
+ * // ediType: { // EdiType Union: only one key present
62
+ * // x12Details: { // X12Details
63
+ * // transactionSet: "X12_110" || "X12_180" || "X12_204" || "X12_210" || "X12_214" || "X12_215" || "X12_310" || "X12_315" || "X12_322" || "X12_404" || "X12_410" || "X12_820" || "X12_824" || "X12_830" || "X12_846" || "X12_850" || "X12_852" || "X12_855" || "X12_856" || "X12_860" || "X12_861" || "X12_864" || "X12_940" || "X12_990" || "X12_997",
64
+ * // version: "VERSION_4010" || "VERSION_4030" || "VERSION_5010",
65
+ * // },
66
+ * // },
67
+ * // sampleDocument: "STRING_VALUE",
68
+ * // createdAt: new Date("TIMESTAMP"), // required
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param CreateTransformerCommandInput - {@link CreateTransformerCommandInput}
74
+ * @returns {@link CreateTransformerCommandOutput}
75
+ * @see {@link CreateTransformerCommandInput} for command's `input` shape.
76
+ * @see {@link CreateTransformerCommandOutput} for command's `response` shape.
77
+ * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>You do not have sufficient access to perform this action.</p>
81
+ *
82
+ * @throws {@link ConflictException} (client fault)
83
+ * <p>A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.</p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
87
+ *
88
+ * @throws {@link ResourceNotFoundException} (client fault)
89
+ * <p>Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.</p>
90
+ *
91
+ * @throws {@link ServiceQuotaExceededException} (client fault)
92
+ * <p>Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.</p>
93
+ *
94
+ * @throws {@link ThrottlingException} (client fault)
95
+ * <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
96
+ *
97
+ * @throws {@link ValidationException} (client fault)
98
+ * <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
99
+ *
100
+ * @throws {@link B2biServiceException}
101
+ * <p>Base exception class for all service exceptions from B2bi service.</p>
102
+ *
103
+ */
104
+ export declare class CreateTransformerCommand extends $Command<CreateTransformerCommandInput, CreateTransformerCommandOutput, B2biClientResolvedConfig> {
105
+ readonly input: CreateTransformerCommandInput;
106
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
107
+ /**
108
+ * @public
109
+ */
110
+ constructor(input: CreateTransformerCommandInput);
111
+ /**
112
+ * @internal
113
+ */
114
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: B2biClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateTransformerCommandInput, CreateTransformerCommandOutput>;
115
+ /**
116
+ * @internal
117
+ */
118
+ private serialize;
119
+ /**
120
+ * @internal
121
+ */
122
+ private deserialize;
123
+ }
@@ -0,0 +1,89 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../B2biClient";
5
+ import { DeleteCapabilityRequest } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteCapabilityCommand}.
14
+ */
15
+ export interface DeleteCapabilityCommandInput extends DeleteCapabilityRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteCapabilityCommand}.
21
+ */
22
+ export interface DeleteCapabilityCommandOutput extends __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes the specified capability. Capabilities contain the information necessary to process incoming EDI (electronic data interchange) documents.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { B2biClient, DeleteCapabilityCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
31
+ * // const { B2biClient, DeleteCapabilityCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
32
+ * const client = new B2biClient(config);
33
+ * const input = { // DeleteCapabilityRequest
34
+ * capabilityId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteCapabilityCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param DeleteCapabilityCommandInput - {@link DeleteCapabilityCommandInput}
43
+ * @returns {@link DeleteCapabilityCommandOutput}
44
+ * @see {@link DeleteCapabilityCommandInput} for command's `input` shape.
45
+ * @see {@link DeleteCapabilityCommandOutput} for command's `response` shape.
46
+ * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
47
+ *
48
+ * @throws {@link AccessDeniedException} (client fault)
49
+ * <p>You do not have sufficient access to perform this action.</p>
50
+ *
51
+ * @throws {@link ConflictException} (client fault)
52
+ * <p>A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.</p>
53
+ *
54
+ * @throws {@link InternalServerException} (server fault)
55
+ * <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
56
+ *
57
+ * @throws {@link ResourceNotFoundException} (client fault)
58
+ * <p>Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.</p>
59
+ *
60
+ * @throws {@link ThrottlingException} (client fault)
61
+ * <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ * <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
65
+ *
66
+ * @throws {@link B2biServiceException}
67
+ * <p>Base exception class for all service exceptions from B2bi service.</p>
68
+ *
69
+ */
70
+ export declare class DeleteCapabilityCommand extends $Command<DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput, B2biClientResolvedConfig> {
71
+ readonly input: DeleteCapabilityCommandInput;
72
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
73
+ /**
74
+ * @public
75
+ */
76
+ constructor(input: DeleteCapabilityCommandInput);
77
+ /**
78
+ * @internal
79
+ */
80
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: B2biClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput>;
81
+ /**
82
+ * @internal
83
+ */
84
+ private serialize;
85
+ /**
86
+ * @internal
87
+ */
88
+ private deserialize;
89
+ }