@aws-sdk/client-supplychain 3.491.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 (79) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +227 -0
  3. package/dist-cjs/SupplyChain.js +15 -0
  4. package/dist-cjs/SupplyChainClient.js +43 -0
  5. package/dist-cjs/commands/CreateBillOfMaterialsImportJobCommand.js +28 -0
  6. package/dist-cjs/commands/GetBillOfMaterialsImportJobCommand.js +28 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  9. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  10. package/dist-cjs/endpoint/ruleset.js +7 -0
  11. package/dist-cjs/extensionConfiguration.js +2 -0
  12. package/dist-cjs/index.js +11 -0
  13. package/dist-cjs/models/SupplyChainServiceException.js +12 -0
  14. package/dist-cjs/models/index.js +4 -0
  15. package/dist-cjs/models/models_0.js +106 -0
  16. package/dist-cjs/protocols/Aws_restJson1.js +283 -0
  17. package/dist-cjs/runtimeConfig.browser.js +39 -0
  18. package/dist-cjs/runtimeConfig.js +50 -0
  19. package/dist-cjs/runtimeConfig.native.js +15 -0
  20. package/dist-cjs/runtimeConfig.shared.js +24 -0
  21. package/dist-cjs/runtimeExtensions.js +22 -0
  22. package/dist-es/SupplyChain.js +11 -0
  23. package/dist-es/SupplyChainClient.js +39 -0
  24. package/dist-es/commands/CreateBillOfMaterialsImportJobCommand.js +24 -0
  25. package/dist-es/commands/GetBillOfMaterialsImportJobCommand.js +24 -0
  26. package/dist-es/commands/index.js +2 -0
  27. package/dist-es/endpoint/EndpointParameters.js +14 -0
  28. package/dist-es/endpoint/endpointResolver.js +8 -0
  29. package/dist-es/endpoint/ruleset.js +4 -0
  30. package/dist-es/extensionConfiguration.js +1 -0
  31. package/dist-es/index.js +6 -0
  32. package/dist-es/models/SupplyChainServiceException.js +8 -0
  33. package/dist-es/models/index.js +1 -0
  34. package/dist-es/models/models_0.js +96 -0
  35. package/dist-es/protocols/Aws_restJson1.js +276 -0
  36. package/dist-es/runtimeConfig.browser.js +34 -0
  37. package/dist-es/runtimeConfig.js +45 -0
  38. package/dist-es/runtimeConfig.native.js +11 -0
  39. package/dist-es/runtimeConfig.shared.js +20 -0
  40. package/dist-es/runtimeExtensions.js +18 -0
  41. package/dist-types/SupplyChain.d.ts +30 -0
  42. package/dist-types/SupplyChainClient.d.ts +177 -0
  43. package/dist-types/commands/CreateBillOfMaterialsImportJobCommand.d.ts +82 -0
  44. package/dist-types/commands/GetBillOfMaterialsImportJobCommand.d.ts +86 -0
  45. package/dist-types/commands/index.d.ts +2 -0
  46. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  47. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  48. package/dist-types/endpoint/ruleset.d.ts +2 -0
  49. package/dist-types/extensionConfiguration.d.ts +8 -0
  50. package/dist-types/index.d.ts +20 -0
  51. package/dist-types/models/SupplyChainServiceException.d.ts +13 -0
  52. package/dist-types/models/index.d.ts +1 -0
  53. package/dist-types/models/models_0.d.ts +195 -0
  54. package/dist-types/protocols/Aws_restJson1.d.ts +20 -0
  55. package/dist-types/runtimeConfig.browser.d.ts +49 -0
  56. package/dist-types/runtimeConfig.d.ts +46 -0
  57. package/dist-types/runtimeConfig.native.d.ts +45 -0
  58. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  59. package/dist-types/runtimeExtensions.d.ts +17 -0
  60. package/dist-types/ts3.4/SupplyChain.d.ts +41 -0
  61. package/dist-types/ts3.4/SupplyChainClient.d.ts +130 -0
  62. package/dist-types/ts3.4/commands/CreateBillOfMaterialsImportJobCommand.d.ts +30 -0
  63. package/dist-types/ts3.4/commands/GetBillOfMaterialsImportJobCommand.d.ts +30 -0
  64. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  65. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  66. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  67. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  68. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  69. package/dist-types/ts3.4/index.d.ts +9 -0
  70. package/dist-types/ts3.4/models/SupplyChainServiceException.d.ts +8 -0
  71. package/dist-types/ts3.4/models/index.d.ts +1 -0
  72. package/dist-types/ts3.4/models/models_0.d.ts +84 -0
  73. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +29 -0
  74. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  75. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  76. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  77. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  78. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  79. package/package.json +103 -0
@@ -0,0 +1,177 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
+ import { Credentials as __Credentials } from "@aws-sdk/types";
5
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
+ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
+ import { CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput } from "./commands/CreateBillOfMaterialsImportJobCommand";
12
+ import { GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput } from "./commands/GetBillOfMaterialsImportJobCommand";
13
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
15
+ export { __Client };
16
+ /**
17
+ * @public
18
+ */
19
+ export type ServiceInputTypes = CreateBillOfMaterialsImportJobCommandInput | GetBillOfMaterialsImportJobCommandInput;
20
+ /**
21
+ * @public
22
+ */
23
+ export type ServiceOutputTypes = CreateBillOfMaterialsImportJobCommandOutput | GetBillOfMaterialsImportJobCommandOutput;
24
+ /**
25
+ * @public
26
+ */
27
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
28
+ /**
29
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
30
+ */
31
+ requestHandler?: __HttpHandler;
32
+ /**
33
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
34
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
35
+ * @internal
36
+ */
37
+ sha256?: __ChecksumConstructor | __HashConstructor;
38
+ /**
39
+ * The function that will be used to convert strings into HTTP endpoints.
40
+ * @internal
41
+ */
42
+ urlParser?: __UrlParser;
43
+ /**
44
+ * A function that can calculate the length of a request body.
45
+ * @internal
46
+ */
47
+ bodyLengthChecker?: __BodyLengthCalculator;
48
+ /**
49
+ * A function that converts a stream into an array of bytes.
50
+ * @internal
51
+ */
52
+ streamCollector?: __StreamCollector;
53
+ /**
54
+ * The function that will be used to convert a base64-encoded string to a byte array.
55
+ * @internal
56
+ */
57
+ base64Decoder?: __Decoder;
58
+ /**
59
+ * The function that will be used to convert binary data to a base64-encoded string.
60
+ * @internal
61
+ */
62
+ base64Encoder?: __Encoder;
63
+ /**
64
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
65
+ * @internal
66
+ */
67
+ utf8Decoder?: __Decoder;
68
+ /**
69
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
70
+ * @internal
71
+ */
72
+ utf8Encoder?: __Encoder;
73
+ /**
74
+ * The runtime environment.
75
+ * @internal
76
+ */
77
+ runtime?: string;
78
+ /**
79
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
80
+ * trait of an operation.
81
+ */
82
+ disableHostPrefix?: boolean;
83
+ /**
84
+ * Unique service identifier.
85
+ * @internal
86
+ */
87
+ serviceId?: string;
88
+ /**
89
+ * Enables IPv6/IPv4 dualstack endpoint.
90
+ */
91
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
92
+ /**
93
+ * Enables FIPS compatible endpoints.
94
+ */
95
+ useFipsEndpoint?: boolean | __Provider<boolean>;
96
+ /**
97
+ * The AWS region to which this client will send requests
98
+ */
99
+ region?: string | __Provider<string>;
100
+ /**
101
+ * Default credentials provider; Not available in browser runtime.
102
+ * @internal
103
+ */
104
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
105
+ /**
106
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
107
+ * @internal
108
+ */
109
+ defaultUserAgentProvider?: Provider<__UserAgent>;
110
+ /**
111
+ * Value for how many times a request will be made at most in case of retry.
112
+ */
113
+ maxAttempts?: number | __Provider<number>;
114
+ /**
115
+ * Specifies which retry algorithm to use.
116
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
117
+ *
118
+ */
119
+ retryMode?: string | __Provider<string>;
120
+ /**
121
+ * Optional logger for logging debug/info/warn/error.
122
+ */
123
+ logger?: __Logger;
124
+ /**
125
+ * Optional extensions
126
+ */
127
+ extensions?: RuntimeExtension[];
128
+ /**
129
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
130
+ */
131
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
132
+ }
133
+ /**
134
+ * @public
135
+ */
136
+ export type SupplyChainClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
137
+ /**
138
+ * @public
139
+ *
140
+ * The configuration interface of SupplyChainClient class constructor that set the region, credentials and other options.
141
+ */
142
+ export interface SupplyChainClientConfig extends SupplyChainClientConfigType {
143
+ }
144
+ /**
145
+ * @public
146
+ */
147
+ export type SupplyChainClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
148
+ /**
149
+ * @public
150
+ *
151
+ * The resolved configuration interface of SupplyChainClient class. This is resolved and normalized from the {@link SupplyChainClientConfig | constructor configuration interface}.
152
+ */
153
+ export interface SupplyChainClientResolvedConfig extends SupplyChainClientResolvedConfigType {
154
+ }
155
+ /**
156
+ * @public
157
+ * <p>
158
+ * AWS Supply Chain is a cloud-based application that works with your enterprise resource planning (ERP) and supply chain management systems. Using AWS Supply Chain, you can connect and extract your inventory, supply, and demand related data from existing ERP or supply chain systems into a single data model.
159
+ * </p>
160
+ * <p>The AWS Supply Chain API supports configuration data import for Supply Planning.</p>
161
+ * <p>
162
+ * All AWS Supply chain API operations are Amazon-authenticated and certificate-signed. They not only require the use of the AWS SDK, but also allow for the exclusive use of AWS Identity and Access Management users and roles to help facilitate access, trust, and permission policies.
163
+ * </p>
164
+ */
165
+ export declare class SupplyChainClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig> {
166
+ /**
167
+ * The resolved configuration of SupplyChainClient class. This is resolved and normalized from the {@link SupplyChainClientConfig | constructor configuration interface}.
168
+ */
169
+ readonly config: SupplyChainClientResolvedConfig;
170
+ constructor(...[configuration]: __CheckOptionalClientConfig<SupplyChainClientConfig>);
171
+ /**
172
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
173
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
174
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
175
+ */
176
+ destroy(): void;
177
+ }
@@ -0,0 +1,82 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateBillOfMaterialsImportJobRequest, CreateBillOfMaterialsImportJobResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link CreateBillOfMaterialsImportJobCommand}.
13
+ */
14
+ export interface CreateBillOfMaterialsImportJobCommandInput extends CreateBillOfMaterialsImportJobRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link CreateBillOfMaterialsImportJobCommand}.
20
+ */
21
+ export interface CreateBillOfMaterialsImportJobCommandOutput extends CreateBillOfMaterialsImportJobResponse, __MetadataBearer {
22
+ }
23
+ declare const CreateBillOfMaterialsImportJobCommand_base: {
24
+ new (input: CreateBillOfMaterialsImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>CreateBillOfMaterialsImportJob creates an import job for the Product Bill Of Materials (BOM) entity. For information on the product_bom entity, see the AWS Supply Chain User Guide.</p>
30
+ * <p>The CSV file must be located in an Amazon S3 location accessible to AWS Supply Chain. It is recommended to use the same Amazon S3 bucket created during your AWS Supply Chain instance creation.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, CreateBillOfMaterialsImportJobCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, CreateBillOfMaterialsImportJobCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // CreateBillOfMaterialsImportJobRequest
38
+ * instanceId: "STRING_VALUE", // required
39
+ * s3uri: "STRING_VALUE", // required
40
+ * clientToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new CreateBillOfMaterialsImportJobCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // CreateBillOfMaterialsImportJobResponse
45
+ * // jobId: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param CreateBillOfMaterialsImportJobCommandInput - {@link CreateBillOfMaterialsImportJobCommandInput}
51
+ * @returns {@link CreateBillOfMaterialsImportJobCommandOutput}
52
+ * @see {@link CreateBillOfMaterialsImportJobCommandInput} for command's `input` shape.
53
+ * @see {@link CreateBillOfMaterialsImportJobCommandOutput} for command's `response` shape.
54
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You do not have the required privileges to perform this action.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>Unexpected error during processing of request.</p>
64
+ *
65
+ * @throws {@link ServiceQuotaExceededException} (client fault)
66
+ * <p>Request would cause a service quota to be exceeded.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>Request was denied due to request throttling.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
73
+ *
74
+ * @throws {@link ResourceNotFoundException} (client fault)
75
+ * <p>Request references a resource which does not exist.</p>
76
+ *
77
+ * @throws {@link SupplyChainServiceException}
78
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
79
+ *
80
+ */
81
+ export declare class CreateBillOfMaterialsImportJobCommand extends CreateBillOfMaterialsImportJobCommand_base {
82
+ }
@@ -0,0 +1,86 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetBillOfMaterialsImportJobRequest, GetBillOfMaterialsImportJobResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetBillOfMaterialsImportJobCommand}.
13
+ */
14
+ export interface GetBillOfMaterialsImportJobCommandInput extends GetBillOfMaterialsImportJobRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetBillOfMaterialsImportJobCommand}.
20
+ */
21
+ export interface GetBillOfMaterialsImportJobCommandOutput extends GetBillOfMaterialsImportJobResponse, __MetadataBearer {
22
+ }
23
+ declare const GetBillOfMaterialsImportJobCommand_base: {
24
+ new (input: GetBillOfMaterialsImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>Get status and details of a BillOfMaterialsImportJob.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { SupplyChainClient, GetBillOfMaterialsImportJobCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
34
+ * // const { SupplyChainClient, GetBillOfMaterialsImportJobCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
35
+ * const client = new SupplyChainClient(config);
36
+ * const input = { // GetBillOfMaterialsImportJobRequest
37
+ * instanceId: "STRING_VALUE", // required
38
+ * jobId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetBillOfMaterialsImportJobCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetBillOfMaterialsImportJobResponse
43
+ * // job: { // BillOfMaterialsImportJob
44
+ * // instanceId: "STRING_VALUE", // required
45
+ * // jobId: "STRING_VALUE", // required
46
+ * // status: "NEW" || "FAILED" || "IN_PROGRESS" || "QUEUED" || "SUCCESS", // required
47
+ * // s3uri: "STRING_VALUE", // required
48
+ * // message: "STRING_VALUE",
49
+ * // },
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param GetBillOfMaterialsImportJobCommandInput - {@link GetBillOfMaterialsImportJobCommandInput}
55
+ * @returns {@link GetBillOfMaterialsImportJobCommandOutput}
56
+ * @see {@link GetBillOfMaterialsImportJobCommandInput} for command's `input` shape.
57
+ * @see {@link GetBillOfMaterialsImportJobCommandOutput} for command's `response` shape.
58
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
59
+ *
60
+ * @throws {@link AccessDeniedException} (client fault)
61
+ * <p>You do not have the required privileges to perform this action.</p>
62
+ *
63
+ * @throws {@link InternalServerException} (server fault)
64
+ * <p>Unexpected error during processing of request.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>Request references a resource which does not exist.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>Request was denied due to request throttling.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
74
+ *
75
+ * @throws {@link ConflictException} (client fault)
76
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
77
+ *
78
+ * @throws {@link ServiceQuotaExceededException} (client fault)
79
+ * <p>Request would cause a service quota to be exceeded.</p>
80
+ *
81
+ * @throws {@link SupplyChainServiceException}
82
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
83
+ *
84
+ */
85
+ export declare class GetBillOfMaterialsImportJobCommand extends GetBillOfMaterialsImportJobCommand_base {
86
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./CreateBillOfMaterialsImportJobCommand";
2
+ export * from "./GetBillOfMaterialsImportJobCommand";
@@ -0,0 +1,40 @@
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
+ defaultSigningName: string;
13
+ };
14
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
+ defaultSigningName: string;
16
+ };
17
+ export declare const commonParams: {
18
+ readonly UseFIPS: {
19
+ readonly type: "builtInParams";
20
+ readonly name: "useFipsEndpoint";
21
+ };
22
+ readonly Endpoint: {
23
+ readonly type: "builtInParams";
24
+ readonly name: "endpoint";
25
+ };
26
+ readonly Region: {
27
+ readonly type: "builtInParams";
28
+ readonly name: "region";
29
+ };
30
+ readonly UseDualStack: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "useDualstackEndpoint";
33
+ };
34
+ };
35
+ export interface EndpointParameters extends __EndpointParameters {
36
+ Region?: string;
37
+ UseDualStack?: boolean;
38
+ UseFIPS?: boolean;
39
+ Endpoint?: string;
40
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,8 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface SupplyChainExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * <p>
3
+ * AWS Supply Chain is a cloud-based application that works with your enterprise resource planning (ERP) and supply chain management systems. Using AWS Supply Chain, you can connect and extract your inventory, supply, and demand related data from existing ERP or supply chain systems into a single data model.
4
+ * </p>
5
+ * <p>The AWS Supply Chain API supports configuration data import for Supply Planning.</p>
6
+ * <p>
7
+ * All AWS Supply chain API operations are Amazon-authenticated and certificate-signed. They not only require the use of the AWS SDK, but also allow for the exclusive use of AWS Identity and Access Management users and roles to help facilitate access, trust, and permission policies.
8
+ * </p>
9
+ *
10
+ * @packageDocumentation
11
+ */
12
+ export * from "./SupplyChainClient";
13
+ export * from "./SupplyChain";
14
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
15
+ export { RuntimeExtension } from "./runtimeExtensions";
16
+ export { SupplyChainExtensionConfiguration } from "./extensionConfiguration";
17
+ export * from "./commands";
18
+ export * from "./models";
19
+ import "@aws-sdk/util-endpoints";
20
+ export { SupplyChainServiceException } from "./models/SupplyChainServiceException";
@@ -0,0 +1,13 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
+ export { __ServiceException, __ServiceExceptionOptions };
3
+ /**
4
+ * @public
5
+ *
6
+ * Base exception class for all service exceptions from SupplyChain service.
7
+ */
8
+ export declare class SupplyChainServiceException extends __ServiceException {
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(options: __ServiceExceptionOptions);
13
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,195 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SupplyChainServiceException as __BaseException } from "./SupplyChainServiceException";
3
+ /**
4
+ * @public
5
+ * <p>You do not have the required privileges to perform this action.</p>
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
+ }
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const ConfigurationJobStatus: {
20
+ readonly FAILED: "FAILED";
21
+ readonly IN_PROGRESS: "IN_PROGRESS";
22
+ readonly NEW: "NEW";
23
+ readonly QUEUED: "QUEUED";
24
+ readonly SUCCESS: "SUCCESS";
25
+ };
26
+ /**
27
+ * @public
28
+ */
29
+ export type ConfigurationJobStatus = (typeof ConfigurationJobStatus)[keyof typeof ConfigurationJobStatus];
30
+ /**
31
+ * @public
32
+ * <p>The BillOfMaterialsImportJob details.</p>
33
+ */
34
+ export interface BillOfMaterialsImportJob {
35
+ /**
36
+ * @public
37
+ * <p>The BillOfMaterialsImportJob instanceId.</p>
38
+ */
39
+ instanceId: string | undefined;
40
+ /**
41
+ * @public
42
+ * <p>The BillOfMaterialsImportJob jobId.</p>
43
+ */
44
+ jobId: string | undefined;
45
+ /**
46
+ * @public
47
+ * <p>The BillOfMaterialsImportJob ConfigurationJobStatus.</p>
48
+ */
49
+ status: ConfigurationJobStatus | undefined;
50
+ /**
51
+ * @public
52
+ * <p>The S3 URI from which the CSV is read.</p>
53
+ */
54
+ s3uri: string | undefined;
55
+ /**
56
+ * @public
57
+ * <p>When the BillOfMaterialsImportJob has reached a terminal state, there will be a message.</p>
58
+ */
59
+ message?: string;
60
+ }
61
+ /**
62
+ * @public
63
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
64
+ */
65
+ export declare class ConflictException extends __BaseException {
66
+ readonly name: "ConflictException";
67
+ readonly $fault: "client";
68
+ /**
69
+ * @internal
70
+ */
71
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
72
+ }
73
+ /**
74
+ * @public
75
+ * <p>The request parameters for CreateBillOfMaterialsImportJob.</p>
76
+ */
77
+ export interface CreateBillOfMaterialsImportJobRequest {
78
+ /**
79
+ * @public
80
+ * <p>The AWS Supply Chain instance identifier.</p>
81
+ */
82
+ instanceId: string | undefined;
83
+ /**
84
+ * @public
85
+ * <p>The S3 URI of the CSV file to be imported. The bucket must grant permissions for AWS Supply Chain to read the file.</p>
86
+ */
87
+ s3uri: string | undefined;
88
+ /**
89
+ * @public
90
+ * <p>An idempotency token.</p>
91
+ */
92
+ clientToken?: string;
93
+ }
94
+ /**
95
+ * @public
96
+ * <p>The response parameters of CreateBillOfMaterialsImportJob.</p>
97
+ */
98
+ export interface CreateBillOfMaterialsImportJobResponse {
99
+ /**
100
+ * @public
101
+ * <p>The new BillOfMaterialsImportJob identifier.</p>
102
+ */
103
+ jobId: string | undefined;
104
+ }
105
+ /**
106
+ * @public
107
+ * <p>Unexpected error during processing of request.</p>
108
+ */
109
+ export declare class InternalServerException extends __BaseException {
110
+ readonly name: "InternalServerException";
111
+ readonly $fault: "server";
112
+ $retryable: {};
113
+ /**
114
+ * @internal
115
+ */
116
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
117
+ }
118
+ /**
119
+ * @public
120
+ * <p>Request references a resource which does not exist.</p>
121
+ */
122
+ export declare class ResourceNotFoundException extends __BaseException {
123
+ readonly name: "ResourceNotFoundException";
124
+ readonly $fault: "client";
125
+ /**
126
+ * @internal
127
+ */
128
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
129
+ }
130
+ /**
131
+ * @public
132
+ * <p>Request would cause a service quota to be exceeded.</p>
133
+ */
134
+ export declare class ServiceQuotaExceededException extends __BaseException {
135
+ readonly name: "ServiceQuotaExceededException";
136
+ readonly $fault: "client";
137
+ /**
138
+ * @internal
139
+ */
140
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
141
+ }
142
+ /**
143
+ * @public
144
+ * <p>Request was denied due to request throttling.</p>
145
+ */
146
+ export declare class ThrottlingException extends __BaseException {
147
+ readonly name: "ThrottlingException";
148
+ readonly $fault: "client";
149
+ $retryable: {
150
+ throttling: boolean;
151
+ };
152
+ /**
153
+ * @internal
154
+ */
155
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
156
+ }
157
+ /**
158
+ * @public
159
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
160
+ */
161
+ export declare class ValidationException extends __BaseException {
162
+ readonly name: "ValidationException";
163
+ readonly $fault: "client";
164
+ /**
165
+ * @internal
166
+ */
167
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
168
+ }
169
+ /**
170
+ * @public
171
+ * <p>The request parameters for GetBillOfMaterialsImportJob.</p>
172
+ */
173
+ export interface GetBillOfMaterialsImportJobRequest {
174
+ /**
175
+ * @public
176
+ * <p>The AWS Supply Chain instance identifier.</p>
177
+ */
178
+ instanceId: string | undefined;
179
+ /**
180
+ * @public
181
+ * <p>The BillOfMaterialsImportJob identifier.</p>
182
+ */
183
+ jobId: string | undefined;
184
+ }
185
+ /**
186
+ * @public
187
+ * <p>The response parameters for GetBillOfMaterialsImportJob.</p>
188
+ */
189
+ export interface GetBillOfMaterialsImportJobResponse {
190
+ /**
191
+ * @public
192
+ * <p>The BillOfMaterialsImportJob.</p>
193
+ */
194
+ job: BillOfMaterialsImportJob | undefined;
195
+ }
@@ -0,0 +1,20 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { CreateBillOfMaterialsImportJobCommandInput, CreateBillOfMaterialsImportJobCommandOutput } from "../commands/CreateBillOfMaterialsImportJobCommand";
4
+ import { GetBillOfMaterialsImportJobCommandInput, GetBillOfMaterialsImportJobCommandOutput } from "../commands/GetBillOfMaterialsImportJobCommand";
5
+ /**
6
+ * serializeAws_restJson1CreateBillOfMaterialsImportJobCommand
7
+ */
8
+ export declare const se_CreateBillOfMaterialsImportJobCommand: (input: CreateBillOfMaterialsImportJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
+ /**
10
+ * serializeAws_restJson1GetBillOfMaterialsImportJobCommand
11
+ */
12
+ export declare const se_GetBillOfMaterialsImportJobCommand: (input: GetBillOfMaterialsImportJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
+ /**
14
+ * deserializeAws_restJson1CreateBillOfMaterialsImportJobCommand
15
+ */
16
+ export declare const de_CreateBillOfMaterialsImportJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateBillOfMaterialsImportJobCommandOutput>;
17
+ /**
18
+ * deserializeAws_restJson1GetBillOfMaterialsImportJobCommand
19
+ */
20
+ export declare const de_GetBillOfMaterialsImportJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBillOfMaterialsImportJobCommandOutput>;