@aws-sdk/client-serverlessapplicationrepository 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ServerlessApplicationRepository = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
5
6
  const CreateApplicationVersionCommand_1 = require("./commands/CreateApplicationVersionCommand");
6
7
  const CreateCloudFormationChangeSetCommand_1 = require("./commands/CreateCloudFormationChangeSetCommand");
@@ -16,202 +17,23 @@ const PutApplicationPolicyCommand_1 = require("./commands/PutApplicationPolicyCo
16
17
  const UnshareApplicationCommand_1 = require("./commands/UnshareApplicationCommand");
17
18
  const UpdateApplicationCommand_1 = require("./commands/UpdateApplicationCommand");
18
19
  const ServerlessApplicationRepositoryClient_1 = require("./ServerlessApplicationRepositoryClient");
20
+ const commands = {
21
+ CreateApplicationCommand: CreateApplicationCommand_1.CreateApplicationCommand,
22
+ CreateApplicationVersionCommand: CreateApplicationVersionCommand_1.CreateApplicationVersionCommand,
23
+ CreateCloudFormationChangeSetCommand: CreateCloudFormationChangeSetCommand_1.CreateCloudFormationChangeSetCommand,
24
+ CreateCloudFormationTemplateCommand: CreateCloudFormationTemplateCommand_1.CreateCloudFormationTemplateCommand,
25
+ DeleteApplicationCommand: DeleteApplicationCommand_1.DeleteApplicationCommand,
26
+ GetApplicationCommand: GetApplicationCommand_1.GetApplicationCommand,
27
+ GetApplicationPolicyCommand: GetApplicationPolicyCommand_1.GetApplicationPolicyCommand,
28
+ GetCloudFormationTemplateCommand: GetCloudFormationTemplateCommand_1.GetCloudFormationTemplateCommand,
29
+ ListApplicationDependenciesCommand: ListApplicationDependenciesCommand_1.ListApplicationDependenciesCommand,
30
+ ListApplicationsCommand: ListApplicationsCommand_1.ListApplicationsCommand,
31
+ ListApplicationVersionsCommand: ListApplicationVersionsCommand_1.ListApplicationVersionsCommand,
32
+ PutApplicationPolicyCommand: PutApplicationPolicyCommand_1.PutApplicationPolicyCommand,
33
+ UnshareApplicationCommand: UnshareApplicationCommand_1.UnshareApplicationCommand,
34
+ UpdateApplicationCommand: UpdateApplicationCommand_1.UpdateApplicationCommand,
35
+ };
19
36
  class ServerlessApplicationRepository extends ServerlessApplicationRepositoryClient_1.ServerlessApplicationRepositoryClient {
20
- createApplication(args, optionsOrCb, cb) {
21
- const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
22
- if (typeof optionsOrCb === "function") {
23
- this.send(command, optionsOrCb);
24
- }
25
- else if (typeof cb === "function") {
26
- if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
- this.send(command, optionsOrCb || {}, cb);
29
- }
30
- else {
31
- return this.send(command, optionsOrCb);
32
- }
33
- }
34
- createApplicationVersion(args, optionsOrCb, cb) {
35
- const command = new CreateApplicationVersionCommand_1.CreateApplicationVersionCommand(args);
36
- if (typeof optionsOrCb === "function") {
37
- this.send(command, optionsOrCb);
38
- }
39
- else if (typeof cb === "function") {
40
- if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
- this.send(command, optionsOrCb || {}, cb);
43
- }
44
- else {
45
- return this.send(command, optionsOrCb);
46
- }
47
- }
48
- createCloudFormationChangeSet(args, optionsOrCb, cb) {
49
- const command = new CreateCloudFormationChangeSetCommand_1.CreateCloudFormationChangeSetCommand(args);
50
- if (typeof optionsOrCb === "function") {
51
- this.send(command, optionsOrCb);
52
- }
53
- else if (typeof cb === "function") {
54
- if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
- this.send(command, optionsOrCb || {}, cb);
57
- }
58
- else {
59
- return this.send(command, optionsOrCb);
60
- }
61
- }
62
- createCloudFormationTemplate(args, optionsOrCb, cb) {
63
- const command = new CreateCloudFormationTemplateCommand_1.CreateCloudFormationTemplateCommand(args);
64
- if (typeof optionsOrCb === "function") {
65
- this.send(command, optionsOrCb);
66
- }
67
- else if (typeof cb === "function") {
68
- if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- }
72
- else {
73
- return this.send(command, optionsOrCb);
74
- }
75
- }
76
- deleteApplication(args, optionsOrCb, cb) {
77
- const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- }
81
- else if (typeof cb === "function") {
82
- if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
- this.send(command, optionsOrCb || {}, cb);
85
- }
86
- else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
- getApplication(args, optionsOrCb, cb) {
91
- const command = new GetApplicationCommand_1.GetApplicationCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- }
95
- else if (typeof cb === "function") {
96
- if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
- this.send(command, optionsOrCb || {}, cb);
99
- }
100
- else {
101
- return this.send(command, optionsOrCb);
102
- }
103
- }
104
- getApplicationPolicy(args, optionsOrCb, cb) {
105
- const command = new GetApplicationPolicyCommand_1.GetApplicationPolicyCommand(args);
106
- if (typeof optionsOrCb === "function") {
107
- this.send(command, optionsOrCb);
108
- }
109
- else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
- this.send(command, optionsOrCb || {}, cb);
113
- }
114
- else {
115
- return this.send(command, optionsOrCb);
116
- }
117
- }
118
- getCloudFormationTemplate(args, optionsOrCb, cb) {
119
- const command = new GetCloudFormationTemplateCommand_1.GetCloudFormationTemplateCommand(args);
120
- if (typeof optionsOrCb === "function") {
121
- this.send(command, optionsOrCb);
122
- }
123
- else if (typeof cb === "function") {
124
- if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
- this.send(command, optionsOrCb || {}, cb);
127
- }
128
- else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
- listApplicationDependencies(args, optionsOrCb, cb) {
133
- const command = new ListApplicationDependenciesCommand_1.ListApplicationDependenciesCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- }
137
- else if (typeof cb === "function") {
138
- if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
- this.send(command, optionsOrCb || {}, cb);
141
- }
142
- else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
- listApplications(args, optionsOrCb, cb) {
147
- const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
148
- if (typeof optionsOrCb === "function") {
149
- this.send(command, optionsOrCb);
150
- }
151
- else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
- this.send(command, optionsOrCb || {}, cb);
155
- }
156
- else {
157
- return this.send(command, optionsOrCb);
158
- }
159
- }
160
- listApplicationVersions(args, optionsOrCb, cb) {
161
- const command = new ListApplicationVersionsCommand_1.ListApplicationVersionsCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- }
165
- else if (typeof cb === "function") {
166
- if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- }
170
- else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
- putApplicationPolicy(args, optionsOrCb, cb) {
175
- const command = new PutApplicationPolicyCommand_1.PutApplicationPolicyCommand(args);
176
- if (typeof optionsOrCb === "function") {
177
- this.send(command, optionsOrCb);
178
- }
179
- else if (typeof cb === "function") {
180
- if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- }
184
- else {
185
- return this.send(command, optionsOrCb);
186
- }
187
- }
188
- unshareApplication(args, optionsOrCb, cb) {
189
- const command = new UnshareApplicationCommand_1.UnshareApplicationCommand(args);
190
- if (typeof optionsOrCb === "function") {
191
- this.send(command, optionsOrCb);
192
- }
193
- else if (typeof cb === "function") {
194
- if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
- this.send(command, optionsOrCb || {}, cb);
197
- }
198
- else {
199
- return this.send(command, optionsOrCb);
200
- }
201
- }
202
- updateApplication(args, optionsOrCb, cb) {
203
- const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- }
207
- else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- }
212
- else {
213
- return this.send(command, optionsOrCb);
214
- }
215
- }
216
37
  }
217
38
  exports.ServerlessApplicationRepository = ServerlessApplicationRepository;
39
+ (0, smithy_client_1.createAggregatedClient)(commands, ServerlessApplicationRepository);
@@ -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);
@@ -14,129 +14,114 @@ import { PutApplicationPolicyCommandInput, PutApplicationPolicyCommandOutput } f
14
14
  import { UnshareApplicationCommandInput, UnshareApplicationCommandOutput } from "./commands/UnshareApplicationCommand";
15
15
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
16
16
  import { ServerlessApplicationRepositoryClient } from "./ServerlessApplicationRepositoryClient";
17
- /**
18
- * @public
19
- * <p>The AWS Serverless Application Repository makes it easy for developers and enterprises to quickly find
20
- * and deploy serverless applications in the AWS Cloud. For more information about serverless applications,
21
- * see Serverless Computing and Applications on the AWS website.</p><p>The AWS Serverless Application Repository is deeply integrated with the AWS Lambda console, so that developers of
22
- * all levels can get started with serverless computing without needing to learn anything new. You can use category
23
- * keywords to browse for applications such as web and mobile backends, data processing applications, or chatbots.
24
- * You can also search for applications by name, publisher, or event source. To use an application, you simply choose it,
25
- * configure any required fields, and deploy it with a few clicks. </p><p>You can also easily publish applications, sharing them publicly with the community at large, or privately
26
- * within your team or across your organization. To publish a serverless application (or app), you can use the
27
- * AWS Management Console, AWS Command Line Interface (AWS CLI), or AWS SDKs to upload the code. Along with the
28
- * code, you upload a simple manifest file, also known as the AWS Serverless Application Model (AWS SAM) template.
29
- * For more information about AWS SAM, see AWS Serverless Application Model (AWS SAM) on the AWS Labs
30
- * GitHub repository.</p><p>The AWS Serverless Application Repository Developer Guide contains more information about the two developer
31
- * experiences available:</p><ul>
32
- * <li>
33
- * <p>Consuming Applications – Browse for applications and view information about them, including
34
- * source code and readme files. Also install, configure, and deploy applications of your choosing. </p>
35
- * <p>Publishing Applications – Configure and upload applications to make them available to other
36
- * developers, and publish new versions of applications. </p>
37
- * </li>
38
- * </ul>
39
- */
40
- export declare class ServerlessApplicationRepository extends ServerlessApplicationRepositoryClient {
17
+ export interface ServerlessApplicationRepository {
41
18
  /**
42
- * @public
43
- * <p>Creates an application, optionally including an AWS SAM file to create the first application version in the same call.</p>
19
+ * @see {@link CreateApplicationCommand}
44
20
  */
45
21
  createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
46
22
  createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
47
23
  createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
48
24
  /**
49
- * @public
50
- * <p>Creates an application version.</p>
25
+ * @see {@link CreateApplicationVersionCommand}
51
26
  */
52
27
  createApplicationVersion(args: CreateApplicationVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationVersionCommandOutput>;
53
28
  createApplicationVersion(args: CreateApplicationVersionCommandInput, cb: (err: any, data?: CreateApplicationVersionCommandOutput) => void): void;
54
29
  createApplicationVersion(args: CreateApplicationVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationVersionCommandOutput) => void): void;
55
30
  /**
56
- * @public
57
- * <p>Creates an AWS CloudFormation change set for the given application.</p>
31
+ * @see {@link CreateCloudFormationChangeSetCommand}
58
32
  */
59
33
  createCloudFormationChangeSet(args: CreateCloudFormationChangeSetCommandInput, options?: __HttpHandlerOptions): Promise<CreateCloudFormationChangeSetCommandOutput>;
60
34
  createCloudFormationChangeSet(args: CreateCloudFormationChangeSetCommandInput, cb: (err: any, data?: CreateCloudFormationChangeSetCommandOutput) => void): void;
61
35
  createCloudFormationChangeSet(args: CreateCloudFormationChangeSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCloudFormationChangeSetCommandOutput) => void): void;
62
36
  /**
63
- * @public
64
- * <p>Creates an AWS CloudFormation template.</p>
37
+ * @see {@link CreateCloudFormationTemplateCommand}
65
38
  */
66
39
  createCloudFormationTemplate(args: CreateCloudFormationTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateCloudFormationTemplateCommandOutput>;
67
40
  createCloudFormationTemplate(args: CreateCloudFormationTemplateCommandInput, cb: (err: any, data?: CreateCloudFormationTemplateCommandOutput) => void): void;
68
41
  createCloudFormationTemplate(args: CreateCloudFormationTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCloudFormationTemplateCommandOutput) => void): void;
69
42
  /**
70
- * @public
71
- * <p>Deletes the specified application.</p>
43
+ * @see {@link DeleteApplicationCommand}
72
44
  */
73
45
  deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
74
46
  deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
75
47
  deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
76
48
  /**
77
- * @public
78
- * <p>Gets the specified application.</p>
49
+ * @see {@link GetApplicationCommand}
79
50
  */
80
51
  getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
81
52
  getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
82
53
  getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
83
54
  /**
84
- * @public
85
- * <p>Retrieves the policy for the application.</p>
55
+ * @see {@link GetApplicationPolicyCommand}
86
56
  */
87
57
  getApplicationPolicy(args: GetApplicationPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationPolicyCommandOutput>;
88
58
  getApplicationPolicy(args: GetApplicationPolicyCommandInput, cb: (err: any, data?: GetApplicationPolicyCommandOutput) => void): void;
89
59
  getApplicationPolicy(args: GetApplicationPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationPolicyCommandOutput) => void): void;
90
60
  /**
91
- * @public
92
- * <p>Gets the specified AWS CloudFormation template.</p>
61
+ * @see {@link GetCloudFormationTemplateCommand}
93
62
  */
94
63
  getCloudFormationTemplate(args: GetCloudFormationTemplateCommandInput, options?: __HttpHandlerOptions): Promise<GetCloudFormationTemplateCommandOutput>;
95
64
  getCloudFormationTemplate(args: GetCloudFormationTemplateCommandInput, cb: (err: any, data?: GetCloudFormationTemplateCommandOutput) => void): void;
96
65
  getCloudFormationTemplate(args: GetCloudFormationTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCloudFormationTemplateCommandOutput) => void): void;
97
66
  /**
98
- * @public
99
- * <p>Retrieves the list of applications nested in the containing application.</p>
67
+ * @see {@link ListApplicationDependenciesCommand}
100
68
  */
101
69
  listApplicationDependencies(args: ListApplicationDependenciesCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationDependenciesCommandOutput>;
102
70
  listApplicationDependencies(args: ListApplicationDependenciesCommandInput, cb: (err: any, data?: ListApplicationDependenciesCommandOutput) => void): void;
103
71
  listApplicationDependencies(args: ListApplicationDependenciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationDependenciesCommandOutput) => void): void;
104
72
  /**
105
- * @public
106
- * <p>Lists applications owned by the requester.</p>
73
+ * @see {@link ListApplicationsCommand}
107
74
  */
108
75
  listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
109
76
  listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
110
77
  listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
111
78
  /**
112
- * @public
113
- * <p>Lists versions for the specified application.</p>
79
+ * @see {@link ListApplicationVersionsCommand}
114
80
  */
115
81
  listApplicationVersions(args: ListApplicationVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationVersionsCommandOutput>;
116
82
  listApplicationVersions(args: ListApplicationVersionsCommandInput, cb: (err: any, data?: ListApplicationVersionsCommandOutput) => void): void;
117
83
  listApplicationVersions(args: ListApplicationVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationVersionsCommandOutput) => void): void;
118
84
  /**
119
- * @public
120
- * <p>Sets the permission policy for an application. For the list of actions supported for this operation, see
121
- * <a href="https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions">Application
122
- * Permissions</a>
123
- * .</p>
85
+ * @see {@link PutApplicationPolicyCommand}
124
86
  */
125
87
  putApplicationPolicy(args: PutApplicationPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutApplicationPolicyCommandOutput>;
126
88
  putApplicationPolicy(args: PutApplicationPolicyCommandInput, cb: (err: any, data?: PutApplicationPolicyCommandOutput) => void): void;
127
89
  putApplicationPolicy(args: PutApplicationPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutApplicationPolicyCommandOutput) => void): void;
128
90
  /**
129
- * @public
130
- * <p>Unshares an application from an AWS Organization.</p><p>This operation can be called only from the organization's master account.</p>
91
+ * @see {@link UnshareApplicationCommand}
131
92
  */
132
93
  unshareApplication(args: UnshareApplicationCommandInput, options?: __HttpHandlerOptions): Promise<UnshareApplicationCommandOutput>;
133
94
  unshareApplication(args: UnshareApplicationCommandInput, cb: (err: any, data?: UnshareApplicationCommandOutput) => void): void;
134
95
  unshareApplication(args: UnshareApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnshareApplicationCommandOutput) => void): void;
135
96
  /**
136
- * @public
137
- * <p>Updates the specified application.</p>
97
+ * @see {@link UpdateApplicationCommand}
138
98
  */
139
99
  updateApplication(args: UpdateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApplicationCommandOutput>;
140
100
  updateApplication(args: UpdateApplicationCommandInput, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
141
101
  updateApplication(args: UpdateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
142
102
  }
103
+ /**
104
+ * @public
105
+ * <p>The AWS Serverless Application Repository makes it easy for developers and enterprises to quickly find
106
+ * and deploy serverless applications in the AWS Cloud. For more information about serverless applications,
107
+ * see Serverless Computing and Applications on the AWS website.</p><p>The AWS Serverless Application Repository is deeply integrated with the AWS Lambda console, so that developers of
108
+ * all levels can get started with serverless computing without needing to learn anything new. You can use category
109
+ * keywords to browse for applications such as web and mobile backends, data processing applications, or chatbots.
110
+ * You can also search for applications by name, publisher, or event source. To use an application, you simply choose it,
111
+ * configure any required fields, and deploy it with a few clicks. </p><p>You can also easily publish applications, sharing them publicly with the community at large, or privately
112
+ * within your team or across your organization. To publish a serverless application (or app), you can use the
113
+ * AWS Management Console, AWS Command Line Interface (AWS CLI), or AWS SDKs to upload the code. Along with the
114
+ * code, you upload a simple manifest file, also known as the AWS Serverless Application Model (AWS SAM) template.
115
+ * For more information about AWS SAM, see AWS Serverless Application Model (AWS SAM) on the AWS Labs
116
+ * GitHub repository.</p><p>The AWS Serverless Application Repository Developer Guide contains more information about the two developer
117
+ * experiences available:</p><ul>
118
+ * <li>
119
+ * <p>Consuming Applications – Browse for applications and view information about them, including
120
+ * source code and readme files. Also install, configure, and deploy applications of your choosing. </p>
121
+ * <p>Publishing Applications – Configure and upload applications to make them available to other
122
+ * developers, and publish new versions of applications. </p>
123
+ * </li>
124
+ * </ul>
125
+ */
126
+ export declare class ServerlessApplicationRepository extends ServerlessApplicationRepositoryClient implements ServerlessApplicationRepository {
127
+ }
@@ -56,7 +56,7 @@ import {
56
56
  UpdateApplicationCommandOutput,
57
57
  } from "./commands/UpdateApplicationCommand";
58
58
  import { ServerlessApplicationRepositoryClient } from "./ServerlessApplicationRepositoryClient";
59
- export declare class ServerlessApplicationRepository extends ServerlessApplicationRepositoryClient {
59
+ export interface ServerlessApplicationRepository {
60
60
  createApplication(
61
61
  args: CreateApplicationCommandInput,
62
62
  options?: __HttpHandlerOptions
@@ -240,3 +240,6 @@ export declare class ServerlessApplicationRepository extends ServerlessApplicati
240
240
  cb: (err: any, data?: UpdateApplicationCommandOutput) => void
241
241
  ): void;
242
242
  }
243
+ export declare class ServerlessApplicationRepository
244
+ extends ServerlessApplicationRepositoryClient
245
+ implements ServerlessApplicationRepository {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-serverlessapplicationrepository",
3
3
  "description": "AWS SDK for JavaScript Serverlessapplicationrepository Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",