@aws-sdk/client-proton 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2 -2
- package/dist-es/Proton.js +309 -302
- package/dist-es/ProtonClient.js +28 -22
- package/dist-es/commands/AcceptEnvironmentAccountConnectionCommand.js +28 -21
- package/dist-es/commands/CancelComponentDeploymentCommand.js +28 -21
- package/dist-es/commands/CancelEnvironmentDeploymentCommand.js +28 -21
- package/dist-es/commands/CancelServiceInstanceDeploymentCommand.js +28 -21
- package/dist-es/commands/CancelServicePipelineDeploymentCommand.js +28 -21
- package/dist-es/commands/CreateComponentCommand.js +28 -21
- package/dist-es/commands/CreateEnvironmentAccountConnectionCommand.js +28 -21
- package/dist-es/commands/CreateEnvironmentCommand.js +28 -21
- package/dist-es/commands/CreateEnvironmentTemplateCommand.js +28 -21
- package/dist-es/commands/CreateEnvironmentTemplateVersionCommand.js +28 -21
- package/dist-es/commands/CreateRepositoryCommand.js +28 -21
- package/dist-es/commands/CreateServiceCommand.js +28 -21
- package/dist-es/commands/CreateServiceTemplateCommand.js +28 -21
- package/dist-es/commands/CreateServiceTemplateVersionCommand.js +28 -21
- package/dist-es/commands/CreateTemplateSyncConfigCommand.js +28 -21
- package/dist-es/commands/DeleteComponentCommand.js +28 -21
- package/dist-es/commands/DeleteEnvironmentAccountConnectionCommand.js +28 -21
- package/dist-es/commands/DeleteEnvironmentCommand.js +28 -21
- package/dist-es/commands/DeleteEnvironmentTemplateCommand.js +28 -21
- package/dist-es/commands/DeleteEnvironmentTemplateVersionCommand.js +28 -21
- package/dist-es/commands/DeleteRepositoryCommand.js +28 -21
- package/dist-es/commands/DeleteServiceCommand.js +28 -21
- package/dist-es/commands/DeleteServiceTemplateCommand.js +28 -21
- package/dist-es/commands/DeleteServiceTemplateVersionCommand.js +28 -21
- package/dist-es/commands/DeleteTemplateSyncConfigCommand.js +28 -21
- package/dist-es/commands/GetAccountSettingsCommand.js +28 -21
- package/dist-es/commands/GetComponentCommand.js +28 -21
- package/dist-es/commands/GetEnvironmentAccountConnectionCommand.js +28 -21
- package/dist-es/commands/GetEnvironmentCommand.js +28 -21
- package/dist-es/commands/GetEnvironmentTemplateCommand.js +28 -21
- package/dist-es/commands/GetEnvironmentTemplateVersionCommand.js +28 -21
- package/dist-es/commands/GetRepositoryCommand.js +28 -21
- package/dist-es/commands/GetRepositorySyncStatusCommand.js +28 -21
- package/dist-es/commands/GetServiceCommand.js +28 -21
- package/dist-es/commands/GetServiceInstanceCommand.js +28 -21
- package/dist-es/commands/GetServiceTemplateCommand.js +28 -21
- package/dist-es/commands/GetServiceTemplateVersionCommand.js +28 -21
- package/dist-es/commands/GetTemplateSyncConfigCommand.js +28 -21
- package/dist-es/commands/GetTemplateSyncStatusCommand.js +28 -21
- package/dist-es/commands/ListComponentOutputsCommand.js +28 -21
- package/dist-es/commands/ListComponentProvisionedResourcesCommand.js +28 -21
- package/dist-es/commands/ListComponentsCommand.js +28 -21
- package/dist-es/commands/ListEnvironmentAccountConnectionsCommand.js +28 -21
- package/dist-es/commands/ListEnvironmentOutputsCommand.js +28 -21
- package/dist-es/commands/ListEnvironmentProvisionedResourcesCommand.js +28 -21
- package/dist-es/commands/ListEnvironmentTemplateVersionsCommand.js +28 -21
- package/dist-es/commands/ListEnvironmentTemplatesCommand.js +28 -21
- package/dist-es/commands/ListEnvironmentsCommand.js +28 -21
- package/dist-es/commands/ListRepositoriesCommand.js +28 -21
- package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +28 -21
- package/dist-es/commands/ListServiceInstanceOutputsCommand.js +28 -21
- package/dist-es/commands/ListServiceInstanceProvisionedResourcesCommand.js +28 -21
- package/dist-es/commands/ListServiceInstancesCommand.js +28 -21
- package/dist-es/commands/ListServicePipelineOutputsCommand.js +28 -21
- package/dist-es/commands/ListServicePipelineProvisionedResourcesCommand.js +28 -21
- package/dist-es/commands/ListServiceTemplateVersionsCommand.js +28 -21
- package/dist-es/commands/ListServiceTemplatesCommand.js +28 -21
- package/dist-es/commands/ListServicesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/NotifyResourceDeploymentStatusChangeCommand.js +28 -21
- package/dist-es/commands/RejectEnvironmentAccountConnectionCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateAccountSettingsCommand.js +28 -21
- package/dist-es/commands/UpdateComponentCommand.js +28 -21
- package/dist-es/commands/UpdateEnvironmentAccountConnectionCommand.js +28 -21
- package/dist-es/commands/UpdateEnvironmentCommand.js +28 -21
- package/dist-es/commands/UpdateEnvironmentTemplateCommand.js +28 -21
- package/dist-es/commands/UpdateEnvironmentTemplateVersionCommand.js +28 -21
- package/dist-es/commands/UpdateServiceCommand.js +28 -21
- package/dist-es/commands/UpdateServiceInstanceCommand.js +28 -21
- package/dist-es/commands/UpdateServicePipelineCommand.js +28 -21
- package/dist-es/commands/UpdateServiceTemplateCommand.js +28 -21
- package/dist-es/commands/UpdateServiceTemplateVersionCommand.js +28 -21
- package/dist-es/commands/UpdateTemplateSyncConfigCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ProtonServiceException.js +10 -5
- package/dist-es/models/models_0.js +302 -794
- package/dist-es/pagination/ListComponentOutputsPaginator.js +67 -24
- package/dist-es/pagination/ListComponentProvisionedResourcesPaginator.js +67 -24
- package/dist-es/pagination/ListComponentsPaginator.js +68 -25
- package/dist-es/pagination/ListEnvironmentAccountConnectionsPaginator.js +68 -25
- package/dist-es/pagination/ListEnvironmentOutputsPaginator.js +67 -24
- package/dist-es/pagination/ListEnvironmentProvisionedResourcesPaginator.js +67 -24
- package/dist-es/pagination/ListEnvironmentTemplateVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListEnvironmentTemplatesPaginator.js +68 -25
- package/dist-es/pagination/ListEnvironmentsPaginator.js +68 -25
- package/dist-es/pagination/ListRepositoriesPaginator.js +68 -25
- package/dist-es/pagination/ListRepositorySyncDefinitionsPaginator.js +67 -24
- package/dist-es/pagination/ListServiceInstanceOutputsPaginator.js +67 -24
- package/dist-es/pagination/ListServiceInstanceProvisionedResourcesPaginator.js +67 -24
- package/dist-es/pagination/ListServiceInstancesPaginator.js +68 -25
- package/dist-es/pagination/ListServicePipelineOutputsPaginator.js +67 -24
- package/dist-es/pagination/ListServicePipelineProvisionedResourcesPaginator.js +67 -24
- package/dist-es/pagination/ListServiceTemplateVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListServiceTemplatesPaginator.js +68 -25
- package/dist-es/pagination/ListServicesPaginator.js +68 -25
- package/dist-es/pagination/ListTagsForResourcePaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_0.js +6546 -5018
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForComponentDeleted.js +50 -30
- package/dist-es/waiters/waitForComponentDeployed.js +56 -36
- package/dist-es/waiters/waitForEnvironmentDeployed.js +56 -36
- package/dist-es/waiters/waitForEnvironmentTemplateVersionRegistered.js +65 -45
- package/dist-es/waiters/waitForServiceCreated.js +74 -54
- package/dist-es/waiters/waitForServiceDeleted.js +50 -30
- package/dist-es/waiters/waitForServiceInstanceDeployed.js +56 -36
- package/dist-es/waiters/waitForServicePipelineDeployed.js +56 -36
- package/dist-es/waiters/waitForServiceTemplateVersionRegistered.js +65 -45
- package/dist-es/waiters/waitForServiceUpdated.js +83 -63
- package/package.json +5 -5
|
@@ -1,67 +1,87 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { GetServiceCommand } from "../commands/GetServiceCommand";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, returnComparator, returnComparator, returnComparator, returnComparator, exception_1;
|
|
6
|
+
return __generator(this, function (_a) {
|
|
7
|
+
switch (_a.label) {
|
|
8
|
+
case 0:
|
|
9
|
+
_a.trys.push([0, 2, , 3]);
|
|
10
|
+
return [4, client.send(new GetServiceCommand(input))];
|
|
11
|
+
case 1:
|
|
12
|
+
result_1 = _a.sent();
|
|
13
|
+
reason = result_1;
|
|
14
|
+
try {
|
|
15
|
+
returnComparator = function () {
|
|
16
|
+
return result_1.service.status;
|
|
17
|
+
};
|
|
18
|
+
if (returnComparator() === "ACTIVE") {
|
|
19
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
catch (e) { }
|
|
23
|
+
try {
|
|
24
|
+
returnComparator = function () {
|
|
25
|
+
return result_1.service.status;
|
|
26
|
+
};
|
|
27
|
+
if (returnComparator() === "UPDATE_FAILED_CLEANUP_COMPLETE") {
|
|
28
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (e) { }
|
|
32
|
+
try {
|
|
33
|
+
returnComparator = function () {
|
|
34
|
+
return result_1.service.status;
|
|
35
|
+
};
|
|
36
|
+
if (returnComparator() === "UPDATE_FAILED_CLEANUP_FAILED") {
|
|
37
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (e) { }
|
|
41
|
+
try {
|
|
42
|
+
returnComparator = function () {
|
|
43
|
+
return result_1.service.status;
|
|
44
|
+
};
|
|
45
|
+
if (returnComparator() === "UPDATE_FAILED") {
|
|
46
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (e) { }
|
|
50
|
+
try {
|
|
51
|
+
returnComparator = function () {
|
|
52
|
+
return result_1.service.status;
|
|
53
|
+
};
|
|
54
|
+
if (returnComparator() === "UPDATE_COMPLETE_CLEANUP_FAILED") {
|
|
55
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch (e) { }
|
|
59
|
+
return [3, 3];
|
|
60
|
+
case 2:
|
|
61
|
+
exception_1 = _a.sent();
|
|
62
|
+
reason = exception_1;
|
|
63
|
+
return [3, 3];
|
|
64
|
+
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
15
65
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
66
|
+
});
|
|
67
|
+
}); };
|
|
68
|
+
export var waitForServiceUpdated = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
+
var serviceDefaults;
|
|
70
|
+
return __generator(this, function (_a) {
|
|
71
|
+
serviceDefaults = { minDelay: 5, maxDelay: 4999 };
|
|
72
|
+
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
73
|
+
});
|
|
74
|
+
}); };
|
|
75
|
+
export var waitUntilServiceUpdated = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
|
+
var serviceDefaults, result;
|
|
77
|
+
return __generator(this, function (_a) {
|
|
78
|
+
switch (_a.label) {
|
|
79
|
+
case 0:
|
|
80
|
+
serviceDefaults = { minDelay: 5, maxDelay: 4999 };
|
|
81
|
+
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
82
|
+
case 1:
|
|
83
|
+
result = _a.sent();
|
|
84
|
+
return [2, checkExceptions(result)];
|
|
24
85
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const returnComparator = () => {
|
|
28
|
-
return result.service.status;
|
|
29
|
-
};
|
|
30
|
-
if (returnComparator() === "UPDATE_FAILED_CLEANUP_FAILED") {
|
|
31
|
-
return { state: WaiterState.FAILURE, reason };
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e) { }
|
|
35
|
-
try {
|
|
36
|
-
const returnComparator = () => {
|
|
37
|
-
return result.service.status;
|
|
38
|
-
};
|
|
39
|
-
if (returnComparator() === "UPDATE_FAILED") {
|
|
40
|
-
return { state: WaiterState.FAILURE, reason };
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
catch (e) { }
|
|
44
|
-
try {
|
|
45
|
-
const returnComparator = () => {
|
|
46
|
-
return result.service.status;
|
|
47
|
-
};
|
|
48
|
-
if (returnComparator() === "UPDATE_COMPLETE_CLEANUP_FAILED") {
|
|
49
|
-
return { state: WaiterState.FAILURE, reason };
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
catch (e) { }
|
|
53
|
-
}
|
|
54
|
-
catch (exception) {
|
|
55
|
-
reason = exception;
|
|
56
|
-
}
|
|
57
|
-
return { state: WaiterState.RETRY, reason };
|
|
58
|
-
};
|
|
59
|
-
export const waitForServiceUpdated = async (params, input) => {
|
|
60
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 4999 };
|
|
61
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
62
|
-
};
|
|
63
|
-
export const waitUntilServiceUpdated = async (params, input) => {
|
|
64
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 4999 };
|
|
65
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
66
|
-
return checkExceptions(result);
|
|
67
|
-
};
|
|
86
|
+
});
|
|
87
|
+
}); };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-proton",
|
|
3
3
|
"description": "AWS SDK for JavaScript Proton Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.185.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.185.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.185.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.183.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
30
|
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
31
|
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.185.0",
|
|
33
33
|
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
34
|
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
35
|
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
36
|
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.185.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
40
|
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
41
|
"@aws-sdk/types": "3.183.0",
|