@aws-sdk/client-supplychain 3.669.0 → 3.671.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 (42) hide show
  1. package/README.md +47 -7
  2. package/dist-cjs/index.js +264 -2
  3. package/dist-cjs/runtimeConfig.browser.js +1 -1
  4. package/dist-cjs/runtimeConfig.js +1 -1
  5. package/dist-es/SupplyChain.js +10 -0
  6. package/dist-es/commands/CreateInstanceCommand.js +22 -0
  7. package/dist-es/commands/DeleteInstanceCommand.js +22 -0
  8. package/dist-es/commands/GetInstanceCommand.js +22 -0
  9. package/dist-es/commands/ListInstancesCommand.js +22 -0
  10. package/dist-es/commands/UpdateInstanceCommand.js +22 -0
  11. package/dist-es/commands/index.js +5 -0
  12. package/dist-es/models/models_0.js +8 -0
  13. package/dist-es/pagination/ListInstancesPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +160 -1
  16. package/dist-es/runtimeConfig.browser.js +2 -2
  17. package/dist-es/runtimeConfig.js +2 -2
  18. package/dist-types/SupplyChain.d.ts +37 -0
  19. package/dist-types/SupplyChainClient.d.ts +7 -2
  20. package/dist-types/commands/CreateInstanceCommand.d.ts +109 -0
  21. package/dist-types/commands/DeleteInstanceCommand.d.ts +103 -0
  22. package/dist-types/commands/GetInstanceCommand.d.ts +103 -0
  23. package/dist-types/commands/ListInstancesCommand.d.ts +113 -0
  24. package/dist-types/commands/UpdateInstanceCommand.d.ts +105 -0
  25. package/dist-types/commands/index.d.ts +5 -0
  26. package/dist-types/models/models_0.d.ts +232 -0
  27. package/dist-types/pagination/ListInstancesPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  30. package/dist-types/ts3.4/SupplyChain.d.ts +87 -0
  31. package/dist-types/ts3.4/SupplyChainClient.d.ts +32 -2
  32. package/dist-types/ts3.4/commands/CreateInstanceCommand.d.ts +50 -0
  33. package/dist-types/ts3.4/commands/DeleteInstanceCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/GetInstanceCommand.d.ts +47 -0
  35. package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +50 -0
  36. package/dist-types/ts3.4/commands/UpdateInstanceCommand.d.ts +50 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +61 -0
  39. package/dist-types/ts3.4/pagination/ListInstancesPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  41. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  42. package/package.json +5 -5
@@ -0,0 +1,109 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateInstanceRequest, CreateInstanceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateInstanceCommand}.
14
+ */
15
+ export interface CreateInstanceCommandInput extends CreateInstanceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateInstanceCommand}.
21
+ */
22
+ export interface CreateInstanceCommandOutput extends CreateInstanceResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateInstanceCommand_base: {
25
+ new (input: CreateInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<CreateInstanceCommandInput, CreateInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [CreateInstanceCommandInput]): import("@smithy/smithy-client").CommandImpl<CreateInstanceCommandInput, CreateInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Create a new instance for AWS Supply Chain. This is an asynchronous operation. Upon receiving a CreateInstance request, AWS Supply Chain immediately returns the instance resource, with instance ID, and the initializing state while simultaneously creating all required Amazon Web Services resources for an instance creation. You can use GetInstance to check the status of the instance.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, CreateInstanceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, CreateInstanceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // CreateInstanceRequest
38
+ * instanceName: "STRING_VALUE",
39
+ * instanceDescription: "STRING_VALUE",
40
+ * kmsKeyArn: "STRING_VALUE",
41
+ * tags: { // TagMap
42
+ * "<keys>": "STRING_VALUE",
43
+ * },
44
+ * clientToken: "STRING_VALUE",
45
+ * };
46
+ * const command = new CreateInstanceCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // CreateInstanceResponse
49
+ * // instance: { // Instance
50
+ * // instanceId: "STRING_VALUE", // required
51
+ * // awsAccountId: "STRING_VALUE", // required
52
+ * // state: "Initializing" || "Active" || "CreateFailed" || "DeleteFailed" || "Deleting" || "Deleted", // required
53
+ * // webAppDnsDomain: "STRING_VALUE",
54
+ * // createdTime: new Date("TIMESTAMP"),
55
+ * // lastModifiedTime: new Date("TIMESTAMP"),
56
+ * // instanceName: "STRING_VALUE",
57
+ * // instanceDescription: "STRING_VALUE",
58
+ * // kmsKeyArn: "STRING_VALUE",
59
+ * // versionNumber: Number("double"),
60
+ * // },
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param CreateInstanceCommandInput - {@link CreateInstanceCommandInput}
66
+ * @returns {@link CreateInstanceCommandOutput}
67
+ * @see {@link CreateInstanceCommandInput} for command's `input` shape.
68
+ * @see {@link CreateInstanceCommandOutput} for command's `response` shape.
69
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You do not have the required privileges to perform this action.</p>
73
+ *
74
+ * @throws {@link ConflictException} (client fault)
75
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>Unexpected error during processing of request.</p>
79
+ *
80
+ * @throws {@link ServiceQuotaExceededException} (client fault)
81
+ * <p>Request would cause a service quota to be exceeded.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>Request was denied due to request throttling.</p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
88
+ *
89
+ * @throws {@link ResourceNotFoundException} (client fault)
90
+ * <p>Request references a resource which does not exist.</p>
91
+ *
92
+ * @throws {@link SupplyChainServiceException}
93
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
94
+ *
95
+ * @public
96
+ */
97
+ export declare class CreateInstanceCommand extends CreateInstanceCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: CreateInstanceRequest;
102
+ output: CreateInstanceResponse;
103
+ };
104
+ sdk: {
105
+ input: CreateInstanceCommandInput;
106
+ output: CreateInstanceCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteInstanceRequest, DeleteInstanceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteInstanceCommand}.
14
+ */
15
+ export interface DeleteInstanceCommandInput extends DeleteInstanceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteInstanceCommand}.
21
+ */
22
+ export interface DeleteInstanceCommandOutput extends DeleteInstanceResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteInstanceCommand_base: {
25
+ new (input: DeleteInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteInstanceCommandInput, DeleteInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteInstanceCommandInput, DeleteInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Delete the instance. This is an asynchronous operation. Upon receiving a DeleteInstance request, AWS Supply Chain immediately returns a response with the instance resource, delete state while cleaning up all Amazon Web Services resources created during the instance creation process. You can use the GetInstance action to check the instance status.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, DeleteInstanceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, DeleteInstanceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // DeleteInstanceRequest
38
+ * instanceId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeleteInstanceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // DeleteInstanceResponse
43
+ * // instance: { // Instance
44
+ * // instanceId: "STRING_VALUE", // required
45
+ * // awsAccountId: "STRING_VALUE", // required
46
+ * // state: "Initializing" || "Active" || "CreateFailed" || "DeleteFailed" || "Deleting" || "Deleted", // required
47
+ * // webAppDnsDomain: "STRING_VALUE",
48
+ * // createdTime: new Date("TIMESTAMP"),
49
+ * // lastModifiedTime: new Date("TIMESTAMP"),
50
+ * // instanceName: "STRING_VALUE",
51
+ * // instanceDescription: "STRING_VALUE",
52
+ * // kmsKeyArn: "STRING_VALUE",
53
+ * // versionNumber: Number("double"),
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param DeleteInstanceCommandInput - {@link DeleteInstanceCommandInput}
60
+ * @returns {@link DeleteInstanceCommandOutput}
61
+ * @see {@link DeleteInstanceCommandInput} for command's `input` shape.
62
+ * @see {@link DeleteInstanceCommandOutput} for command's `response` shape.
63
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>You do not have the required privileges to perform this action.</p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>Unexpected error during processing of request.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>Request references a resource which does not exist.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>Request was denied due to request throttling.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
82
+ *
83
+ * @throws {@link ServiceQuotaExceededException} (client fault)
84
+ * <p>Request would cause a service quota to be exceeded.</p>
85
+ *
86
+ * @throws {@link SupplyChainServiceException}
87
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
88
+ *
89
+ * @public
90
+ */
91
+ export declare class DeleteInstanceCommand extends DeleteInstanceCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: DeleteInstanceRequest;
96
+ output: DeleteInstanceResponse;
97
+ };
98
+ sdk: {
99
+ input: DeleteInstanceCommandInput;
100
+ output: DeleteInstanceCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetInstanceRequest, GetInstanceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetInstanceCommand}.
14
+ */
15
+ export interface GetInstanceCommandInput extends GetInstanceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetInstanceCommand}.
21
+ */
22
+ export interface GetInstanceCommandOutput extends GetInstanceResponse, __MetadataBearer {
23
+ }
24
+ declare const GetInstanceCommand_base: {
25
+ new (input: GetInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<GetInstanceCommandInput, GetInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<GetInstanceCommandInput, GetInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Get the AWS Supply Chain instance details.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, GetInstanceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, GetInstanceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // GetInstanceRequest
38
+ * instanceId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetInstanceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetInstanceResponse
43
+ * // instance: { // Instance
44
+ * // instanceId: "STRING_VALUE", // required
45
+ * // awsAccountId: "STRING_VALUE", // required
46
+ * // state: "Initializing" || "Active" || "CreateFailed" || "DeleteFailed" || "Deleting" || "Deleted", // required
47
+ * // webAppDnsDomain: "STRING_VALUE",
48
+ * // createdTime: new Date("TIMESTAMP"),
49
+ * // lastModifiedTime: new Date("TIMESTAMP"),
50
+ * // instanceName: "STRING_VALUE",
51
+ * // instanceDescription: "STRING_VALUE",
52
+ * // kmsKeyArn: "STRING_VALUE",
53
+ * // versionNumber: Number("double"),
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param GetInstanceCommandInput - {@link GetInstanceCommandInput}
60
+ * @returns {@link GetInstanceCommandOutput}
61
+ * @see {@link GetInstanceCommandInput} for command's `input` shape.
62
+ * @see {@link GetInstanceCommandOutput} for command's `response` shape.
63
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>You do not have the required privileges to perform this action.</p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>Unexpected error during processing of request.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>Request references a resource which does not exist.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>Request was denied due to request throttling.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
82
+ *
83
+ * @throws {@link ServiceQuotaExceededException} (client fault)
84
+ * <p>Request would cause a service quota to be exceeded.</p>
85
+ *
86
+ * @throws {@link SupplyChainServiceException}
87
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
88
+ *
89
+ * @public
90
+ */
91
+ export declare class GetInstanceCommand extends GetInstanceCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: GetInstanceRequest;
96
+ output: GetInstanceResponse;
97
+ };
98
+ sdk: {
99
+ input: GetInstanceCommandInput;
100
+ output: GetInstanceCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -0,0 +1,113 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListInstancesRequest, ListInstancesResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListInstancesCommand}.
14
+ */
15
+ export interface ListInstancesCommandInput extends ListInstancesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListInstancesCommand}.
21
+ */
22
+ export interface ListInstancesCommandOutput extends ListInstancesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListInstancesCommand_base: {
25
+ new (input: ListInstancesCommandInput): import("@smithy/smithy-client").CommandImpl<ListInstancesCommandInput, ListInstancesCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListInstancesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListInstancesCommandInput, ListInstancesCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>List all the AWS Supply Chain instances in a paginated way.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, ListInstancesCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, ListInstancesCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // ListInstancesRequest
38
+ * nextToken: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * instanceNameFilter: [ // InstanceNameList
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * instanceStateFilter: [ // InstanceStateList
44
+ * "Initializing" || "Active" || "CreateFailed" || "DeleteFailed" || "Deleting" || "Deleted",
45
+ * ],
46
+ * };
47
+ * const command = new ListInstancesCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // ListInstancesResponse
50
+ * // instances: [ // InstanceList // required
51
+ * // { // Instance
52
+ * // instanceId: "STRING_VALUE", // required
53
+ * // awsAccountId: "STRING_VALUE", // required
54
+ * // state: "Initializing" || "Active" || "CreateFailed" || "DeleteFailed" || "Deleting" || "Deleted", // required
55
+ * // webAppDnsDomain: "STRING_VALUE",
56
+ * // createdTime: new Date("TIMESTAMP"),
57
+ * // lastModifiedTime: new Date("TIMESTAMP"),
58
+ * // instanceName: "STRING_VALUE",
59
+ * // instanceDescription: "STRING_VALUE",
60
+ * // kmsKeyArn: "STRING_VALUE",
61
+ * // versionNumber: Number("double"),
62
+ * // },
63
+ * // ],
64
+ * // nextToken: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param ListInstancesCommandInput - {@link ListInstancesCommandInput}
70
+ * @returns {@link ListInstancesCommandOutput}
71
+ * @see {@link ListInstancesCommandInput} for command's `input` shape.
72
+ * @see {@link ListInstancesCommandOutput} for command's `response` shape.
73
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>You do not have the required privileges to perform this action.</p>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>Unexpected error during processing of request.</p>
80
+ *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * <p>Request was denied due to request throttling.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
86
+ *
87
+ * @throws {@link ConflictException} (client fault)
88
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p>Request references a resource which does not exist.</p>
92
+ *
93
+ * @throws {@link ServiceQuotaExceededException} (client fault)
94
+ * <p>Request would cause a service quota to be exceeded.</p>
95
+ *
96
+ * @throws {@link SupplyChainServiceException}
97
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
98
+ *
99
+ * @public
100
+ */
101
+ export declare class ListInstancesCommand extends ListInstancesCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: ListInstancesRequest;
106
+ output: ListInstancesResponse;
107
+ };
108
+ sdk: {
109
+ input: ListInstancesCommandInput;
110
+ output: ListInstancesCommandOutput;
111
+ };
112
+ };
113
+ }
@@ -0,0 +1,105 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateInstanceRequest, UpdateInstanceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SupplyChainClientResolvedConfig } from "../SupplyChainClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateInstanceCommand}.
14
+ */
15
+ export interface UpdateInstanceCommandInput extends UpdateInstanceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateInstanceCommand}.
21
+ */
22
+ export interface UpdateInstanceCommandOutput extends UpdateInstanceResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateInstanceCommand_base: {
25
+ new (input: UpdateInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateInstanceCommandInput, UpdateInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateInstanceCommandInput, UpdateInstanceCommandOutput, SupplyChainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Update the instance.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SupplyChainClient, UpdateInstanceCommand } from "@aws-sdk/client-supplychain"; // ES Modules import
35
+ * // const { SupplyChainClient, UpdateInstanceCommand } = require("@aws-sdk/client-supplychain"); // CommonJS import
36
+ * const client = new SupplyChainClient(config);
37
+ * const input = { // UpdateInstanceRequest
38
+ * instanceId: "STRING_VALUE", // required
39
+ * instanceName: "STRING_VALUE",
40
+ * instanceDescription: "STRING_VALUE",
41
+ * };
42
+ * const command = new UpdateInstanceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // UpdateInstanceResponse
45
+ * // instance: { // Instance
46
+ * // instanceId: "STRING_VALUE", // required
47
+ * // awsAccountId: "STRING_VALUE", // required
48
+ * // state: "Initializing" || "Active" || "CreateFailed" || "DeleteFailed" || "Deleting" || "Deleted", // required
49
+ * // webAppDnsDomain: "STRING_VALUE",
50
+ * // createdTime: new Date("TIMESTAMP"),
51
+ * // lastModifiedTime: new Date("TIMESTAMP"),
52
+ * // instanceName: "STRING_VALUE",
53
+ * // instanceDescription: "STRING_VALUE",
54
+ * // kmsKeyArn: "STRING_VALUE",
55
+ * // versionNumber: Number("double"),
56
+ * // },
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param UpdateInstanceCommandInput - {@link UpdateInstanceCommandInput}
62
+ * @returns {@link UpdateInstanceCommandOutput}
63
+ * @see {@link UpdateInstanceCommandInput} for command's `input` shape.
64
+ * @see {@link UpdateInstanceCommandOutput} for command's `response` shape.
65
+ * @see {@link SupplyChainClientResolvedConfig | config} for SupplyChainClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>You do not have the required privileges to perform this action.</p>
69
+ *
70
+ * @throws {@link InternalServerException} (server fault)
71
+ * <p>Unexpected error during processing of request.</p>
72
+ *
73
+ * @throws {@link ResourceNotFoundException} (client fault)
74
+ * <p>Request references a resource which does not exist.</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>Request was denied due to request throttling.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>The input does not satisfy the constraints specified by an AWS service.</p>
81
+ *
82
+ * @throws {@link ConflictException} (client fault)
83
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
84
+ *
85
+ * @throws {@link ServiceQuotaExceededException} (client fault)
86
+ * <p>Request would cause a service quota to be exceeded.</p>
87
+ *
88
+ * @throws {@link SupplyChainServiceException}
89
+ * <p>Base exception class for all service exceptions from SupplyChain service.</p>
90
+ *
91
+ * @public
92
+ */
93
+ export declare class UpdateInstanceCommand extends UpdateInstanceCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: UpdateInstanceRequest;
98
+ output: UpdateInstanceResponse;
99
+ };
100
+ sdk: {
101
+ input: UpdateInstanceCommandInput;
102
+ output: UpdateInstanceCommandOutput;
103
+ };
104
+ };
105
+ }
@@ -1,16 +1,21 @@
1
1
  export * from "./CreateBillOfMaterialsImportJobCommand";
2
2
  export * from "./CreateDataIntegrationFlowCommand";
3
3
  export * from "./CreateDataLakeDatasetCommand";
4
+ export * from "./CreateInstanceCommand";
4
5
  export * from "./DeleteDataIntegrationFlowCommand";
5
6
  export * from "./DeleteDataLakeDatasetCommand";
7
+ export * from "./DeleteInstanceCommand";
6
8
  export * from "./GetBillOfMaterialsImportJobCommand";
7
9
  export * from "./GetDataIntegrationFlowCommand";
8
10
  export * from "./GetDataLakeDatasetCommand";
11
+ export * from "./GetInstanceCommand";
9
12
  export * from "./ListDataIntegrationFlowsCommand";
10
13
  export * from "./ListDataLakeDatasetsCommand";
14
+ export * from "./ListInstancesCommand";
11
15
  export * from "./ListTagsForResourceCommand";
12
16
  export * from "./SendDataIntegrationEventCommand";
13
17
  export * from "./TagResourceCommand";
14
18
  export * from "./UntagResourceCommand";
15
19
  export * from "./UpdateDataIntegrationFlowCommand";
16
20
  export * from "./UpdateDataLakeDatasetCommand";
21
+ export * from "./UpdateInstanceCommand";