@aws-sdk/client-serverlessapplicationrepository 3.899.0 → 3.906.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/index.js +1237 -1401
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1447 +1,1283 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "serverlessrepo",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
BadRequestException: () => BadRequestException,
|
|
25
|
-
Capability: () => Capability,
|
|
26
|
-
ConflictException: () => ConflictException,
|
|
27
|
-
CreateApplicationCommand: () => CreateApplicationCommand,
|
|
28
|
-
CreateApplicationVersionCommand: () => CreateApplicationVersionCommand,
|
|
29
|
-
CreateCloudFormationChangeSetCommand: () => CreateCloudFormationChangeSetCommand,
|
|
30
|
-
CreateCloudFormationTemplateCommand: () => CreateCloudFormationTemplateCommand,
|
|
31
|
-
DeleteApplicationCommand: () => DeleteApplicationCommand,
|
|
32
|
-
ForbiddenException: () => ForbiddenException,
|
|
33
|
-
GetApplicationCommand: () => GetApplicationCommand,
|
|
34
|
-
GetApplicationPolicyCommand: () => GetApplicationPolicyCommand,
|
|
35
|
-
GetCloudFormationTemplateCommand: () => GetCloudFormationTemplateCommand,
|
|
36
|
-
InternalServerErrorException: () => InternalServerErrorException,
|
|
37
|
-
ListApplicationDependenciesCommand: () => ListApplicationDependenciesCommand,
|
|
38
|
-
ListApplicationVersionsCommand: () => ListApplicationVersionsCommand,
|
|
39
|
-
ListApplicationsCommand: () => ListApplicationsCommand,
|
|
40
|
-
NotFoundException: () => NotFoundException,
|
|
41
|
-
PutApplicationPolicyCommand: () => PutApplicationPolicyCommand,
|
|
42
|
-
ServerlessApplicationRepository: () => ServerlessApplicationRepository,
|
|
43
|
-
ServerlessApplicationRepositoryClient: () => ServerlessApplicationRepositoryClient,
|
|
44
|
-
ServerlessApplicationRepositoryServiceException: () => ServerlessApplicationRepositoryServiceException,
|
|
45
|
-
Status: () => Status,
|
|
46
|
-
TooManyRequestsException: () => TooManyRequestsException,
|
|
47
|
-
UnshareApplicationCommand: () => UnshareApplicationCommand,
|
|
48
|
-
UpdateApplicationCommand: () => UpdateApplicationCommand,
|
|
49
|
-
__Client: () => import_smithy_client.Client,
|
|
50
|
-
paginateListApplicationDependencies: () => paginateListApplicationDependencies,
|
|
51
|
-
paginateListApplicationVersions: () => paginateListApplicationVersions,
|
|
52
|
-
paginateListApplications: () => paginateListApplications
|
|
53
|
-
});
|
|
54
|
-
module.exports = __toCommonJS(index_exports);
|
|
55
33
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
82
71
|
};
|
|
83
72
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
90
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
91
78
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
79
|
+
class ServerlessApplicationRepositoryClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultServerlessApplicationRepositoryHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
120
110
|
}
|
|
121
|
-
|
|
122
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
123
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
124
|
-
return {
|
|
125
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
126
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
127
|
-
credentials: config.credentials()
|
|
128
|
-
};
|
|
129
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
130
112
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
138
|
-
);
|
|
139
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
140
|
-
return Object.assign(
|
|
141
|
-
runtimeConfig,
|
|
142
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
143
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
144
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
145
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
146
|
-
);
|
|
147
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class ServerlessApplicationRepositoryServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, ServerlessApplicationRepositoryServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
148
119
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* The resolved configuration of ServerlessApplicationRepositoryClient class. This is resolved and normalized from the {@link ServerlessApplicationRepositoryClientConfig | constructor configuration interface}.
|
|
156
|
-
*/
|
|
157
|
-
config;
|
|
158
|
-
constructor(...[configuration]) {
|
|
159
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
160
|
-
super(_config_0);
|
|
161
|
-
this.initConfig = _config_0;
|
|
162
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
163
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
164
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
165
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
166
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
167
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
168
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
169
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
170
|
-
this.config = _config_8;
|
|
171
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
172
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
173
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
174
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
175
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
176
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
177
|
-
this.middlewareStack.use(
|
|
178
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
179
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultServerlessApplicationRepositoryHttpAuthSchemeParametersProvider,
|
|
180
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
181
|
-
"aws.auth#sigv4": config.credentials
|
|
182
|
-
}), "identityProviderConfigProvider")
|
|
183
|
-
})
|
|
184
|
-
);
|
|
185
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
189
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
190
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
191
|
-
*/
|
|
192
|
-
destroy() {
|
|
193
|
-
super.destroy();
|
|
194
|
-
}
|
|
120
|
+
const Capability = {
|
|
121
|
+
CAPABILITY_AUTO_EXPAND: "CAPABILITY_AUTO_EXPAND",
|
|
122
|
+
CAPABILITY_IAM: "CAPABILITY_IAM",
|
|
123
|
+
CAPABILITY_NAMED_IAM: "CAPABILITY_NAMED_IAM",
|
|
124
|
+
CAPABILITY_RESOURCE_POLICY: "CAPABILITY_RESOURCE_POLICY",
|
|
195
125
|
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
126
|
+
class BadRequestException extends ServerlessApplicationRepositoryServiceException {
|
|
127
|
+
name = "BadRequestException";
|
|
128
|
+
$fault = "client";
|
|
129
|
+
ErrorCode;
|
|
130
|
+
Message;
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "BadRequestException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts,
|
|
136
|
+
});
|
|
137
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
138
|
+
this.ErrorCode = opts.ErrorCode;
|
|
139
|
+
this.Message = opts.Message;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
class ConflictException extends ServerlessApplicationRepositoryServiceException {
|
|
143
|
+
name = "ConflictException";
|
|
144
|
+
$fault = "client";
|
|
145
|
+
ErrorCode;
|
|
146
|
+
Message;
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "ConflictException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
154
|
+
this.ErrorCode = opts.ErrorCode;
|
|
155
|
+
this.Message = opts.Message;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
class ForbiddenException extends ServerlessApplicationRepositoryServiceException {
|
|
159
|
+
name = "ForbiddenException";
|
|
160
|
+
$fault = "client";
|
|
161
|
+
ErrorCode;
|
|
162
|
+
Message;
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "ForbiddenException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
170
|
+
this.ErrorCode = opts.ErrorCode;
|
|
171
|
+
this.Message = opts.Message;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
class InternalServerErrorException extends ServerlessApplicationRepositoryServiceException {
|
|
175
|
+
name = "InternalServerErrorException";
|
|
176
|
+
$fault = "server";
|
|
177
|
+
ErrorCode;
|
|
178
|
+
Message;
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "InternalServerErrorException",
|
|
182
|
+
$fault: "server",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, InternalServerErrorException.prototype);
|
|
186
|
+
this.ErrorCode = opts.ErrorCode;
|
|
187
|
+
this.Message = opts.Message;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
class TooManyRequestsException extends ServerlessApplicationRepositoryServiceException {
|
|
191
|
+
name = "TooManyRequestsException";
|
|
192
|
+
$fault = "client";
|
|
193
|
+
ErrorCode;
|
|
194
|
+
Message;
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "TooManyRequestsException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
202
|
+
this.ErrorCode = opts.ErrorCode;
|
|
203
|
+
this.Message = opts.Message;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
const Status = {
|
|
207
|
+
ACTIVE: "ACTIVE",
|
|
208
|
+
EXPIRED: "EXPIRED",
|
|
209
|
+
PREPARING: "PREPARING",
|
|
223
210
|
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
211
|
+
class NotFoundException extends ServerlessApplicationRepositoryServiceException {
|
|
212
|
+
name = "NotFoundException";
|
|
213
|
+
$fault = "client";
|
|
214
|
+
ErrorCode;
|
|
215
|
+
Message;
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "NotFoundException",
|
|
219
|
+
$fault: "client",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
223
|
+
this.ErrorCode = opts.ErrorCode;
|
|
224
|
+
this.Message = opts.Message;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const se_CreateApplicationCommand = async (input, context) => {
|
|
229
|
+
const b = core.requestBuilder(input, context);
|
|
230
|
+
const headers = {
|
|
231
|
+
"content-type": "application/json",
|
|
232
|
+
};
|
|
233
|
+
b.bp("/applications");
|
|
234
|
+
let body;
|
|
235
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
236
|
+
author: [, , `Author`],
|
|
237
|
+
description: [, , `Description`],
|
|
238
|
+
homePageUrl: [, , `HomePageUrl`],
|
|
239
|
+
labels: [, (_) => smithyClient._json(_), `Labels`],
|
|
240
|
+
licenseBody: [, , `LicenseBody`],
|
|
241
|
+
licenseUrl: [, , `LicenseUrl`],
|
|
242
|
+
name: [, , `Name`],
|
|
243
|
+
readmeBody: [, , `ReadmeBody`],
|
|
244
|
+
readmeUrl: [, , `ReadmeUrl`],
|
|
245
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
246
|
+
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
247
|
+
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
248
|
+
spdxLicenseId: [, , `SpdxLicenseId`],
|
|
249
|
+
templateBody: [, , `TemplateBody`],
|
|
250
|
+
templateUrl: [, , `TemplateUrl`],
|
|
251
|
+
}));
|
|
252
|
+
b.m("POST").h(headers).b(body);
|
|
253
|
+
return b.build();
|
|
254
|
+
};
|
|
255
|
+
const se_CreateApplicationVersionCommand = async (input, context) => {
|
|
256
|
+
const b = core.requestBuilder(input, context);
|
|
257
|
+
const headers = {
|
|
258
|
+
"content-type": "application/json",
|
|
259
|
+
};
|
|
260
|
+
b.bp("/applications/{ApplicationId}/versions/{SemanticVersion}");
|
|
261
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
262
|
+
b.p("SemanticVersion", () => input.SemanticVersion, "{SemanticVersion}", false);
|
|
263
|
+
let body;
|
|
264
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
265
|
+
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
266
|
+
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
267
|
+
templateBody: [, , `TemplateBody`],
|
|
268
|
+
templateUrl: [, , `TemplateUrl`],
|
|
269
|
+
}));
|
|
270
|
+
b.m("PUT").h(headers).b(body);
|
|
271
|
+
return b.build();
|
|
272
|
+
};
|
|
273
|
+
const se_CreateCloudFormationChangeSetCommand = async (input, context) => {
|
|
274
|
+
const b = core.requestBuilder(input, context);
|
|
275
|
+
const headers = {
|
|
276
|
+
"content-type": "application/json",
|
|
277
|
+
};
|
|
278
|
+
b.bp("/applications/{ApplicationId}/changesets");
|
|
279
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
280
|
+
let body;
|
|
281
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
282
|
+
capabilities: [, (_) => smithyClient._json(_), `Capabilities`],
|
|
283
|
+
changeSetName: [, , `ChangeSetName`],
|
|
284
|
+
clientToken: [, , `ClientToken`],
|
|
285
|
+
description: [, , `Description`],
|
|
286
|
+
notificationArns: [, (_) => smithyClient._json(_), `NotificationArns`],
|
|
287
|
+
parameterOverrides: [, (_) => se___listOfParameterValue(_), `ParameterOverrides`],
|
|
288
|
+
resourceTypes: [, (_) => smithyClient._json(_), `ResourceTypes`],
|
|
289
|
+
rollbackConfiguration: [, (_) => se_RollbackConfiguration(_), `RollbackConfiguration`],
|
|
290
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
291
|
+
stackName: [, , `StackName`],
|
|
292
|
+
tags: [, (_) => se___listOfTag(_), `Tags`],
|
|
293
|
+
templateId: [, , `TemplateId`],
|
|
294
|
+
}));
|
|
295
|
+
b.m("POST").h(headers).b(body);
|
|
296
|
+
return b.build();
|
|
297
|
+
};
|
|
298
|
+
const se_CreateCloudFormationTemplateCommand = async (input, context) => {
|
|
299
|
+
const b = core.requestBuilder(input, context);
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/json",
|
|
302
|
+
};
|
|
303
|
+
b.bp("/applications/{ApplicationId}/templates");
|
|
304
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
305
|
+
let body;
|
|
306
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
307
|
+
semanticVersion: [, , `SemanticVersion`],
|
|
308
|
+
}));
|
|
309
|
+
b.m("POST").h(headers).b(body);
|
|
310
|
+
return b.build();
|
|
231
311
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* @internal
|
|
250
|
-
*/
|
|
251
|
-
constructor(opts) {
|
|
252
|
-
super({
|
|
253
|
-
name: "BadRequestException",
|
|
254
|
-
$fault: "client",
|
|
255
|
-
...opts
|
|
312
|
+
const se_DeleteApplicationCommand = async (input, context) => {
|
|
313
|
+
const b = core.requestBuilder(input, context);
|
|
314
|
+
const headers = {};
|
|
315
|
+
b.bp("/applications/{ApplicationId}");
|
|
316
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
317
|
+
let body;
|
|
318
|
+
b.m("DELETE").h(headers).b(body);
|
|
319
|
+
return b.build();
|
|
320
|
+
};
|
|
321
|
+
const se_GetApplicationCommand = async (input, context) => {
|
|
322
|
+
const b = core.requestBuilder(input, context);
|
|
323
|
+
const headers = {};
|
|
324
|
+
b.bp("/applications/{ApplicationId}");
|
|
325
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
326
|
+
const query = smithyClient.map({
|
|
327
|
+
[_sV]: [, input[_SV]],
|
|
256
328
|
});
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
329
|
+
let body;
|
|
330
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
331
|
+
return b.build();
|
|
332
|
+
};
|
|
333
|
+
const se_GetApplicationPolicyCommand = async (input, context) => {
|
|
334
|
+
const b = core.requestBuilder(input, context);
|
|
335
|
+
const headers = {};
|
|
336
|
+
b.bp("/applications/{ApplicationId}/policy");
|
|
337
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
338
|
+
let body;
|
|
339
|
+
b.m("GET").h(headers).b(body);
|
|
340
|
+
return b.build();
|
|
341
|
+
};
|
|
342
|
+
const se_GetCloudFormationTemplateCommand = async (input, context) => {
|
|
343
|
+
const b = core.requestBuilder(input, context);
|
|
344
|
+
const headers = {};
|
|
345
|
+
b.bp("/applications/{ApplicationId}/templates/{TemplateId}");
|
|
346
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
347
|
+
b.p("TemplateId", () => input.TemplateId, "{TemplateId}", false);
|
|
348
|
+
let body;
|
|
349
|
+
b.m("GET").h(headers).b(body);
|
|
350
|
+
return b.build();
|
|
261
351
|
};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
*/
|
|
272
|
-
ErrorCode;
|
|
273
|
-
/**
|
|
274
|
-
* <p>The resource already exists.</p>
|
|
275
|
-
* @public
|
|
276
|
-
*/
|
|
277
|
-
Message;
|
|
278
|
-
/**
|
|
279
|
-
* @internal
|
|
280
|
-
*/
|
|
281
|
-
constructor(opts) {
|
|
282
|
-
super({
|
|
283
|
-
name: "ConflictException",
|
|
284
|
-
$fault: "client",
|
|
285
|
-
...opts
|
|
352
|
+
const se_ListApplicationDependenciesCommand = async (input, context) => {
|
|
353
|
+
const b = core.requestBuilder(input, context);
|
|
354
|
+
const headers = {};
|
|
355
|
+
b.bp("/applications/{ApplicationId}/dependencies");
|
|
356
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
357
|
+
const query = smithyClient.map({
|
|
358
|
+
[_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
359
|
+
[_nT]: [, input[_NT]],
|
|
360
|
+
[_sV]: [, input[_SV]],
|
|
286
361
|
});
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
362
|
+
let body;
|
|
363
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
364
|
+
return b.build();
|
|
291
365
|
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
* <p>403</p>
|
|
300
|
-
* @public
|
|
301
|
-
*/
|
|
302
|
-
ErrorCode;
|
|
303
|
-
/**
|
|
304
|
-
* <p>The client is not authenticated.</p>
|
|
305
|
-
* @public
|
|
306
|
-
*/
|
|
307
|
-
Message;
|
|
308
|
-
/**
|
|
309
|
-
* @internal
|
|
310
|
-
*/
|
|
311
|
-
constructor(opts) {
|
|
312
|
-
super({
|
|
313
|
-
name: "ForbiddenException",
|
|
314
|
-
$fault: "client",
|
|
315
|
-
...opts
|
|
366
|
+
const se_ListApplicationsCommand = async (input, context) => {
|
|
367
|
+
const b = core.requestBuilder(input, context);
|
|
368
|
+
const headers = {};
|
|
369
|
+
b.bp("/applications");
|
|
370
|
+
const query = smithyClient.map({
|
|
371
|
+
[_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
372
|
+
[_nT]: [, input[_NT]],
|
|
316
373
|
});
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
374
|
+
let body;
|
|
375
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
376
|
+
return b.build();
|
|
321
377
|
};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
* @public
|
|
331
|
-
*/
|
|
332
|
-
ErrorCode;
|
|
333
|
-
/**
|
|
334
|
-
* <p>The AWS Serverless Application Repository service encountered an internal error.</p>
|
|
335
|
-
* @public
|
|
336
|
-
*/
|
|
337
|
-
Message;
|
|
338
|
-
/**
|
|
339
|
-
* @internal
|
|
340
|
-
*/
|
|
341
|
-
constructor(opts) {
|
|
342
|
-
super({
|
|
343
|
-
name: "InternalServerErrorException",
|
|
344
|
-
$fault: "server",
|
|
345
|
-
...opts
|
|
378
|
+
const se_ListApplicationVersionsCommand = async (input, context) => {
|
|
379
|
+
const b = core.requestBuilder(input, context);
|
|
380
|
+
const headers = {};
|
|
381
|
+
b.bp("/applications/{ApplicationId}/versions");
|
|
382
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
383
|
+
const query = smithyClient.map({
|
|
384
|
+
[_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
385
|
+
[_nT]: [, input[_NT]],
|
|
346
386
|
});
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
387
|
+
let body;
|
|
388
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
};
|
|
391
|
+
const se_PutApplicationPolicyCommand = async (input, context) => {
|
|
392
|
+
const b = core.requestBuilder(input, context);
|
|
393
|
+
const headers = {
|
|
394
|
+
"content-type": "application/json",
|
|
395
|
+
};
|
|
396
|
+
b.bp("/applications/{ApplicationId}/policy");
|
|
397
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
398
|
+
let body;
|
|
399
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
400
|
+
statements: [, (_) => se___listOfApplicationPolicyStatement(_), `Statements`],
|
|
401
|
+
}));
|
|
402
|
+
b.m("PUT").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
404
|
+
};
|
|
405
|
+
const se_UnshareApplicationCommand = async (input, context) => {
|
|
406
|
+
const b = core.requestBuilder(input, context);
|
|
407
|
+
const headers = {
|
|
408
|
+
"content-type": "application/json",
|
|
409
|
+
};
|
|
410
|
+
b.bp("/applications/{ApplicationId}/unshare");
|
|
411
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
414
|
+
organizationId: [, , `OrganizationId`],
|
|
415
|
+
}));
|
|
416
|
+
b.m("POST").h(headers).b(body);
|
|
417
|
+
return b.build();
|
|
418
|
+
};
|
|
419
|
+
const se_UpdateApplicationCommand = async (input, context) => {
|
|
420
|
+
const b = core.requestBuilder(input, context);
|
|
421
|
+
const headers = {
|
|
422
|
+
"content-type": "application/json",
|
|
423
|
+
};
|
|
424
|
+
b.bp("/applications/{ApplicationId}");
|
|
425
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
426
|
+
let body;
|
|
427
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
428
|
+
author: [, , `Author`],
|
|
429
|
+
description: [, , `Description`],
|
|
430
|
+
homePageUrl: [, , `HomePageUrl`],
|
|
431
|
+
labels: [, (_) => smithyClient._json(_), `Labels`],
|
|
432
|
+
readmeBody: [, , `ReadmeBody`],
|
|
433
|
+
readmeUrl: [, , `ReadmeUrl`],
|
|
434
|
+
}));
|
|
435
|
+
b.m("PATCH").h(headers).b(body);
|
|
436
|
+
return b.build();
|
|
351
437
|
};
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
$fault: "client",
|
|
375
|
-
...opts
|
|
438
|
+
const de_CreateApplicationCommand = async (output, context) => {
|
|
439
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
440
|
+
return de_CommandError(output, context);
|
|
441
|
+
}
|
|
442
|
+
const contents = smithyClient.map({
|
|
443
|
+
$metadata: deserializeMetadata(output),
|
|
444
|
+
});
|
|
445
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
446
|
+
const doc = smithyClient.take(data, {
|
|
447
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
448
|
+
Author: [, smithyClient.expectString, `author`],
|
|
449
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
450
|
+
Description: [, smithyClient.expectString, `description`],
|
|
451
|
+
HomePageUrl: [, smithyClient.expectString, `homePageUrl`],
|
|
452
|
+
IsVerifiedAuthor: [, smithyClient.expectBoolean, `isVerifiedAuthor`],
|
|
453
|
+
Labels: [, smithyClient._json, `labels`],
|
|
454
|
+
LicenseUrl: [, smithyClient.expectString, `licenseUrl`],
|
|
455
|
+
Name: [, smithyClient.expectString, `name`],
|
|
456
|
+
ReadmeUrl: [, smithyClient.expectString, `readmeUrl`],
|
|
457
|
+
SpdxLicenseId: [, smithyClient.expectString, `spdxLicenseId`],
|
|
458
|
+
VerifiedAuthorUrl: [, smithyClient.expectString, `verifiedAuthorUrl`],
|
|
459
|
+
Version: [, (_) => de_Version(_), `version`],
|
|
376
460
|
});
|
|
377
|
-
Object.
|
|
378
|
-
|
|
379
|
-
this.Message = opts.Message;
|
|
380
|
-
}
|
|
461
|
+
Object.assign(contents, doc);
|
|
462
|
+
return contents;
|
|
381
463
|
};
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
464
|
+
const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
465
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
466
|
+
return de_CommandError(output, context);
|
|
467
|
+
}
|
|
468
|
+
const contents = smithyClient.map({
|
|
469
|
+
$metadata: deserializeMetadata(output),
|
|
470
|
+
});
|
|
471
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
472
|
+
const doc = smithyClient.take(data, {
|
|
473
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
474
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
475
|
+
ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_), `parameterDefinitions`],
|
|
476
|
+
RequiredCapabilities: [, smithyClient._json, `requiredCapabilities`],
|
|
477
|
+
ResourcesSupported: [, smithyClient.expectBoolean, `resourcesSupported`],
|
|
478
|
+
SemanticVersion: [, smithyClient.expectString, `semanticVersion`],
|
|
479
|
+
SourceCodeArchiveUrl: [, smithyClient.expectString, `sourceCodeArchiveUrl`],
|
|
480
|
+
SourceCodeUrl: [, smithyClient.expectString, `sourceCodeUrl`],
|
|
481
|
+
TemplateUrl: [, smithyClient.expectString, `templateUrl`],
|
|
482
|
+
});
|
|
483
|
+
Object.assign(contents, doc);
|
|
484
|
+
return contents;
|
|
386
485
|
};
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* <p>404</p>
|
|
395
|
-
* @public
|
|
396
|
-
*/
|
|
397
|
-
ErrorCode;
|
|
398
|
-
/**
|
|
399
|
-
* <p>The resource (for example, an access policy statement) specified in the request doesn't exist.</p>
|
|
400
|
-
* @public
|
|
401
|
-
*/
|
|
402
|
-
Message;
|
|
403
|
-
/**
|
|
404
|
-
* @internal
|
|
405
|
-
*/
|
|
406
|
-
constructor(opts) {
|
|
407
|
-
super({
|
|
408
|
-
name: "NotFoundException",
|
|
409
|
-
$fault: "client",
|
|
410
|
-
...opts
|
|
486
|
+
const de_CreateCloudFormationChangeSetCommand = async (output, context) => {
|
|
487
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
488
|
+
return de_CommandError(output, context);
|
|
489
|
+
}
|
|
490
|
+
const contents = smithyClient.map({
|
|
491
|
+
$metadata: deserializeMetadata(output),
|
|
411
492
|
});
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
493
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
494
|
+
const doc = smithyClient.take(data, {
|
|
495
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
496
|
+
ChangeSetId: [, smithyClient.expectString, `changeSetId`],
|
|
497
|
+
SemanticVersion: [, smithyClient.expectString, `semanticVersion`],
|
|
498
|
+
StackId: [, smithyClient.expectString, `stackId`],
|
|
499
|
+
});
|
|
500
|
+
Object.assign(contents, doc);
|
|
501
|
+
return contents;
|
|
416
502
|
};
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
readmeUrl: [, , `ReadmeUrl`],
|
|
437
|
-
semanticVersion: [, , `SemanticVersion`],
|
|
438
|
-
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
439
|
-
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
440
|
-
spdxLicenseId: [, , `SpdxLicenseId`],
|
|
441
|
-
templateBody: [, , `TemplateBody`],
|
|
442
|
-
templateUrl: [, , `TemplateUrl`]
|
|
443
|
-
})
|
|
444
|
-
);
|
|
445
|
-
b.m("POST").h(headers).b(body);
|
|
446
|
-
return b.build();
|
|
447
|
-
}, "se_CreateApplicationCommand");
|
|
448
|
-
var se_CreateApplicationVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
449
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
450
|
-
const headers = {
|
|
451
|
-
"content-type": "application/json"
|
|
452
|
-
};
|
|
453
|
-
b.bp("/applications/{ApplicationId}/versions/{SemanticVersion}");
|
|
454
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
455
|
-
b.p("SemanticVersion", () => input.SemanticVersion, "{SemanticVersion}", false);
|
|
456
|
-
let body;
|
|
457
|
-
body = JSON.stringify(
|
|
458
|
-
(0, import_smithy_client.take)(input, {
|
|
459
|
-
sourceCodeArchiveUrl: [, , `SourceCodeArchiveUrl`],
|
|
460
|
-
sourceCodeUrl: [, , `SourceCodeUrl`],
|
|
461
|
-
templateBody: [, , `TemplateBody`],
|
|
462
|
-
templateUrl: [, , `TemplateUrl`]
|
|
463
|
-
})
|
|
464
|
-
);
|
|
465
|
-
b.m("PUT").h(headers).b(body);
|
|
466
|
-
return b.build();
|
|
467
|
-
}, "se_CreateApplicationVersionCommand");
|
|
468
|
-
var se_CreateCloudFormationChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
469
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
470
|
-
const headers = {
|
|
471
|
-
"content-type": "application/json"
|
|
472
|
-
};
|
|
473
|
-
b.bp("/applications/{ApplicationId}/changesets");
|
|
474
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify(
|
|
477
|
-
(0, import_smithy_client.take)(input, {
|
|
478
|
-
capabilities: [, (_) => (0, import_smithy_client._json)(_), `Capabilities`],
|
|
479
|
-
changeSetName: [, , `ChangeSetName`],
|
|
480
|
-
clientToken: [, , `ClientToken`],
|
|
481
|
-
description: [, , `Description`],
|
|
482
|
-
notificationArns: [, (_) => (0, import_smithy_client._json)(_), `NotificationArns`],
|
|
483
|
-
parameterOverrides: [, (_) => se___listOfParameterValue(_, context), `ParameterOverrides`],
|
|
484
|
-
resourceTypes: [, (_) => (0, import_smithy_client._json)(_), `ResourceTypes`],
|
|
485
|
-
rollbackConfiguration: [, (_) => se_RollbackConfiguration(_, context), `RollbackConfiguration`],
|
|
486
|
-
semanticVersion: [, , `SemanticVersion`],
|
|
487
|
-
stackName: [, , `StackName`],
|
|
488
|
-
tags: [, (_) => se___listOfTag(_, context), `Tags`],
|
|
489
|
-
templateId: [, , `TemplateId`]
|
|
490
|
-
})
|
|
491
|
-
);
|
|
492
|
-
b.m("POST").h(headers).b(body);
|
|
493
|
-
return b.build();
|
|
494
|
-
}, "se_CreateCloudFormationChangeSetCommand");
|
|
495
|
-
var se_CreateCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
496
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
497
|
-
const headers = {
|
|
498
|
-
"content-type": "application/json"
|
|
499
|
-
};
|
|
500
|
-
b.bp("/applications/{ApplicationId}/templates");
|
|
501
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
502
|
-
let body;
|
|
503
|
-
body = JSON.stringify(
|
|
504
|
-
(0, import_smithy_client.take)(input, {
|
|
505
|
-
semanticVersion: [, , `SemanticVersion`]
|
|
506
|
-
})
|
|
507
|
-
);
|
|
508
|
-
b.m("POST").h(headers).b(body);
|
|
509
|
-
return b.build();
|
|
510
|
-
}, "se_CreateCloudFormationTemplateCommand");
|
|
511
|
-
var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
512
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
513
|
-
const headers = {};
|
|
514
|
-
b.bp("/applications/{ApplicationId}");
|
|
515
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
516
|
-
let body;
|
|
517
|
-
b.m("DELETE").h(headers).b(body);
|
|
518
|
-
return b.build();
|
|
519
|
-
}, "se_DeleteApplicationCommand");
|
|
520
|
-
var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
522
|
-
const headers = {};
|
|
523
|
-
b.bp("/applications/{ApplicationId}");
|
|
524
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
525
|
-
const query = (0, import_smithy_client.map)({
|
|
526
|
-
[_sV]: [, input[_SV]]
|
|
527
|
-
});
|
|
528
|
-
let body;
|
|
529
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
530
|
-
return b.build();
|
|
531
|
-
}, "se_GetApplicationCommand");
|
|
532
|
-
var se_GetApplicationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
533
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
534
|
-
const headers = {};
|
|
535
|
-
b.bp("/applications/{ApplicationId}/policy");
|
|
536
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
537
|
-
let body;
|
|
538
|
-
b.m("GET").h(headers).b(body);
|
|
539
|
-
return b.build();
|
|
540
|
-
}, "se_GetApplicationPolicyCommand");
|
|
541
|
-
var se_GetCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
542
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
543
|
-
const headers = {};
|
|
544
|
-
b.bp("/applications/{ApplicationId}/templates/{TemplateId}");
|
|
545
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
546
|
-
b.p("TemplateId", () => input.TemplateId, "{TemplateId}", false);
|
|
547
|
-
let body;
|
|
548
|
-
b.m("GET").h(headers).b(body);
|
|
549
|
-
return b.build();
|
|
550
|
-
}, "se_GetCloudFormationTemplateCommand");
|
|
551
|
-
var se_ListApplicationDependenciesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
552
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
553
|
-
const headers = {};
|
|
554
|
-
b.bp("/applications/{ApplicationId}/dependencies");
|
|
555
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
556
|
-
const query = (0, import_smithy_client.map)({
|
|
557
|
-
[_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
558
|
-
[_nT]: [, input[_NT]],
|
|
559
|
-
[_sV]: [, input[_SV]]
|
|
560
|
-
});
|
|
561
|
-
let body;
|
|
562
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
563
|
-
return b.build();
|
|
564
|
-
}, "se_ListApplicationDependenciesCommand");
|
|
565
|
-
var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
566
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
567
|
-
const headers = {};
|
|
568
|
-
b.bp("/applications");
|
|
569
|
-
const query = (0, import_smithy_client.map)({
|
|
570
|
-
[_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
571
|
-
[_nT]: [, input[_NT]]
|
|
572
|
-
});
|
|
573
|
-
let body;
|
|
574
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
575
|
-
return b.build();
|
|
576
|
-
}, "se_ListApplicationsCommand");
|
|
577
|
-
var se_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
578
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
579
|
-
const headers = {};
|
|
580
|
-
b.bp("/applications/{ApplicationId}/versions");
|
|
581
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
582
|
-
const query = (0, import_smithy_client.map)({
|
|
583
|
-
[_mI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
584
|
-
[_nT]: [, input[_NT]]
|
|
585
|
-
});
|
|
586
|
-
let body;
|
|
587
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
588
|
-
return b.build();
|
|
589
|
-
}, "se_ListApplicationVersionsCommand");
|
|
590
|
-
var se_PutApplicationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
591
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
592
|
-
const headers = {
|
|
593
|
-
"content-type": "application/json"
|
|
594
|
-
};
|
|
595
|
-
b.bp("/applications/{ApplicationId}/policy");
|
|
596
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
597
|
-
let body;
|
|
598
|
-
body = JSON.stringify(
|
|
599
|
-
(0, import_smithy_client.take)(input, {
|
|
600
|
-
statements: [, (_) => se___listOfApplicationPolicyStatement(_, context), `Statements`]
|
|
601
|
-
})
|
|
602
|
-
);
|
|
603
|
-
b.m("PUT").h(headers).b(body);
|
|
604
|
-
return b.build();
|
|
605
|
-
}, "se_PutApplicationPolicyCommand");
|
|
606
|
-
var se_UnshareApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
607
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
608
|
-
const headers = {
|
|
609
|
-
"content-type": "application/json"
|
|
610
|
-
};
|
|
611
|
-
b.bp("/applications/{ApplicationId}/unshare");
|
|
612
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
613
|
-
let body;
|
|
614
|
-
body = JSON.stringify(
|
|
615
|
-
(0, import_smithy_client.take)(input, {
|
|
616
|
-
organizationId: [, , `OrganizationId`]
|
|
617
|
-
})
|
|
618
|
-
);
|
|
619
|
-
b.m("POST").h(headers).b(body);
|
|
620
|
-
return b.build();
|
|
621
|
-
}, "se_UnshareApplicationCommand");
|
|
622
|
-
var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
623
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
624
|
-
const headers = {
|
|
625
|
-
"content-type": "application/json"
|
|
626
|
-
};
|
|
627
|
-
b.bp("/applications/{ApplicationId}");
|
|
628
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
629
|
-
let body;
|
|
630
|
-
body = JSON.stringify(
|
|
631
|
-
(0, import_smithy_client.take)(input, {
|
|
632
|
-
author: [, , `Author`],
|
|
633
|
-
description: [, , `Description`],
|
|
634
|
-
homePageUrl: [, , `HomePageUrl`],
|
|
635
|
-
labels: [, (_) => (0, import_smithy_client._json)(_), `Labels`],
|
|
636
|
-
readmeBody: [, , `ReadmeBody`],
|
|
637
|
-
readmeUrl: [, , `ReadmeUrl`]
|
|
638
|
-
})
|
|
639
|
-
);
|
|
640
|
-
b.m("PATCH").h(headers).b(body);
|
|
641
|
-
return b.build();
|
|
642
|
-
}, "se_UpdateApplicationCommand");
|
|
643
|
-
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
644
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
645
|
-
return de_CommandError(output, context);
|
|
646
|
-
}
|
|
647
|
-
const contents = (0, import_smithy_client.map)({
|
|
648
|
-
$metadata: deserializeMetadata(output)
|
|
649
|
-
});
|
|
650
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
651
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
652
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
653
|
-
Author: [, import_smithy_client.expectString, `author`],
|
|
654
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
655
|
-
Description: [, import_smithy_client.expectString, `description`],
|
|
656
|
-
HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
|
|
657
|
-
IsVerifiedAuthor: [, import_smithy_client.expectBoolean, `isVerifiedAuthor`],
|
|
658
|
-
Labels: [, import_smithy_client._json, `labels`],
|
|
659
|
-
LicenseUrl: [, import_smithy_client.expectString, `licenseUrl`],
|
|
660
|
-
Name: [, import_smithy_client.expectString, `name`],
|
|
661
|
-
ReadmeUrl: [, import_smithy_client.expectString, `readmeUrl`],
|
|
662
|
-
SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`],
|
|
663
|
-
VerifiedAuthorUrl: [, import_smithy_client.expectString, `verifiedAuthorUrl`],
|
|
664
|
-
Version: [, (_) => de_Version(_, context), `version`]
|
|
665
|
-
});
|
|
666
|
-
Object.assign(contents, doc);
|
|
667
|
-
return contents;
|
|
668
|
-
}, "de_CreateApplicationCommand");
|
|
669
|
-
var de_CreateApplicationVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
670
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
671
|
-
return de_CommandError(output, context);
|
|
672
|
-
}
|
|
673
|
-
const contents = (0, import_smithy_client.map)({
|
|
674
|
-
$metadata: deserializeMetadata(output)
|
|
675
|
-
});
|
|
676
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
677
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
678
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
679
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
680
|
-
ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_, context), `parameterDefinitions`],
|
|
681
|
-
RequiredCapabilities: [, import_smithy_client._json, `requiredCapabilities`],
|
|
682
|
-
ResourcesSupported: [, import_smithy_client.expectBoolean, `resourcesSupported`],
|
|
683
|
-
SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
|
|
684
|
-
SourceCodeArchiveUrl: [, import_smithy_client.expectString, `sourceCodeArchiveUrl`],
|
|
685
|
-
SourceCodeUrl: [, import_smithy_client.expectString, `sourceCodeUrl`],
|
|
686
|
-
TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
|
|
687
|
-
});
|
|
688
|
-
Object.assign(contents, doc);
|
|
689
|
-
return contents;
|
|
690
|
-
}, "de_CreateApplicationVersionCommand");
|
|
691
|
-
var de_CreateCloudFormationChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
692
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
693
|
-
return de_CommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const contents = (0, import_smithy_client.map)({
|
|
696
|
-
$metadata: deserializeMetadata(output)
|
|
697
|
-
});
|
|
698
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
699
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
700
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
701
|
-
ChangeSetId: [, import_smithy_client.expectString, `changeSetId`],
|
|
702
|
-
SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
|
|
703
|
-
StackId: [, import_smithy_client.expectString, `stackId`]
|
|
704
|
-
});
|
|
705
|
-
Object.assign(contents, doc);
|
|
706
|
-
return contents;
|
|
707
|
-
}, "de_CreateCloudFormationChangeSetCommand");
|
|
708
|
-
var de_CreateCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
709
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
710
|
-
return de_CommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const contents = (0, import_smithy_client.map)({
|
|
713
|
-
$metadata: deserializeMetadata(output)
|
|
714
|
-
});
|
|
715
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
716
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
717
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
718
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
719
|
-
ExpirationTime: [, import_smithy_client.expectString, `expirationTime`],
|
|
720
|
-
SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
|
|
721
|
-
Status: [, import_smithy_client.expectString, `status`],
|
|
722
|
-
TemplateId: [, import_smithy_client.expectString, `templateId`],
|
|
723
|
-
TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
|
|
724
|
-
});
|
|
725
|
-
Object.assign(contents, doc);
|
|
726
|
-
return contents;
|
|
727
|
-
}, "de_CreateCloudFormationTemplateCommand");
|
|
728
|
-
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
729
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
730
|
-
return de_CommandError(output, context);
|
|
731
|
-
}
|
|
732
|
-
const contents = (0, import_smithy_client.map)({
|
|
733
|
-
$metadata: deserializeMetadata(output)
|
|
734
|
-
});
|
|
735
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
736
|
-
return contents;
|
|
737
|
-
}, "de_DeleteApplicationCommand");
|
|
738
|
-
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
739
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
-
return de_CommandError(output, context);
|
|
741
|
-
}
|
|
742
|
-
const contents = (0, import_smithy_client.map)({
|
|
743
|
-
$metadata: deserializeMetadata(output)
|
|
744
|
-
});
|
|
745
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
746
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
747
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
748
|
-
Author: [, import_smithy_client.expectString, `author`],
|
|
749
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
750
|
-
Description: [, import_smithy_client.expectString, `description`],
|
|
751
|
-
HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
|
|
752
|
-
IsVerifiedAuthor: [, import_smithy_client.expectBoolean, `isVerifiedAuthor`],
|
|
753
|
-
Labels: [, import_smithy_client._json, `labels`],
|
|
754
|
-
LicenseUrl: [, import_smithy_client.expectString, `licenseUrl`],
|
|
755
|
-
Name: [, import_smithy_client.expectString, `name`],
|
|
756
|
-
ReadmeUrl: [, import_smithy_client.expectString, `readmeUrl`],
|
|
757
|
-
SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`],
|
|
758
|
-
VerifiedAuthorUrl: [, import_smithy_client.expectString, `verifiedAuthorUrl`],
|
|
759
|
-
Version: [, (_) => de_Version(_, context), `version`]
|
|
760
|
-
});
|
|
761
|
-
Object.assign(contents, doc);
|
|
762
|
-
return contents;
|
|
763
|
-
}, "de_GetApplicationCommand");
|
|
764
|
-
var de_GetApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return de_CommandError(output, context);
|
|
767
|
-
}
|
|
768
|
-
const contents = (0, import_smithy_client.map)({
|
|
769
|
-
$metadata: deserializeMetadata(output)
|
|
770
|
-
});
|
|
771
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
772
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
773
|
-
Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`]
|
|
774
|
-
});
|
|
775
|
-
Object.assign(contents, doc);
|
|
776
|
-
return contents;
|
|
777
|
-
}, "de_GetApplicationPolicyCommand");
|
|
778
|
-
var de_GetCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
779
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return de_CommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const contents = (0, import_smithy_client.map)({
|
|
783
|
-
$metadata: deserializeMetadata(output)
|
|
784
|
-
});
|
|
785
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
786
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
787
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
788
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
789
|
-
ExpirationTime: [, import_smithy_client.expectString, `expirationTime`],
|
|
790
|
-
SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
|
|
791
|
-
Status: [, import_smithy_client.expectString, `status`],
|
|
792
|
-
TemplateId: [, import_smithy_client.expectString, `templateId`],
|
|
793
|
-
TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
|
|
794
|
-
});
|
|
795
|
-
Object.assign(contents, doc);
|
|
796
|
-
return contents;
|
|
797
|
-
}, "de_GetCloudFormationTemplateCommand");
|
|
798
|
-
var de_ListApplicationDependenciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
799
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
800
|
-
return de_CommandError(output, context);
|
|
801
|
-
}
|
|
802
|
-
const contents = (0, import_smithy_client.map)({
|
|
803
|
-
$metadata: deserializeMetadata(output)
|
|
804
|
-
});
|
|
805
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
806
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
807
|
-
Dependencies: [, (_) => de___listOfApplicationDependencySummary(_, context), `dependencies`],
|
|
808
|
-
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
809
|
-
});
|
|
810
|
-
Object.assign(contents, doc);
|
|
811
|
-
return contents;
|
|
812
|
-
}, "de_ListApplicationDependenciesCommand");
|
|
813
|
-
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
|
-
return de_CommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const contents = (0, import_smithy_client.map)({
|
|
818
|
-
$metadata: deserializeMetadata(output)
|
|
819
|
-
});
|
|
820
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
821
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
822
|
-
Applications: [, (_) => de___listOfApplicationSummary(_, context), `applications`],
|
|
823
|
-
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
824
|
-
});
|
|
825
|
-
Object.assign(contents, doc);
|
|
826
|
-
return contents;
|
|
827
|
-
}, "de_ListApplicationsCommand");
|
|
828
|
-
var de_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
829
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
-
return de_CommandError(output, context);
|
|
831
|
-
}
|
|
832
|
-
const contents = (0, import_smithy_client.map)({
|
|
833
|
-
$metadata: deserializeMetadata(output)
|
|
834
|
-
});
|
|
835
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
836
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
837
|
-
NextToken: [, import_smithy_client.expectString, `nextToken`],
|
|
838
|
-
Versions: [, (_) => de___listOfVersionSummary(_, context), `versions`]
|
|
839
|
-
});
|
|
840
|
-
Object.assign(contents, doc);
|
|
841
|
-
return contents;
|
|
842
|
-
}, "de_ListApplicationVersionsCommand");
|
|
843
|
-
var de_PutApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
845
|
-
return de_CommandError(output, context);
|
|
846
|
-
}
|
|
847
|
-
const contents = (0, import_smithy_client.map)({
|
|
848
|
-
$metadata: deserializeMetadata(output)
|
|
849
|
-
});
|
|
850
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
851
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
852
|
-
Statements: [, (_) => de___listOfApplicationPolicyStatement(_, context), `statements`]
|
|
853
|
-
});
|
|
854
|
-
Object.assign(contents, doc);
|
|
855
|
-
return contents;
|
|
856
|
-
}, "de_PutApplicationPolicyCommand");
|
|
857
|
-
var de_UnshareApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
859
|
-
return de_CommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const contents = (0, import_smithy_client.map)({
|
|
862
|
-
$metadata: deserializeMetadata(output)
|
|
863
|
-
});
|
|
864
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
865
|
-
return contents;
|
|
866
|
-
}, "de_UnshareApplicationCommand");
|
|
867
|
-
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
868
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
869
|
-
return de_CommandError(output, context);
|
|
870
|
-
}
|
|
871
|
-
const contents = (0, import_smithy_client.map)({
|
|
872
|
-
$metadata: deserializeMetadata(output)
|
|
873
|
-
});
|
|
874
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
875
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
876
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
877
|
-
Author: [, import_smithy_client.expectString, `author`],
|
|
878
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
879
|
-
Description: [, import_smithy_client.expectString, `description`],
|
|
880
|
-
HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
|
|
881
|
-
IsVerifiedAuthor: [, import_smithy_client.expectBoolean, `isVerifiedAuthor`],
|
|
882
|
-
Labels: [, import_smithy_client._json, `labels`],
|
|
883
|
-
LicenseUrl: [, import_smithy_client.expectString, `licenseUrl`],
|
|
884
|
-
Name: [, import_smithy_client.expectString, `name`],
|
|
885
|
-
ReadmeUrl: [, import_smithy_client.expectString, `readmeUrl`],
|
|
886
|
-
SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`],
|
|
887
|
-
VerifiedAuthorUrl: [, import_smithy_client.expectString, `verifiedAuthorUrl`],
|
|
888
|
-
Version: [, (_) => de_Version(_, context), `version`]
|
|
889
|
-
});
|
|
890
|
-
Object.assign(contents, doc);
|
|
891
|
-
return contents;
|
|
892
|
-
}, "de_UpdateApplicationCommand");
|
|
893
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
894
|
-
const parsedOutput = {
|
|
895
|
-
...output,
|
|
896
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
897
|
-
};
|
|
898
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
899
|
-
switch (errorCode) {
|
|
900
|
-
case "BadRequestException":
|
|
901
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
902
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ConflictException":
|
|
904
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
905
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
906
|
-
case "ForbiddenException":
|
|
907
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
908
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
909
|
-
case "InternalServerErrorException":
|
|
910
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
911
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
912
|
-
case "TooManyRequestsException":
|
|
913
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
914
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
915
|
-
case "NotFoundException":
|
|
916
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
917
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
}, "de_CommandError");
|
|
927
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(ServerlessApplicationRepositoryServiceException);
|
|
928
|
-
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
929
|
-
const contents = (0, import_smithy_client.map)({});
|
|
930
|
-
const data = parsedOutput.body;
|
|
931
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
932
|
-
ErrorCode: [, import_smithy_client.expectString, `errorCode`],
|
|
933
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
934
|
-
});
|
|
935
|
-
Object.assign(contents, doc);
|
|
936
|
-
const exception = new BadRequestException({
|
|
937
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
938
|
-
...contents
|
|
939
|
-
});
|
|
940
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
941
|
-
}, "de_BadRequestExceptionRes");
|
|
942
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
943
|
-
const contents = (0, import_smithy_client.map)({});
|
|
944
|
-
const data = parsedOutput.body;
|
|
945
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
946
|
-
ErrorCode: [, import_smithy_client.expectString, `errorCode`],
|
|
947
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
948
|
-
});
|
|
949
|
-
Object.assign(contents, doc);
|
|
950
|
-
const exception = new ConflictException({
|
|
951
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
952
|
-
...contents
|
|
953
|
-
});
|
|
954
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
955
|
-
}, "de_ConflictExceptionRes");
|
|
956
|
-
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
957
|
-
const contents = (0, import_smithy_client.map)({});
|
|
958
|
-
const data = parsedOutput.body;
|
|
959
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
960
|
-
ErrorCode: [, import_smithy_client.expectString, `errorCode`],
|
|
961
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
962
|
-
});
|
|
963
|
-
Object.assign(contents, doc);
|
|
964
|
-
const exception = new ForbiddenException({
|
|
965
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
966
|
-
...contents
|
|
967
|
-
});
|
|
968
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
969
|
-
}, "de_ForbiddenExceptionRes");
|
|
970
|
-
var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
971
|
-
const contents = (0, import_smithy_client.map)({});
|
|
972
|
-
const data = parsedOutput.body;
|
|
973
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
974
|
-
ErrorCode: [, import_smithy_client.expectString, `errorCode`],
|
|
975
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
const exception = new InternalServerErrorException({
|
|
979
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
980
|
-
...contents
|
|
981
|
-
});
|
|
982
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
983
|
-
}, "de_InternalServerErrorExceptionRes");
|
|
984
|
-
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
985
|
-
const contents = (0, import_smithy_client.map)({});
|
|
986
|
-
const data = parsedOutput.body;
|
|
987
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
988
|
-
ErrorCode: [, import_smithy_client.expectString, `errorCode`],
|
|
989
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
990
|
-
});
|
|
991
|
-
Object.assign(contents, doc);
|
|
992
|
-
const exception = new NotFoundException({
|
|
993
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
994
|
-
...contents
|
|
995
|
-
});
|
|
996
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
997
|
-
}, "de_NotFoundExceptionRes");
|
|
998
|
-
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
999
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1000
|
-
const data = parsedOutput.body;
|
|
1001
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1002
|
-
ErrorCode: [, import_smithy_client.expectString, `errorCode`],
|
|
1003
|
-
Message: [, import_smithy_client.expectString, `message`]
|
|
1004
|
-
});
|
|
1005
|
-
Object.assign(contents, doc);
|
|
1006
|
-
const exception = new TooManyRequestsException({
|
|
1007
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1008
|
-
...contents
|
|
1009
|
-
});
|
|
1010
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1011
|
-
}, "de_TooManyRequestsExceptionRes");
|
|
1012
|
-
var se___listOfApplicationPolicyStatement = /* @__PURE__ */ __name((input, context) => {
|
|
1013
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1014
|
-
return se_ApplicationPolicyStatement(entry, context);
|
|
1015
|
-
});
|
|
1016
|
-
}, "se___listOfApplicationPolicyStatement");
|
|
1017
|
-
var se___listOfParameterValue = /* @__PURE__ */ __name((input, context) => {
|
|
1018
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1019
|
-
return se_ParameterValue(entry, context);
|
|
1020
|
-
});
|
|
1021
|
-
}, "se___listOfParameterValue");
|
|
1022
|
-
var se___listOfRollbackTrigger = /* @__PURE__ */ __name((input, context) => {
|
|
1023
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1024
|
-
return se_RollbackTrigger(entry, context);
|
|
1025
|
-
});
|
|
1026
|
-
}, "se___listOfRollbackTrigger");
|
|
1027
|
-
var se___listOfTag = /* @__PURE__ */ __name((input, context) => {
|
|
1028
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1029
|
-
return se_Tag(entry, context);
|
|
1030
|
-
});
|
|
1031
|
-
}, "se___listOfTag");
|
|
1032
|
-
var se_ApplicationPolicyStatement = /* @__PURE__ */ __name((input, context) => {
|
|
1033
|
-
return (0, import_smithy_client.take)(input, {
|
|
1034
|
-
actions: [, import_smithy_client._json, `Actions`],
|
|
1035
|
-
principalOrgIDs: [, import_smithy_client._json, `PrincipalOrgIDs`],
|
|
1036
|
-
principals: [, import_smithy_client._json, `Principals`],
|
|
1037
|
-
statementId: [, , `StatementId`]
|
|
1038
|
-
});
|
|
1039
|
-
}, "se_ApplicationPolicyStatement");
|
|
1040
|
-
var se_ParameterValue = /* @__PURE__ */ __name((input, context) => {
|
|
1041
|
-
return (0, import_smithy_client.take)(input, {
|
|
1042
|
-
name: [, , `Name`],
|
|
1043
|
-
value: [, , `Value`]
|
|
1044
|
-
});
|
|
1045
|
-
}, "se_ParameterValue");
|
|
1046
|
-
var se_RollbackConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1047
|
-
return (0, import_smithy_client.take)(input, {
|
|
1048
|
-
monitoringTimeInMinutes: [, , `MonitoringTimeInMinutes`],
|
|
1049
|
-
rollbackTriggers: [, (_) => se___listOfRollbackTrigger(_, context), `RollbackTriggers`]
|
|
1050
|
-
});
|
|
1051
|
-
}, "se_RollbackConfiguration");
|
|
1052
|
-
var se_RollbackTrigger = /* @__PURE__ */ __name((input, context) => {
|
|
1053
|
-
return (0, import_smithy_client.take)(input, {
|
|
1054
|
-
arn: [, , `Arn`],
|
|
1055
|
-
type: [, , `Type`]
|
|
1056
|
-
});
|
|
1057
|
-
}, "se_RollbackTrigger");
|
|
1058
|
-
var se_Tag = /* @__PURE__ */ __name((input, context) => {
|
|
1059
|
-
return (0, import_smithy_client.take)(input, {
|
|
1060
|
-
key: [, , `Key`],
|
|
1061
|
-
value: [, , `Value`]
|
|
1062
|
-
});
|
|
1063
|
-
}, "se_Tag");
|
|
1064
|
-
var de___listOfApplicationDependencySummary = /* @__PURE__ */ __name((output, context) => {
|
|
1065
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1066
|
-
return de_ApplicationDependencySummary(entry, context);
|
|
1067
|
-
});
|
|
1068
|
-
return retVal;
|
|
1069
|
-
}, "de___listOfApplicationDependencySummary");
|
|
1070
|
-
var de___listOfApplicationPolicyStatement = /* @__PURE__ */ __name((output, context) => {
|
|
1071
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1072
|
-
return de_ApplicationPolicyStatement(entry, context);
|
|
1073
|
-
});
|
|
1074
|
-
return retVal;
|
|
1075
|
-
}, "de___listOfApplicationPolicyStatement");
|
|
1076
|
-
var de___listOfApplicationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1077
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1078
|
-
return de_ApplicationSummary(entry, context);
|
|
1079
|
-
});
|
|
1080
|
-
return retVal;
|
|
1081
|
-
}, "de___listOfApplicationSummary");
|
|
1082
|
-
var de___listOfParameterDefinition = /* @__PURE__ */ __name((output, context) => {
|
|
1083
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1084
|
-
return de_ParameterDefinition(entry, context);
|
|
1085
|
-
});
|
|
1086
|
-
return retVal;
|
|
1087
|
-
}, "de___listOfParameterDefinition");
|
|
1088
|
-
var de___listOfVersionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1089
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1090
|
-
return de_VersionSummary(entry, context);
|
|
1091
|
-
});
|
|
1092
|
-
return retVal;
|
|
1093
|
-
}, "de___listOfVersionSummary");
|
|
1094
|
-
var de_ApplicationDependencySummary = /* @__PURE__ */ __name((output, context) => {
|
|
1095
|
-
return (0, import_smithy_client.take)(output, {
|
|
1096
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
1097
|
-
SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`]
|
|
1098
|
-
});
|
|
1099
|
-
}, "de_ApplicationDependencySummary");
|
|
1100
|
-
var de_ApplicationPolicyStatement = /* @__PURE__ */ __name((output, context) => {
|
|
1101
|
-
return (0, import_smithy_client.take)(output, {
|
|
1102
|
-
Actions: [, import_smithy_client._json, `actions`],
|
|
1103
|
-
PrincipalOrgIDs: [, import_smithy_client._json, `principalOrgIDs`],
|
|
1104
|
-
Principals: [, import_smithy_client._json, `principals`],
|
|
1105
|
-
StatementId: [, import_smithy_client.expectString, `statementId`]
|
|
1106
|
-
});
|
|
1107
|
-
}, "de_ApplicationPolicyStatement");
|
|
1108
|
-
var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1109
|
-
return (0, import_smithy_client.take)(output, {
|
|
1110
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
1111
|
-
Author: [, import_smithy_client.expectString, `author`],
|
|
1112
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
1113
|
-
Description: [, import_smithy_client.expectString, `description`],
|
|
1114
|
-
HomePageUrl: [, import_smithy_client.expectString, `homePageUrl`],
|
|
1115
|
-
Labels: [, import_smithy_client._json, `labels`],
|
|
1116
|
-
Name: [, import_smithy_client.expectString, `name`],
|
|
1117
|
-
SpdxLicenseId: [, import_smithy_client.expectString, `spdxLicenseId`]
|
|
1118
|
-
});
|
|
1119
|
-
}, "de_ApplicationSummary");
|
|
1120
|
-
var de_ParameterDefinition = /* @__PURE__ */ __name((output, context) => {
|
|
1121
|
-
return (0, import_smithy_client.take)(output, {
|
|
1122
|
-
AllowedPattern: [, import_smithy_client.expectString, `allowedPattern`],
|
|
1123
|
-
AllowedValues: [, import_smithy_client._json, `allowedValues`],
|
|
1124
|
-
ConstraintDescription: [, import_smithy_client.expectString, `constraintDescription`],
|
|
1125
|
-
DefaultValue: [, import_smithy_client.expectString, `defaultValue`],
|
|
1126
|
-
Description: [, import_smithy_client.expectString, `description`],
|
|
1127
|
-
MaxLength: [, import_smithy_client.expectInt32, `maxLength`],
|
|
1128
|
-
MaxValue: [, import_smithy_client.expectInt32, `maxValue`],
|
|
1129
|
-
MinLength: [, import_smithy_client.expectInt32, `minLength`],
|
|
1130
|
-
MinValue: [, import_smithy_client.expectInt32, `minValue`],
|
|
1131
|
-
Name: [, import_smithy_client.expectString, `name`],
|
|
1132
|
-
NoEcho: [, import_smithy_client.expectBoolean, `noEcho`],
|
|
1133
|
-
ReferencedByResources: [, import_smithy_client._json, `referencedByResources`],
|
|
1134
|
-
Type: [, import_smithy_client.expectString, `type`]
|
|
1135
|
-
});
|
|
1136
|
-
}, "de_ParameterDefinition");
|
|
1137
|
-
var de_Version = /* @__PURE__ */ __name((output, context) => {
|
|
1138
|
-
return (0, import_smithy_client.take)(output, {
|
|
1139
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
1140
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
1141
|
-
ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_, context), `parameterDefinitions`],
|
|
1142
|
-
RequiredCapabilities: [, import_smithy_client._json, `requiredCapabilities`],
|
|
1143
|
-
ResourcesSupported: [, import_smithy_client.expectBoolean, `resourcesSupported`],
|
|
1144
|
-
SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
|
|
1145
|
-
SourceCodeArchiveUrl: [, import_smithy_client.expectString, `sourceCodeArchiveUrl`],
|
|
1146
|
-
SourceCodeUrl: [, import_smithy_client.expectString, `sourceCodeUrl`],
|
|
1147
|
-
TemplateUrl: [, import_smithy_client.expectString, `templateUrl`]
|
|
1148
|
-
});
|
|
1149
|
-
}, "de_Version");
|
|
1150
|
-
var de_VersionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1151
|
-
return (0, import_smithy_client.take)(output, {
|
|
1152
|
-
ApplicationId: [, import_smithy_client.expectString, `applicationId`],
|
|
1153
|
-
CreationTime: [, import_smithy_client.expectString, `creationTime`],
|
|
1154
|
-
SemanticVersion: [, import_smithy_client.expectString, `semanticVersion`],
|
|
1155
|
-
SourceCodeUrl: [, import_smithy_client.expectString, `sourceCodeUrl`]
|
|
1156
|
-
});
|
|
1157
|
-
}, "de_VersionSummary");
|
|
1158
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1159
|
-
httpStatusCode: output.statusCode,
|
|
1160
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1161
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1162
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1163
|
-
}), "deserializeMetadata");
|
|
1164
|
-
var _MI = "MaxItems";
|
|
1165
|
-
var _NT = "NextToken";
|
|
1166
|
-
var _SV = "SemanticVersion";
|
|
1167
|
-
var _mI = "maxItems";
|
|
1168
|
-
var _nT = "nextToken";
|
|
1169
|
-
var _sV = "semanticVersion";
|
|
1170
|
-
|
|
1171
|
-
// src/commands/CreateApplicationCommand.ts
|
|
1172
|
-
var CreateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1173
|
-
return [
|
|
1174
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1175
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1176
|
-
];
|
|
1177
|
-
}).s("ServerlessApplicationRepository", "CreateApplication", {}).n("ServerlessApplicationRepositoryClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
|
|
1178
|
-
static {
|
|
1179
|
-
__name(this, "CreateApplicationCommand");
|
|
1180
|
-
}
|
|
503
|
+
const de_CreateCloudFormationTemplateCommand = async (output, context) => {
|
|
504
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
505
|
+
return de_CommandError(output, context);
|
|
506
|
+
}
|
|
507
|
+
const contents = smithyClient.map({
|
|
508
|
+
$metadata: deserializeMetadata(output),
|
|
509
|
+
});
|
|
510
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
511
|
+
const doc = smithyClient.take(data, {
|
|
512
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
513
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
514
|
+
ExpirationTime: [, smithyClient.expectString, `expirationTime`],
|
|
515
|
+
SemanticVersion: [, smithyClient.expectString, `semanticVersion`],
|
|
516
|
+
Status: [, smithyClient.expectString, `status`],
|
|
517
|
+
TemplateId: [, smithyClient.expectString, `templateId`],
|
|
518
|
+
TemplateUrl: [, smithyClient.expectString, `templateUrl`],
|
|
519
|
+
});
|
|
520
|
+
Object.assign(contents, doc);
|
|
521
|
+
return contents;
|
|
1181
522
|
};
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
];
|
|
1192
|
-
}).s("ServerlessApplicationRepository", "CreateApplicationVersion", {}).n("ServerlessApplicationRepositoryClient", "CreateApplicationVersionCommand").f(void 0, void 0).ser(se_CreateApplicationVersionCommand).de(de_CreateApplicationVersionCommand).build() {
|
|
1193
|
-
static {
|
|
1194
|
-
__name(this, "CreateApplicationVersionCommand");
|
|
1195
|
-
}
|
|
523
|
+
const de_DeleteApplicationCommand = async (output, context) => {
|
|
524
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
525
|
+
return de_CommandError(output, context);
|
|
526
|
+
}
|
|
527
|
+
const contents = smithyClient.map({
|
|
528
|
+
$metadata: deserializeMetadata(output),
|
|
529
|
+
});
|
|
530
|
+
await smithyClient.collectBody(output.body, context);
|
|
531
|
+
return contents;
|
|
1196
532
|
};
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
(
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
533
|
+
const de_GetApplicationCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
+
return de_CommandError(output, context);
|
|
536
|
+
}
|
|
537
|
+
const contents = smithyClient.map({
|
|
538
|
+
$metadata: deserializeMetadata(output),
|
|
539
|
+
});
|
|
540
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
541
|
+
const doc = smithyClient.take(data, {
|
|
542
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
543
|
+
Author: [, smithyClient.expectString, `author`],
|
|
544
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
545
|
+
Description: [, smithyClient.expectString, `description`],
|
|
546
|
+
HomePageUrl: [, smithyClient.expectString, `homePageUrl`],
|
|
547
|
+
IsVerifiedAuthor: [, smithyClient.expectBoolean, `isVerifiedAuthor`],
|
|
548
|
+
Labels: [, smithyClient._json, `labels`],
|
|
549
|
+
LicenseUrl: [, smithyClient.expectString, `licenseUrl`],
|
|
550
|
+
Name: [, smithyClient.expectString, `name`],
|
|
551
|
+
ReadmeUrl: [, smithyClient.expectString, `readmeUrl`],
|
|
552
|
+
SpdxLicenseId: [, smithyClient.expectString, `spdxLicenseId`],
|
|
553
|
+
VerifiedAuthorUrl: [, smithyClient.expectString, `verifiedAuthorUrl`],
|
|
554
|
+
Version: [, (_) => de_Version(_), `version`],
|
|
555
|
+
});
|
|
556
|
+
Object.assign(contents, doc);
|
|
557
|
+
return contents;
|
|
1211
558
|
};
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
(
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
})
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
}
|
|
559
|
+
const de_GetApplicationPolicyCommand = async (output, context) => {
|
|
560
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
561
|
+
return de_CommandError(output, context);
|
|
562
|
+
}
|
|
563
|
+
const contents = smithyClient.map({
|
|
564
|
+
$metadata: deserializeMetadata(output),
|
|
565
|
+
});
|
|
566
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
567
|
+
const doc = smithyClient.take(data, {
|
|
568
|
+
Statements: [, (_) => de___listOfApplicationPolicyStatement(_), `statements`],
|
|
569
|
+
});
|
|
570
|
+
Object.assign(contents, doc);
|
|
571
|
+
return contents;
|
|
1226
572
|
};
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
(
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
573
|
+
const de_GetCloudFormationTemplateCommand = async (output, context) => {
|
|
574
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
+
return de_CommandError(output, context);
|
|
576
|
+
}
|
|
577
|
+
const contents = smithyClient.map({
|
|
578
|
+
$metadata: deserializeMetadata(output),
|
|
579
|
+
});
|
|
580
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
581
|
+
const doc = smithyClient.take(data, {
|
|
582
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
583
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
584
|
+
ExpirationTime: [, smithyClient.expectString, `expirationTime`],
|
|
585
|
+
SemanticVersion: [, smithyClient.expectString, `semanticVersion`],
|
|
586
|
+
Status: [, smithyClient.expectString, `status`],
|
|
587
|
+
TemplateId: [, smithyClient.expectString, `templateId`],
|
|
588
|
+
TemplateUrl: [, smithyClient.expectString, `templateUrl`],
|
|
589
|
+
});
|
|
590
|
+
Object.assign(contents, doc);
|
|
591
|
+
return contents;
|
|
1241
592
|
};
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
(
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
593
|
+
const de_ListApplicationDependenciesCommand = async (output, context) => {
|
|
594
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
+
return de_CommandError(output, context);
|
|
596
|
+
}
|
|
597
|
+
const contents = smithyClient.map({
|
|
598
|
+
$metadata: deserializeMetadata(output),
|
|
599
|
+
});
|
|
600
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
601
|
+
const doc = smithyClient.take(data, {
|
|
602
|
+
Dependencies: [, (_) => de___listOfApplicationDependencySummary(_), `dependencies`],
|
|
603
|
+
NextToken: [, smithyClient.expectString, `nextToken`],
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
606
|
+
return contents;
|
|
1256
607
|
};
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
(
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
608
|
+
const de_ListApplicationsCommand = async (output, context) => {
|
|
609
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
+
return de_CommandError(output, context);
|
|
611
|
+
}
|
|
612
|
+
const contents = smithyClient.map({
|
|
613
|
+
$metadata: deserializeMetadata(output),
|
|
614
|
+
});
|
|
615
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
616
|
+
const doc = smithyClient.take(data, {
|
|
617
|
+
Applications: [, (_) => de___listOfApplicationSummary(_), `applications`],
|
|
618
|
+
NextToken: [, smithyClient.expectString, `nextToken`],
|
|
619
|
+
});
|
|
620
|
+
Object.assign(contents, doc);
|
|
621
|
+
return contents;
|
|
1271
622
|
};
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
623
|
+
const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
624
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
625
|
+
return de_CommandError(output, context);
|
|
626
|
+
}
|
|
627
|
+
const contents = smithyClient.map({
|
|
628
|
+
$metadata: deserializeMetadata(output),
|
|
629
|
+
});
|
|
630
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
631
|
+
const doc = smithyClient.take(data, {
|
|
632
|
+
NextToken: [, smithyClient.expectString, `nextToken`],
|
|
633
|
+
Versions: [, (_) => de___listOfVersionSummary(_), `versions`],
|
|
634
|
+
});
|
|
635
|
+
Object.assign(contents, doc);
|
|
636
|
+
return contents;
|
|
1286
637
|
};
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
(
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
})
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
}
|
|
638
|
+
const de_PutApplicationPolicyCommand = async (output, context) => {
|
|
639
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
+
return de_CommandError(output, context);
|
|
641
|
+
}
|
|
642
|
+
const contents = smithyClient.map({
|
|
643
|
+
$metadata: deserializeMetadata(output),
|
|
644
|
+
});
|
|
645
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
646
|
+
const doc = smithyClient.take(data, {
|
|
647
|
+
Statements: [, (_) => de___listOfApplicationPolicyStatement(_), `statements`],
|
|
648
|
+
});
|
|
649
|
+
Object.assign(contents, doc);
|
|
650
|
+
return contents;
|
|
1301
651
|
};
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
];
|
|
1312
|
-
}).s("ServerlessApplicationRepository", "ListApplications", {}).n("ServerlessApplicationRepositoryClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
|
|
1313
|
-
static {
|
|
1314
|
-
__name(this, "ListApplicationsCommand");
|
|
1315
|
-
}
|
|
652
|
+
const de_UnshareApplicationCommand = async (output, context) => {
|
|
653
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
654
|
+
return de_CommandError(output, context);
|
|
655
|
+
}
|
|
656
|
+
const contents = smithyClient.map({
|
|
657
|
+
$metadata: deserializeMetadata(output),
|
|
658
|
+
});
|
|
659
|
+
await smithyClient.collectBody(output.body, context);
|
|
660
|
+
return contents;
|
|
1316
661
|
};
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
(
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
662
|
+
const de_UpdateApplicationCommand = async (output, context) => {
|
|
663
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
+
return de_CommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const contents = smithyClient.map({
|
|
667
|
+
$metadata: deserializeMetadata(output),
|
|
668
|
+
});
|
|
669
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
670
|
+
const doc = smithyClient.take(data, {
|
|
671
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
672
|
+
Author: [, smithyClient.expectString, `author`],
|
|
673
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
674
|
+
Description: [, smithyClient.expectString, `description`],
|
|
675
|
+
HomePageUrl: [, smithyClient.expectString, `homePageUrl`],
|
|
676
|
+
IsVerifiedAuthor: [, smithyClient.expectBoolean, `isVerifiedAuthor`],
|
|
677
|
+
Labels: [, smithyClient._json, `labels`],
|
|
678
|
+
LicenseUrl: [, smithyClient.expectString, `licenseUrl`],
|
|
679
|
+
Name: [, smithyClient.expectString, `name`],
|
|
680
|
+
ReadmeUrl: [, smithyClient.expectString, `readmeUrl`],
|
|
681
|
+
SpdxLicenseId: [, smithyClient.expectString, `spdxLicenseId`],
|
|
682
|
+
VerifiedAuthorUrl: [, smithyClient.expectString, `verifiedAuthorUrl`],
|
|
683
|
+
Version: [, (_) => de_Version(_), `version`],
|
|
684
|
+
});
|
|
685
|
+
Object.assign(contents, doc);
|
|
686
|
+
return contents;
|
|
1331
687
|
};
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
688
|
+
const de_CommandError = async (output, context) => {
|
|
689
|
+
const parsedOutput = {
|
|
690
|
+
...output,
|
|
691
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
692
|
+
};
|
|
693
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
+
switch (errorCode) {
|
|
695
|
+
case "BadRequestException":
|
|
696
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
697
|
+
throw await de_BadRequestExceptionRes(parsedOutput);
|
|
698
|
+
case "ConflictException":
|
|
699
|
+
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
700
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
701
|
+
case "ForbiddenException":
|
|
702
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
703
|
+
throw await de_ForbiddenExceptionRes(parsedOutput);
|
|
704
|
+
case "InternalServerErrorException":
|
|
705
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
706
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput);
|
|
707
|
+
case "TooManyRequestsException":
|
|
708
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
709
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput);
|
|
710
|
+
case "NotFoundException":
|
|
711
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
712
|
+
throw await de_NotFoundExceptionRes(parsedOutput);
|
|
713
|
+
default:
|
|
714
|
+
const parsedBody = parsedOutput.body;
|
|
715
|
+
return throwDefaultError({
|
|
716
|
+
output,
|
|
717
|
+
parsedBody,
|
|
718
|
+
errorCode,
|
|
719
|
+
});
|
|
720
|
+
}
|
|
1346
721
|
};
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
722
|
+
const throwDefaultError = smithyClient.withBaseException(ServerlessApplicationRepositoryServiceException);
|
|
723
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
724
|
+
const contents = smithyClient.map({});
|
|
725
|
+
const data = parsedOutput.body;
|
|
726
|
+
const doc = smithyClient.take(data, {
|
|
727
|
+
ErrorCode: [, smithyClient.expectString, `errorCode`],
|
|
728
|
+
Message: [, smithyClient.expectString, `message`],
|
|
729
|
+
});
|
|
730
|
+
Object.assign(contents, doc);
|
|
731
|
+
const exception = new BadRequestException({
|
|
732
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
733
|
+
...contents,
|
|
734
|
+
});
|
|
735
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1361
736
|
};
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
}
|
|
737
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
738
|
+
const contents = smithyClient.map({});
|
|
739
|
+
const data = parsedOutput.body;
|
|
740
|
+
const doc = smithyClient.take(data, {
|
|
741
|
+
ErrorCode: [, smithyClient.expectString, `errorCode`],
|
|
742
|
+
Message: [, smithyClient.expectString, `message`],
|
|
743
|
+
});
|
|
744
|
+
Object.assign(contents, doc);
|
|
745
|
+
const exception = new ConflictException({
|
|
746
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
747
|
+
...contents,
|
|
748
|
+
});
|
|
749
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1376
750
|
};
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
751
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
752
|
+
const contents = smithyClient.map({});
|
|
753
|
+
const data = parsedOutput.body;
|
|
754
|
+
const doc = smithyClient.take(data, {
|
|
755
|
+
ErrorCode: [, smithyClient.expectString, `errorCode`],
|
|
756
|
+
Message: [, smithyClient.expectString, `message`],
|
|
757
|
+
});
|
|
758
|
+
Object.assign(contents, doc);
|
|
759
|
+
const exception = new ForbiddenException({
|
|
760
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
761
|
+
...contents,
|
|
762
|
+
});
|
|
763
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
764
|
+
};
|
|
765
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
766
|
+
const contents = smithyClient.map({});
|
|
767
|
+
const data = parsedOutput.body;
|
|
768
|
+
const doc = smithyClient.take(data, {
|
|
769
|
+
ErrorCode: [, smithyClient.expectString, `errorCode`],
|
|
770
|
+
Message: [, smithyClient.expectString, `message`],
|
|
771
|
+
});
|
|
772
|
+
Object.assign(contents, doc);
|
|
773
|
+
const exception = new InternalServerErrorException({
|
|
774
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
775
|
+
...contents,
|
|
776
|
+
});
|
|
777
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1394
778
|
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
779
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
780
|
+
const contents = smithyClient.map({});
|
|
781
|
+
const data = parsedOutput.body;
|
|
782
|
+
const doc = smithyClient.take(data, {
|
|
783
|
+
ErrorCode: [, smithyClient.expectString, `errorCode`],
|
|
784
|
+
Message: [, smithyClient.expectString, `message`],
|
|
785
|
+
});
|
|
786
|
+
Object.assign(contents, doc);
|
|
787
|
+
const exception = new NotFoundException({
|
|
788
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
789
|
+
...contents,
|
|
790
|
+
});
|
|
791
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1399
792
|
};
|
|
1400
|
-
(
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
793
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
794
|
+
const contents = smithyClient.map({});
|
|
795
|
+
const data = parsedOutput.body;
|
|
796
|
+
const doc = smithyClient.take(data, {
|
|
797
|
+
ErrorCode: [, smithyClient.expectString, `errorCode`],
|
|
798
|
+
Message: [, smithyClient.expectString, `message`],
|
|
799
|
+
});
|
|
800
|
+
Object.assign(contents, doc);
|
|
801
|
+
const exception = new TooManyRequestsException({
|
|
802
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
803
|
+
...contents,
|
|
804
|
+
});
|
|
805
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
806
|
+
};
|
|
807
|
+
const se___listOfApplicationPolicyStatement = (input, context) => {
|
|
808
|
+
return input
|
|
809
|
+
.filter((e) => e != null)
|
|
810
|
+
.map((entry) => {
|
|
811
|
+
return se_ApplicationPolicyStatement(entry);
|
|
812
|
+
});
|
|
813
|
+
};
|
|
814
|
+
const se___listOfParameterValue = (input, context) => {
|
|
815
|
+
return input
|
|
816
|
+
.filter((e) => e != null)
|
|
817
|
+
.map((entry) => {
|
|
818
|
+
return se_ParameterValue(entry);
|
|
819
|
+
});
|
|
820
|
+
};
|
|
821
|
+
const se___listOfRollbackTrigger = (input, context) => {
|
|
822
|
+
return input
|
|
823
|
+
.filter((e) => e != null)
|
|
824
|
+
.map((entry) => {
|
|
825
|
+
return se_RollbackTrigger(entry);
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
const se___listOfTag = (input, context) => {
|
|
829
|
+
return input
|
|
830
|
+
.filter((e) => e != null)
|
|
831
|
+
.map((entry) => {
|
|
832
|
+
return se_Tag(entry);
|
|
833
|
+
});
|
|
834
|
+
};
|
|
835
|
+
const se_ApplicationPolicyStatement = (input, context) => {
|
|
836
|
+
return smithyClient.take(input, {
|
|
837
|
+
actions: [, smithyClient._json, `Actions`],
|
|
838
|
+
principalOrgIDs: [, smithyClient._json, `PrincipalOrgIDs`],
|
|
839
|
+
principals: [, smithyClient._json, `Principals`],
|
|
840
|
+
statementId: [, , `StatementId`],
|
|
841
|
+
});
|
|
842
|
+
};
|
|
843
|
+
const se_ParameterValue = (input, context) => {
|
|
844
|
+
return smithyClient.take(input, {
|
|
845
|
+
name: [, , `Name`],
|
|
846
|
+
value: [, , `Value`],
|
|
847
|
+
});
|
|
848
|
+
};
|
|
849
|
+
const se_RollbackConfiguration = (input, context) => {
|
|
850
|
+
return smithyClient.take(input, {
|
|
851
|
+
monitoringTimeInMinutes: [, , `MonitoringTimeInMinutes`],
|
|
852
|
+
rollbackTriggers: [, (_) => se___listOfRollbackTrigger(_), `RollbackTriggers`],
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
const se_RollbackTrigger = (input, context) => {
|
|
856
|
+
return smithyClient.take(input, {
|
|
857
|
+
arn: [, , `Arn`],
|
|
858
|
+
type: [, , `Type`],
|
|
859
|
+
});
|
|
860
|
+
};
|
|
861
|
+
const se_Tag = (input, context) => {
|
|
862
|
+
return smithyClient.take(input, {
|
|
863
|
+
key: [, , `Key`],
|
|
864
|
+
value: [, , `Value`],
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
const de___listOfApplicationDependencySummary = (output, context) => {
|
|
868
|
+
const retVal = (output || [])
|
|
869
|
+
.filter((e) => e != null)
|
|
870
|
+
.map((entry) => {
|
|
871
|
+
return de_ApplicationDependencySummary(entry);
|
|
872
|
+
});
|
|
873
|
+
return retVal;
|
|
874
|
+
};
|
|
875
|
+
const de___listOfApplicationPolicyStatement = (output, context) => {
|
|
876
|
+
const retVal = (output || [])
|
|
877
|
+
.filter((e) => e != null)
|
|
878
|
+
.map((entry) => {
|
|
879
|
+
return de_ApplicationPolicyStatement(entry);
|
|
880
|
+
});
|
|
881
|
+
return retVal;
|
|
882
|
+
};
|
|
883
|
+
const de___listOfApplicationSummary = (output, context) => {
|
|
884
|
+
const retVal = (output || [])
|
|
885
|
+
.filter((e) => e != null)
|
|
886
|
+
.map((entry) => {
|
|
887
|
+
return de_ApplicationSummary(entry);
|
|
888
|
+
});
|
|
889
|
+
return retVal;
|
|
890
|
+
};
|
|
891
|
+
const de___listOfParameterDefinition = (output, context) => {
|
|
892
|
+
const retVal = (output || [])
|
|
893
|
+
.filter((e) => e != null)
|
|
894
|
+
.map((entry) => {
|
|
895
|
+
return de_ParameterDefinition(entry);
|
|
896
|
+
});
|
|
897
|
+
return retVal;
|
|
898
|
+
};
|
|
899
|
+
const de___listOfVersionSummary = (output, context) => {
|
|
900
|
+
const retVal = (output || [])
|
|
901
|
+
.filter((e) => e != null)
|
|
902
|
+
.map((entry) => {
|
|
903
|
+
return de_VersionSummary(entry);
|
|
904
|
+
});
|
|
905
|
+
return retVal;
|
|
906
|
+
};
|
|
907
|
+
const de_ApplicationDependencySummary = (output, context) => {
|
|
908
|
+
return smithyClient.take(output, {
|
|
909
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
910
|
+
SemanticVersion: [, smithyClient.expectString, `semanticVersion`],
|
|
911
|
+
});
|
|
912
|
+
};
|
|
913
|
+
const de_ApplicationPolicyStatement = (output, context) => {
|
|
914
|
+
return smithyClient.take(output, {
|
|
915
|
+
Actions: [, smithyClient._json, `actions`],
|
|
916
|
+
PrincipalOrgIDs: [, smithyClient._json, `principalOrgIDs`],
|
|
917
|
+
Principals: [, smithyClient._json, `principals`],
|
|
918
|
+
StatementId: [, smithyClient.expectString, `statementId`],
|
|
919
|
+
});
|
|
920
|
+
};
|
|
921
|
+
const de_ApplicationSummary = (output, context) => {
|
|
922
|
+
return smithyClient.take(output, {
|
|
923
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
924
|
+
Author: [, smithyClient.expectString, `author`],
|
|
925
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
926
|
+
Description: [, smithyClient.expectString, `description`],
|
|
927
|
+
HomePageUrl: [, smithyClient.expectString, `homePageUrl`],
|
|
928
|
+
Labels: [, smithyClient._json, `labels`],
|
|
929
|
+
Name: [, smithyClient.expectString, `name`],
|
|
930
|
+
SpdxLicenseId: [, smithyClient.expectString, `spdxLicenseId`],
|
|
931
|
+
});
|
|
932
|
+
};
|
|
933
|
+
const de_ParameterDefinition = (output, context) => {
|
|
934
|
+
return smithyClient.take(output, {
|
|
935
|
+
AllowedPattern: [, smithyClient.expectString, `allowedPattern`],
|
|
936
|
+
AllowedValues: [, smithyClient._json, `allowedValues`],
|
|
937
|
+
ConstraintDescription: [, smithyClient.expectString, `constraintDescription`],
|
|
938
|
+
DefaultValue: [, smithyClient.expectString, `defaultValue`],
|
|
939
|
+
Description: [, smithyClient.expectString, `description`],
|
|
940
|
+
MaxLength: [, smithyClient.expectInt32, `maxLength`],
|
|
941
|
+
MaxValue: [, smithyClient.expectInt32, `maxValue`],
|
|
942
|
+
MinLength: [, smithyClient.expectInt32, `minLength`],
|
|
943
|
+
MinValue: [, smithyClient.expectInt32, `minValue`],
|
|
944
|
+
Name: [, smithyClient.expectString, `name`],
|
|
945
|
+
NoEcho: [, smithyClient.expectBoolean, `noEcho`],
|
|
946
|
+
ReferencedByResources: [, smithyClient._json, `referencedByResources`],
|
|
947
|
+
Type: [, smithyClient.expectString, `type`],
|
|
948
|
+
});
|
|
949
|
+
};
|
|
950
|
+
const de_Version = (output, context) => {
|
|
951
|
+
return smithyClient.take(output, {
|
|
952
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
953
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
954
|
+
ParameterDefinitions: [, (_) => de___listOfParameterDefinition(_), `parameterDefinitions`],
|
|
955
|
+
RequiredCapabilities: [, smithyClient._json, `requiredCapabilities`],
|
|
956
|
+
ResourcesSupported: [, smithyClient.expectBoolean, `resourcesSupported`],
|
|
957
|
+
SemanticVersion: [, smithyClient.expectString, `semanticVersion`],
|
|
958
|
+
SourceCodeArchiveUrl: [, smithyClient.expectString, `sourceCodeArchiveUrl`],
|
|
959
|
+
SourceCodeUrl: [, smithyClient.expectString, `sourceCodeUrl`],
|
|
960
|
+
TemplateUrl: [, smithyClient.expectString, `templateUrl`],
|
|
961
|
+
});
|
|
962
|
+
};
|
|
963
|
+
const de_VersionSummary = (output, context) => {
|
|
964
|
+
return smithyClient.take(output, {
|
|
965
|
+
ApplicationId: [, smithyClient.expectString, `applicationId`],
|
|
966
|
+
CreationTime: [, smithyClient.expectString, `creationTime`],
|
|
967
|
+
SemanticVersion: [, smithyClient.expectString, `semanticVersion`],
|
|
968
|
+
SourceCodeUrl: [, smithyClient.expectString, `sourceCodeUrl`],
|
|
969
|
+
});
|
|
970
|
+
};
|
|
971
|
+
const deserializeMetadata = (output) => ({
|
|
972
|
+
httpStatusCode: output.statusCode,
|
|
973
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
974
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
975
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
976
|
+
});
|
|
977
|
+
const _MI = "MaxItems";
|
|
978
|
+
const _NT = "NextToken";
|
|
979
|
+
const _SV = "SemanticVersion";
|
|
980
|
+
const _mI = "maxItems";
|
|
981
|
+
const _nT = "nextToken";
|
|
982
|
+
const _sV = "semanticVersion";
|
|
983
|
+
|
|
984
|
+
class CreateApplicationCommand extends smithyClient.Command
|
|
985
|
+
.classBuilder()
|
|
986
|
+
.ep(commonParams)
|
|
987
|
+
.m(function (Command, cs, config, o) {
|
|
988
|
+
return [
|
|
989
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
990
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
991
|
+
];
|
|
992
|
+
})
|
|
993
|
+
.s("ServerlessApplicationRepository", "CreateApplication", {})
|
|
994
|
+
.n("ServerlessApplicationRepositoryClient", "CreateApplicationCommand")
|
|
995
|
+
.f(void 0, void 0)
|
|
996
|
+
.ser(se_CreateApplicationCommand)
|
|
997
|
+
.de(de_CreateApplicationCommand)
|
|
998
|
+
.build() {
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
class CreateApplicationVersionCommand extends smithyClient.Command
|
|
1002
|
+
.classBuilder()
|
|
1003
|
+
.ep(commonParams)
|
|
1004
|
+
.m(function (Command, cs, config, o) {
|
|
1005
|
+
return [
|
|
1006
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1007
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1008
|
+
];
|
|
1009
|
+
})
|
|
1010
|
+
.s("ServerlessApplicationRepository", "CreateApplicationVersion", {})
|
|
1011
|
+
.n("ServerlessApplicationRepositoryClient", "CreateApplicationVersionCommand")
|
|
1012
|
+
.f(void 0, void 0)
|
|
1013
|
+
.ser(se_CreateApplicationVersionCommand)
|
|
1014
|
+
.de(de_CreateApplicationVersionCommand)
|
|
1015
|
+
.build() {
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
class CreateCloudFormationChangeSetCommand extends smithyClient.Command
|
|
1019
|
+
.classBuilder()
|
|
1020
|
+
.ep(commonParams)
|
|
1021
|
+
.m(function (Command, cs, config, o) {
|
|
1022
|
+
return [
|
|
1023
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1024
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1025
|
+
];
|
|
1026
|
+
})
|
|
1027
|
+
.s("ServerlessApplicationRepository", "CreateCloudFormationChangeSet", {})
|
|
1028
|
+
.n("ServerlessApplicationRepositoryClient", "CreateCloudFormationChangeSetCommand")
|
|
1029
|
+
.f(void 0, void 0)
|
|
1030
|
+
.ser(se_CreateCloudFormationChangeSetCommand)
|
|
1031
|
+
.de(de_CreateCloudFormationChangeSetCommand)
|
|
1032
|
+
.build() {
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
class CreateCloudFormationTemplateCommand extends smithyClient.Command
|
|
1036
|
+
.classBuilder()
|
|
1037
|
+
.ep(commonParams)
|
|
1038
|
+
.m(function (Command, cs, config, o) {
|
|
1039
|
+
return [
|
|
1040
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1041
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1042
|
+
];
|
|
1043
|
+
})
|
|
1044
|
+
.s("ServerlessApplicationRepository", "CreateCloudFormationTemplate", {})
|
|
1045
|
+
.n("ServerlessApplicationRepositoryClient", "CreateCloudFormationTemplateCommand")
|
|
1046
|
+
.f(void 0, void 0)
|
|
1047
|
+
.ser(se_CreateCloudFormationTemplateCommand)
|
|
1048
|
+
.de(de_CreateCloudFormationTemplateCommand)
|
|
1049
|
+
.build() {
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
class DeleteApplicationCommand extends smithyClient.Command
|
|
1053
|
+
.classBuilder()
|
|
1054
|
+
.ep(commonParams)
|
|
1055
|
+
.m(function (Command, cs, config, o) {
|
|
1056
|
+
return [
|
|
1057
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1058
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1059
|
+
];
|
|
1060
|
+
})
|
|
1061
|
+
.s("ServerlessApplicationRepository", "DeleteApplication", {})
|
|
1062
|
+
.n("ServerlessApplicationRepositoryClient", "DeleteApplicationCommand")
|
|
1063
|
+
.f(void 0, void 0)
|
|
1064
|
+
.ser(se_DeleteApplicationCommand)
|
|
1065
|
+
.de(de_DeleteApplicationCommand)
|
|
1066
|
+
.build() {
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
class GetApplicationCommand extends smithyClient.Command
|
|
1070
|
+
.classBuilder()
|
|
1071
|
+
.ep(commonParams)
|
|
1072
|
+
.m(function (Command, cs, config, o) {
|
|
1073
|
+
return [
|
|
1074
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1075
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1076
|
+
];
|
|
1077
|
+
})
|
|
1078
|
+
.s("ServerlessApplicationRepository", "GetApplication", {})
|
|
1079
|
+
.n("ServerlessApplicationRepositoryClient", "GetApplicationCommand")
|
|
1080
|
+
.f(void 0, void 0)
|
|
1081
|
+
.ser(se_GetApplicationCommand)
|
|
1082
|
+
.de(de_GetApplicationCommand)
|
|
1083
|
+
.build() {
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
class GetApplicationPolicyCommand extends smithyClient.Command
|
|
1087
|
+
.classBuilder()
|
|
1088
|
+
.ep(commonParams)
|
|
1089
|
+
.m(function (Command, cs, config, o) {
|
|
1090
|
+
return [
|
|
1091
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1092
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1093
|
+
];
|
|
1094
|
+
})
|
|
1095
|
+
.s("ServerlessApplicationRepository", "GetApplicationPolicy", {})
|
|
1096
|
+
.n("ServerlessApplicationRepositoryClient", "GetApplicationPolicyCommand")
|
|
1097
|
+
.f(void 0, void 0)
|
|
1098
|
+
.ser(se_GetApplicationPolicyCommand)
|
|
1099
|
+
.de(de_GetApplicationPolicyCommand)
|
|
1100
|
+
.build() {
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
class GetCloudFormationTemplateCommand extends smithyClient.Command
|
|
1104
|
+
.classBuilder()
|
|
1105
|
+
.ep(commonParams)
|
|
1106
|
+
.m(function (Command, cs, config, o) {
|
|
1107
|
+
return [
|
|
1108
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1109
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1110
|
+
];
|
|
1111
|
+
})
|
|
1112
|
+
.s("ServerlessApplicationRepository", "GetCloudFormationTemplate", {})
|
|
1113
|
+
.n("ServerlessApplicationRepositoryClient", "GetCloudFormationTemplateCommand")
|
|
1114
|
+
.f(void 0, void 0)
|
|
1115
|
+
.ser(se_GetCloudFormationTemplateCommand)
|
|
1116
|
+
.de(de_GetCloudFormationTemplateCommand)
|
|
1117
|
+
.build() {
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
class ListApplicationDependenciesCommand extends smithyClient.Command
|
|
1121
|
+
.classBuilder()
|
|
1122
|
+
.ep(commonParams)
|
|
1123
|
+
.m(function (Command, cs, config, o) {
|
|
1124
|
+
return [
|
|
1125
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1126
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1127
|
+
];
|
|
1128
|
+
})
|
|
1129
|
+
.s("ServerlessApplicationRepository", "ListApplicationDependencies", {})
|
|
1130
|
+
.n("ServerlessApplicationRepositoryClient", "ListApplicationDependenciesCommand")
|
|
1131
|
+
.f(void 0, void 0)
|
|
1132
|
+
.ser(se_ListApplicationDependenciesCommand)
|
|
1133
|
+
.de(de_ListApplicationDependenciesCommand)
|
|
1134
|
+
.build() {
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
class ListApplicationsCommand extends smithyClient.Command
|
|
1138
|
+
.classBuilder()
|
|
1139
|
+
.ep(commonParams)
|
|
1140
|
+
.m(function (Command, cs, config, o) {
|
|
1141
|
+
return [
|
|
1142
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1143
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1144
|
+
];
|
|
1145
|
+
})
|
|
1146
|
+
.s("ServerlessApplicationRepository", "ListApplications", {})
|
|
1147
|
+
.n("ServerlessApplicationRepositoryClient", "ListApplicationsCommand")
|
|
1148
|
+
.f(void 0, void 0)
|
|
1149
|
+
.ser(se_ListApplicationsCommand)
|
|
1150
|
+
.de(de_ListApplicationsCommand)
|
|
1151
|
+
.build() {
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
class ListApplicationVersionsCommand extends smithyClient.Command
|
|
1155
|
+
.classBuilder()
|
|
1156
|
+
.ep(commonParams)
|
|
1157
|
+
.m(function (Command, cs, config, o) {
|
|
1158
|
+
return [
|
|
1159
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1160
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1161
|
+
];
|
|
1162
|
+
})
|
|
1163
|
+
.s("ServerlessApplicationRepository", "ListApplicationVersions", {})
|
|
1164
|
+
.n("ServerlessApplicationRepositoryClient", "ListApplicationVersionsCommand")
|
|
1165
|
+
.f(void 0, void 0)
|
|
1166
|
+
.ser(se_ListApplicationVersionsCommand)
|
|
1167
|
+
.de(de_ListApplicationVersionsCommand)
|
|
1168
|
+
.build() {
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
class PutApplicationPolicyCommand extends smithyClient.Command
|
|
1172
|
+
.classBuilder()
|
|
1173
|
+
.ep(commonParams)
|
|
1174
|
+
.m(function (Command, cs, config, o) {
|
|
1175
|
+
return [
|
|
1176
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1177
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1178
|
+
];
|
|
1179
|
+
})
|
|
1180
|
+
.s("ServerlessApplicationRepository", "PutApplicationPolicy", {})
|
|
1181
|
+
.n("ServerlessApplicationRepositoryClient", "PutApplicationPolicyCommand")
|
|
1182
|
+
.f(void 0, void 0)
|
|
1183
|
+
.ser(se_PutApplicationPolicyCommand)
|
|
1184
|
+
.de(de_PutApplicationPolicyCommand)
|
|
1185
|
+
.build() {
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
class UnshareApplicationCommand extends smithyClient.Command
|
|
1189
|
+
.classBuilder()
|
|
1190
|
+
.ep(commonParams)
|
|
1191
|
+
.m(function (Command, cs, config, o) {
|
|
1192
|
+
return [
|
|
1193
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1194
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1195
|
+
];
|
|
1196
|
+
})
|
|
1197
|
+
.s("ServerlessApplicationRepository", "UnshareApplication", {})
|
|
1198
|
+
.n("ServerlessApplicationRepositoryClient", "UnshareApplicationCommand")
|
|
1199
|
+
.f(void 0, void 0)
|
|
1200
|
+
.ser(se_UnshareApplicationCommand)
|
|
1201
|
+
.de(de_UnshareApplicationCommand)
|
|
1202
|
+
.build() {
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
class UpdateApplicationCommand extends smithyClient.Command
|
|
1206
|
+
.classBuilder()
|
|
1207
|
+
.ep(commonParams)
|
|
1208
|
+
.m(function (Command, cs, config, o) {
|
|
1209
|
+
return [
|
|
1210
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1211
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1212
|
+
];
|
|
1213
|
+
})
|
|
1214
|
+
.s("ServerlessApplicationRepository", "UpdateApplication", {})
|
|
1215
|
+
.n("ServerlessApplicationRepositoryClient", "UpdateApplicationCommand")
|
|
1216
|
+
.f(void 0, void 0)
|
|
1217
|
+
.ser(se_UpdateApplicationCommand)
|
|
1218
|
+
.de(de_UpdateApplicationCommand)
|
|
1219
|
+
.build() {
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
const commands = {
|
|
1223
|
+
CreateApplicationCommand,
|
|
1224
|
+
CreateApplicationVersionCommand,
|
|
1225
|
+
CreateCloudFormationChangeSetCommand,
|
|
1226
|
+
CreateCloudFormationTemplateCommand,
|
|
1227
|
+
DeleteApplicationCommand,
|
|
1228
|
+
GetApplicationCommand,
|
|
1229
|
+
GetApplicationPolicyCommand,
|
|
1230
|
+
GetCloudFormationTemplateCommand,
|
|
1231
|
+
ListApplicationDependenciesCommand,
|
|
1232
|
+
ListApplicationsCommand,
|
|
1233
|
+
ListApplicationVersionsCommand,
|
|
1234
|
+
PutApplicationPolicyCommand,
|
|
1235
|
+
UnshareApplicationCommand,
|
|
1236
|
+
UpdateApplicationCommand,
|
|
1237
|
+
};
|
|
1238
|
+
class ServerlessApplicationRepository extends ServerlessApplicationRepositoryClient {
|
|
1239
|
+
}
|
|
1240
|
+
smithyClient.createAggregatedClient(commands, ServerlessApplicationRepository);
|
|
1407
1241
|
|
|
1408
|
-
|
|
1242
|
+
const paginateListApplicationDependencies = core.createPaginator(ServerlessApplicationRepositoryClient, ListApplicationDependenciesCommand, "NextToken", "NextToken", "MaxItems");
|
|
1409
1243
|
|
|
1410
|
-
|
|
1244
|
+
const paginateListApplicationVersions = core.createPaginator(ServerlessApplicationRepositoryClient, ListApplicationVersionsCommand, "NextToken", "NextToken", "MaxItems");
|
|
1411
1245
|
|
|
1412
|
-
|
|
1413
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1246
|
+
const paginateListApplications = core.createPaginator(ServerlessApplicationRepositoryClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxItems");
|
|
1414
1247
|
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
ServerlessApplicationRepositoryClient,
|
|
1419
|
-
ServerlessApplicationRepository,
|
|
1420
|
-
$Command,
|
|
1421
|
-
CreateApplicationCommand,
|
|
1422
|
-
CreateApplicationVersionCommand,
|
|
1423
|
-
CreateCloudFormationChangeSetCommand,
|
|
1424
|
-
CreateCloudFormationTemplateCommand,
|
|
1425
|
-
DeleteApplicationCommand,
|
|
1426
|
-
GetApplicationCommand,
|
|
1427
|
-
GetApplicationPolicyCommand,
|
|
1428
|
-
GetCloudFormationTemplateCommand,
|
|
1429
|
-
ListApplicationDependenciesCommand,
|
|
1430
|
-
ListApplicationVersionsCommand,
|
|
1431
|
-
ListApplicationsCommand,
|
|
1432
|
-
PutApplicationPolicyCommand,
|
|
1433
|
-
UnshareApplicationCommand,
|
|
1434
|
-
UpdateApplicationCommand,
|
|
1435
|
-
paginateListApplicationDependencies,
|
|
1436
|
-
paginateListApplicationVersions,
|
|
1437
|
-
paginateListApplications,
|
|
1438
|
-
Capability,
|
|
1439
|
-
BadRequestException,
|
|
1440
|
-
ConflictException,
|
|
1441
|
-
ForbiddenException,
|
|
1442
|
-
InternalServerErrorException,
|
|
1443
|
-
TooManyRequestsException,
|
|
1444
|
-
Status,
|
|
1445
|
-
NotFoundException
|
|
1248
|
+
Object.defineProperty(exports, "$Command", {
|
|
1249
|
+
enumerable: true,
|
|
1250
|
+
get: function () { return smithyClient.Command; }
|
|
1446
1251
|
});
|
|
1447
|
-
|
|
1252
|
+
Object.defineProperty(exports, "__Client", {
|
|
1253
|
+
enumerable: true,
|
|
1254
|
+
get: function () { return smithyClient.Client; }
|
|
1255
|
+
});
|
|
1256
|
+
exports.BadRequestException = BadRequestException;
|
|
1257
|
+
exports.Capability = Capability;
|
|
1258
|
+
exports.ConflictException = ConflictException;
|
|
1259
|
+
exports.CreateApplicationCommand = CreateApplicationCommand;
|
|
1260
|
+
exports.CreateApplicationVersionCommand = CreateApplicationVersionCommand;
|
|
1261
|
+
exports.CreateCloudFormationChangeSetCommand = CreateCloudFormationChangeSetCommand;
|
|
1262
|
+
exports.CreateCloudFormationTemplateCommand = CreateCloudFormationTemplateCommand;
|
|
1263
|
+
exports.DeleteApplicationCommand = DeleteApplicationCommand;
|
|
1264
|
+
exports.ForbiddenException = ForbiddenException;
|
|
1265
|
+
exports.GetApplicationCommand = GetApplicationCommand;
|
|
1266
|
+
exports.GetApplicationPolicyCommand = GetApplicationPolicyCommand;
|
|
1267
|
+
exports.GetCloudFormationTemplateCommand = GetCloudFormationTemplateCommand;
|
|
1268
|
+
exports.InternalServerErrorException = InternalServerErrorException;
|
|
1269
|
+
exports.ListApplicationDependenciesCommand = ListApplicationDependenciesCommand;
|
|
1270
|
+
exports.ListApplicationVersionsCommand = ListApplicationVersionsCommand;
|
|
1271
|
+
exports.ListApplicationsCommand = ListApplicationsCommand;
|
|
1272
|
+
exports.NotFoundException = NotFoundException;
|
|
1273
|
+
exports.PutApplicationPolicyCommand = PutApplicationPolicyCommand;
|
|
1274
|
+
exports.ServerlessApplicationRepository = ServerlessApplicationRepository;
|
|
1275
|
+
exports.ServerlessApplicationRepositoryClient = ServerlessApplicationRepositoryClient;
|
|
1276
|
+
exports.ServerlessApplicationRepositoryServiceException = ServerlessApplicationRepositoryServiceException;
|
|
1277
|
+
exports.Status = Status;
|
|
1278
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
1279
|
+
exports.UnshareApplicationCommand = UnshareApplicationCommand;
|
|
1280
|
+
exports.UpdateApplicationCommand = UpdateApplicationCommand;
|
|
1281
|
+
exports.paginateListApplicationDependencies = paginateListApplicationDependencies;
|
|
1282
|
+
exports.paginateListApplicationVersions = paginateListApplicationVersions;
|
|
1283
|
+
exports.paginateListApplications = paginateListApplications;
|