@aws-sdk/client-signer 3.489.0 → 3.495.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/Signer.js +1 -49
- package/dist-cjs/SignerClient.js +1 -43
- package/dist-cjs/commands/AddProfilePermissionCommand.js +1 -28
- package/dist-cjs/commands/CancelSigningProfileCommand.js +1 -28
- package/dist-cjs/commands/DescribeSigningJobCommand.js +1 -28
- package/dist-cjs/commands/GetRevocationStatusCommand.js +1 -28
- package/dist-cjs/commands/GetSigningPlatformCommand.js +1 -28
- package/dist-cjs/commands/GetSigningProfileCommand.js +1 -28
- package/dist-cjs/commands/ListProfilePermissionsCommand.js +1 -28
- package/dist-cjs/commands/ListSigningJobsCommand.js +1 -28
- package/dist-cjs/commands/ListSigningPlatformsCommand.js +1 -28
- package/dist-cjs/commands/ListSigningProfilesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutSigningProfileCommand.js +1 -28
- package/dist-cjs/commands/RemoveProfilePermissionCommand.js +1 -28
- package/dist-cjs/commands/RevokeSignatureCommand.js +1 -28
- package/dist-cjs/commands/RevokeSigningProfileCommand.js +1 -28
- package/dist-cjs/commands/SignPayloadCommand.js +1 -28
- package/dist-cjs/commands/StartSigningJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -22
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2261 -12
- package/dist-cjs/models/SignerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -175
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListSigningJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSigningPlatformsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSigningProfilesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1450
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -4
- package/dist-cjs/waiters/waitForSuccessfulSigningJob.js +1 -48
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,13 +1,2262 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AddProfilePermissionCommand: () => AddProfilePermissionCommand,
|
|
26
|
+
BadRequestException: () => BadRequestException,
|
|
27
|
+
CancelSigningProfileCommand: () => CancelSigningProfileCommand,
|
|
28
|
+
Category: () => Category,
|
|
29
|
+
ConflictException: () => ConflictException,
|
|
30
|
+
DescribeSigningJobCommand: () => DescribeSigningJobCommand,
|
|
31
|
+
EncryptionAlgorithm: () => EncryptionAlgorithm,
|
|
32
|
+
GetRevocationStatusCommand: () => GetRevocationStatusCommand,
|
|
33
|
+
GetSigningPlatformCommand: () => GetSigningPlatformCommand,
|
|
34
|
+
GetSigningProfileCommand: () => GetSigningProfileCommand,
|
|
35
|
+
HashAlgorithm: () => HashAlgorithm,
|
|
36
|
+
ImageFormat: () => ImageFormat,
|
|
37
|
+
InternalServiceErrorException: () => InternalServiceErrorException,
|
|
38
|
+
ListProfilePermissionsCommand: () => ListProfilePermissionsCommand,
|
|
39
|
+
ListSigningJobsCommand: () => ListSigningJobsCommand,
|
|
40
|
+
ListSigningPlatformsCommand: () => ListSigningPlatformsCommand,
|
|
41
|
+
ListSigningProfilesCommand: () => ListSigningProfilesCommand,
|
|
42
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
43
|
+
NotFoundException: () => NotFoundException,
|
|
44
|
+
PutSigningProfileCommand: () => PutSigningProfileCommand,
|
|
45
|
+
RemoveProfilePermissionCommand: () => RemoveProfilePermissionCommand,
|
|
46
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
47
|
+
RevokeSignatureCommand: () => RevokeSignatureCommand,
|
|
48
|
+
RevokeSigningProfileCommand: () => RevokeSigningProfileCommand,
|
|
49
|
+
ServiceLimitExceededException: () => ServiceLimitExceededException,
|
|
50
|
+
SignPayloadCommand: () => SignPayloadCommand,
|
|
51
|
+
Signer: () => Signer,
|
|
52
|
+
SignerClient: () => SignerClient,
|
|
53
|
+
SignerServiceException: () => SignerServiceException,
|
|
54
|
+
SigningProfileStatus: () => SigningProfileStatus,
|
|
55
|
+
SigningStatus: () => SigningStatus,
|
|
56
|
+
StartSigningJobCommand: () => StartSigningJobCommand,
|
|
57
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
58
|
+
ThrottlingException: () => ThrottlingException,
|
|
59
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
60
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
61
|
+
ValidationException: () => ValidationException,
|
|
62
|
+
ValidityType: () => ValidityType,
|
|
63
|
+
__Client: () => import_smithy_client.Client,
|
|
64
|
+
paginateListSigningJobs: () => paginateListSigningJobs,
|
|
65
|
+
paginateListSigningPlatforms: () => paginateListSigningPlatforms,
|
|
66
|
+
paginateListSigningProfiles: () => paginateListSigningProfiles,
|
|
67
|
+
waitForSuccessfulSigningJob: () => waitForSuccessfulSigningJob,
|
|
68
|
+
waitUntilSuccessfulSigningJob: () => waitUntilSuccessfulSigningJob
|
|
69
|
+
});
|
|
70
|
+
module.exports = __toCommonJS(src_exports);
|
|
71
|
+
|
|
72
|
+
// src/SignerClient.ts
|
|
73
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
74
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
75
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
76
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
77
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
78
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
79
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
80
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
81
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
// src/endpoint/EndpointParameters.ts
|
|
85
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
86
|
+
return {
|
|
87
|
+
...options,
|
|
88
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
89
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
90
|
+
defaultSigningName: "signer"
|
|
91
|
+
};
|
|
92
|
+
}, "resolveClientEndpointParameters");
|
|
93
|
+
var commonParams = {
|
|
94
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
95
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
96
|
+
Region: { type: "builtInParams", name: "region" },
|
|
97
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// src/SignerClient.ts
|
|
101
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
102
|
+
|
|
103
|
+
// src/runtimeExtensions.ts
|
|
104
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
105
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
106
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
107
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
108
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
109
|
+
const extensionConfiguration = {
|
|
110
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
111
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
112
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
113
|
+
};
|
|
114
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
115
|
+
return {
|
|
116
|
+
...runtimeConfig,
|
|
117
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
118
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
119
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
120
|
+
};
|
|
121
|
+
}, "resolveRuntimeExtensions");
|
|
122
|
+
|
|
123
|
+
// src/SignerClient.ts
|
|
124
|
+
var _SignerClient = class _SignerClient extends import_smithy_client.Client {
|
|
125
|
+
constructor(...[configuration]) {
|
|
126
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
127
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
128
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
129
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
130
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
131
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
132
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
133
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
134
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
135
|
+
super(_config_8);
|
|
136
|
+
this.config = _config_8;
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
143
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
147
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
148
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
149
|
+
*/
|
|
150
|
+
destroy() {
|
|
151
|
+
super.destroy();
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
__name(_SignerClient, "SignerClient");
|
|
155
|
+
var SignerClient = _SignerClient;
|
|
156
|
+
|
|
157
|
+
// src/Signer.ts
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
// src/commands/AddProfilePermissionCommand.ts
|
|
161
|
+
|
|
162
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
163
|
+
|
|
164
|
+
var import_types = require("@smithy/types");
|
|
165
|
+
|
|
166
|
+
// src/protocols/Aws_restJson1.ts
|
|
167
|
+
var import_core = require("@smithy/core");
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
var import_uuid = require("uuid");
|
|
171
|
+
|
|
172
|
+
// src/models/SignerServiceException.ts
|
|
173
|
+
|
|
174
|
+
var _SignerServiceException = class _SignerServiceException extends import_smithy_client.ServiceException {
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
constructor(options) {
|
|
179
|
+
super(options);
|
|
180
|
+
Object.setPrototypeOf(this, _SignerServiceException.prototype);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
__name(_SignerServiceException, "SignerServiceException");
|
|
184
|
+
var SignerServiceException = _SignerServiceException;
|
|
185
|
+
|
|
186
|
+
// src/models/models_0.ts
|
|
187
|
+
var _AccessDeniedException = class _AccessDeniedException extends SignerServiceException {
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
*/
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "AccessDeniedException",
|
|
194
|
+
$fault: "client",
|
|
195
|
+
...opts
|
|
196
|
+
});
|
|
197
|
+
this.name = "AccessDeniedException";
|
|
198
|
+
this.$fault = "client";
|
|
199
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
200
|
+
this.code = opts.code;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
204
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
205
|
+
var _ConflictException = class _ConflictException extends SignerServiceException {
|
|
206
|
+
/**
|
|
207
|
+
* @internal
|
|
208
|
+
*/
|
|
209
|
+
constructor(opts) {
|
|
210
|
+
super({
|
|
211
|
+
name: "ConflictException",
|
|
212
|
+
$fault: "client",
|
|
213
|
+
...opts
|
|
214
|
+
});
|
|
215
|
+
this.name = "ConflictException";
|
|
216
|
+
this.$fault = "client";
|
|
217
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
218
|
+
this.code = opts.code;
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
__name(_ConflictException, "ConflictException");
|
|
222
|
+
var ConflictException = _ConflictException;
|
|
223
|
+
var _InternalServiceErrorException = class _InternalServiceErrorException extends SignerServiceException {
|
|
224
|
+
/**
|
|
225
|
+
* @internal
|
|
226
|
+
*/
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "InternalServiceErrorException",
|
|
230
|
+
$fault: "server",
|
|
231
|
+
...opts
|
|
232
|
+
});
|
|
233
|
+
this.name = "InternalServiceErrorException";
|
|
234
|
+
this.$fault = "server";
|
|
235
|
+
Object.setPrototypeOf(this, _InternalServiceErrorException.prototype);
|
|
236
|
+
this.code = opts.code;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
__name(_InternalServiceErrorException, "InternalServiceErrorException");
|
|
240
|
+
var InternalServiceErrorException = _InternalServiceErrorException;
|
|
241
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends SignerServiceException {
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
constructor(opts) {
|
|
246
|
+
super({
|
|
247
|
+
name: "ResourceNotFoundException",
|
|
248
|
+
$fault: "client",
|
|
249
|
+
...opts
|
|
250
|
+
});
|
|
251
|
+
this.name = "ResourceNotFoundException";
|
|
252
|
+
this.$fault = "client";
|
|
253
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
254
|
+
this.code = opts.code;
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
258
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
259
|
+
var _ServiceLimitExceededException = class _ServiceLimitExceededException extends SignerServiceException {
|
|
260
|
+
/**
|
|
261
|
+
* @internal
|
|
262
|
+
*/
|
|
263
|
+
constructor(opts) {
|
|
264
|
+
super({
|
|
265
|
+
name: "ServiceLimitExceededException",
|
|
266
|
+
$fault: "client",
|
|
267
|
+
...opts
|
|
268
|
+
});
|
|
269
|
+
this.name = "ServiceLimitExceededException";
|
|
270
|
+
this.$fault = "client";
|
|
271
|
+
Object.setPrototypeOf(this, _ServiceLimitExceededException.prototype);
|
|
272
|
+
this.code = opts.code;
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
__name(_ServiceLimitExceededException, "ServiceLimitExceededException");
|
|
276
|
+
var ServiceLimitExceededException = _ServiceLimitExceededException;
|
|
277
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends SignerServiceException {
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "TooManyRequestsException",
|
|
284
|
+
$fault: "client",
|
|
285
|
+
...opts
|
|
286
|
+
});
|
|
287
|
+
this.name = "TooManyRequestsException";
|
|
288
|
+
this.$fault = "client";
|
|
289
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
290
|
+
this.code = opts.code;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
294
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
295
|
+
var _ValidationException = class _ValidationException extends SignerServiceException {
|
|
296
|
+
/**
|
|
297
|
+
* @internal
|
|
298
|
+
*/
|
|
299
|
+
constructor(opts) {
|
|
300
|
+
super({
|
|
301
|
+
name: "ValidationException",
|
|
302
|
+
$fault: "client",
|
|
303
|
+
...opts
|
|
304
|
+
});
|
|
305
|
+
this.name = "ValidationException";
|
|
306
|
+
this.$fault = "client";
|
|
307
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
308
|
+
this.code = opts.code;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
__name(_ValidationException, "ValidationException");
|
|
312
|
+
var ValidationException = _ValidationException;
|
|
313
|
+
var _BadRequestException = class _BadRequestException extends SignerServiceException {
|
|
314
|
+
/**
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
constructor(opts) {
|
|
318
|
+
super({
|
|
319
|
+
name: "BadRequestException",
|
|
320
|
+
$fault: "client",
|
|
321
|
+
...opts
|
|
322
|
+
});
|
|
323
|
+
this.name = "BadRequestException";
|
|
324
|
+
this.$fault = "client";
|
|
325
|
+
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
326
|
+
this.code = opts.code;
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
__name(_BadRequestException, "BadRequestException");
|
|
330
|
+
var BadRequestException = _BadRequestException;
|
|
331
|
+
var Category = {
|
|
332
|
+
AWSIoT: "AWSIoT"
|
|
333
|
+
};
|
|
334
|
+
var EncryptionAlgorithm = {
|
|
335
|
+
ECDSA: "ECDSA",
|
|
336
|
+
RSA: "RSA"
|
|
337
|
+
};
|
|
338
|
+
var HashAlgorithm = {
|
|
339
|
+
SHA1: "SHA1",
|
|
340
|
+
SHA256: "SHA256"
|
|
341
|
+
};
|
|
342
|
+
var ImageFormat = {
|
|
343
|
+
JSON: "JSON",
|
|
344
|
+
JSONDetached: "JSONDetached",
|
|
345
|
+
JSONEmbedded: "JSONEmbedded"
|
|
346
|
+
};
|
|
347
|
+
var SigningStatus = {
|
|
348
|
+
Failed: "Failed",
|
|
349
|
+
InProgress: "InProgress",
|
|
350
|
+
Succeeded: "Succeeded"
|
|
351
|
+
};
|
|
352
|
+
var ValidityType = {
|
|
353
|
+
DAYS: "DAYS",
|
|
354
|
+
MONTHS: "MONTHS",
|
|
355
|
+
YEARS: "YEARS"
|
|
356
|
+
};
|
|
357
|
+
var SigningProfileStatus = {
|
|
358
|
+
Active: "Active",
|
|
359
|
+
Canceled: "Canceled",
|
|
360
|
+
Revoked: "Revoked"
|
|
361
|
+
};
|
|
362
|
+
var _NotFoundException = class _NotFoundException extends SignerServiceException {
|
|
363
|
+
/**
|
|
364
|
+
* @internal
|
|
365
|
+
*/
|
|
366
|
+
constructor(opts) {
|
|
367
|
+
super({
|
|
368
|
+
name: "NotFoundException",
|
|
369
|
+
$fault: "client",
|
|
370
|
+
...opts
|
|
371
|
+
});
|
|
372
|
+
this.name = "NotFoundException";
|
|
373
|
+
this.$fault = "client";
|
|
374
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
375
|
+
this.code = opts.code;
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
__name(_NotFoundException, "NotFoundException");
|
|
379
|
+
var NotFoundException = _NotFoundException;
|
|
380
|
+
var _ThrottlingException = class _ThrottlingException extends SignerServiceException {
|
|
381
|
+
/**
|
|
382
|
+
* @internal
|
|
383
|
+
*/
|
|
384
|
+
constructor(opts) {
|
|
385
|
+
super({
|
|
386
|
+
name: "ThrottlingException",
|
|
387
|
+
$fault: "client",
|
|
388
|
+
...opts
|
|
389
|
+
});
|
|
390
|
+
this.name = "ThrottlingException";
|
|
391
|
+
this.$fault = "client";
|
|
392
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
393
|
+
this.code = opts.code;
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
397
|
+
var ThrottlingException = _ThrottlingException;
|
|
398
|
+
|
|
399
|
+
// src/protocols/Aws_restJson1.ts
|
|
400
|
+
var se_AddProfilePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
401
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
402
|
+
const headers = {
|
|
403
|
+
"content-type": "application/json"
|
|
404
|
+
};
|
|
405
|
+
b.bp("/signing-profiles/{profileName}/permissions");
|
|
406
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
407
|
+
let body;
|
|
408
|
+
body = JSON.stringify(
|
|
409
|
+
(0, import_smithy_client.take)(input, {
|
|
410
|
+
action: [],
|
|
411
|
+
principal: [],
|
|
412
|
+
profileVersion: [],
|
|
413
|
+
revisionId: [],
|
|
414
|
+
statementId: []
|
|
415
|
+
})
|
|
416
|
+
);
|
|
417
|
+
b.m("POST").h(headers).b(body);
|
|
418
|
+
return b.build();
|
|
419
|
+
}, "se_AddProfilePermissionCommand");
|
|
420
|
+
var se_CancelSigningProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
421
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
422
|
+
const headers = {};
|
|
423
|
+
b.bp("/signing-profiles/{profileName}");
|
|
424
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
425
|
+
let body;
|
|
426
|
+
b.m("DELETE").h(headers).b(body);
|
|
427
|
+
return b.build();
|
|
428
|
+
}, "se_CancelSigningProfileCommand");
|
|
429
|
+
var se_DescribeSigningJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
430
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
431
|
+
const headers = {};
|
|
432
|
+
b.bp("/signing-jobs/{jobId}");
|
|
433
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
434
|
+
let body;
|
|
435
|
+
b.m("GET").h(headers).b(body);
|
|
436
|
+
return b.build();
|
|
437
|
+
}, "se_DescribeSigningJobCommand");
|
|
438
|
+
var se_GetRevocationStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
439
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
440
|
+
const headers = {};
|
|
441
|
+
b.bp("/revocations");
|
|
442
|
+
const query = (0, import_smithy_client.map)({
|
|
443
|
+
[_sT]: [
|
|
444
|
+
(0, import_smithy_client.expectNonNull)(input.signatureTimestamp, `signatureTimestamp`) != null,
|
|
445
|
+
() => (input[_sT].toISOString().split(".")[0] + "Z").toString()
|
|
446
|
+
],
|
|
447
|
+
[_pI]: [, (0, import_smithy_client.expectNonNull)(input[_pI], `platformId`)],
|
|
448
|
+
[_pVA]: [, (0, import_smithy_client.expectNonNull)(input[_pVA], `profileVersionArn`)],
|
|
449
|
+
[_jA]: [, (0, import_smithy_client.expectNonNull)(input[_jA], `jobArn`)],
|
|
450
|
+
[_cH]: [
|
|
451
|
+
(0, import_smithy_client.expectNonNull)(input.certificateHashes, `certificateHashes`) != null,
|
|
452
|
+
() => (input[_cH] || []).map((_entry) => _entry)
|
|
453
|
+
]
|
|
454
|
+
});
|
|
455
|
+
let body;
|
|
456
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
457
|
+
if (context.disableHostPrefix !== true) {
|
|
458
|
+
resolvedHostname = "verification." + resolvedHostname;
|
|
459
|
+
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
460
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
b.hn(resolvedHostname);
|
|
464
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
465
|
+
return b.build();
|
|
466
|
+
}, "se_GetRevocationStatusCommand");
|
|
467
|
+
var se_GetSigningPlatformCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
468
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
469
|
+
const headers = {};
|
|
470
|
+
b.bp("/signing-platforms/{platformId}");
|
|
471
|
+
b.p("platformId", () => input.platformId, "{platformId}", false);
|
|
472
|
+
let body;
|
|
473
|
+
b.m("GET").h(headers).b(body);
|
|
474
|
+
return b.build();
|
|
475
|
+
}, "se_GetSigningPlatformCommand");
|
|
476
|
+
var se_GetSigningProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
477
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
478
|
+
const headers = {};
|
|
479
|
+
b.bp("/signing-profiles/{profileName}");
|
|
480
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
481
|
+
const query = (0, import_smithy_client.map)({
|
|
482
|
+
[_pO]: [, input[_pO]]
|
|
483
|
+
});
|
|
484
|
+
let body;
|
|
485
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
486
|
+
return b.build();
|
|
487
|
+
}, "se_GetSigningProfileCommand");
|
|
488
|
+
var se_ListProfilePermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
489
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
490
|
+
const headers = {};
|
|
491
|
+
b.bp("/signing-profiles/{profileName}/permissions");
|
|
492
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
493
|
+
const query = (0, import_smithy_client.map)({
|
|
494
|
+
[_nT]: [, input[_nT]]
|
|
495
|
+
});
|
|
496
|
+
let body;
|
|
497
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
498
|
+
return b.build();
|
|
499
|
+
}, "se_ListProfilePermissionsCommand");
|
|
500
|
+
var se_ListSigningJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
501
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
502
|
+
const headers = {};
|
|
503
|
+
b.bp("/signing-jobs");
|
|
504
|
+
const query = (0, import_smithy_client.map)({
|
|
505
|
+
[_s]: [, input[_s]],
|
|
506
|
+
[_pI]: [, input[_pI]],
|
|
507
|
+
[_rB]: [, input[_rB]],
|
|
508
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
509
|
+
[_nT]: [, input[_nT]],
|
|
510
|
+
[_iR]: [() => input.isRevoked !== void 0, () => input[_iR].toString()],
|
|
511
|
+
[_sEB]: [
|
|
512
|
+
() => input.signatureExpiresBefore !== void 0,
|
|
513
|
+
() => (input[_sEB].toISOString().split(".")[0] + "Z").toString()
|
|
514
|
+
],
|
|
515
|
+
[_sEA]: [
|
|
516
|
+
() => input.signatureExpiresAfter !== void 0,
|
|
517
|
+
() => (input[_sEA].toISOString().split(".")[0] + "Z").toString()
|
|
518
|
+
],
|
|
519
|
+
[_jI]: [, input[_jI]]
|
|
520
|
+
});
|
|
521
|
+
let body;
|
|
522
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
523
|
+
return b.build();
|
|
524
|
+
}, "se_ListSigningJobsCommand");
|
|
525
|
+
var se_ListSigningPlatformsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
526
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
527
|
+
const headers = {};
|
|
528
|
+
b.bp("/signing-platforms");
|
|
529
|
+
const query = (0, import_smithy_client.map)({
|
|
530
|
+
[_c]: [, input[_c]],
|
|
531
|
+
[_p]: [, input[_p]],
|
|
532
|
+
[_t]: [, input[_t]],
|
|
533
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
534
|
+
[_nT]: [, input[_nT]]
|
|
535
|
+
});
|
|
536
|
+
let body;
|
|
537
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
538
|
+
return b.build();
|
|
539
|
+
}, "se_ListSigningPlatformsCommand");
|
|
540
|
+
var se_ListSigningProfilesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
541
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
542
|
+
const headers = {};
|
|
543
|
+
b.bp("/signing-profiles");
|
|
544
|
+
const query = (0, import_smithy_client.map)({
|
|
545
|
+
[_iC]: [() => input.includeCanceled !== void 0, () => input[_iC].toString()],
|
|
546
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
547
|
+
[_nT]: [, input[_nT]],
|
|
548
|
+
[_pI]: [, input[_pI]],
|
|
549
|
+
[_st]: [() => input.statuses !== void 0, () => (input[_st] || []).map((_entry) => _entry)]
|
|
550
|
+
});
|
|
551
|
+
let body;
|
|
552
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
553
|
+
return b.build();
|
|
554
|
+
}, "se_ListSigningProfilesCommand");
|
|
555
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
556
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
557
|
+
const headers = {};
|
|
558
|
+
b.bp("/tags/{resourceArn}");
|
|
559
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
560
|
+
let body;
|
|
561
|
+
b.m("GET").h(headers).b(body);
|
|
562
|
+
return b.build();
|
|
563
|
+
}, "se_ListTagsForResourceCommand");
|
|
564
|
+
var se_PutSigningProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
565
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
566
|
+
const headers = {
|
|
567
|
+
"content-type": "application/json"
|
|
568
|
+
};
|
|
569
|
+
b.bp("/signing-profiles/{profileName}");
|
|
570
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
571
|
+
let body;
|
|
572
|
+
body = JSON.stringify(
|
|
573
|
+
(0, import_smithy_client.take)(input, {
|
|
574
|
+
overrides: (_) => (0, import_smithy_client._json)(_),
|
|
575
|
+
platformId: [],
|
|
576
|
+
signatureValidityPeriod: (_) => (0, import_smithy_client._json)(_),
|
|
577
|
+
signingMaterial: (_) => (0, import_smithy_client._json)(_),
|
|
578
|
+
signingParameters: (_) => (0, import_smithy_client._json)(_),
|
|
579
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
580
|
+
})
|
|
581
|
+
);
|
|
582
|
+
b.m("PUT").h(headers).b(body);
|
|
583
|
+
return b.build();
|
|
584
|
+
}, "se_PutSigningProfileCommand");
|
|
585
|
+
var se_RemoveProfilePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
587
|
+
const headers = {};
|
|
588
|
+
b.bp("/signing-profiles/{profileName}/permissions/{statementId}");
|
|
589
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
590
|
+
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
591
|
+
const query = (0, import_smithy_client.map)({
|
|
592
|
+
[_rI]: [, (0, import_smithy_client.expectNonNull)(input[_rI], `revisionId`)]
|
|
593
|
+
});
|
|
594
|
+
let body;
|
|
595
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
596
|
+
return b.build();
|
|
597
|
+
}, "se_RemoveProfilePermissionCommand");
|
|
598
|
+
var se_RevokeSignatureCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
599
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
600
|
+
const headers = {
|
|
601
|
+
"content-type": "application/json"
|
|
602
|
+
};
|
|
603
|
+
b.bp("/signing-jobs/{jobId}/revoke");
|
|
604
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
605
|
+
let body;
|
|
606
|
+
body = JSON.stringify(
|
|
607
|
+
(0, import_smithy_client.take)(input, {
|
|
608
|
+
jobOwner: [],
|
|
609
|
+
reason: []
|
|
610
|
+
})
|
|
611
|
+
);
|
|
612
|
+
b.m("PUT").h(headers).b(body);
|
|
613
|
+
return b.build();
|
|
614
|
+
}, "se_RevokeSignatureCommand");
|
|
615
|
+
var se_RevokeSigningProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
616
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
617
|
+
const headers = {
|
|
618
|
+
"content-type": "application/json"
|
|
619
|
+
};
|
|
620
|
+
b.bp("/signing-profiles/{profileName}/revoke");
|
|
621
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
622
|
+
let body;
|
|
623
|
+
body = JSON.stringify(
|
|
624
|
+
(0, import_smithy_client.take)(input, {
|
|
625
|
+
effectiveTime: (_) => Math.round(_.getTime() / 1e3),
|
|
626
|
+
profileVersion: [],
|
|
627
|
+
reason: []
|
|
628
|
+
})
|
|
629
|
+
);
|
|
630
|
+
b.m("PUT").h(headers).b(body);
|
|
631
|
+
return b.build();
|
|
632
|
+
}, "se_RevokeSigningProfileCommand");
|
|
633
|
+
var se_SignPayloadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
634
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
635
|
+
const headers = {
|
|
636
|
+
"content-type": "application/json"
|
|
637
|
+
};
|
|
638
|
+
b.bp("/signing-jobs/with-payload");
|
|
639
|
+
let body;
|
|
640
|
+
body = JSON.stringify(
|
|
641
|
+
(0, import_smithy_client.take)(input, {
|
|
642
|
+
payload: (_) => context.base64Encoder(_),
|
|
643
|
+
payloadFormat: [],
|
|
644
|
+
profileName: [],
|
|
645
|
+
profileOwner: []
|
|
646
|
+
})
|
|
647
|
+
);
|
|
648
|
+
b.m("POST").h(headers).b(body);
|
|
649
|
+
return b.build();
|
|
650
|
+
}, "se_SignPayloadCommand");
|
|
651
|
+
var se_StartSigningJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
652
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
653
|
+
const headers = {
|
|
654
|
+
"content-type": "application/json"
|
|
655
|
+
};
|
|
656
|
+
b.bp("/signing-jobs");
|
|
657
|
+
let body;
|
|
658
|
+
body = JSON.stringify(
|
|
659
|
+
(0, import_smithy_client.take)(input, {
|
|
660
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
661
|
+
destination: (_) => (0, import_smithy_client._json)(_),
|
|
662
|
+
profileName: [],
|
|
663
|
+
profileOwner: [],
|
|
664
|
+
source: (_) => (0, import_smithy_client._json)(_)
|
|
665
|
+
})
|
|
666
|
+
);
|
|
667
|
+
b.m("POST").h(headers).b(body);
|
|
668
|
+
return b.build();
|
|
669
|
+
}, "se_StartSigningJobCommand");
|
|
670
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
671
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
672
|
+
const headers = {
|
|
673
|
+
"content-type": "application/json"
|
|
674
|
+
};
|
|
675
|
+
b.bp("/tags/{resourceArn}");
|
|
676
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
677
|
+
let body;
|
|
678
|
+
body = JSON.stringify(
|
|
679
|
+
(0, import_smithy_client.take)(input, {
|
|
680
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
681
|
+
})
|
|
682
|
+
);
|
|
683
|
+
b.m("POST").h(headers).b(body);
|
|
684
|
+
return b.build();
|
|
685
|
+
}, "se_TagResourceCommand");
|
|
686
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
687
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
688
|
+
const headers = {};
|
|
689
|
+
b.bp("/tags/{resourceArn}");
|
|
690
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
691
|
+
const query = (0, import_smithy_client.map)({
|
|
692
|
+
[_tK]: [
|
|
693
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
694
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
695
|
+
]
|
|
696
|
+
});
|
|
697
|
+
let body;
|
|
698
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
699
|
+
return b.build();
|
|
700
|
+
}, "se_UntagResourceCommand");
|
|
701
|
+
var de_AddProfilePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
+
return de_AddProfilePermissionCommandError(output, context);
|
|
704
|
+
}
|
|
705
|
+
const contents = (0, import_smithy_client.map)({
|
|
706
|
+
$metadata: deserializeMetadata(output)
|
|
707
|
+
});
|
|
708
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
709
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
710
|
+
revisionId: import_smithy_client.expectString
|
|
711
|
+
});
|
|
712
|
+
Object.assign(contents, doc);
|
|
713
|
+
return contents;
|
|
714
|
+
}, "de_AddProfilePermissionCommand");
|
|
715
|
+
var de_AddProfilePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
+
const parsedOutput = {
|
|
717
|
+
...output,
|
|
718
|
+
body: await parseErrorBody(output.body, context)
|
|
719
|
+
};
|
|
720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
+
switch (errorCode) {
|
|
722
|
+
case "AccessDeniedException":
|
|
723
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
724
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
725
|
+
case "ConflictException":
|
|
726
|
+
case "com.amazonaws.signer#ConflictException":
|
|
727
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
728
|
+
case "InternalServiceErrorException":
|
|
729
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
730
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
731
|
+
case "ResourceNotFoundException":
|
|
732
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
733
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
734
|
+
case "ServiceLimitExceededException":
|
|
735
|
+
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
736
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
737
|
+
case "TooManyRequestsException":
|
|
738
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
739
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
740
|
+
case "ValidationException":
|
|
741
|
+
case "com.amazonaws.signer#ValidationException":
|
|
742
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
|
+
default:
|
|
744
|
+
const parsedBody = parsedOutput.body;
|
|
745
|
+
return throwDefaultError({
|
|
746
|
+
output,
|
|
747
|
+
parsedBody,
|
|
748
|
+
errorCode
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
}, "de_AddProfilePermissionCommandError");
|
|
752
|
+
var de_CancelSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
+
return de_CancelSigningProfileCommandError(output, context);
|
|
755
|
+
}
|
|
756
|
+
const contents = (0, import_smithy_client.map)({
|
|
757
|
+
$metadata: deserializeMetadata(output)
|
|
758
|
+
});
|
|
759
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
760
|
+
return contents;
|
|
761
|
+
}, "de_CancelSigningProfileCommand");
|
|
762
|
+
var de_CancelSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
763
|
+
const parsedOutput = {
|
|
764
|
+
...output,
|
|
765
|
+
body: await parseErrorBody(output.body, context)
|
|
766
|
+
};
|
|
767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
+
switch (errorCode) {
|
|
769
|
+
case "AccessDeniedException":
|
|
770
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
772
|
+
case "InternalServiceErrorException":
|
|
773
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
774
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
775
|
+
case "ResourceNotFoundException":
|
|
776
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
777
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
778
|
+
case "TooManyRequestsException":
|
|
779
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
780
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
781
|
+
default:
|
|
782
|
+
const parsedBody = parsedOutput.body;
|
|
783
|
+
return throwDefaultError({
|
|
784
|
+
output,
|
|
785
|
+
parsedBody,
|
|
786
|
+
errorCode
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
}, "de_CancelSigningProfileCommandError");
|
|
790
|
+
var de_DescribeSigningJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
+
return de_DescribeSigningJobCommandError(output, context);
|
|
793
|
+
}
|
|
794
|
+
const contents = (0, import_smithy_client.map)({
|
|
795
|
+
$metadata: deserializeMetadata(output)
|
|
796
|
+
});
|
|
797
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
798
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
799
|
+
completedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
800
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
801
|
+
jobId: import_smithy_client.expectString,
|
|
802
|
+
jobInvoker: import_smithy_client.expectString,
|
|
803
|
+
jobOwner: import_smithy_client.expectString,
|
|
804
|
+
overrides: import_smithy_client._json,
|
|
805
|
+
platformDisplayName: import_smithy_client.expectString,
|
|
806
|
+
platformId: import_smithy_client.expectString,
|
|
807
|
+
profileName: import_smithy_client.expectString,
|
|
808
|
+
profileVersion: import_smithy_client.expectString,
|
|
809
|
+
requestedBy: import_smithy_client.expectString,
|
|
810
|
+
revocationRecord: (_) => de_SigningJobRevocationRecord(_, context),
|
|
811
|
+
signatureExpiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
812
|
+
signedObject: import_smithy_client._json,
|
|
813
|
+
signingMaterial: import_smithy_client._json,
|
|
814
|
+
signingParameters: import_smithy_client._json,
|
|
815
|
+
source: import_smithy_client._json,
|
|
816
|
+
status: import_smithy_client.expectString,
|
|
817
|
+
statusReason: import_smithy_client.expectString
|
|
818
|
+
});
|
|
819
|
+
Object.assign(contents, doc);
|
|
820
|
+
return contents;
|
|
821
|
+
}, "de_DescribeSigningJobCommand");
|
|
822
|
+
var de_DescribeSigningJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
823
|
+
const parsedOutput = {
|
|
824
|
+
...output,
|
|
825
|
+
body: await parseErrorBody(output.body, context)
|
|
826
|
+
};
|
|
827
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
+
switch (errorCode) {
|
|
829
|
+
case "AccessDeniedException":
|
|
830
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
831
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
832
|
+
case "InternalServiceErrorException":
|
|
833
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
834
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
835
|
+
case "ResourceNotFoundException":
|
|
836
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
837
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
+
case "TooManyRequestsException":
|
|
839
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
840
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
841
|
+
default:
|
|
842
|
+
const parsedBody = parsedOutput.body;
|
|
843
|
+
return throwDefaultError({
|
|
844
|
+
output,
|
|
845
|
+
parsedBody,
|
|
846
|
+
errorCode
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
}, "de_DescribeSigningJobCommandError");
|
|
850
|
+
var de_GetRevocationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
851
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
852
|
+
return de_GetRevocationStatusCommandError(output, context);
|
|
853
|
+
}
|
|
854
|
+
const contents = (0, import_smithy_client.map)({
|
|
855
|
+
$metadata: deserializeMetadata(output)
|
|
856
|
+
});
|
|
857
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
858
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
859
|
+
revokedEntities: import_smithy_client._json
|
|
860
|
+
});
|
|
861
|
+
Object.assign(contents, doc);
|
|
862
|
+
return contents;
|
|
863
|
+
}, "de_GetRevocationStatusCommand");
|
|
864
|
+
var de_GetRevocationStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
865
|
+
const parsedOutput = {
|
|
866
|
+
...output,
|
|
867
|
+
body: await parseErrorBody(output.body, context)
|
|
868
|
+
};
|
|
869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
+
switch (errorCode) {
|
|
871
|
+
case "AccessDeniedException":
|
|
872
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
873
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
874
|
+
case "InternalServiceErrorException":
|
|
875
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
876
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
877
|
+
case "TooManyRequestsException":
|
|
878
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
879
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
880
|
+
case "ValidationException":
|
|
881
|
+
case "com.amazonaws.signer#ValidationException":
|
|
882
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
883
|
+
default:
|
|
884
|
+
const parsedBody = parsedOutput.body;
|
|
885
|
+
return throwDefaultError({
|
|
886
|
+
output,
|
|
887
|
+
parsedBody,
|
|
888
|
+
errorCode
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
}, "de_GetRevocationStatusCommandError");
|
|
892
|
+
var de_GetSigningPlatformCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
893
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
+
return de_GetSigningPlatformCommandError(output, context);
|
|
895
|
+
}
|
|
896
|
+
const contents = (0, import_smithy_client.map)({
|
|
897
|
+
$metadata: deserializeMetadata(output)
|
|
898
|
+
});
|
|
899
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
900
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
901
|
+
category: import_smithy_client.expectString,
|
|
902
|
+
displayName: import_smithy_client.expectString,
|
|
903
|
+
maxSizeInMB: import_smithy_client.expectInt32,
|
|
904
|
+
partner: import_smithy_client.expectString,
|
|
905
|
+
platformId: import_smithy_client.expectString,
|
|
906
|
+
revocationSupported: import_smithy_client.expectBoolean,
|
|
907
|
+
signingConfiguration: import_smithy_client._json,
|
|
908
|
+
signingImageFormat: import_smithy_client._json,
|
|
909
|
+
target: import_smithy_client.expectString
|
|
910
|
+
});
|
|
911
|
+
Object.assign(contents, doc);
|
|
912
|
+
return contents;
|
|
913
|
+
}, "de_GetSigningPlatformCommand");
|
|
914
|
+
var de_GetSigningPlatformCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
|
+
const parsedOutput = {
|
|
916
|
+
...output,
|
|
917
|
+
body: await parseErrorBody(output.body, context)
|
|
918
|
+
};
|
|
919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
+
switch (errorCode) {
|
|
921
|
+
case "AccessDeniedException":
|
|
922
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
923
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
924
|
+
case "InternalServiceErrorException":
|
|
925
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
926
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
927
|
+
case "ResourceNotFoundException":
|
|
928
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
929
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
930
|
+
case "TooManyRequestsException":
|
|
931
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
932
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
933
|
+
default:
|
|
934
|
+
const parsedBody = parsedOutput.body;
|
|
935
|
+
return throwDefaultError({
|
|
936
|
+
output,
|
|
937
|
+
parsedBody,
|
|
938
|
+
errorCode
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
}, "de_GetSigningPlatformCommandError");
|
|
942
|
+
var de_GetSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
+
return de_GetSigningProfileCommandError(output, context);
|
|
945
|
+
}
|
|
946
|
+
const contents = (0, import_smithy_client.map)({
|
|
947
|
+
$metadata: deserializeMetadata(output)
|
|
948
|
+
});
|
|
949
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
950
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
951
|
+
arn: import_smithy_client.expectString,
|
|
952
|
+
overrides: import_smithy_client._json,
|
|
953
|
+
platformDisplayName: import_smithy_client.expectString,
|
|
954
|
+
platformId: import_smithy_client.expectString,
|
|
955
|
+
profileName: import_smithy_client.expectString,
|
|
956
|
+
profileVersion: import_smithy_client.expectString,
|
|
957
|
+
profileVersionArn: import_smithy_client.expectString,
|
|
958
|
+
revocationRecord: (_) => de_SigningProfileRevocationRecord(_, context),
|
|
959
|
+
signatureValidityPeriod: import_smithy_client._json,
|
|
960
|
+
signingMaterial: import_smithy_client._json,
|
|
961
|
+
signingParameters: import_smithy_client._json,
|
|
962
|
+
status: import_smithy_client.expectString,
|
|
963
|
+
statusReason: import_smithy_client.expectString,
|
|
964
|
+
tags: import_smithy_client._json
|
|
965
|
+
});
|
|
966
|
+
Object.assign(contents, doc);
|
|
967
|
+
return contents;
|
|
968
|
+
}, "de_GetSigningProfileCommand");
|
|
969
|
+
var de_GetSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
970
|
+
const parsedOutput = {
|
|
971
|
+
...output,
|
|
972
|
+
body: await parseErrorBody(output.body, context)
|
|
973
|
+
};
|
|
974
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
+
switch (errorCode) {
|
|
976
|
+
case "AccessDeniedException":
|
|
977
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
978
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
979
|
+
case "InternalServiceErrorException":
|
|
980
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
981
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
982
|
+
case "ResourceNotFoundException":
|
|
983
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
984
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
985
|
+
case "TooManyRequestsException":
|
|
986
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
987
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
988
|
+
default:
|
|
989
|
+
const parsedBody = parsedOutput.body;
|
|
990
|
+
return throwDefaultError({
|
|
991
|
+
output,
|
|
992
|
+
parsedBody,
|
|
993
|
+
errorCode
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
}, "de_GetSigningProfileCommandError");
|
|
997
|
+
var de_ListProfilePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
999
|
+
return de_ListProfilePermissionsCommandError(output, context);
|
|
1000
|
+
}
|
|
1001
|
+
const contents = (0, import_smithy_client.map)({
|
|
1002
|
+
$metadata: deserializeMetadata(output)
|
|
1003
|
+
});
|
|
1004
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1005
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1006
|
+
nextToken: import_smithy_client.expectString,
|
|
1007
|
+
permissions: import_smithy_client._json,
|
|
1008
|
+
policySizeBytes: import_smithy_client.expectInt32,
|
|
1009
|
+
revisionId: import_smithy_client.expectString
|
|
1010
|
+
});
|
|
1011
|
+
Object.assign(contents, doc);
|
|
1012
|
+
return contents;
|
|
1013
|
+
}, "de_ListProfilePermissionsCommand");
|
|
1014
|
+
var de_ListProfilePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1015
|
+
const parsedOutput = {
|
|
1016
|
+
...output,
|
|
1017
|
+
body: await parseErrorBody(output.body, context)
|
|
1018
|
+
};
|
|
1019
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
+
switch (errorCode) {
|
|
1021
|
+
case "AccessDeniedException":
|
|
1022
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1023
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1024
|
+
case "InternalServiceErrorException":
|
|
1025
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1026
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1027
|
+
case "ResourceNotFoundException":
|
|
1028
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1029
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1030
|
+
case "TooManyRequestsException":
|
|
1031
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1032
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1033
|
+
case "ValidationException":
|
|
1034
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1035
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1036
|
+
default:
|
|
1037
|
+
const parsedBody = parsedOutput.body;
|
|
1038
|
+
return throwDefaultError({
|
|
1039
|
+
output,
|
|
1040
|
+
parsedBody,
|
|
1041
|
+
errorCode
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
}, "de_ListProfilePermissionsCommandError");
|
|
1045
|
+
var de_ListSigningJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
+
return de_ListSigningJobsCommandError(output, context);
|
|
1048
|
+
}
|
|
1049
|
+
const contents = (0, import_smithy_client.map)({
|
|
1050
|
+
$metadata: deserializeMetadata(output)
|
|
1051
|
+
});
|
|
1052
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1053
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1054
|
+
jobs: (_) => de_SigningJobs(_, context),
|
|
1055
|
+
nextToken: import_smithy_client.expectString
|
|
1056
|
+
});
|
|
1057
|
+
Object.assign(contents, doc);
|
|
1058
|
+
return contents;
|
|
1059
|
+
}, "de_ListSigningJobsCommand");
|
|
1060
|
+
var de_ListSigningJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1061
|
+
const parsedOutput = {
|
|
1062
|
+
...output,
|
|
1063
|
+
body: await parseErrorBody(output.body, context)
|
|
1064
|
+
};
|
|
1065
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
+
switch (errorCode) {
|
|
1067
|
+
case "AccessDeniedException":
|
|
1068
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1069
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "InternalServiceErrorException":
|
|
1071
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1072
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "TooManyRequestsException":
|
|
1074
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1075
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "ValidationException":
|
|
1077
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1078
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
|
+
default:
|
|
1080
|
+
const parsedBody = parsedOutput.body;
|
|
1081
|
+
return throwDefaultError({
|
|
1082
|
+
output,
|
|
1083
|
+
parsedBody,
|
|
1084
|
+
errorCode
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
}, "de_ListSigningJobsCommandError");
|
|
1088
|
+
var de_ListSigningPlatformsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
+
return de_ListSigningPlatformsCommandError(output, context);
|
|
1091
|
+
}
|
|
1092
|
+
const contents = (0, import_smithy_client.map)({
|
|
1093
|
+
$metadata: deserializeMetadata(output)
|
|
1094
|
+
});
|
|
1095
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1096
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1097
|
+
nextToken: import_smithy_client.expectString,
|
|
1098
|
+
platforms: import_smithy_client._json
|
|
1099
|
+
});
|
|
1100
|
+
Object.assign(contents, doc);
|
|
1101
|
+
return contents;
|
|
1102
|
+
}, "de_ListSigningPlatformsCommand");
|
|
1103
|
+
var de_ListSigningPlatformsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
|
+
const parsedOutput = {
|
|
1105
|
+
...output,
|
|
1106
|
+
body: await parseErrorBody(output.body, context)
|
|
1107
|
+
};
|
|
1108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
+
switch (errorCode) {
|
|
1110
|
+
case "AccessDeniedException":
|
|
1111
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1112
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1113
|
+
case "InternalServiceErrorException":
|
|
1114
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1115
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1116
|
+
case "TooManyRequestsException":
|
|
1117
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1118
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1119
|
+
case "ValidationException":
|
|
1120
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1121
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1122
|
+
default:
|
|
1123
|
+
const parsedBody = parsedOutput.body;
|
|
1124
|
+
return throwDefaultError({
|
|
1125
|
+
output,
|
|
1126
|
+
parsedBody,
|
|
1127
|
+
errorCode
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
}, "de_ListSigningPlatformsCommandError");
|
|
1131
|
+
var de_ListSigningProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1132
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
+
return de_ListSigningProfilesCommandError(output, context);
|
|
1134
|
+
}
|
|
1135
|
+
const contents = (0, import_smithy_client.map)({
|
|
1136
|
+
$metadata: deserializeMetadata(output)
|
|
1137
|
+
});
|
|
1138
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1139
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1140
|
+
nextToken: import_smithy_client.expectString,
|
|
1141
|
+
profiles: import_smithy_client._json
|
|
1142
|
+
});
|
|
1143
|
+
Object.assign(contents, doc);
|
|
1144
|
+
return contents;
|
|
1145
|
+
}, "de_ListSigningProfilesCommand");
|
|
1146
|
+
var de_ListSigningProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
+
const parsedOutput = {
|
|
1148
|
+
...output,
|
|
1149
|
+
body: await parseErrorBody(output.body, context)
|
|
1150
|
+
};
|
|
1151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
+
switch (errorCode) {
|
|
1153
|
+
case "AccessDeniedException":
|
|
1154
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1155
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "InternalServiceErrorException":
|
|
1157
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1158
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "TooManyRequestsException":
|
|
1160
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1161
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1162
|
+
default:
|
|
1163
|
+
const parsedBody = parsedOutput.body;
|
|
1164
|
+
return throwDefaultError({
|
|
1165
|
+
output,
|
|
1166
|
+
parsedBody,
|
|
1167
|
+
errorCode
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
}, "de_ListSigningProfilesCommandError");
|
|
1171
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1172
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1174
|
+
}
|
|
1175
|
+
const contents = (0, import_smithy_client.map)({
|
|
1176
|
+
$metadata: deserializeMetadata(output)
|
|
1177
|
+
});
|
|
1178
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1179
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1180
|
+
tags: import_smithy_client._json
|
|
1181
|
+
});
|
|
1182
|
+
Object.assign(contents, doc);
|
|
1183
|
+
return contents;
|
|
1184
|
+
}, "de_ListTagsForResourceCommand");
|
|
1185
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
|
+
const parsedOutput = {
|
|
1187
|
+
...output,
|
|
1188
|
+
body: await parseErrorBody(output.body, context)
|
|
1189
|
+
};
|
|
1190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
+
switch (errorCode) {
|
|
1192
|
+
case "BadRequestException":
|
|
1193
|
+
case "com.amazonaws.signer#BadRequestException":
|
|
1194
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1195
|
+
case "InternalServiceErrorException":
|
|
1196
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1197
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1198
|
+
case "NotFoundException":
|
|
1199
|
+
case "com.amazonaws.signer#NotFoundException":
|
|
1200
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
+
case "TooManyRequestsException":
|
|
1202
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1203
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1204
|
+
default:
|
|
1205
|
+
const parsedBody = parsedOutput.body;
|
|
1206
|
+
return throwDefaultError({
|
|
1207
|
+
output,
|
|
1208
|
+
parsedBody,
|
|
1209
|
+
errorCode
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1213
|
+
var de_PutSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1214
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1215
|
+
return de_PutSigningProfileCommandError(output, context);
|
|
1216
|
+
}
|
|
1217
|
+
const contents = (0, import_smithy_client.map)({
|
|
1218
|
+
$metadata: deserializeMetadata(output)
|
|
1219
|
+
});
|
|
1220
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1221
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1222
|
+
arn: import_smithy_client.expectString,
|
|
1223
|
+
profileVersion: import_smithy_client.expectString,
|
|
1224
|
+
profileVersionArn: import_smithy_client.expectString
|
|
1225
|
+
});
|
|
1226
|
+
Object.assign(contents, doc);
|
|
1227
|
+
return contents;
|
|
1228
|
+
}, "de_PutSigningProfileCommand");
|
|
1229
|
+
var de_PutSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
|
+
const parsedOutput = {
|
|
1231
|
+
...output,
|
|
1232
|
+
body: await parseErrorBody(output.body, context)
|
|
1233
|
+
};
|
|
1234
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
+
switch (errorCode) {
|
|
1236
|
+
case "AccessDeniedException":
|
|
1237
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1238
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1239
|
+
case "InternalServiceErrorException":
|
|
1240
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1241
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1242
|
+
case "ResourceNotFoundException":
|
|
1243
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1244
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
|
+
case "TooManyRequestsException":
|
|
1246
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1247
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "ValidationException":
|
|
1249
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1250
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
|
+
default:
|
|
1252
|
+
const parsedBody = parsedOutput.body;
|
|
1253
|
+
return throwDefaultError({
|
|
1254
|
+
output,
|
|
1255
|
+
parsedBody,
|
|
1256
|
+
errorCode
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
}, "de_PutSigningProfileCommandError");
|
|
1260
|
+
var de_RemoveProfilePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1261
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
+
return de_RemoveProfilePermissionCommandError(output, context);
|
|
1263
|
+
}
|
|
1264
|
+
const contents = (0, import_smithy_client.map)({
|
|
1265
|
+
$metadata: deserializeMetadata(output)
|
|
1266
|
+
});
|
|
1267
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1268
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1269
|
+
revisionId: import_smithy_client.expectString
|
|
1270
|
+
});
|
|
1271
|
+
Object.assign(contents, doc);
|
|
1272
|
+
return contents;
|
|
1273
|
+
}, "de_RemoveProfilePermissionCommand");
|
|
1274
|
+
var de_RemoveProfilePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1275
|
+
const parsedOutput = {
|
|
1276
|
+
...output,
|
|
1277
|
+
body: await parseErrorBody(output.body, context)
|
|
1278
|
+
};
|
|
1279
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
|
+
switch (errorCode) {
|
|
1281
|
+
case "AccessDeniedException":
|
|
1282
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1283
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1284
|
+
case "ConflictException":
|
|
1285
|
+
case "com.amazonaws.signer#ConflictException":
|
|
1286
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1287
|
+
case "InternalServiceErrorException":
|
|
1288
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1289
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1290
|
+
case "ResourceNotFoundException":
|
|
1291
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1292
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
+
case "TooManyRequestsException":
|
|
1294
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1295
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1296
|
+
case "ValidationException":
|
|
1297
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1298
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
|
+
default:
|
|
1300
|
+
const parsedBody = parsedOutput.body;
|
|
1301
|
+
return throwDefaultError({
|
|
1302
|
+
output,
|
|
1303
|
+
parsedBody,
|
|
1304
|
+
errorCode
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
}, "de_RemoveProfilePermissionCommandError");
|
|
1308
|
+
var de_RevokeSignatureCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
+
return de_RevokeSignatureCommandError(output, context);
|
|
1311
|
+
}
|
|
1312
|
+
const contents = (0, import_smithy_client.map)({
|
|
1313
|
+
$metadata: deserializeMetadata(output)
|
|
1314
|
+
});
|
|
1315
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1316
|
+
return contents;
|
|
1317
|
+
}, "de_RevokeSignatureCommand");
|
|
1318
|
+
var de_RevokeSignatureCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
|
+
const parsedOutput = {
|
|
1320
|
+
...output,
|
|
1321
|
+
body: await parseErrorBody(output.body, context)
|
|
1322
|
+
};
|
|
1323
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
+
switch (errorCode) {
|
|
1325
|
+
case "AccessDeniedException":
|
|
1326
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1327
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1328
|
+
case "InternalServiceErrorException":
|
|
1329
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1330
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1331
|
+
case "ResourceNotFoundException":
|
|
1332
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1333
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1334
|
+
case "TooManyRequestsException":
|
|
1335
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1336
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1337
|
+
case "ValidationException":
|
|
1338
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1339
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
|
+
default:
|
|
1341
|
+
const parsedBody = parsedOutput.body;
|
|
1342
|
+
return throwDefaultError({
|
|
1343
|
+
output,
|
|
1344
|
+
parsedBody,
|
|
1345
|
+
errorCode
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
}, "de_RevokeSignatureCommandError");
|
|
1349
|
+
var de_RevokeSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
|
+
return de_RevokeSigningProfileCommandError(output, context);
|
|
1352
|
+
}
|
|
1353
|
+
const contents = (0, import_smithy_client.map)({
|
|
1354
|
+
$metadata: deserializeMetadata(output)
|
|
1355
|
+
});
|
|
1356
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1357
|
+
return contents;
|
|
1358
|
+
}, "de_RevokeSigningProfileCommand");
|
|
1359
|
+
var de_RevokeSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1360
|
+
const parsedOutput = {
|
|
1361
|
+
...output,
|
|
1362
|
+
body: await parseErrorBody(output.body, context)
|
|
1363
|
+
};
|
|
1364
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
+
switch (errorCode) {
|
|
1366
|
+
case "AccessDeniedException":
|
|
1367
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1368
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1369
|
+
case "InternalServiceErrorException":
|
|
1370
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1371
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1372
|
+
case "ResourceNotFoundException":
|
|
1373
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1374
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1375
|
+
case "TooManyRequestsException":
|
|
1376
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1377
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1378
|
+
case "ValidationException":
|
|
1379
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1380
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1381
|
+
default:
|
|
1382
|
+
const parsedBody = parsedOutput.body;
|
|
1383
|
+
return throwDefaultError({
|
|
1384
|
+
output,
|
|
1385
|
+
parsedBody,
|
|
1386
|
+
errorCode
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
}, "de_RevokeSigningProfileCommandError");
|
|
1390
|
+
var de_SignPayloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1392
|
+
return de_SignPayloadCommandError(output, context);
|
|
1393
|
+
}
|
|
1394
|
+
const contents = (0, import_smithy_client.map)({
|
|
1395
|
+
$metadata: deserializeMetadata(output)
|
|
1396
|
+
});
|
|
1397
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1398
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1399
|
+
jobId: import_smithy_client.expectString,
|
|
1400
|
+
jobOwner: import_smithy_client.expectString,
|
|
1401
|
+
metadata: import_smithy_client._json,
|
|
1402
|
+
signature: context.base64Decoder
|
|
1403
|
+
});
|
|
1404
|
+
Object.assign(contents, doc);
|
|
1405
|
+
return contents;
|
|
1406
|
+
}, "de_SignPayloadCommand");
|
|
1407
|
+
var de_SignPayloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1408
|
+
const parsedOutput = {
|
|
1409
|
+
...output,
|
|
1410
|
+
body: await parseErrorBody(output.body, context)
|
|
1411
|
+
};
|
|
1412
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
+
switch (errorCode) {
|
|
1414
|
+
case "AccessDeniedException":
|
|
1415
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1416
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1417
|
+
case "InternalServiceErrorException":
|
|
1418
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1419
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ResourceNotFoundException":
|
|
1421
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1422
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "TooManyRequestsException":
|
|
1424
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1425
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "ValidationException":
|
|
1427
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1428
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1429
|
+
default:
|
|
1430
|
+
const parsedBody = parsedOutput.body;
|
|
1431
|
+
return throwDefaultError({
|
|
1432
|
+
output,
|
|
1433
|
+
parsedBody,
|
|
1434
|
+
errorCode
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
}, "de_SignPayloadCommandError");
|
|
1438
|
+
var de_StartSigningJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1439
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1440
|
+
return de_StartSigningJobCommandError(output, context);
|
|
1441
|
+
}
|
|
1442
|
+
const contents = (0, import_smithy_client.map)({
|
|
1443
|
+
$metadata: deserializeMetadata(output)
|
|
1444
|
+
});
|
|
1445
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1446
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1447
|
+
jobId: import_smithy_client.expectString,
|
|
1448
|
+
jobOwner: import_smithy_client.expectString
|
|
1449
|
+
});
|
|
1450
|
+
Object.assign(contents, doc);
|
|
1451
|
+
return contents;
|
|
1452
|
+
}, "de_StartSigningJobCommand");
|
|
1453
|
+
var de_StartSigningJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1454
|
+
const parsedOutput = {
|
|
1455
|
+
...output,
|
|
1456
|
+
body: await parseErrorBody(output.body, context)
|
|
1457
|
+
};
|
|
1458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
+
switch (errorCode) {
|
|
1460
|
+
case "AccessDeniedException":
|
|
1461
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1462
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1463
|
+
case "InternalServiceErrorException":
|
|
1464
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1465
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1466
|
+
case "ResourceNotFoundException":
|
|
1467
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1468
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1469
|
+
case "ThrottlingException":
|
|
1470
|
+
case "com.amazonaws.signer#ThrottlingException":
|
|
1471
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1472
|
+
case "TooManyRequestsException":
|
|
1473
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1474
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1475
|
+
case "ValidationException":
|
|
1476
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1477
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1478
|
+
default:
|
|
1479
|
+
const parsedBody = parsedOutput.body;
|
|
1480
|
+
return throwDefaultError({
|
|
1481
|
+
output,
|
|
1482
|
+
parsedBody,
|
|
1483
|
+
errorCode
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1486
|
+
}, "de_StartSigningJobCommandError");
|
|
1487
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1488
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
+
return de_TagResourceCommandError(output, context);
|
|
1490
|
+
}
|
|
1491
|
+
const contents = (0, import_smithy_client.map)({
|
|
1492
|
+
$metadata: deserializeMetadata(output)
|
|
1493
|
+
});
|
|
1494
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1495
|
+
return contents;
|
|
1496
|
+
}, "de_TagResourceCommand");
|
|
1497
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
|
+
const parsedOutput = {
|
|
1499
|
+
...output,
|
|
1500
|
+
body: await parseErrorBody(output.body, context)
|
|
1501
|
+
};
|
|
1502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
+
switch (errorCode) {
|
|
1504
|
+
case "BadRequestException":
|
|
1505
|
+
case "com.amazonaws.signer#BadRequestException":
|
|
1506
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1507
|
+
case "InternalServiceErrorException":
|
|
1508
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1509
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1510
|
+
case "NotFoundException":
|
|
1511
|
+
case "com.amazonaws.signer#NotFoundException":
|
|
1512
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1513
|
+
case "TooManyRequestsException":
|
|
1514
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1515
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1516
|
+
default:
|
|
1517
|
+
const parsedBody = parsedOutput.body;
|
|
1518
|
+
return throwDefaultError({
|
|
1519
|
+
output,
|
|
1520
|
+
parsedBody,
|
|
1521
|
+
errorCode
|
|
1522
|
+
});
|
|
1523
|
+
}
|
|
1524
|
+
}, "de_TagResourceCommandError");
|
|
1525
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1527
|
+
return de_UntagResourceCommandError(output, context);
|
|
1528
|
+
}
|
|
1529
|
+
const contents = (0, import_smithy_client.map)({
|
|
1530
|
+
$metadata: deserializeMetadata(output)
|
|
1531
|
+
});
|
|
1532
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1533
|
+
return contents;
|
|
1534
|
+
}, "de_UntagResourceCommand");
|
|
1535
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1536
|
+
const parsedOutput = {
|
|
1537
|
+
...output,
|
|
1538
|
+
body: await parseErrorBody(output.body, context)
|
|
1539
|
+
};
|
|
1540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
+
switch (errorCode) {
|
|
1542
|
+
case "BadRequestException":
|
|
1543
|
+
case "com.amazonaws.signer#BadRequestException":
|
|
1544
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1545
|
+
case "InternalServiceErrorException":
|
|
1546
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1547
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1548
|
+
case "NotFoundException":
|
|
1549
|
+
case "com.amazonaws.signer#NotFoundException":
|
|
1550
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1551
|
+
case "TooManyRequestsException":
|
|
1552
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1553
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1554
|
+
default:
|
|
1555
|
+
const parsedBody = parsedOutput.body;
|
|
1556
|
+
return throwDefaultError({
|
|
1557
|
+
output,
|
|
1558
|
+
parsedBody,
|
|
1559
|
+
errorCode
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
}, "de_UntagResourceCommandError");
|
|
1563
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(SignerServiceException);
|
|
1564
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1565
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1566
|
+
const data = parsedOutput.body;
|
|
1567
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1568
|
+
code: import_smithy_client.expectString,
|
|
1569
|
+
message: import_smithy_client.expectString
|
|
1570
|
+
});
|
|
1571
|
+
Object.assign(contents, doc);
|
|
1572
|
+
const exception = new AccessDeniedException({
|
|
1573
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1574
|
+
...contents
|
|
1575
|
+
});
|
|
1576
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1577
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1578
|
+
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1579
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1580
|
+
const data = parsedOutput.body;
|
|
1581
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1582
|
+
code: import_smithy_client.expectString,
|
|
1583
|
+
message: import_smithy_client.expectString
|
|
1584
|
+
});
|
|
1585
|
+
Object.assign(contents, doc);
|
|
1586
|
+
const exception = new BadRequestException({
|
|
1587
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1588
|
+
...contents
|
|
1589
|
+
});
|
|
1590
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1591
|
+
}, "de_BadRequestExceptionRes");
|
|
1592
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1593
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1594
|
+
const data = parsedOutput.body;
|
|
1595
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1596
|
+
code: import_smithy_client.expectString,
|
|
1597
|
+
message: import_smithy_client.expectString
|
|
1598
|
+
});
|
|
1599
|
+
Object.assign(contents, doc);
|
|
1600
|
+
const exception = new ConflictException({
|
|
1601
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1602
|
+
...contents
|
|
1603
|
+
});
|
|
1604
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1605
|
+
}, "de_ConflictExceptionRes");
|
|
1606
|
+
var de_InternalServiceErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1607
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1608
|
+
const data = parsedOutput.body;
|
|
1609
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1610
|
+
code: import_smithy_client.expectString,
|
|
1611
|
+
message: import_smithy_client.expectString
|
|
1612
|
+
});
|
|
1613
|
+
Object.assign(contents, doc);
|
|
1614
|
+
const exception = new InternalServiceErrorException({
|
|
1615
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1616
|
+
...contents
|
|
1617
|
+
});
|
|
1618
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1619
|
+
}, "de_InternalServiceErrorExceptionRes");
|
|
1620
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1621
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1622
|
+
const data = parsedOutput.body;
|
|
1623
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1624
|
+
code: import_smithy_client.expectString,
|
|
1625
|
+
message: import_smithy_client.expectString
|
|
1626
|
+
});
|
|
1627
|
+
Object.assign(contents, doc);
|
|
1628
|
+
const exception = new NotFoundException({
|
|
1629
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1630
|
+
...contents
|
|
1631
|
+
});
|
|
1632
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1633
|
+
}, "de_NotFoundExceptionRes");
|
|
1634
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1635
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1636
|
+
const data = parsedOutput.body;
|
|
1637
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1638
|
+
code: import_smithy_client.expectString,
|
|
1639
|
+
message: import_smithy_client.expectString
|
|
1640
|
+
});
|
|
1641
|
+
Object.assign(contents, doc);
|
|
1642
|
+
const exception = new ResourceNotFoundException({
|
|
1643
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1644
|
+
...contents
|
|
1645
|
+
});
|
|
1646
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1647
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1648
|
+
var de_ServiceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1649
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1650
|
+
const data = parsedOutput.body;
|
|
1651
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1652
|
+
code: import_smithy_client.expectString,
|
|
1653
|
+
message: import_smithy_client.expectString
|
|
1654
|
+
});
|
|
1655
|
+
Object.assign(contents, doc);
|
|
1656
|
+
const exception = new ServiceLimitExceededException({
|
|
1657
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1658
|
+
...contents
|
|
1659
|
+
});
|
|
1660
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1661
|
+
}, "de_ServiceLimitExceededExceptionRes");
|
|
1662
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1663
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1664
|
+
const data = parsedOutput.body;
|
|
1665
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1666
|
+
code: import_smithy_client.expectString,
|
|
1667
|
+
message: import_smithy_client.expectString
|
|
1668
|
+
});
|
|
1669
|
+
Object.assign(contents, doc);
|
|
1670
|
+
const exception = new ThrottlingException({
|
|
1671
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1672
|
+
...contents
|
|
1673
|
+
});
|
|
1674
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1675
|
+
}, "de_ThrottlingExceptionRes");
|
|
1676
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1677
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1678
|
+
const data = parsedOutput.body;
|
|
1679
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1680
|
+
code: import_smithy_client.expectString,
|
|
1681
|
+
message: import_smithy_client.expectString
|
|
1682
|
+
});
|
|
1683
|
+
Object.assign(contents, doc);
|
|
1684
|
+
const exception = new TooManyRequestsException({
|
|
1685
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1686
|
+
...contents
|
|
1687
|
+
});
|
|
1688
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1689
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
1690
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1691
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1692
|
+
const data = parsedOutput.body;
|
|
1693
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1694
|
+
code: import_smithy_client.expectString,
|
|
1695
|
+
message: import_smithy_client.expectString
|
|
1696
|
+
});
|
|
1697
|
+
Object.assign(contents, doc);
|
|
1698
|
+
const exception = new ValidationException({
|
|
1699
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1700
|
+
...contents
|
|
1701
|
+
});
|
|
1702
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1703
|
+
}, "de_ValidationExceptionRes");
|
|
1704
|
+
var de_SigningJob = /* @__PURE__ */ __name((output, context) => {
|
|
1705
|
+
return (0, import_smithy_client.take)(output, {
|
|
1706
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1707
|
+
isRevoked: import_smithy_client.expectBoolean,
|
|
1708
|
+
jobId: import_smithy_client.expectString,
|
|
1709
|
+
jobInvoker: import_smithy_client.expectString,
|
|
1710
|
+
jobOwner: import_smithy_client.expectString,
|
|
1711
|
+
platformDisplayName: import_smithy_client.expectString,
|
|
1712
|
+
platformId: import_smithy_client.expectString,
|
|
1713
|
+
profileName: import_smithy_client.expectString,
|
|
1714
|
+
profileVersion: import_smithy_client.expectString,
|
|
1715
|
+
signatureExpiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1716
|
+
signedObject: import_smithy_client._json,
|
|
1717
|
+
signingMaterial: import_smithy_client._json,
|
|
1718
|
+
source: import_smithy_client._json,
|
|
1719
|
+
status: import_smithy_client.expectString
|
|
1720
|
+
});
|
|
1721
|
+
}, "de_SigningJob");
|
|
1722
|
+
var de_SigningJobRevocationRecord = /* @__PURE__ */ __name((output, context) => {
|
|
1723
|
+
return (0, import_smithy_client.take)(output, {
|
|
1724
|
+
reason: import_smithy_client.expectString,
|
|
1725
|
+
revokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1726
|
+
revokedBy: import_smithy_client.expectString
|
|
1727
|
+
});
|
|
1728
|
+
}, "de_SigningJobRevocationRecord");
|
|
1729
|
+
var de_SigningJobs = /* @__PURE__ */ __name((output, context) => {
|
|
1730
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1731
|
+
return de_SigningJob(entry, context);
|
|
1732
|
+
});
|
|
1733
|
+
return retVal;
|
|
1734
|
+
}, "de_SigningJobs");
|
|
1735
|
+
var de_SigningProfileRevocationRecord = /* @__PURE__ */ __name((output, context) => {
|
|
1736
|
+
return (0, import_smithy_client.take)(output, {
|
|
1737
|
+
revocationEffectiveFrom: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1738
|
+
revokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1739
|
+
revokedBy: import_smithy_client.expectString
|
|
1740
|
+
});
|
|
1741
|
+
}, "de_SigningProfileRevocationRecord");
|
|
1742
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1743
|
+
httpStatusCode: output.statusCode,
|
|
1744
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1745
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1746
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1747
|
+
}), "deserializeMetadata");
|
|
1748
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1749
|
+
var _c = "category";
|
|
1750
|
+
var _cH = "certificateHashes";
|
|
1751
|
+
var _iC = "includeCanceled";
|
|
1752
|
+
var _iR = "isRevoked";
|
|
1753
|
+
var _jA = "jobArn";
|
|
1754
|
+
var _jI = "jobInvoker";
|
|
1755
|
+
var _mR = "maxResults";
|
|
1756
|
+
var _nT = "nextToken";
|
|
1757
|
+
var _p = "partner";
|
|
1758
|
+
var _pI = "platformId";
|
|
1759
|
+
var _pO = "profileOwner";
|
|
1760
|
+
var _pVA = "profileVersionArn";
|
|
1761
|
+
var _rB = "requestedBy";
|
|
1762
|
+
var _rI = "revisionId";
|
|
1763
|
+
var _s = "status";
|
|
1764
|
+
var _sEA = "signatureExpiresAfter";
|
|
1765
|
+
var _sEB = "signatureExpiresBefore";
|
|
1766
|
+
var _sT = "signatureTimestamp";
|
|
1767
|
+
var _st = "statuses";
|
|
1768
|
+
var _t = "target";
|
|
1769
|
+
var _tK = "tagKeys";
|
|
1770
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1771
|
+
if (encoded.length) {
|
|
1772
|
+
return JSON.parse(encoded);
|
|
1773
|
+
}
|
|
1774
|
+
return {};
|
|
1775
|
+
}), "parseBody");
|
|
1776
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1777
|
+
const value = await parseBody(errorBody, context);
|
|
1778
|
+
value.message = value.message ?? value.Message;
|
|
1779
|
+
return value;
|
|
1780
|
+
}, "parseErrorBody");
|
|
1781
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1782
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1783
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1784
|
+
let cleanValue = rawValue;
|
|
1785
|
+
if (typeof cleanValue === "number") {
|
|
1786
|
+
cleanValue = cleanValue.toString();
|
|
1787
|
+
}
|
|
1788
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1789
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1790
|
+
}
|
|
1791
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1792
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1793
|
+
}
|
|
1794
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1795
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1796
|
+
}
|
|
1797
|
+
return cleanValue;
|
|
1798
|
+
}, "sanitizeErrorCode");
|
|
1799
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1800
|
+
if (headerKey !== void 0) {
|
|
1801
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1802
|
+
}
|
|
1803
|
+
if (data.code !== void 0) {
|
|
1804
|
+
return sanitizeErrorCode(data.code);
|
|
1805
|
+
}
|
|
1806
|
+
if (data["__type"] !== void 0) {
|
|
1807
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1808
|
+
}
|
|
1809
|
+
}, "loadRestJsonErrorCode");
|
|
1810
|
+
|
|
1811
|
+
// src/commands/AddProfilePermissionCommand.ts
|
|
1812
|
+
var _AddProfilePermissionCommand = class _AddProfilePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1813
|
+
...commonParams
|
|
1814
|
+
}).m(function(Command, cs, config, o) {
|
|
1815
|
+
return [
|
|
1816
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1817
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1818
|
+
];
|
|
1819
|
+
}).s("WallabyService", "AddProfilePermission", {}).n("SignerClient", "AddProfilePermissionCommand").f(void 0, void 0).ser(se_AddProfilePermissionCommand).de(de_AddProfilePermissionCommand).build() {
|
|
1820
|
+
};
|
|
1821
|
+
__name(_AddProfilePermissionCommand, "AddProfilePermissionCommand");
|
|
1822
|
+
var AddProfilePermissionCommand = _AddProfilePermissionCommand;
|
|
1823
|
+
|
|
1824
|
+
// src/commands/CancelSigningProfileCommand.ts
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
var _CancelSigningProfileCommand = class _CancelSigningProfileCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1830
|
+
...commonParams
|
|
1831
|
+
}).m(function(Command, cs, config, o) {
|
|
1832
|
+
return [
|
|
1833
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1834
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1835
|
+
];
|
|
1836
|
+
}).s("WallabyService", "CancelSigningProfile", {}).n("SignerClient", "CancelSigningProfileCommand").f(void 0, void 0).ser(se_CancelSigningProfileCommand).de(de_CancelSigningProfileCommand).build() {
|
|
1837
|
+
};
|
|
1838
|
+
__name(_CancelSigningProfileCommand, "CancelSigningProfileCommand");
|
|
1839
|
+
var CancelSigningProfileCommand = _CancelSigningProfileCommand;
|
|
1840
|
+
|
|
1841
|
+
// src/commands/DescribeSigningJobCommand.ts
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
var _DescribeSigningJobCommand = class _DescribeSigningJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1847
|
+
...commonParams
|
|
1848
|
+
}).m(function(Command, cs, config, o) {
|
|
1849
|
+
return [
|
|
1850
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1851
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1852
|
+
];
|
|
1853
|
+
}).s("WallabyService", "DescribeSigningJob", {}).n("SignerClient", "DescribeSigningJobCommand").f(void 0, void 0).ser(se_DescribeSigningJobCommand).de(de_DescribeSigningJobCommand).build() {
|
|
1854
|
+
};
|
|
1855
|
+
__name(_DescribeSigningJobCommand, "DescribeSigningJobCommand");
|
|
1856
|
+
var DescribeSigningJobCommand = _DescribeSigningJobCommand;
|
|
1857
|
+
|
|
1858
|
+
// src/commands/GetRevocationStatusCommand.ts
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
var _GetRevocationStatusCommand = class _GetRevocationStatusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1864
|
+
...commonParams
|
|
1865
|
+
}).m(function(Command, cs, config, o) {
|
|
1866
|
+
return [
|
|
1867
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1868
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1869
|
+
];
|
|
1870
|
+
}).s("WallabyService", "GetRevocationStatus", {}).n("SignerClient", "GetRevocationStatusCommand").f(void 0, void 0).ser(se_GetRevocationStatusCommand).de(de_GetRevocationStatusCommand).build() {
|
|
1871
|
+
};
|
|
1872
|
+
__name(_GetRevocationStatusCommand, "GetRevocationStatusCommand");
|
|
1873
|
+
var GetRevocationStatusCommand = _GetRevocationStatusCommand;
|
|
1874
|
+
|
|
1875
|
+
// src/commands/GetSigningPlatformCommand.ts
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
var _GetSigningPlatformCommand = class _GetSigningPlatformCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1881
|
+
...commonParams
|
|
1882
|
+
}).m(function(Command, cs, config, o) {
|
|
1883
|
+
return [
|
|
1884
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1885
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1886
|
+
];
|
|
1887
|
+
}).s("WallabyService", "GetSigningPlatform", {}).n("SignerClient", "GetSigningPlatformCommand").f(void 0, void 0).ser(se_GetSigningPlatformCommand).de(de_GetSigningPlatformCommand).build() {
|
|
1888
|
+
};
|
|
1889
|
+
__name(_GetSigningPlatformCommand, "GetSigningPlatformCommand");
|
|
1890
|
+
var GetSigningPlatformCommand = _GetSigningPlatformCommand;
|
|
1891
|
+
|
|
1892
|
+
// src/commands/GetSigningProfileCommand.ts
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
var _GetSigningProfileCommand = class _GetSigningProfileCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1898
|
+
...commonParams
|
|
1899
|
+
}).m(function(Command, cs, config, o) {
|
|
1900
|
+
return [
|
|
1901
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1902
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1903
|
+
];
|
|
1904
|
+
}).s("WallabyService", "GetSigningProfile", {}).n("SignerClient", "GetSigningProfileCommand").f(void 0, void 0).ser(se_GetSigningProfileCommand).de(de_GetSigningProfileCommand).build() {
|
|
1905
|
+
};
|
|
1906
|
+
__name(_GetSigningProfileCommand, "GetSigningProfileCommand");
|
|
1907
|
+
var GetSigningProfileCommand = _GetSigningProfileCommand;
|
|
1908
|
+
|
|
1909
|
+
// src/commands/ListProfilePermissionsCommand.ts
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
var _ListProfilePermissionsCommand = class _ListProfilePermissionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1915
|
+
...commonParams
|
|
1916
|
+
}).m(function(Command, cs, config, o) {
|
|
1917
|
+
return [
|
|
1918
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1919
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1920
|
+
];
|
|
1921
|
+
}).s("WallabyService", "ListProfilePermissions", {}).n("SignerClient", "ListProfilePermissionsCommand").f(void 0, void 0).ser(se_ListProfilePermissionsCommand).de(de_ListProfilePermissionsCommand).build() {
|
|
1922
|
+
};
|
|
1923
|
+
__name(_ListProfilePermissionsCommand, "ListProfilePermissionsCommand");
|
|
1924
|
+
var ListProfilePermissionsCommand = _ListProfilePermissionsCommand;
|
|
1925
|
+
|
|
1926
|
+
// src/commands/ListSigningJobsCommand.ts
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
var _ListSigningJobsCommand = class _ListSigningJobsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1932
|
+
...commonParams
|
|
1933
|
+
}).m(function(Command, cs, config, o) {
|
|
1934
|
+
return [
|
|
1935
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1936
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1937
|
+
];
|
|
1938
|
+
}).s("WallabyService", "ListSigningJobs", {}).n("SignerClient", "ListSigningJobsCommand").f(void 0, void 0).ser(se_ListSigningJobsCommand).de(de_ListSigningJobsCommand).build() {
|
|
1939
|
+
};
|
|
1940
|
+
__name(_ListSigningJobsCommand, "ListSigningJobsCommand");
|
|
1941
|
+
var ListSigningJobsCommand = _ListSigningJobsCommand;
|
|
1942
|
+
|
|
1943
|
+
// src/commands/ListSigningPlatformsCommand.ts
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
var _ListSigningPlatformsCommand = class _ListSigningPlatformsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1949
|
+
...commonParams
|
|
1950
|
+
}).m(function(Command, cs, config, o) {
|
|
1951
|
+
return [
|
|
1952
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1953
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1954
|
+
];
|
|
1955
|
+
}).s("WallabyService", "ListSigningPlatforms", {}).n("SignerClient", "ListSigningPlatformsCommand").f(void 0, void 0).ser(se_ListSigningPlatformsCommand).de(de_ListSigningPlatformsCommand).build() {
|
|
1956
|
+
};
|
|
1957
|
+
__name(_ListSigningPlatformsCommand, "ListSigningPlatformsCommand");
|
|
1958
|
+
var ListSigningPlatformsCommand = _ListSigningPlatformsCommand;
|
|
1959
|
+
|
|
1960
|
+
// src/commands/ListSigningProfilesCommand.ts
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
var _ListSigningProfilesCommand = class _ListSigningProfilesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1966
|
+
...commonParams
|
|
1967
|
+
}).m(function(Command, cs, config, o) {
|
|
1968
|
+
return [
|
|
1969
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1970
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1971
|
+
];
|
|
1972
|
+
}).s("WallabyService", "ListSigningProfiles", {}).n("SignerClient", "ListSigningProfilesCommand").f(void 0, void 0).ser(se_ListSigningProfilesCommand).de(de_ListSigningProfilesCommand).build() {
|
|
1973
|
+
};
|
|
1974
|
+
__name(_ListSigningProfilesCommand, "ListSigningProfilesCommand");
|
|
1975
|
+
var ListSigningProfilesCommand = _ListSigningProfilesCommand;
|
|
1976
|
+
|
|
1977
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1983
|
+
...commonParams
|
|
1984
|
+
}).m(function(Command, cs, config, o) {
|
|
1985
|
+
return [
|
|
1986
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1987
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1988
|
+
];
|
|
1989
|
+
}).s("WallabyService", "ListTagsForResource", {}).n("SignerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1990
|
+
};
|
|
1991
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1992
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1993
|
+
|
|
1994
|
+
// src/commands/PutSigningProfileCommand.ts
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
var _PutSigningProfileCommand = class _PutSigningProfileCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2000
|
+
...commonParams
|
|
2001
|
+
}).m(function(Command, cs, config, o) {
|
|
2002
|
+
return [
|
|
2003
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2004
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2005
|
+
];
|
|
2006
|
+
}).s("WallabyService", "PutSigningProfile", {}).n("SignerClient", "PutSigningProfileCommand").f(void 0, void 0).ser(se_PutSigningProfileCommand).de(de_PutSigningProfileCommand).build() {
|
|
2007
|
+
};
|
|
2008
|
+
__name(_PutSigningProfileCommand, "PutSigningProfileCommand");
|
|
2009
|
+
var PutSigningProfileCommand = _PutSigningProfileCommand;
|
|
2010
|
+
|
|
2011
|
+
// src/commands/RemoveProfilePermissionCommand.ts
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
var _RemoveProfilePermissionCommand = class _RemoveProfilePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2017
|
+
...commonParams
|
|
2018
|
+
}).m(function(Command, cs, config, o) {
|
|
2019
|
+
return [
|
|
2020
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2021
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2022
|
+
];
|
|
2023
|
+
}).s("WallabyService", "RemoveProfilePermission", {}).n("SignerClient", "RemoveProfilePermissionCommand").f(void 0, void 0).ser(se_RemoveProfilePermissionCommand).de(de_RemoveProfilePermissionCommand).build() {
|
|
2024
|
+
};
|
|
2025
|
+
__name(_RemoveProfilePermissionCommand, "RemoveProfilePermissionCommand");
|
|
2026
|
+
var RemoveProfilePermissionCommand = _RemoveProfilePermissionCommand;
|
|
2027
|
+
|
|
2028
|
+
// src/commands/RevokeSignatureCommand.ts
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
var _RevokeSignatureCommand = class _RevokeSignatureCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2034
|
+
...commonParams
|
|
2035
|
+
}).m(function(Command, cs, config, o) {
|
|
2036
|
+
return [
|
|
2037
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2038
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2039
|
+
];
|
|
2040
|
+
}).s("WallabyService", "RevokeSignature", {}).n("SignerClient", "RevokeSignatureCommand").f(void 0, void 0).ser(se_RevokeSignatureCommand).de(de_RevokeSignatureCommand).build() {
|
|
2041
|
+
};
|
|
2042
|
+
__name(_RevokeSignatureCommand, "RevokeSignatureCommand");
|
|
2043
|
+
var RevokeSignatureCommand = _RevokeSignatureCommand;
|
|
2044
|
+
|
|
2045
|
+
// src/commands/RevokeSigningProfileCommand.ts
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
var _RevokeSigningProfileCommand = class _RevokeSigningProfileCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2051
|
+
...commonParams
|
|
2052
|
+
}).m(function(Command, cs, config, o) {
|
|
2053
|
+
return [
|
|
2054
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2055
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2056
|
+
];
|
|
2057
|
+
}).s("WallabyService", "RevokeSigningProfile", {}).n("SignerClient", "RevokeSigningProfileCommand").f(void 0, void 0).ser(se_RevokeSigningProfileCommand).de(de_RevokeSigningProfileCommand).build() {
|
|
2058
|
+
};
|
|
2059
|
+
__name(_RevokeSigningProfileCommand, "RevokeSigningProfileCommand");
|
|
2060
|
+
var RevokeSigningProfileCommand = _RevokeSigningProfileCommand;
|
|
2061
|
+
|
|
2062
|
+
// src/commands/SignPayloadCommand.ts
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
var _SignPayloadCommand = class _SignPayloadCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2068
|
+
...commonParams
|
|
2069
|
+
}).m(function(Command, cs, config, o) {
|
|
2070
|
+
return [
|
|
2071
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2072
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2073
|
+
];
|
|
2074
|
+
}).s("WallabyService", "SignPayload", {}).n("SignerClient", "SignPayloadCommand").f(void 0, void 0).ser(se_SignPayloadCommand).de(de_SignPayloadCommand).build() {
|
|
2075
|
+
};
|
|
2076
|
+
__name(_SignPayloadCommand, "SignPayloadCommand");
|
|
2077
|
+
var SignPayloadCommand = _SignPayloadCommand;
|
|
2078
|
+
|
|
2079
|
+
// src/commands/StartSigningJobCommand.ts
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
var _StartSigningJobCommand = class _StartSigningJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2085
|
+
...commonParams
|
|
2086
|
+
}).m(function(Command, cs, config, o) {
|
|
2087
|
+
return [
|
|
2088
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2089
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2090
|
+
];
|
|
2091
|
+
}).s("WallabyService", "StartSigningJob", {}).n("SignerClient", "StartSigningJobCommand").f(void 0, void 0).ser(se_StartSigningJobCommand).de(de_StartSigningJobCommand).build() {
|
|
2092
|
+
};
|
|
2093
|
+
__name(_StartSigningJobCommand, "StartSigningJobCommand");
|
|
2094
|
+
var StartSigningJobCommand = _StartSigningJobCommand;
|
|
2095
|
+
|
|
2096
|
+
// src/commands/TagResourceCommand.ts
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2102
|
+
...commonParams
|
|
2103
|
+
}).m(function(Command, cs, config, o) {
|
|
2104
|
+
return [
|
|
2105
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2106
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2107
|
+
];
|
|
2108
|
+
}).s("WallabyService", "TagResource", {}).n("SignerClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2109
|
+
};
|
|
2110
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2111
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2112
|
+
|
|
2113
|
+
// src/commands/UntagResourceCommand.ts
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2119
|
+
...commonParams
|
|
2120
|
+
}).m(function(Command, cs, config, o) {
|
|
2121
|
+
return [
|
|
2122
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2123
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2124
|
+
];
|
|
2125
|
+
}).s("WallabyService", "UntagResource", {}).n("SignerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2126
|
+
};
|
|
2127
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2128
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2129
|
+
|
|
2130
|
+
// src/Signer.ts
|
|
2131
|
+
var commands = {
|
|
2132
|
+
AddProfilePermissionCommand,
|
|
2133
|
+
CancelSigningProfileCommand,
|
|
2134
|
+
DescribeSigningJobCommand,
|
|
2135
|
+
GetRevocationStatusCommand,
|
|
2136
|
+
GetSigningPlatformCommand,
|
|
2137
|
+
GetSigningProfileCommand,
|
|
2138
|
+
ListProfilePermissionsCommand,
|
|
2139
|
+
ListSigningJobsCommand,
|
|
2140
|
+
ListSigningPlatformsCommand,
|
|
2141
|
+
ListSigningProfilesCommand,
|
|
2142
|
+
ListTagsForResourceCommand,
|
|
2143
|
+
PutSigningProfileCommand,
|
|
2144
|
+
RemoveProfilePermissionCommand,
|
|
2145
|
+
RevokeSignatureCommand,
|
|
2146
|
+
RevokeSigningProfileCommand,
|
|
2147
|
+
SignPayloadCommand,
|
|
2148
|
+
StartSigningJobCommand,
|
|
2149
|
+
TagResourceCommand,
|
|
2150
|
+
UntagResourceCommand
|
|
2151
|
+
};
|
|
2152
|
+
var _Signer = class _Signer extends SignerClient {
|
|
2153
|
+
};
|
|
2154
|
+
__name(_Signer, "Signer");
|
|
2155
|
+
var Signer = _Signer;
|
|
2156
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Signer);
|
|
2157
|
+
|
|
2158
|
+
// src/pagination/ListSigningJobsPaginator.ts
|
|
2159
|
+
|
|
2160
|
+
var paginateListSigningJobs = (0, import_core.createPaginator)(SignerClient, ListSigningJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
2161
|
+
|
|
2162
|
+
// src/pagination/ListSigningPlatformsPaginator.ts
|
|
2163
|
+
|
|
2164
|
+
var paginateListSigningPlatforms = (0, import_core.createPaginator)(SignerClient, ListSigningPlatformsCommand, "nextToken", "nextToken", "maxResults");
|
|
2165
|
+
|
|
2166
|
+
// src/pagination/ListSigningProfilesPaginator.ts
|
|
2167
|
+
|
|
2168
|
+
var paginateListSigningProfiles = (0, import_core.createPaginator)(SignerClient, ListSigningProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
2169
|
+
|
|
2170
|
+
// src/waiters/waitForSuccessfulSigningJob.ts
|
|
2171
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
2172
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
2173
|
+
let reason;
|
|
2174
|
+
try {
|
|
2175
|
+
const result = await client.send(new DescribeSigningJobCommand(input));
|
|
2176
|
+
reason = result;
|
|
2177
|
+
try {
|
|
2178
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2179
|
+
return result.status;
|
|
2180
|
+
}, "returnComparator");
|
|
2181
|
+
if (returnComparator() === "Succeeded") {
|
|
2182
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2183
|
+
}
|
|
2184
|
+
} catch (e) {
|
|
2185
|
+
}
|
|
2186
|
+
try {
|
|
2187
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2188
|
+
return result.status;
|
|
2189
|
+
}, "returnComparator");
|
|
2190
|
+
if (returnComparator() === "Failed") {
|
|
2191
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2192
|
+
}
|
|
2193
|
+
} catch (e) {
|
|
2194
|
+
}
|
|
2195
|
+
} catch (exception) {
|
|
2196
|
+
reason = exception;
|
|
2197
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
2198
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2202
|
+
}, "checkState");
|
|
2203
|
+
var waitForSuccessfulSigningJob = /* @__PURE__ */ __name(async (params, input) => {
|
|
2204
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
2205
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2206
|
+
}, "waitForSuccessfulSigningJob");
|
|
2207
|
+
var waitUntilSuccessfulSigningJob = /* @__PURE__ */ __name(async (params, input) => {
|
|
2208
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
2209
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2210
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2211
|
+
}, "waitUntilSuccessfulSigningJob");
|
|
2212
|
+
|
|
2213
|
+
// src/index.ts
|
|
2214
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2215
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2216
|
+
0 && (module.exports = {
|
|
2217
|
+
AccessDeniedException,
|
|
2218
|
+
AddProfilePermissionCommand,
|
|
2219
|
+
BadRequestException,
|
|
2220
|
+
CancelSigningProfileCommand,
|
|
2221
|
+
Category,
|
|
2222
|
+
ConflictException,
|
|
2223
|
+
DescribeSigningJobCommand,
|
|
2224
|
+
EncryptionAlgorithm,
|
|
2225
|
+
GetRevocationStatusCommand,
|
|
2226
|
+
GetSigningPlatformCommand,
|
|
2227
|
+
GetSigningProfileCommand,
|
|
2228
|
+
HashAlgorithm,
|
|
2229
|
+
ImageFormat,
|
|
2230
|
+
InternalServiceErrorException,
|
|
2231
|
+
ListProfilePermissionsCommand,
|
|
2232
|
+
ListSigningJobsCommand,
|
|
2233
|
+
ListSigningPlatformsCommand,
|
|
2234
|
+
ListSigningProfilesCommand,
|
|
2235
|
+
ListTagsForResourceCommand,
|
|
2236
|
+
NotFoundException,
|
|
2237
|
+
PutSigningProfileCommand,
|
|
2238
|
+
RemoveProfilePermissionCommand,
|
|
2239
|
+
ResourceNotFoundException,
|
|
2240
|
+
RevokeSignatureCommand,
|
|
2241
|
+
RevokeSigningProfileCommand,
|
|
2242
|
+
ServiceLimitExceededException,
|
|
2243
|
+
SignPayloadCommand,
|
|
2244
|
+
Signer,
|
|
2245
|
+
SignerClient,
|
|
2246
|
+
SignerServiceException,
|
|
2247
|
+
SigningProfileStatus,
|
|
2248
|
+
SigningStatus,
|
|
2249
|
+
StartSigningJobCommand,
|
|
2250
|
+
TagResourceCommand,
|
|
2251
|
+
ThrottlingException,
|
|
2252
|
+
TooManyRequestsException,
|
|
2253
|
+
UntagResourceCommand,
|
|
2254
|
+
ValidationException,
|
|
2255
|
+
ValidityType,
|
|
2256
|
+
__Client,
|
|
2257
|
+
paginateListSigningJobs,
|
|
2258
|
+
paginateListSigningPlatforms,
|
|
2259
|
+
paginateListSigningProfiles,
|
|
2260
|
+
waitForSuccessfulSigningJob,
|
|
2261
|
+
waitUntilSuccessfulSigningJob
|
|
2262
|
+
});
|