@aws-sdk/client-osis 3.321.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/LICENSE +201 -0
- package/README.md +322 -0
- package/dist-cjs/OSIS.js +39 -0
- package/dist-cjs/OSISClient.js +40 -0
- package/dist-cjs/commands/CreatePipelineCommand.js +45 -0
- package/dist-cjs/commands/DeletePipelineCommand.js +45 -0
- package/dist-cjs/commands/GetPipelineBlueprintCommand.js +45 -0
- package/dist-cjs/commands/GetPipelineChangeProgressCommand.js +45 -0
- package/dist-cjs/commands/GetPipelineCommand.js +45 -0
- package/dist-cjs/commands/ListPipelineBlueprintsCommand.js +45 -0
- package/dist-cjs/commands/ListPipelinesCommand.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
- package/dist-cjs/commands/StartPipelineCommand.js +45 -0
- package/dist-cjs/commands/StopPipelineCommand.js +45 -0
- package/dist-cjs/commands/TagResourceCommand.js +45 -0
- package/dist-cjs/commands/UntagResourceCommand.js +45 -0
- package/dist-cjs/commands/UpdatePipelineCommand.js +45 -0
- package/dist-cjs/commands/ValidatePipelineCommand.js +45 -0
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/OSISServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +132 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListPipelinesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1137 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/OSIS.js +35 -0
- package/dist-es/OSISClient.js +36 -0
- package/dist-es/commands/CreatePipelineCommand.js +41 -0
- package/dist-es/commands/DeletePipelineCommand.js +41 -0
- package/dist-es/commands/GetPipelineBlueprintCommand.js +41 -0
- package/dist-es/commands/GetPipelineChangeProgressCommand.js +41 -0
- package/dist-es/commands/GetPipelineCommand.js +41 -0
- package/dist-es/commands/ListPipelineBlueprintsCommand.js +41 -0
- package/dist-es/commands/ListPipelinesCommand.js +41 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/dist-es/commands/StartPipelineCommand.js +41 -0
- package/dist-es/commands/StopPipelineCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +41 -0
- package/dist-es/commands/UntagResourceCommand.js +41 -0
- package/dist-es/commands/UpdatePipelineCommand.js +41 -0
- package/dist-es/commands/ValidatePipelineCommand.js +41 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/OSISServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +121 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListPipelinesPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1106 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/OSIS.d.ts +110 -0
- package/dist-types/OSISClient.d.ts +177 -0
- package/dist-types/commands/CreatePipelineCommand.d.ts +102 -0
- package/dist-types/commands/DeletePipelineCommand.d.ts +80 -0
- package/dist-types/commands/GetPipelineBlueprintCommand.d.ts +77 -0
- package/dist-types/commands/GetPipelineChangeProgressCommand.d.ts +80 -0
- package/dist-types/commands/GetPipelineCommand.d.ts +76 -0
- package/dist-types/commands/ListPipelineBlueprintsCommand.d.ts +74 -0
- package/dist-types/commands/ListPipelinesCommand.d.ts +79 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +78 -0
- package/dist-types/commands/StartPipelineCommand.d.ts +80 -0
- package/dist-types/commands/StopPipelineCommand.d.ts +80 -0
- package/dist-types/commands/TagResourceCommand.d.ts +86 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +80 -0
- package/dist-types/commands/UpdatePipelineCommand.d.ts +89 -0
- package/dist-types/commands/ValidatePipelineCommand.d.ts +75 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/OSISServiceException.d.ts +12 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +718 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListPipelinesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +128 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/OSIS.d.ts +243 -0
- package/dist-types/ts3.4/OSISClient.d.ts +196 -0
- package/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetPipelineBlueprintCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetPipelineChangeProgressCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetPipelineCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListPipelineBlueprintsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartPipelineCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StopPipelineCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdatePipelineCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ValidatePipelineCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/OSISServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +247 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListPipelinesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +173 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +98 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OSISServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./OSIS"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./OSISClient"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var OSISServiceException_1 = require("./models/OSISServiceException");
|
|
11
|
+
Object.defineProperty(exports, "OSISServiceException", { enumerable: true, get: function () { return OSISServiceException_1.OSISServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OSISServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class OSISServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, OSISServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.OSISServiceException = OSISServiceException;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidPaginationTokenException = exports.ChangeProgressStatuses = exports.ChangeProgressStageStatuses = exports.ResourceNotFoundException = exports.ConflictException = exports.ValidationException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.InternalException = exports.PipelineStatus = exports.AccessDeniedException = void 0;
|
|
4
|
+
const OSISServiceException_1 = require("./OSISServiceException");
|
|
5
|
+
class AccessDeniedException extends OSISServiceException_1.OSISServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "AccessDeniedException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
exports.PipelineStatus = {
|
|
19
|
+
ACTIVE: "ACTIVE",
|
|
20
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
21
|
+
CREATING: "CREATING",
|
|
22
|
+
DELETING: "DELETING",
|
|
23
|
+
STARTING: "STARTING",
|
|
24
|
+
START_FAILED: "START_FAILED",
|
|
25
|
+
STOPPED: "STOPPED",
|
|
26
|
+
STOPPING: "STOPPING",
|
|
27
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
28
|
+
UPDATING: "UPDATING",
|
|
29
|
+
};
|
|
30
|
+
class InternalException extends OSISServiceException_1.OSISServiceException {
|
|
31
|
+
constructor(opts) {
|
|
32
|
+
super({
|
|
33
|
+
name: "InternalException",
|
|
34
|
+
$fault: "server",
|
|
35
|
+
...opts,
|
|
36
|
+
});
|
|
37
|
+
this.name = "InternalException";
|
|
38
|
+
this.$fault = "server";
|
|
39
|
+
Object.setPrototypeOf(this, InternalException.prototype);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.InternalException = InternalException;
|
|
43
|
+
class LimitExceededException extends OSISServiceException_1.OSISServiceException {
|
|
44
|
+
constructor(opts) {
|
|
45
|
+
super({
|
|
46
|
+
name: "LimitExceededException",
|
|
47
|
+
$fault: "client",
|
|
48
|
+
...opts,
|
|
49
|
+
});
|
|
50
|
+
this.name = "LimitExceededException";
|
|
51
|
+
this.$fault = "client";
|
|
52
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.LimitExceededException = LimitExceededException;
|
|
56
|
+
class ResourceAlreadyExistsException extends OSISServiceException_1.OSISServiceException {
|
|
57
|
+
constructor(opts) {
|
|
58
|
+
super({
|
|
59
|
+
name: "ResourceAlreadyExistsException",
|
|
60
|
+
$fault: "client",
|
|
61
|
+
...opts,
|
|
62
|
+
});
|
|
63
|
+
this.name = "ResourceAlreadyExistsException";
|
|
64
|
+
this.$fault = "client";
|
|
65
|
+
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
69
|
+
class ValidationException extends OSISServiceException_1.OSISServiceException {
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: "ValidationException",
|
|
73
|
+
$fault: "client",
|
|
74
|
+
...opts,
|
|
75
|
+
});
|
|
76
|
+
this.name = "ValidationException";
|
|
77
|
+
this.$fault = "client";
|
|
78
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.ValidationException = ValidationException;
|
|
82
|
+
class ConflictException extends OSISServiceException_1.OSISServiceException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "ConflictException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
this.name = "ConflictException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ConflictException = ConflictException;
|
|
95
|
+
class ResourceNotFoundException extends OSISServiceException_1.OSISServiceException {
|
|
96
|
+
constructor(opts) {
|
|
97
|
+
super({
|
|
98
|
+
name: "ResourceNotFoundException",
|
|
99
|
+
$fault: "client",
|
|
100
|
+
...opts,
|
|
101
|
+
});
|
|
102
|
+
this.name = "ResourceNotFoundException";
|
|
103
|
+
this.$fault = "client";
|
|
104
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
108
|
+
exports.ChangeProgressStageStatuses = {
|
|
109
|
+
COMPLETED: "COMPLETED",
|
|
110
|
+
FAILED: "FAILED",
|
|
111
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
112
|
+
PENDING: "PENDING",
|
|
113
|
+
};
|
|
114
|
+
exports.ChangeProgressStatuses = {
|
|
115
|
+
COMPLETED: "COMPLETED",
|
|
116
|
+
FAILED: "FAILED",
|
|
117
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
118
|
+
PENDING: "PENDING",
|
|
119
|
+
};
|
|
120
|
+
class InvalidPaginationTokenException extends OSISServiceException_1.OSISServiceException {
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "InvalidPaginationTokenException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
this.name = "InvalidPaginationTokenException";
|
|
128
|
+
this.$fault = "client";
|
|
129
|
+
Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListPipelines = void 0;
|
|
4
|
+
const ListPipelinesCommand_1 = require("../commands/ListPipelinesCommand");
|
|
5
|
+
const OSISClient_1 = require("../OSISClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListPipelinesCommand_1.ListPipelinesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListPipelines(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof OSISClient_1.OSISClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected OSIS | OSISClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListPipelines = paginateListPipelines;
|