@aws-sdk/client-serverlessapplicationrepository 3.312.0 → 3.316.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/dist-cjs/ServerlessApplicationRepository.js +18 -196
- package/dist-cjs/protocols/Aws_restJson1.js +306 -490
- package/dist-es/ServerlessApplicationRepository.js +19 -197
- package/dist-es/protocols/Aws_restJson1.js +283 -467
- package/dist-types/ServerlessApplicationRepository.d.ts +40 -55
- package/dist-types/ts3.4/ServerlessApplicationRepository.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
2
3
|
import { CreateApplicationVersionCommand, } from "./commands/CreateApplicationVersionCommand";
|
|
3
4
|
import { CreateCloudFormationChangeSetCommand, } from "./commands/CreateCloudFormationChangeSetCommand";
|
|
@@ -12,202 +13,23 @@ import { ListApplicationVersionsCommand, } from "./commands/ListApplicationVersi
|
|
|
12
13
|
import { PutApplicationPolicyCommand, } from "./commands/PutApplicationPolicyCommand";
|
|
13
14
|
import { UnshareApplicationCommand, } from "./commands/UnshareApplicationCommand";
|
|
14
15
|
import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
|
|
15
|
-
import { ServerlessApplicationRepositoryClient } from "./ServerlessApplicationRepositoryClient";
|
|
16
|
+
import { ServerlessApplicationRepositoryClient, } from "./ServerlessApplicationRepositoryClient";
|
|
17
|
+
const commands = {
|
|
18
|
+
CreateApplicationCommand,
|
|
19
|
+
CreateApplicationVersionCommand,
|
|
20
|
+
CreateCloudFormationChangeSetCommand,
|
|
21
|
+
CreateCloudFormationTemplateCommand,
|
|
22
|
+
DeleteApplicationCommand,
|
|
23
|
+
GetApplicationCommand,
|
|
24
|
+
GetApplicationPolicyCommand,
|
|
25
|
+
GetCloudFormationTemplateCommand,
|
|
26
|
+
ListApplicationDependenciesCommand,
|
|
27
|
+
ListApplicationsCommand,
|
|
28
|
+
ListApplicationVersionsCommand,
|
|
29
|
+
PutApplicationPolicyCommand,
|
|
30
|
+
UnshareApplicationCommand,
|
|
31
|
+
UpdateApplicationCommand,
|
|
32
|
+
};
|
|
16
33
|
export class ServerlessApplicationRepository extends ServerlessApplicationRepositoryClient {
|
|
17
|
-
createApplication(args, optionsOrCb, cb) {
|
|
18
|
-
const command = new CreateApplicationCommand(args);
|
|
19
|
-
if (typeof optionsOrCb === "function") {
|
|
20
|
-
this.send(command, optionsOrCb);
|
|
21
|
-
}
|
|
22
|
-
else if (typeof cb === "function") {
|
|
23
|
-
if (typeof optionsOrCb !== "object")
|
|
24
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
25
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
createApplicationVersion(args, optionsOrCb, cb) {
|
|
32
|
-
const command = new CreateApplicationVersionCommand(args);
|
|
33
|
-
if (typeof optionsOrCb === "function") {
|
|
34
|
-
this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
else if (typeof cb === "function") {
|
|
37
|
-
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
39
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
createCloudFormationChangeSet(args, optionsOrCb, cb) {
|
|
46
|
-
const command = new CreateCloudFormationChangeSetCommand(args);
|
|
47
|
-
if (typeof optionsOrCb === "function") {
|
|
48
|
-
this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
else if (typeof cb === "function") {
|
|
51
|
-
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
53
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
createCloudFormationTemplate(args, optionsOrCb, cb) {
|
|
60
|
-
const command = new CreateCloudFormationTemplateCommand(args);
|
|
61
|
-
if (typeof optionsOrCb === "function") {
|
|
62
|
-
this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
else if (typeof cb === "function") {
|
|
65
|
-
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
deleteApplication(args, optionsOrCb, cb) {
|
|
74
|
-
const command = new DeleteApplicationCommand(args);
|
|
75
|
-
if (typeof optionsOrCb === "function") {
|
|
76
|
-
this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
else if (typeof cb === "function") {
|
|
79
|
-
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
return this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
getApplication(args, optionsOrCb, cb) {
|
|
88
|
-
const command = new GetApplicationCommand(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
else if (typeof cb === "function") {
|
|
93
|
-
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
getApplicationPolicy(args, optionsOrCb, cb) {
|
|
102
|
-
const command = new GetApplicationPolicyCommand(args);
|
|
103
|
-
if (typeof optionsOrCb === "function") {
|
|
104
|
-
this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
else if (typeof cb === "function") {
|
|
107
|
-
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
getCloudFormationTemplate(args, optionsOrCb, cb) {
|
|
116
|
-
const command = new GetCloudFormationTemplateCommand(args);
|
|
117
|
-
if (typeof optionsOrCb === "function") {
|
|
118
|
-
this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
else if (typeof cb === "function") {
|
|
121
|
-
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
listApplicationDependencies(args, optionsOrCb, cb) {
|
|
130
|
-
const command = new ListApplicationDependenciesCommand(args);
|
|
131
|
-
if (typeof optionsOrCb === "function") {
|
|
132
|
-
this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
else if (typeof cb === "function") {
|
|
135
|
-
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
return this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
listApplications(args, optionsOrCb, cb) {
|
|
144
|
-
const command = new ListApplicationsCommand(args);
|
|
145
|
-
if (typeof optionsOrCb === "function") {
|
|
146
|
-
this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
else if (typeof cb === "function") {
|
|
149
|
-
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
151
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
return this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
listApplicationVersions(args, optionsOrCb, cb) {
|
|
158
|
-
const command = new ListApplicationVersionsCommand(args);
|
|
159
|
-
if (typeof optionsOrCb === "function") {
|
|
160
|
-
this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
else if (typeof cb === "function") {
|
|
163
|
-
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
165
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
putApplicationPolicy(args, optionsOrCb, cb) {
|
|
172
|
-
const command = new PutApplicationPolicyCommand(args);
|
|
173
|
-
if (typeof optionsOrCb === "function") {
|
|
174
|
-
this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
else if (typeof cb === "function") {
|
|
177
|
-
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
179
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
return this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
unshareApplication(args, optionsOrCb, cb) {
|
|
186
|
-
const command = new UnshareApplicationCommand(args);
|
|
187
|
-
if (typeof optionsOrCb === "function") {
|
|
188
|
-
this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
else if (typeof cb === "function") {
|
|
191
|
-
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
return this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
updateApplication(args, optionsOrCb, cb) {
|
|
200
|
-
const command = new UpdateApplicationCommand(args);
|
|
201
|
-
if (typeof optionsOrCb === "function") {
|
|
202
|
-
this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
else if (typeof cb === "function") {
|
|
205
|
-
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
return this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
34
|
}
|
|
35
|
+
createAggregatedClient(commands, ServerlessApplicationRepository);
|