@aws-sdk/client-supplychain 3.670.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.
- package/README.md +47 -7
- package/dist-cjs/index.js +264 -2
- package/dist-es/SupplyChain.js +10 -0
- package/dist-es/commands/CreateInstanceCommand.js +22 -0
- package/dist-es/commands/DeleteInstanceCommand.js +22 -0
- package/dist-es/commands/GetInstanceCommand.js +22 -0
- package/dist-es/commands/ListInstancesCommand.js +22 -0
- package/dist-es/commands/UpdateInstanceCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/pagination/ListInstancesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +160 -1
- package/dist-types/SupplyChain.d.ts +37 -0
- package/dist-types/SupplyChainClient.d.ts +7 -2
- package/dist-types/commands/CreateInstanceCommand.d.ts +109 -0
- package/dist-types/commands/DeleteInstanceCommand.d.ts +103 -0
- package/dist-types/commands/GetInstanceCommand.d.ts +103 -0
- package/dist-types/commands/ListInstancesCommand.d.ts +113 -0
- package/dist-types/commands/UpdateInstanceCommand.d.ts +105 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +232 -0
- package/dist-types/pagination/ListInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/SupplyChain.d.ts +87 -0
- package/dist-types/ts3.4/SupplyChainClient.d.ts +32 -2
- package/dist-types/ts3.4/commands/CreateInstanceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteInstanceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetInstanceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateInstanceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +61 -0
- package/dist-types/ts3.4/pagination/ListInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +1 -1
|
@@ -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";
|