@aws-sdk/client-signer 3.899.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1530 -1693
- package/package.json +39 -39
package/dist-cjs/index.js
CHANGED
|
@@ -1,1731 +1,1568 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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(index_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_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
77
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
78
|
-
var import_core = require("@smithy/core");
|
|
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
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
84
|
-
|
|
85
|
-
// src/endpoint/EndpointParameters.ts
|
|
86
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
87
|
-
return Object.assign(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" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
var utilWaiter = require('@smithy/util-waiter');
|
|
21
|
+
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
25
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
26
|
+
defaultSigningName: "signer",
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const commonParams = {
|
|
30
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
31
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
32
|
+
Region: { type: "builtInParams", name: "region" },
|
|
33
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
98
34
|
};
|
|
99
35
|
|
|
100
|
-
|
|
101
|
-
|
|
36
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
37
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
38
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
39
|
+
let _credentials = runtimeConfig.credentials;
|
|
40
|
+
return {
|
|
41
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
42
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
43
|
+
if (index === -1) {
|
|
44
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
httpAuthSchemes() {
|
|
51
|
+
return _httpAuthSchemes;
|
|
52
|
+
},
|
|
53
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
54
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
55
|
+
},
|
|
56
|
+
httpAuthSchemeProvider() {
|
|
57
|
+
return _httpAuthSchemeProvider;
|
|
58
|
+
},
|
|
59
|
+
setCredentials(credentials) {
|
|
60
|
+
_credentials = credentials;
|
|
61
|
+
},
|
|
62
|
+
credentials() {
|
|
63
|
+
return _credentials;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
68
|
+
return {
|
|
69
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
70
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
71
|
+
credentials: config.credentials(),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
102
74
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
75
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
76
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
77
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
78
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
79
|
+
};
|
|
107
80
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
81
|
+
class SignerClient extends smithyClient.Client {
|
|
82
|
+
config;
|
|
83
|
+
constructor(...[configuration]) {
|
|
84
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
85
|
+
super(_config_0);
|
|
86
|
+
this.initConfig = _config_0;
|
|
87
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
88
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
89
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
90
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
91
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
93
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
94
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
95
|
+
this.config = _config_8;
|
|
96
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
103
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSignerHttpAuthSchemeParametersProvider,
|
|
104
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
105
|
+
"aws.auth#sigv4": config.credentials,
|
|
106
|
+
}),
|
|
107
|
+
}));
|
|
108
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
136
109
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
142
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
143
|
-
credentials: config.credentials()
|
|
144
|
-
};
|
|
145
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
146
|
-
|
|
147
|
-
// src/runtimeExtensions.ts
|
|
148
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
149
|
-
const extensionConfiguration = Object.assign(
|
|
150
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
151
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
152
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
153
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
154
|
-
);
|
|
155
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
156
|
-
return Object.assign(
|
|
157
|
-
runtimeConfig,
|
|
158
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
159
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
160
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
161
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
162
|
-
);
|
|
163
|
-
}, "resolveRuntimeExtensions");
|
|
110
|
+
destroy() {
|
|
111
|
+
super.destroy();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
164
114
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
115
|
+
class SignerServiceException extends smithyClient.ServiceException {
|
|
116
|
+
constructor(options) {
|
|
117
|
+
super(options);
|
|
118
|
+
Object.setPrototypeOf(this, SignerServiceException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
class AccessDeniedException extends SignerServiceException {
|
|
123
|
+
name = "AccessDeniedException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
code;
|
|
126
|
+
constructor(opts) {
|
|
127
|
+
super({
|
|
128
|
+
name: "AccessDeniedException",
|
|
129
|
+
$fault: "client",
|
|
130
|
+
...opts,
|
|
131
|
+
});
|
|
132
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
133
|
+
this.code = opts.code;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
class ConflictException extends SignerServiceException {
|
|
137
|
+
name = "ConflictException";
|
|
138
|
+
$fault = "client";
|
|
139
|
+
code;
|
|
140
|
+
constructor(opts) {
|
|
141
|
+
super({
|
|
142
|
+
name: "ConflictException",
|
|
143
|
+
$fault: "client",
|
|
144
|
+
...opts,
|
|
145
|
+
});
|
|
146
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
147
|
+
this.code = opts.code;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
class InternalServiceErrorException extends SignerServiceException {
|
|
151
|
+
name = "InternalServiceErrorException";
|
|
152
|
+
$fault = "server";
|
|
153
|
+
code;
|
|
154
|
+
constructor(opts) {
|
|
155
|
+
super({
|
|
156
|
+
name: "InternalServiceErrorException",
|
|
157
|
+
$fault: "server",
|
|
158
|
+
...opts,
|
|
159
|
+
});
|
|
160
|
+
Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
|
|
161
|
+
this.code = opts.code;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class ResourceNotFoundException extends SignerServiceException {
|
|
165
|
+
name = "ResourceNotFoundException";
|
|
166
|
+
$fault = "client";
|
|
167
|
+
code;
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "ResourceNotFoundException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
175
|
+
this.code = opts.code;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
class ServiceLimitExceededException extends SignerServiceException {
|
|
179
|
+
name = "ServiceLimitExceededException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
code;
|
|
182
|
+
constructor(opts) {
|
|
183
|
+
super({
|
|
184
|
+
name: "ServiceLimitExceededException",
|
|
185
|
+
$fault: "client",
|
|
186
|
+
...opts,
|
|
187
|
+
});
|
|
188
|
+
Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
|
|
189
|
+
this.code = opts.code;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
class TooManyRequestsException extends SignerServiceException {
|
|
193
|
+
name = "TooManyRequestsException";
|
|
194
|
+
$fault = "client";
|
|
195
|
+
code;
|
|
196
|
+
constructor(opts) {
|
|
197
|
+
super({
|
|
198
|
+
name: "TooManyRequestsException",
|
|
199
|
+
$fault: "client",
|
|
200
|
+
...opts,
|
|
201
|
+
});
|
|
202
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
203
|
+
this.code = opts.code;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
class ValidationException extends SignerServiceException {
|
|
207
|
+
name = "ValidationException";
|
|
208
|
+
$fault = "client";
|
|
209
|
+
code;
|
|
210
|
+
constructor(opts) {
|
|
211
|
+
super({
|
|
212
|
+
name: "ValidationException",
|
|
213
|
+
$fault: "client",
|
|
214
|
+
...opts,
|
|
215
|
+
});
|
|
216
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
217
|
+
this.code = opts.code;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
class BadRequestException extends SignerServiceException {
|
|
221
|
+
name = "BadRequestException";
|
|
222
|
+
$fault = "client";
|
|
223
|
+
code;
|
|
224
|
+
constructor(opts) {
|
|
225
|
+
super({
|
|
226
|
+
name: "BadRequestException",
|
|
227
|
+
$fault: "client",
|
|
228
|
+
...opts,
|
|
229
|
+
});
|
|
230
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
231
|
+
this.code = opts.code;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
const Category = {
|
|
235
|
+
AWSIoT: "AWSIoT",
|
|
211
236
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
// src/commands/AddProfilePermissionCommand.ts
|
|
217
|
-
|
|
218
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
// src/protocols/Aws_restJson1.ts
|
|
222
|
-
var import_core2 = require("@aws-sdk/core");
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
var import_uuid = require("@smithy/uuid");
|
|
227
|
-
|
|
228
|
-
// src/models/SignerServiceException.ts
|
|
229
|
-
|
|
230
|
-
var SignerServiceException = class _SignerServiceException extends import_smithy_client.ServiceException {
|
|
231
|
-
static {
|
|
232
|
-
__name(this, "SignerServiceException");
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* @internal
|
|
236
|
-
*/
|
|
237
|
-
constructor(options) {
|
|
238
|
-
super(options);
|
|
239
|
-
Object.setPrototypeOf(this, _SignerServiceException.prototype);
|
|
240
|
-
}
|
|
237
|
+
const EncryptionAlgorithm = {
|
|
238
|
+
ECDSA: "ECDSA",
|
|
239
|
+
RSA: "RSA",
|
|
241
240
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
static {
|
|
246
|
-
__name(this, "AccessDeniedException");
|
|
247
|
-
}
|
|
248
|
-
name = "AccessDeniedException";
|
|
249
|
-
$fault = "client";
|
|
250
|
-
code;
|
|
251
|
-
/**
|
|
252
|
-
* @internal
|
|
253
|
-
*/
|
|
254
|
-
constructor(opts) {
|
|
255
|
-
super({
|
|
256
|
-
name: "AccessDeniedException",
|
|
257
|
-
$fault: "client",
|
|
258
|
-
...opts
|
|
259
|
-
});
|
|
260
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
261
|
-
this.code = opts.code;
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
var ConflictException = class _ConflictException extends SignerServiceException {
|
|
265
|
-
static {
|
|
266
|
-
__name(this, "ConflictException");
|
|
267
|
-
}
|
|
268
|
-
name = "ConflictException";
|
|
269
|
-
$fault = "client";
|
|
270
|
-
code;
|
|
271
|
-
/**
|
|
272
|
-
* @internal
|
|
273
|
-
*/
|
|
274
|
-
constructor(opts) {
|
|
275
|
-
super({
|
|
276
|
-
name: "ConflictException",
|
|
277
|
-
$fault: "client",
|
|
278
|
-
...opts
|
|
279
|
-
});
|
|
280
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
281
|
-
this.code = opts.code;
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
var InternalServiceErrorException = class _InternalServiceErrorException extends SignerServiceException {
|
|
285
|
-
static {
|
|
286
|
-
__name(this, "InternalServiceErrorException");
|
|
287
|
-
}
|
|
288
|
-
name = "InternalServiceErrorException";
|
|
289
|
-
$fault = "server";
|
|
290
|
-
code;
|
|
291
|
-
/**
|
|
292
|
-
* @internal
|
|
293
|
-
*/
|
|
294
|
-
constructor(opts) {
|
|
295
|
-
super({
|
|
296
|
-
name: "InternalServiceErrorException",
|
|
297
|
-
$fault: "server",
|
|
298
|
-
...opts
|
|
299
|
-
});
|
|
300
|
-
Object.setPrototypeOf(this, _InternalServiceErrorException.prototype);
|
|
301
|
-
this.code = opts.code;
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends SignerServiceException {
|
|
305
|
-
static {
|
|
306
|
-
__name(this, "ResourceNotFoundException");
|
|
307
|
-
}
|
|
308
|
-
name = "ResourceNotFoundException";
|
|
309
|
-
$fault = "client";
|
|
310
|
-
code;
|
|
311
|
-
/**
|
|
312
|
-
* @internal
|
|
313
|
-
*/
|
|
314
|
-
constructor(opts) {
|
|
315
|
-
super({
|
|
316
|
-
name: "ResourceNotFoundException",
|
|
317
|
-
$fault: "client",
|
|
318
|
-
...opts
|
|
319
|
-
});
|
|
320
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
321
|
-
this.code = opts.code;
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
var ServiceLimitExceededException = class _ServiceLimitExceededException extends SignerServiceException {
|
|
325
|
-
static {
|
|
326
|
-
__name(this, "ServiceLimitExceededException");
|
|
327
|
-
}
|
|
328
|
-
name = "ServiceLimitExceededException";
|
|
329
|
-
$fault = "client";
|
|
330
|
-
code;
|
|
331
|
-
/**
|
|
332
|
-
* @internal
|
|
333
|
-
*/
|
|
334
|
-
constructor(opts) {
|
|
335
|
-
super({
|
|
336
|
-
name: "ServiceLimitExceededException",
|
|
337
|
-
$fault: "client",
|
|
338
|
-
...opts
|
|
339
|
-
});
|
|
340
|
-
Object.setPrototypeOf(this, _ServiceLimitExceededException.prototype);
|
|
341
|
-
this.code = opts.code;
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
var TooManyRequestsException = class _TooManyRequestsException extends SignerServiceException {
|
|
345
|
-
static {
|
|
346
|
-
__name(this, "TooManyRequestsException");
|
|
347
|
-
}
|
|
348
|
-
name = "TooManyRequestsException";
|
|
349
|
-
$fault = "client";
|
|
350
|
-
code;
|
|
351
|
-
/**
|
|
352
|
-
* @internal
|
|
353
|
-
*/
|
|
354
|
-
constructor(opts) {
|
|
355
|
-
super({
|
|
356
|
-
name: "TooManyRequestsException",
|
|
357
|
-
$fault: "client",
|
|
358
|
-
...opts
|
|
359
|
-
});
|
|
360
|
-
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
361
|
-
this.code = opts.code;
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
var ValidationException = class _ValidationException extends SignerServiceException {
|
|
365
|
-
static {
|
|
366
|
-
__name(this, "ValidationException");
|
|
367
|
-
}
|
|
368
|
-
name = "ValidationException";
|
|
369
|
-
$fault = "client";
|
|
370
|
-
code;
|
|
371
|
-
/**
|
|
372
|
-
* @internal
|
|
373
|
-
*/
|
|
374
|
-
constructor(opts) {
|
|
375
|
-
super({
|
|
376
|
-
name: "ValidationException",
|
|
377
|
-
$fault: "client",
|
|
378
|
-
...opts
|
|
379
|
-
});
|
|
380
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
381
|
-
this.code = opts.code;
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
var BadRequestException = class _BadRequestException extends SignerServiceException {
|
|
385
|
-
static {
|
|
386
|
-
__name(this, "BadRequestException");
|
|
387
|
-
}
|
|
388
|
-
name = "BadRequestException";
|
|
389
|
-
$fault = "client";
|
|
390
|
-
code;
|
|
391
|
-
/**
|
|
392
|
-
* @internal
|
|
393
|
-
*/
|
|
394
|
-
constructor(opts) {
|
|
395
|
-
super({
|
|
396
|
-
name: "BadRequestException",
|
|
397
|
-
$fault: "client",
|
|
398
|
-
...opts
|
|
399
|
-
});
|
|
400
|
-
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
401
|
-
this.code = opts.code;
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
var Category = {
|
|
405
|
-
AWSIoT: "AWSIoT"
|
|
406
|
-
};
|
|
407
|
-
var EncryptionAlgorithm = {
|
|
408
|
-
ECDSA: "ECDSA",
|
|
409
|
-
RSA: "RSA"
|
|
410
|
-
};
|
|
411
|
-
var HashAlgorithm = {
|
|
412
|
-
SHA1: "SHA1",
|
|
413
|
-
SHA256: "SHA256"
|
|
414
|
-
};
|
|
415
|
-
var ImageFormat = {
|
|
416
|
-
JSON: "JSON",
|
|
417
|
-
JSONDetached: "JSONDetached",
|
|
418
|
-
JSONEmbedded: "JSONEmbedded"
|
|
419
|
-
};
|
|
420
|
-
var SigningStatus = {
|
|
421
|
-
Failed: "Failed",
|
|
422
|
-
InProgress: "InProgress",
|
|
423
|
-
Succeeded: "Succeeded"
|
|
424
|
-
};
|
|
425
|
-
var ValidityType = {
|
|
426
|
-
DAYS: "DAYS",
|
|
427
|
-
MONTHS: "MONTHS",
|
|
428
|
-
YEARS: "YEARS"
|
|
429
|
-
};
|
|
430
|
-
var SigningProfileStatus = {
|
|
431
|
-
Active: "Active",
|
|
432
|
-
Canceled: "Canceled",
|
|
433
|
-
Revoked: "Revoked"
|
|
434
|
-
};
|
|
435
|
-
var NotFoundException = class _NotFoundException extends SignerServiceException {
|
|
436
|
-
static {
|
|
437
|
-
__name(this, "NotFoundException");
|
|
438
|
-
}
|
|
439
|
-
name = "NotFoundException";
|
|
440
|
-
$fault = "client";
|
|
441
|
-
code;
|
|
442
|
-
/**
|
|
443
|
-
* @internal
|
|
444
|
-
*/
|
|
445
|
-
constructor(opts) {
|
|
446
|
-
super({
|
|
447
|
-
name: "NotFoundException",
|
|
448
|
-
$fault: "client",
|
|
449
|
-
...opts
|
|
450
|
-
});
|
|
451
|
-
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
452
|
-
this.code = opts.code;
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
var ThrottlingException = class _ThrottlingException extends SignerServiceException {
|
|
456
|
-
static {
|
|
457
|
-
__name(this, "ThrottlingException");
|
|
458
|
-
}
|
|
459
|
-
name = "ThrottlingException";
|
|
460
|
-
$fault = "client";
|
|
461
|
-
code;
|
|
462
|
-
/**
|
|
463
|
-
* @internal
|
|
464
|
-
*/
|
|
465
|
-
constructor(opts) {
|
|
466
|
-
super({
|
|
467
|
-
name: "ThrottlingException",
|
|
468
|
-
$fault: "client",
|
|
469
|
-
...opts
|
|
470
|
-
});
|
|
471
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
472
|
-
this.code = opts.code;
|
|
473
|
-
}
|
|
241
|
+
const HashAlgorithm = {
|
|
242
|
+
SHA1: "SHA1",
|
|
243
|
+
SHA256: "SHA256",
|
|
474
244
|
};
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
508
|
-
const headers = {};
|
|
509
|
-
b.bp("/signing-jobs/{jobId}");
|
|
510
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
511
|
-
let body;
|
|
512
|
-
b.m("GET").h(headers).b(body);
|
|
513
|
-
return b.build();
|
|
514
|
-
}, "se_DescribeSigningJobCommand");
|
|
515
|
-
var se_GetRevocationStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
516
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
517
|
-
const headers = {};
|
|
518
|
-
b.bp("/revocations");
|
|
519
|
-
const query = (0, import_smithy_client.map)({
|
|
520
|
-
[_sT]: [
|
|
521
|
-
(0, import_smithy_client.expectNonNull)(input.signatureTimestamp, `signatureTimestamp`) != null,
|
|
522
|
-
() => (0, import_smithy_client.serializeDateTime)(input[_sT]).toString()
|
|
523
|
-
],
|
|
524
|
-
[_pI]: [, (0, import_smithy_client.expectNonNull)(input[_pI], `platformId`)],
|
|
525
|
-
[_pVA]: [, (0, import_smithy_client.expectNonNull)(input[_pVA], `profileVersionArn`)],
|
|
526
|
-
[_jA]: [, (0, import_smithy_client.expectNonNull)(input[_jA], `jobArn`)],
|
|
527
|
-
[_cH]: [(0, import_smithy_client.expectNonNull)(input.certificateHashes, `certificateHashes`) != null, () => input[_cH] || []]
|
|
528
|
-
});
|
|
529
|
-
let body;
|
|
530
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
531
|
-
if (context.disableHostPrefix !== true) {
|
|
532
|
-
resolvedHostname = "verification." + resolvedHostname;
|
|
533
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
534
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
245
|
+
const ImageFormat = {
|
|
246
|
+
JSON: "JSON",
|
|
247
|
+
JSONDetached: "JSONDetached",
|
|
248
|
+
JSONEmbedded: "JSONEmbedded",
|
|
249
|
+
};
|
|
250
|
+
const SigningStatus = {
|
|
251
|
+
Failed: "Failed",
|
|
252
|
+
InProgress: "InProgress",
|
|
253
|
+
Succeeded: "Succeeded",
|
|
254
|
+
};
|
|
255
|
+
const ValidityType = {
|
|
256
|
+
DAYS: "DAYS",
|
|
257
|
+
MONTHS: "MONTHS",
|
|
258
|
+
YEARS: "YEARS",
|
|
259
|
+
};
|
|
260
|
+
const SigningProfileStatus = {
|
|
261
|
+
Active: "Active",
|
|
262
|
+
Canceled: "Canceled",
|
|
263
|
+
Revoked: "Revoked",
|
|
264
|
+
};
|
|
265
|
+
class NotFoundException extends SignerServiceException {
|
|
266
|
+
name = "NotFoundException";
|
|
267
|
+
$fault = "client";
|
|
268
|
+
code;
|
|
269
|
+
constructor(opts) {
|
|
270
|
+
super({
|
|
271
|
+
name: "NotFoundException",
|
|
272
|
+
$fault: "client",
|
|
273
|
+
...opts,
|
|
274
|
+
});
|
|
275
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
276
|
+
this.code = opts.code;
|
|
535
277
|
}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
});
|
|
570
|
-
let body;
|
|
571
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
572
|
-
return b.build();
|
|
573
|
-
}, "se_ListProfilePermissionsCommand");
|
|
574
|
-
var se_ListSigningJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
575
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
576
|
-
const headers = {};
|
|
577
|
-
b.bp("/signing-jobs");
|
|
578
|
-
const query = (0, import_smithy_client.map)({
|
|
579
|
-
[_s]: [, input[_s]],
|
|
580
|
-
[_pI]: [, input[_pI]],
|
|
581
|
-
[_rB]: [, input[_rB]],
|
|
582
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
583
|
-
[_nT]: [, input[_nT]],
|
|
584
|
-
[_iR]: [() => input.isRevoked !== void 0, () => input[_iR].toString()],
|
|
585
|
-
[_sEB]: [() => input.signatureExpiresBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sEB]).toString()],
|
|
586
|
-
[_sEA]: [() => input.signatureExpiresAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sEA]).toString()],
|
|
587
|
-
[_jI]: [, input[_jI]]
|
|
588
|
-
});
|
|
589
|
-
let body;
|
|
590
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
591
|
-
return b.build();
|
|
592
|
-
}, "se_ListSigningJobsCommand");
|
|
593
|
-
var se_ListSigningPlatformsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
594
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
595
|
-
const headers = {};
|
|
596
|
-
b.bp("/signing-platforms");
|
|
597
|
-
const query = (0, import_smithy_client.map)({
|
|
598
|
-
[_c]: [, input[_c]],
|
|
599
|
-
[_p]: [, input[_p]],
|
|
600
|
-
[_t]: [, input[_t]],
|
|
601
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
602
|
-
[_nT]: [, input[_nT]]
|
|
603
|
-
});
|
|
604
|
-
let body;
|
|
605
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
606
|
-
return b.build();
|
|
607
|
-
}, "se_ListSigningPlatformsCommand");
|
|
608
|
-
var se_ListSigningProfilesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
609
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
610
|
-
const headers = {};
|
|
611
|
-
b.bp("/signing-profiles");
|
|
612
|
-
const query = (0, import_smithy_client.map)({
|
|
613
|
-
[_iC]: [() => input.includeCanceled !== void 0, () => input[_iC].toString()],
|
|
614
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
615
|
-
[_nT]: [, input[_nT]],
|
|
616
|
-
[_pI]: [, input[_pI]],
|
|
617
|
-
[_st]: [() => input.statuses !== void 0, () => input[_st] || []]
|
|
618
|
-
});
|
|
619
|
-
let body;
|
|
620
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
621
|
-
return b.build();
|
|
622
|
-
}, "se_ListSigningProfilesCommand");
|
|
623
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
624
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
625
|
-
const headers = {};
|
|
626
|
-
b.bp("/tags/{resourceArn}");
|
|
627
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
628
|
-
let body;
|
|
629
|
-
b.m("GET").h(headers).b(body);
|
|
630
|
-
return b.build();
|
|
631
|
-
}, "se_ListTagsForResourceCommand");
|
|
632
|
-
var se_PutSigningProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
633
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
634
|
-
const headers = {
|
|
635
|
-
"content-type": "application/json"
|
|
636
|
-
};
|
|
637
|
-
b.bp("/signing-profiles/{profileName}");
|
|
638
|
-
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
639
|
-
let body;
|
|
640
|
-
body = JSON.stringify(
|
|
641
|
-
(0, import_smithy_client.take)(input, {
|
|
642
|
-
overrides: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "overrides"),
|
|
643
|
-
platformId: [],
|
|
644
|
-
signatureValidityPeriod: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "signatureValidityPeriod"),
|
|
645
|
-
signingMaterial: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "signingMaterial"),
|
|
646
|
-
signingParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "signingParameters"),
|
|
647
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
648
|
-
})
|
|
649
|
-
);
|
|
650
|
-
b.m("PUT").h(headers).b(body);
|
|
651
|
-
return b.build();
|
|
652
|
-
}, "se_PutSigningProfileCommand");
|
|
653
|
-
var se_RemoveProfilePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
654
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
655
|
-
const headers = {};
|
|
656
|
-
b.bp("/signing-profiles/{profileName}/permissions/{statementId}");
|
|
657
|
-
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
658
|
-
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
659
|
-
const query = (0, import_smithy_client.map)({
|
|
660
|
-
[_rI]: [, (0, import_smithy_client.expectNonNull)(input[_rI], `revisionId`)]
|
|
661
|
-
});
|
|
662
|
-
let body;
|
|
663
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
664
|
-
return b.build();
|
|
665
|
-
}, "se_RemoveProfilePermissionCommand");
|
|
666
|
-
var se_RevokeSignatureCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
667
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
668
|
-
const headers = {
|
|
669
|
-
"content-type": "application/json"
|
|
670
|
-
};
|
|
671
|
-
b.bp("/signing-jobs/{jobId}/revoke");
|
|
672
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
673
|
-
let body;
|
|
674
|
-
body = JSON.stringify(
|
|
675
|
-
(0, import_smithy_client.take)(input, {
|
|
676
|
-
jobOwner: [],
|
|
677
|
-
reason: []
|
|
678
|
-
})
|
|
679
|
-
);
|
|
680
|
-
b.m("PUT").h(headers).b(body);
|
|
681
|
-
return b.build();
|
|
682
|
-
}, "se_RevokeSignatureCommand");
|
|
683
|
-
var se_RevokeSigningProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
684
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
685
|
-
const headers = {
|
|
686
|
-
"content-type": "application/json"
|
|
687
|
-
};
|
|
688
|
-
b.bp("/signing-profiles/{profileName}/revoke");
|
|
689
|
-
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
690
|
-
let body;
|
|
691
|
-
body = JSON.stringify(
|
|
692
|
-
(0, import_smithy_client.take)(input, {
|
|
693
|
-
effectiveTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "effectiveTime"),
|
|
694
|
-
profileVersion: [],
|
|
695
|
-
reason: []
|
|
696
|
-
})
|
|
697
|
-
);
|
|
698
|
-
b.m("PUT").h(headers).b(body);
|
|
699
|
-
return b.build();
|
|
700
|
-
}, "se_RevokeSigningProfileCommand");
|
|
701
|
-
var se_SignPayloadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
702
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
703
|
-
const headers = {
|
|
704
|
-
"content-type": "application/json"
|
|
705
|
-
};
|
|
706
|
-
b.bp("/signing-jobs/with-payload");
|
|
707
|
-
let body;
|
|
708
|
-
body = JSON.stringify(
|
|
709
|
-
(0, import_smithy_client.take)(input, {
|
|
710
|
-
payload: /* @__PURE__ */ __name((_) => context.base64Encoder(_), "payload"),
|
|
711
|
-
payloadFormat: [],
|
|
712
|
-
profileName: [],
|
|
713
|
-
profileOwner: []
|
|
714
|
-
})
|
|
715
|
-
);
|
|
716
|
-
b.m("POST").h(headers).b(body);
|
|
717
|
-
return b.build();
|
|
718
|
-
}, "se_SignPayloadCommand");
|
|
719
|
-
var se_StartSigningJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
720
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
721
|
-
const headers = {
|
|
722
|
-
"content-type": "application/json"
|
|
723
|
-
};
|
|
724
|
-
b.bp("/signing-jobs");
|
|
725
|
-
let body;
|
|
726
|
-
body = JSON.stringify(
|
|
727
|
-
(0, import_smithy_client.take)(input, {
|
|
728
|
-
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
729
|
-
destination: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destination"),
|
|
730
|
-
profileName: [],
|
|
731
|
-
profileOwner: [],
|
|
732
|
-
source: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "source")
|
|
733
|
-
})
|
|
734
|
-
);
|
|
735
|
-
b.m("POST").h(headers).b(body);
|
|
736
|
-
return b.build();
|
|
737
|
-
}, "se_StartSigningJobCommand");
|
|
738
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
739
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
740
|
-
const headers = {
|
|
741
|
-
"content-type": "application/json"
|
|
742
|
-
};
|
|
743
|
-
b.bp("/tags/{resourceArn}");
|
|
744
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
745
|
-
let body;
|
|
746
|
-
body = JSON.stringify(
|
|
747
|
-
(0, import_smithy_client.take)(input, {
|
|
748
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
749
|
-
})
|
|
750
|
-
);
|
|
751
|
-
b.m("POST").h(headers).b(body);
|
|
752
|
-
return b.build();
|
|
753
|
-
}, "se_TagResourceCommand");
|
|
754
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
755
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
756
|
-
const headers = {};
|
|
757
|
-
b.bp("/tags/{resourceArn}");
|
|
758
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
759
|
-
const query = (0, import_smithy_client.map)({
|
|
760
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
761
|
-
});
|
|
762
|
-
let body;
|
|
763
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
764
|
-
return b.build();
|
|
765
|
-
}, "se_UntagResourceCommand");
|
|
766
|
-
var de_AddProfilePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
767
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
-
return de_CommandError(output, context);
|
|
769
|
-
}
|
|
770
|
-
const contents = (0, import_smithy_client.map)({
|
|
771
|
-
$metadata: deserializeMetadata(output)
|
|
772
|
-
});
|
|
773
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
774
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
775
|
-
revisionId: import_smithy_client.expectString
|
|
776
|
-
});
|
|
777
|
-
Object.assign(contents, doc);
|
|
778
|
-
return contents;
|
|
779
|
-
}, "de_AddProfilePermissionCommand");
|
|
780
|
-
var de_CancelSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
-
return de_CommandError(output, context);
|
|
783
|
-
}
|
|
784
|
-
const contents = (0, import_smithy_client.map)({
|
|
785
|
-
$metadata: deserializeMetadata(output)
|
|
786
|
-
});
|
|
787
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
788
|
-
return contents;
|
|
789
|
-
}, "de_CancelSigningProfileCommand");
|
|
790
|
-
var de_DescribeSigningJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return de_CommandError(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 (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
798
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
799
|
-
completedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "completedAt"),
|
|
800
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
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: /* @__PURE__ */ __name((_) => de_SigningJobRevocationRecord(_, context), "revocationRecord"),
|
|
811
|
-
signatureExpiresAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "signatureExpiresAt"),
|
|
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_GetRevocationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
823
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
-
return de_CommandError(output, context);
|
|
825
|
-
}
|
|
826
|
-
const contents = (0, import_smithy_client.map)({
|
|
827
|
-
$metadata: deserializeMetadata(output)
|
|
828
|
-
});
|
|
829
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
830
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
831
|
-
revokedEntities: import_smithy_client._json
|
|
832
|
-
});
|
|
833
|
-
Object.assign(contents, doc);
|
|
834
|
-
return contents;
|
|
835
|
-
}, "de_GetRevocationStatusCommand");
|
|
836
|
-
var de_GetSigningPlatformCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
837
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return de_CommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const contents = (0, import_smithy_client.map)({
|
|
841
|
-
$metadata: deserializeMetadata(output)
|
|
842
|
-
});
|
|
843
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
844
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
845
|
-
category: import_smithy_client.expectString,
|
|
846
|
-
displayName: import_smithy_client.expectString,
|
|
847
|
-
maxSizeInMB: import_smithy_client.expectInt32,
|
|
848
|
-
partner: import_smithy_client.expectString,
|
|
849
|
-
platformId: import_smithy_client.expectString,
|
|
850
|
-
revocationSupported: import_smithy_client.expectBoolean,
|
|
851
|
-
signingConfiguration: import_smithy_client._json,
|
|
852
|
-
signingImageFormat: import_smithy_client._json,
|
|
853
|
-
target: import_smithy_client.expectString
|
|
854
|
-
});
|
|
855
|
-
Object.assign(contents, doc);
|
|
856
|
-
return contents;
|
|
857
|
-
}, "de_GetSigningPlatformCommand");
|
|
858
|
-
var de_GetSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return de_CommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const contents = (0, import_smithy_client.map)({
|
|
863
|
-
$metadata: deserializeMetadata(output)
|
|
864
|
-
});
|
|
865
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
866
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
867
|
-
arn: import_smithy_client.expectString,
|
|
868
|
-
overrides: import_smithy_client._json,
|
|
869
|
-
platformDisplayName: import_smithy_client.expectString,
|
|
870
|
-
platformId: import_smithy_client.expectString,
|
|
871
|
-
profileName: import_smithy_client.expectString,
|
|
872
|
-
profileVersion: import_smithy_client.expectString,
|
|
873
|
-
profileVersionArn: import_smithy_client.expectString,
|
|
874
|
-
revocationRecord: /* @__PURE__ */ __name((_) => de_SigningProfileRevocationRecord(_, context), "revocationRecord"),
|
|
875
|
-
signatureValidityPeriod: import_smithy_client._json,
|
|
876
|
-
signingMaterial: import_smithy_client._json,
|
|
877
|
-
signingParameters: import_smithy_client._json,
|
|
878
|
-
status: import_smithy_client.expectString,
|
|
879
|
-
statusReason: import_smithy_client.expectString,
|
|
880
|
-
tags: import_smithy_client._json
|
|
881
|
-
});
|
|
882
|
-
Object.assign(contents, doc);
|
|
883
|
-
return contents;
|
|
884
|
-
}, "de_GetSigningProfileCommand");
|
|
885
|
-
var de_ListProfilePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
886
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return de_CommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
const contents = (0, import_smithy_client.map)({
|
|
890
|
-
$metadata: deserializeMetadata(output)
|
|
891
|
-
});
|
|
892
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
893
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
894
|
-
nextToken: import_smithy_client.expectString,
|
|
895
|
-
permissions: import_smithy_client._json,
|
|
896
|
-
policySizeBytes: import_smithy_client.expectInt32,
|
|
897
|
-
revisionId: import_smithy_client.expectString
|
|
898
|
-
});
|
|
899
|
-
Object.assign(contents, doc);
|
|
900
|
-
return contents;
|
|
901
|
-
}, "de_ListProfilePermissionsCommand");
|
|
902
|
-
var de_ListSigningJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
904
|
-
return de_CommandError(output, context);
|
|
905
|
-
}
|
|
906
|
-
const contents = (0, import_smithy_client.map)({
|
|
907
|
-
$metadata: deserializeMetadata(output)
|
|
908
|
-
});
|
|
909
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
910
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
911
|
-
jobs: /* @__PURE__ */ __name((_) => de_SigningJobs(_, context), "jobs"),
|
|
912
|
-
nextToken: import_smithy_client.expectString
|
|
913
|
-
});
|
|
914
|
-
Object.assign(contents, doc);
|
|
915
|
-
return contents;
|
|
916
|
-
}, "de_ListSigningJobsCommand");
|
|
917
|
-
var de_ListSigningPlatformsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return de_CommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const contents = (0, import_smithy_client.map)({
|
|
922
|
-
$metadata: deserializeMetadata(output)
|
|
923
|
-
});
|
|
924
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
925
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
926
|
-
nextToken: import_smithy_client.expectString,
|
|
927
|
-
platforms: import_smithy_client._json
|
|
928
|
-
});
|
|
929
|
-
Object.assign(contents, doc);
|
|
930
|
-
return contents;
|
|
931
|
-
}, "de_ListSigningPlatformsCommand");
|
|
932
|
-
var de_ListSigningProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return de_CommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const contents = (0, import_smithy_client.map)({
|
|
937
|
-
$metadata: deserializeMetadata(output)
|
|
938
|
-
});
|
|
939
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
940
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
941
|
-
nextToken: import_smithy_client.expectString,
|
|
942
|
-
profiles: import_smithy_client._json
|
|
943
|
-
});
|
|
944
|
-
Object.assign(contents, doc);
|
|
945
|
-
return contents;
|
|
946
|
-
}, "de_ListSigningProfilesCommand");
|
|
947
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
949
|
-
return de_CommandError(output, context);
|
|
950
|
-
}
|
|
951
|
-
const contents = (0, import_smithy_client.map)({
|
|
952
|
-
$metadata: deserializeMetadata(output)
|
|
953
|
-
});
|
|
954
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
955
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
956
|
-
tags: import_smithy_client._json
|
|
957
|
-
});
|
|
958
|
-
Object.assign(contents, doc);
|
|
959
|
-
return contents;
|
|
960
|
-
}, "de_ListTagsForResourceCommand");
|
|
961
|
-
var de_PutSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
962
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
963
|
-
return de_CommandError(output, context);
|
|
964
|
-
}
|
|
965
|
-
const contents = (0, import_smithy_client.map)({
|
|
966
|
-
$metadata: deserializeMetadata(output)
|
|
967
|
-
});
|
|
968
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
969
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
970
|
-
arn: import_smithy_client.expectString,
|
|
971
|
-
profileVersion: import_smithy_client.expectString,
|
|
972
|
-
profileVersionArn: import_smithy_client.expectString
|
|
973
|
-
});
|
|
974
|
-
Object.assign(contents, doc);
|
|
975
|
-
return contents;
|
|
976
|
-
}, "de_PutSigningProfileCommand");
|
|
977
|
-
var de_RemoveProfilePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
978
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
979
|
-
return de_CommandError(output, context);
|
|
980
|
-
}
|
|
981
|
-
const contents = (0, import_smithy_client.map)({
|
|
982
|
-
$metadata: deserializeMetadata(output)
|
|
983
|
-
});
|
|
984
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
985
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
986
|
-
revisionId: import_smithy_client.expectString
|
|
987
|
-
});
|
|
988
|
-
Object.assign(contents, doc);
|
|
989
|
-
return contents;
|
|
990
|
-
}, "de_RemoveProfilePermissionCommand");
|
|
991
|
-
var de_RevokeSignatureCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
-
return de_CommandError(output, context);
|
|
994
|
-
}
|
|
995
|
-
const contents = (0, import_smithy_client.map)({
|
|
996
|
-
$metadata: deserializeMetadata(output)
|
|
997
|
-
});
|
|
998
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
999
|
-
return contents;
|
|
1000
|
-
}, "de_RevokeSignatureCommand");
|
|
1001
|
-
var de_RevokeSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1003
|
-
return de_CommandError(output, context);
|
|
1004
|
-
}
|
|
1005
|
-
const contents = (0, import_smithy_client.map)({
|
|
1006
|
-
$metadata: deserializeMetadata(output)
|
|
1007
|
-
});
|
|
1008
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1009
|
-
return contents;
|
|
1010
|
-
}, "de_RevokeSigningProfileCommand");
|
|
1011
|
-
var de_SignPayloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1012
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1013
|
-
return de_CommandError(output, context);
|
|
1014
|
-
}
|
|
1015
|
-
const contents = (0, import_smithy_client.map)({
|
|
1016
|
-
$metadata: deserializeMetadata(output)
|
|
1017
|
-
});
|
|
1018
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1019
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1020
|
-
jobId: import_smithy_client.expectString,
|
|
1021
|
-
jobOwner: import_smithy_client.expectString,
|
|
1022
|
-
metadata: import_smithy_client._json,
|
|
1023
|
-
signature: context.base64Decoder
|
|
1024
|
-
});
|
|
1025
|
-
Object.assign(contents, doc);
|
|
1026
|
-
return contents;
|
|
1027
|
-
}, "de_SignPayloadCommand");
|
|
1028
|
-
var de_StartSigningJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return de_CommandError(output, context);
|
|
1031
|
-
}
|
|
1032
|
-
const contents = (0, import_smithy_client.map)({
|
|
1033
|
-
$metadata: deserializeMetadata(output)
|
|
1034
|
-
});
|
|
1035
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1036
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1037
|
-
jobId: import_smithy_client.expectString,
|
|
1038
|
-
jobOwner: import_smithy_client.expectString
|
|
1039
|
-
});
|
|
1040
|
-
Object.assign(contents, doc);
|
|
1041
|
-
return contents;
|
|
1042
|
-
}, "de_StartSigningJobCommand");
|
|
1043
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1045
|
-
return de_CommandError(output, context);
|
|
1046
|
-
}
|
|
1047
|
-
const contents = (0, import_smithy_client.map)({
|
|
1048
|
-
$metadata: deserializeMetadata(output)
|
|
1049
|
-
});
|
|
1050
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1051
|
-
return contents;
|
|
1052
|
-
}, "de_TagResourceCommand");
|
|
1053
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1054
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1055
|
-
return de_CommandError(output, context);
|
|
1056
|
-
}
|
|
1057
|
-
const contents = (0, import_smithy_client.map)({
|
|
1058
|
-
$metadata: deserializeMetadata(output)
|
|
1059
|
-
});
|
|
1060
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1061
|
-
return contents;
|
|
1062
|
-
}, "de_UntagResourceCommand");
|
|
1063
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1064
|
-
const parsedOutput = {
|
|
1065
|
-
...output,
|
|
1066
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1067
|
-
};
|
|
1068
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1069
|
-
switch (errorCode) {
|
|
1070
|
-
case "AccessDeniedException":
|
|
1071
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1072
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ConflictException":
|
|
1074
|
-
case "com.amazonaws.signer#ConflictException":
|
|
1075
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "InternalServiceErrorException":
|
|
1077
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1078
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ResourceNotFoundException":
|
|
1080
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1081
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ServiceLimitExceededException":
|
|
1083
|
-
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
1084
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "TooManyRequestsException":
|
|
1086
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1087
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ValidationException":
|
|
1089
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1090
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "BadRequestException":
|
|
1092
|
-
case "com.amazonaws.signer#BadRequestException":
|
|
1093
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "NotFoundException":
|
|
1095
|
-
case "com.amazonaws.signer#NotFoundException":
|
|
1096
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ThrottlingException":
|
|
1098
|
-
case "com.amazonaws.signer#ThrottlingException":
|
|
1099
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1100
|
-
default:
|
|
1101
|
-
const parsedBody = parsedOutput.body;
|
|
1102
|
-
return throwDefaultError({
|
|
1103
|
-
output,
|
|
1104
|
-
parsedBody,
|
|
1105
|
-
errorCode
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
}, "de_CommandError");
|
|
1109
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SignerServiceException);
|
|
1110
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1111
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1112
|
-
const data = parsedOutput.body;
|
|
1113
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1114
|
-
code: import_smithy_client.expectString,
|
|
1115
|
-
message: import_smithy_client.expectString
|
|
1116
|
-
});
|
|
1117
|
-
Object.assign(contents, doc);
|
|
1118
|
-
const exception = new AccessDeniedException({
|
|
1119
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1120
|
-
...contents
|
|
1121
|
-
});
|
|
1122
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1123
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1124
|
-
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1125
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1126
|
-
const data = parsedOutput.body;
|
|
1127
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1128
|
-
code: import_smithy_client.expectString,
|
|
1129
|
-
message: import_smithy_client.expectString
|
|
1130
|
-
});
|
|
1131
|
-
Object.assign(contents, doc);
|
|
1132
|
-
const exception = new BadRequestException({
|
|
1133
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1134
|
-
...contents
|
|
1135
|
-
});
|
|
1136
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1137
|
-
}, "de_BadRequestExceptionRes");
|
|
1138
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1139
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1140
|
-
const data = parsedOutput.body;
|
|
1141
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1142
|
-
code: import_smithy_client.expectString,
|
|
1143
|
-
message: import_smithy_client.expectString
|
|
1144
|
-
});
|
|
1145
|
-
Object.assign(contents, doc);
|
|
1146
|
-
const exception = new ConflictException({
|
|
1147
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1148
|
-
...contents
|
|
1149
|
-
});
|
|
1150
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1151
|
-
}, "de_ConflictExceptionRes");
|
|
1152
|
-
var de_InternalServiceErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1153
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1154
|
-
const data = parsedOutput.body;
|
|
1155
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1156
|
-
code: import_smithy_client.expectString,
|
|
1157
|
-
message: import_smithy_client.expectString
|
|
1158
|
-
});
|
|
1159
|
-
Object.assign(contents, doc);
|
|
1160
|
-
const exception = new InternalServiceErrorException({
|
|
1161
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1162
|
-
...contents
|
|
1163
|
-
});
|
|
1164
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1165
|
-
}, "de_InternalServiceErrorExceptionRes");
|
|
1166
|
-
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1167
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1168
|
-
const data = parsedOutput.body;
|
|
1169
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1170
|
-
code: import_smithy_client.expectString,
|
|
1171
|
-
message: import_smithy_client.expectString
|
|
1172
|
-
});
|
|
1173
|
-
Object.assign(contents, doc);
|
|
1174
|
-
const exception = new NotFoundException({
|
|
1175
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1176
|
-
...contents
|
|
1177
|
-
});
|
|
1178
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1179
|
-
}, "de_NotFoundExceptionRes");
|
|
1180
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1181
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1182
|
-
const data = parsedOutput.body;
|
|
1183
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1184
|
-
code: import_smithy_client.expectString,
|
|
1185
|
-
message: import_smithy_client.expectString
|
|
1186
|
-
});
|
|
1187
|
-
Object.assign(contents, doc);
|
|
1188
|
-
const exception = new ResourceNotFoundException({
|
|
1189
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1190
|
-
...contents
|
|
1191
|
-
});
|
|
1192
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1193
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1194
|
-
var de_ServiceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1195
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1196
|
-
const data = parsedOutput.body;
|
|
1197
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1198
|
-
code: import_smithy_client.expectString,
|
|
1199
|
-
message: import_smithy_client.expectString
|
|
1200
|
-
});
|
|
1201
|
-
Object.assign(contents, doc);
|
|
1202
|
-
const exception = new ServiceLimitExceededException({
|
|
1203
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
-
...contents
|
|
1205
|
-
});
|
|
1206
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1207
|
-
}, "de_ServiceLimitExceededExceptionRes");
|
|
1208
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1209
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1210
|
-
const data = parsedOutput.body;
|
|
1211
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1212
|
-
code: import_smithy_client.expectString,
|
|
1213
|
-
message: import_smithy_client.expectString
|
|
1214
|
-
});
|
|
1215
|
-
Object.assign(contents, doc);
|
|
1216
|
-
const exception = new ThrottlingException({
|
|
1217
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1218
|
-
...contents
|
|
1219
|
-
});
|
|
1220
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1221
|
-
}, "de_ThrottlingExceptionRes");
|
|
1222
|
-
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1223
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1224
|
-
const data = parsedOutput.body;
|
|
1225
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1226
|
-
code: import_smithy_client.expectString,
|
|
1227
|
-
message: import_smithy_client.expectString
|
|
1228
|
-
});
|
|
1229
|
-
Object.assign(contents, doc);
|
|
1230
|
-
const exception = new TooManyRequestsException({
|
|
1231
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1232
|
-
...contents
|
|
1233
|
-
});
|
|
1234
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1235
|
-
}, "de_TooManyRequestsExceptionRes");
|
|
1236
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1237
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1238
|
-
const data = parsedOutput.body;
|
|
1239
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1240
|
-
code: import_smithy_client.expectString,
|
|
1241
|
-
message: import_smithy_client.expectString
|
|
1242
|
-
});
|
|
1243
|
-
Object.assign(contents, doc);
|
|
1244
|
-
const exception = new ValidationException({
|
|
1245
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1246
|
-
...contents
|
|
1247
|
-
});
|
|
1248
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1249
|
-
}, "de_ValidationExceptionRes");
|
|
1250
|
-
var de_SigningJob = /* @__PURE__ */ __name((output, context) => {
|
|
1251
|
-
return (0, import_smithy_client.take)(output, {
|
|
1252
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
1253
|
-
isRevoked: import_smithy_client.expectBoolean,
|
|
1254
|
-
jobId: import_smithy_client.expectString,
|
|
1255
|
-
jobInvoker: import_smithy_client.expectString,
|
|
1256
|
-
jobOwner: import_smithy_client.expectString,
|
|
1257
|
-
platformDisplayName: import_smithy_client.expectString,
|
|
1258
|
-
platformId: import_smithy_client.expectString,
|
|
1259
|
-
profileName: import_smithy_client.expectString,
|
|
1260
|
-
profileVersion: import_smithy_client.expectString,
|
|
1261
|
-
signatureExpiresAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "signatureExpiresAt"),
|
|
1262
|
-
signedObject: import_smithy_client._json,
|
|
1263
|
-
signingMaterial: import_smithy_client._json,
|
|
1264
|
-
source: import_smithy_client._json,
|
|
1265
|
-
status: import_smithy_client.expectString
|
|
1266
|
-
});
|
|
1267
|
-
}, "de_SigningJob");
|
|
1268
|
-
var de_SigningJobRevocationRecord = /* @__PURE__ */ __name((output, context) => {
|
|
1269
|
-
return (0, import_smithy_client.take)(output, {
|
|
1270
|
-
reason: import_smithy_client.expectString,
|
|
1271
|
-
revokedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "revokedAt"),
|
|
1272
|
-
revokedBy: import_smithy_client.expectString
|
|
1273
|
-
});
|
|
1274
|
-
}, "de_SigningJobRevocationRecord");
|
|
1275
|
-
var de_SigningJobs = /* @__PURE__ */ __name((output, context) => {
|
|
1276
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1277
|
-
return de_SigningJob(entry, context);
|
|
1278
|
-
});
|
|
1279
|
-
return retVal;
|
|
1280
|
-
}, "de_SigningJobs");
|
|
1281
|
-
var de_SigningProfileRevocationRecord = /* @__PURE__ */ __name((output, context) => {
|
|
1282
|
-
return (0, import_smithy_client.take)(output, {
|
|
1283
|
-
revocationEffectiveFrom: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "revocationEffectiveFrom"),
|
|
1284
|
-
revokedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "revokedAt"),
|
|
1285
|
-
revokedBy: import_smithy_client.expectString
|
|
1286
|
-
});
|
|
1287
|
-
}, "de_SigningProfileRevocationRecord");
|
|
1288
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1289
|
-
httpStatusCode: output.statusCode,
|
|
1290
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1291
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1292
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1293
|
-
}), "deserializeMetadata");
|
|
1294
|
-
var _c = "category";
|
|
1295
|
-
var _cH = "certificateHashes";
|
|
1296
|
-
var _iC = "includeCanceled";
|
|
1297
|
-
var _iR = "isRevoked";
|
|
1298
|
-
var _jA = "jobArn";
|
|
1299
|
-
var _jI = "jobInvoker";
|
|
1300
|
-
var _mR = "maxResults";
|
|
1301
|
-
var _nT = "nextToken";
|
|
1302
|
-
var _p = "partner";
|
|
1303
|
-
var _pI = "platformId";
|
|
1304
|
-
var _pO = "profileOwner";
|
|
1305
|
-
var _pVA = "profileVersionArn";
|
|
1306
|
-
var _rB = "requestedBy";
|
|
1307
|
-
var _rI = "revisionId";
|
|
1308
|
-
var _s = "status";
|
|
1309
|
-
var _sEA = "signatureExpiresAfter";
|
|
1310
|
-
var _sEB = "signatureExpiresBefore";
|
|
1311
|
-
var _sT = "signatureTimestamp";
|
|
1312
|
-
var _st = "statuses";
|
|
1313
|
-
var _t = "target";
|
|
1314
|
-
var _tK = "tagKeys";
|
|
1315
|
-
|
|
1316
|
-
// src/commands/AddProfilePermissionCommand.ts
|
|
1317
|
-
var AddProfilePermissionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1318
|
-
return [
|
|
1319
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1320
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1321
|
-
];
|
|
1322
|
-
}).s("WallabyService", "AddProfilePermission", {}).n("SignerClient", "AddProfilePermissionCommand").f(void 0, void 0).ser(se_AddProfilePermissionCommand).de(de_AddProfilePermissionCommand).build() {
|
|
1323
|
-
static {
|
|
1324
|
-
__name(this, "AddProfilePermissionCommand");
|
|
1325
|
-
}
|
|
278
|
+
}
|
|
279
|
+
class ThrottlingException extends SignerServiceException {
|
|
280
|
+
name = "ThrottlingException";
|
|
281
|
+
$fault = "client";
|
|
282
|
+
code;
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "ThrottlingException",
|
|
286
|
+
$fault: "client",
|
|
287
|
+
...opts,
|
|
288
|
+
});
|
|
289
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
290
|
+
this.code = opts.code;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
const se_AddProfilePermissionCommand = async (input, context) => {
|
|
295
|
+
const b = core.requestBuilder(input, context);
|
|
296
|
+
const headers = {
|
|
297
|
+
"content-type": "application/json",
|
|
298
|
+
};
|
|
299
|
+
b.bp("/signing-profiles/{profileName}/permissions");
|
|
300
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
301
|
+
let body;
|
|
302
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
303
|
+
action: [],
|
|
304
|
+
principal: [],
|
|
305
|
+
profileVersion: [],
|
|
306
|
+
revisionId: [],
|
|
307
|
+
statementId: [],
|
|
308
|
+
}));
|
|
309
|
+
b.m("POST").h(headers).b(body);
|
|
310
|
+
return b.build();
|
|
1326
311
|
};
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1336
|
-
];
|
|
1337
|
-
}).s("WallabyService", "CancelSigningProfile", {}).n("SignerClient", "CancelSigningProfileCommand").f(void 0, void 0).ser(se_CancelSigningProfileCommand).de(de_CancelSigningProfileCommand).build() {
|
|
1338
|
-
static {
|
|
1339
|
-
__name(this, "CancelSigningProfileCommand");
|
|
1340
|
-
}
|
|
312
|
+
const se_CancelSigningProfileCommand = async (input, context) => {
|
|
313
|
+
const b = core.requestBuilder(input, context);
|
|
314
|
+
const headers = {};
|
|
315
|
+
b.bp("/signing-profiles/{profileName}");
|
|
316
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
317
|
+
let body;
|
|
318
|
+
b.m("DELETE").h(headers).b(body);
|
|
319
|
+
return b.build();
|
|
1341
320
|
};
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1351
|
-
];
|
|
1352
|
-
}).s("WallabyService", "DescribeSigningJob", {}).n("SignerClient", "DescribeSigningJobCommand").f(void 0, void 0).ser(se_DescribeSigningJobCommand).de(de_DescribeSigningJobCommand).build() {
|
|
1353
|
-
static {
|
|
1354
|
-
__name(this, "DescribeSigningJobCommand");
|
|
1355
|
-
}
|
|
321
|
+
const se_DescribeSigningJobCommand = async (input, context) => {
|
|
322
|
+
const b = core.requestBuilder(input, context);
|
|
323
|
+
const headers = {};
|
|
324
|
+
b.bp("/signing-jobs/{jobId}");
|
|
325
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
326
|
+
let body;
|
|
327
|
+
b.m("GET").h(headers).b(body);
|
|
328
|
+
return b.build();
|
|
1356
329
|
};
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
330
|
+
const se_GetRevocationStatusCommand = async (input, context) => {
|
|
331
|
+
const b = core.requestBuilder(input, context);
|
|
332
|
+
const headers = {};
|
|
333
|
+
b.bp("/revocations");
|
|
334
|
+
const query = smithyClient.map({
|
|
335
|
+
[_sT]: [
|
|
336
|
+
smithyClient.expectNonNull(input.signatureTimestamp, `signatureTimestamp`) != null,
|
|
337
|
+
() => smithyClient.serializeDateTime(input[_sT]).toString(),
|
|
338
|
+
],
|
|
339
|
+
[_pI]: [, smithyClient.expectNonNull(input[_pI], `platformId`)],
|
|
340
|
+
[_pVA]: [, smithyClient.expectNonNull(input[_pVA], `profileVersionArn`)],
|
|
341
|
+
[_jA]: [, smithyClient.expectNonNull(input[_jA], `jobArn`)],
|
|
342
|
+
[_cH]: [smithyClient.expectNonNull(input.certificateHashes, `certificateHashes`) != null, () => input[_cH] || []],
|
|
343
|
+
});
|
|
344
|
+
let body;
|
|
345
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
346
|
+
if (context.disableHostPrefix !== true) {
|
|
347
|
+
resolvedHostname = "verification." + resolvedHostname;
|
|
348
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
349
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
b.hn(resolvedHostname);
|
|
353
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
354
|
+
return b.build();
|
|
1371
355
|
};
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1381
|
-
];
|
|
1382
|
-
}).s("WallabyService", "GetSigningPlatform", {}).n("SignerClient", "GetSigningPlatformCommand").f(void 0, void 0).ser(se_GetSigningPlatformCommand).de(de_GetSigningPlatformCommand).build() {
|
|
1383
|
-
static {
|
|
1384
|
-
__name(this, "GetSigningPlatformCommand");
|
|
1385
|
-
}
|
|
356
|
+
const se_GetSigningPlatformCommand = async (input, context) => {
|
|
357
|
+
const b = core.requestBuilder(input, context);
|
|
358
|
+
const headers = {};
|
|
359
|
+
b.bp("/signing-platforms/{platformId}");
|
|
360
|
+
b.p("platformId", () => input.platformId, "{platformId}", false);
|
|
361
|
+
let body;
|
|
362
|
+
b.m("GET").h(headers).b(body);
|
|
363
|
+
return b.build();
|
|
1386
364
|
};
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
static {
|
|
1399
|
-
__name(this, "GetSigningProfileCommand");
|
|
1400
|
-
}
|
|
365
|
+
const se_GetSigningProfileCommand = async (input, context) => {
|
|
366
|
+
const b = core.requestBuilder(input, context);
|
|
367
|
+
const headers = {};
|
|
368
|
+
b.bp("/signing-profiles/{profileName}");
|
|
369
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
370
|
+
const query = smithyClient.map({
|
|
371
|
+
[_pO]: [, input[_pO]],
|
|
372
|
+
});
|
|
373
|
+
let body;
|
|
374
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
375
|
+
return b.build();
|
|
1401
376
|
};
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
static {
|
|
1414
|
-
__name(this, "ListProfilePermissionsCommand");
|
|
1415
|
-
}
|
|
377
|
+
const se_ListProfilePermissionsCommand = async (input, context) => {
|
|
378
|
+
const b = core.requestBuilder(input, context);
|
|
379
|
+
const headers = {};
|
|
380
|
+
b.bp("/signing-profiles/{profileName}/permissions");
|
|
381
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
382
|
+
const query = smithyClient.map({
|
|
383
|
+
[_nT]: [, input[_nT]],
|
|
384
|
+
});
|
|
385
|
+
let body;
|
|
386
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
387
|
+
return b.build();
|
|
1416
388
|
};
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
389
|
+
const se_ListSigningJobsCommand = async (input, context) => {
|
|
390
|
+
const b = core.requestBuilder(input, context);
|
|
391
|
+
const headers = {};
|
|
392
|
+
b.bp("/signing-jobs");
|
|
393
|
+
const query = smithyClient.map({
|
|
394
|
+
[_s]: [, input[_s]],
|
|
395
|
+
[_pI]: [, input[_pI]],
|
|
396
|
+
[_rB]: [, input[_rB]],
|
|
397
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
398
|
+
[_nT]: [, input[_nT]],
|
|
399
|
+
[_iR]: [() => input.isRevoked !== void 0, () => input[_iR].toString()],
|
|
400
|
+
[_sEB]: [() => input.signatureExpiresBefore !== void 0, () => smithyClient.serializeDateTime(input[_sEB]).toString()],
|
|
401
|
+
[_sEA]: [() => input.signatureExpiresAfter !== void 0, () => smithyClient.serializeDateTime(input[_sEA]).toString()],
|
|
402
|
+
[_jI]: [, input[_jI]],
|
|
403
|
+
});
|
|
404
|
+
let body;
|
|
405
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
406
|
+
return b.build();
|
|
1431
407
|
};
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
})
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
408
|
+
const se_ListSigningPlatformsCommand = async (input, context) => {
|
|
409
|
+
const b = core.requestBuilder(input, context);
|
|
410
|
+
const headers = {};
|
|
411
|
+
b.bp("/signing-platforms");
|
|
412
|
+
const query = smithyClient.map({
|
|
413
|
+
[_c]: [, input[_c]],
|
|
414
|
+
[_p]: [, input[_p]],
|
|
415
|
+
[_t]: [, input[_t]],
|
|
416
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
417
|
+
[_nT]: [, input[_nT]],
|
|
418
|
+
});
|
|
419
|
+
let body;
|
|
420
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
421
|
+
return b.build();
|
|
1446
422
|
};
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
})
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
423
|
+
const se_ListSigningProfilesCommand = async (input, context) => {
|
|
424
|
+
const b = core.requestBuilder(input, context);
|
|
425
|
+
const headers = {};
|
|
426
|
+
b.bp("/signing-profiles");
|
|
427
|
+
const query = smithyClient.map({
|
|
428
|
+
[_iC]: [() => input.includeCanceled !== void 0, () => input[_iC].toString()],
|
|
429
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
430
|
+
[_nT]: [, input[_nT]],
|
|
431
|
+
[_pI]: [, input[_pI]],
|
|
432
|
+
[_st]: [() => input.statuses !== void 0, () => input[_st] || []],
|
|
433
|
+
});
|
|
434
|
+
let body;
|
|
435
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
436
|
+
return b.build();
|
|
1461
437
|
};
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1471
|
-
];
|
|
1472
|
-
}).s("WallabyService", "ListTagsForResource", {}).n("SignerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1473
|
-
static {
|
|
1474
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1475
|
-
}
|
|
438
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
439
|
+
const b = core.requestBuilder(input, context);
|
|
440
|
+
const headers = {};
|
|
441
|
+
b.bp("/tags/{resourceArn}");
|
|
442
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
443
|
+
let body;
|
|
444
|
+
b.m("GET").h(headers).b(body);
|
|
445
|
+
return b.build();
|
|
1476
446
|
};
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
447
|
+
const se_PutSigningProfileCommand = async (input, context) => {
|
|
448
|
+
const b = core.requestBuilder(input, context);
|
|
449
|
+
const headers = {
|
|
450
|
+
"content-type": "application/json",
|
|
451
|
+
};
|
|
452
|
+
b.bp("/signing-profiles/{profileName}");
|
|
453
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
454
|
+
let body;
|
|
455
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
456
|
+
overrides: (_) => smithyClient._json(_),
|
|
457
|
+
platformId: [],
|
|
458
|
+
signatureValidityPeriod: (_) => smithyClient._json(_),
|
|
459
|
+
signingMaterial: (_) => smithyClient._json(_),
|
|
460
|
+
signingParameters: (_) => smithyClient._json(_),
|
|
461
|
+
tags: (_) => smithyClient._json(_),
|
|
462
|
+
}));
|
|
463
|
+
b.m("PUT").h(headers).b(body);
|
|
464
|
+
return b.build();
|
|
1491
465
|
};
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
__name(this, "RemoveProfilePermissionCommand");
|
|
1505
|
-
}
|
|
466
|
+
const se_RemoveProfilePermissionCommand = async (input, context) => {
|
|
467
|
+
const b = core.requestBuilder(input, context);
|
|
468
|
+
const headers = {};
|
|
469
|
+
b.bp("/signing-profiles/{profileName}/permissions/{statementId}");
|
|
470
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
471
|
+
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
472
|
+
const query = smithyClient.map({
|
|
473
|
+
[_rI]: [, smithyClient.expectNonNull(input[_rI], `revisionId`)],
|
|
474
|
+
});
|
|
475
|
+
let body;
|
|
476
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
477
|
+
return b.build();
|
|
1506
478
|
};
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
479
|
+
const se_RevokeSignatureCommand = async (input, context) => {
|
|
480
|
+
const b = core.requestBuilder(input, context);
|
|
481
|
+
const headers = {
|
|
482
|
+
"content-type": "application/json",
|
|
483
|
+
};
|
|
484
|
+
b.bp("/signing-jobs/{jobId}/revoke");
|
|
485
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
486
|
+
let body;
|
|
487
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
488
|
+
jobOwner: [],
|
|
489
|
+
reason: [],
|
|
490
|
+
}));
|
|
491
|
+
b.m("PUT").h(headers).b(body);
|
|
492
|
+
return b.build();
|
|
1521
493
|
};
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
494
|
+
const se_RevokeSigningProfileCommand = async (input, context) => {
|
|
495
|
+
const b = core.requestBuilder(input, context);
|
|
496
|
+
const headers = {
|
|
497
|
+
"content-type": "application/json",
|
|
498
|
+
};
|
|
499
|
+
b.bp("/signing-profiles/{profileName}/revoke");
|
|
500
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
501
|
+
let body;
|
|
502
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
503
|
+
effectiveTime: (_) => _.getTime() / 1_000,
|
|
504
|
+
profileVersion: [],
|
|
505
|
+
reason: [],
|
|
506
|
+
}));
|
|
507
|
+
b.m("PUT").h(headers).b(body);
|
|
508
|
+
return b.build();
|
|
1536
509
|
};
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
510
|
+
const se_SignPayloadCommand = async (input, context) => {
|
|
511
|
+
const b = core.requestBuilder(input, context);
|
|
512
|
+
const headers = {
|
|
513
|
+
"content-type": "application/json",
|
|
514
|
+
};
|
|
515
|
+
b.bp("/signing-jobs/with-payload");
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
518
|
+
payload: (_) => context.base64Encoder(_),
|
|
519
|
+
payloadFormat: [],
|
|
520
|
+
profileName: [],
|
|
521
|
+
profileOwner: [],
|
|
522
|
+
}));
|
|
523
|
+
b.m("POST").h(headers).b(body);
|
|
524
|
+
return b.build();
|
|
1551
525
|
};
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
526
|
+
const se_StartSigningJobCommand = async (input, context) => {
|
|
527
|
+
const b = core.requestBuilder(input, context);
|
|
528
|
+
const headers = {
|
|
529
|
+
"content-type": "application/json",
|
|
530
|
+
};
|
|
531
|
+
b.bp("/signing-jobs");
|
|
532
|
+
let body;
|
|
533
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
534
|
+
clientRequestToken: [true, (_) => _ ?? uuid.v4()],
|
|
535
|
+
destination: (_) => smithyClient._json(_),
|
|
536
|
+
profileName: [],
|
|
537
|
+
profileOwner: [],
|
|
538
|
+
source: (_) => smithyClient._json(_),
|
|
539
|
+
}));
|
|
540
|
+
b.m("POST").h(headers).b(body);
|
|
541
|
+
return b.build();
|
|
1566
542
|
};
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
})
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
}
|
|
543
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
544
|
+
const b = core.requestBuilder(input, context);
|
|
545
|
+
const headers = {
|
|
546
|
+
"content-type": "application/json",
|
|
547
|
+
};
|
|
548
|
+
b.bp("/tags/{resourceArn}");
|
|
549
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
550
|
+
let body;
|
|
551
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
552
|
+
tags: (_) => smithyClient._json(_),
|
|
553
|
+
}));
|
|
554
|
+
b.m("POST").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
1581
556
|
};
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
static {
|
|
1594
|
-
__name(this, "UntagResourceCommand");
|
|
1595
|
-
}
|
|
557
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
558
|
+
const b = core.requestBuilder(input, context);
|
|
559
|
+
const headers = {};
|
|
560
|
+
b.bp("/tags/{resourceArn}");
|
|
561
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
562
|
+
const query = smithyClient.map({
|
|
563
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
564
|
+
});
|
|
565
|
+
let body;
|
|
566
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
567
|
+
return b.build();
|
|
1596
568
|
};
|
|
569
|
+
const de_AddProfilePermissionCommand = async (output, context) => {
|
|
570
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
|
+
return de_CommandError(output, context);
|
|
572
|
+
}
|
|
573
|
+
const contents = smithyClient.map({
|
|
574
|
+
$metadata: deserializeMetadata(output),
|
|
575
|
+
});
|
|
576
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
577
|
+
const doc = smithyClient.take(data, {
|
|
578
|
+
revisionId: smithyClient.expectString,
|
|
579
|
+
});
|
|
580
|
+
Object.assign(contents, doc);
|
|
581
|
+
return contents;
|
|
582
|
+
};
|
|
583
|
+
const de_CancelSigningProfileCommand = async (output, context) => {
|
|
584
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
+
return de_CommandError(output, context);
|
|
586
|
+
}
|
|
587
|
+
const contents = smithyClient.map({
|
|
588
|
+
$metadata: deserializeMetadata(output),
|
|
589
|
+
});
|
|
590
|
+
await smithyClient.collectBody(output.body, context);
|
|
591
|
+
return contents;
|
|
592
|
+
};
|
|
593
|
+
const de_DescribeSigningJobCommand = async (output, context) => {
|
|
594
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
+
return de_CommandError(output, context);
|
|
596
|
+
}
|
|
597
|
+
const contents = smithyClient.map({
|
|
598
|
+
$metadata: deserializeMetadata(output),
|
|
599
|
+
});
|
|
600
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
601
|
+
const doc = smithyClient.take(data, {
|
|
602
|
+
completedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
603
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
604
|
+
jobId: smithyClient.expectString,
|
|
605
|
+
jobInvoker: smithyClient.expectString,
|
|
606
|
+
jobOwner: smithyClient.expectString,
|
|
607
|
+
overrides: smithyClient._json,
|
|
608
|
+
platformDisplayName: smithyClient.expectString,
|
|
609
|
+
platformId: smithyClient.expectString,
|
|
610
|
+
profileName: smithyClient.expectString,
|
|
611
|
+
profileVersion: smithyClient.expectString,
|
|
612
|
+
requestedBy: smithyClient.expectString,
|
|
613
|
+
revocationRecord: (_) => de_SigningJobRevocationRecord(_),
|
|
614
|
+
signatureExpiresAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
615
|
+
signedObject: smithyClient._json,
|
|
616
|
+
signingMaterial: smithyClient._json,
|
|
617
|
+
signingParameters: smithyClient._json,
|
|
618
|
+
source: smithyClient._json,
|
|
619
|
+
status: smithyClient.expectString,
|
|
620
|
+
statusReason: smithyClient.expectString,
|
|
621
|
+
});
|
|
622
|
+
Object.assign(contents, doc);
|
|
623
|
+
return contents;
|
|
624
|
+
};
|
|
625
|
+
const de_GetRevocationStatusCommand = async (output, context) => {
|
|
626
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
+
return de_CommandError(output, context);
|
|
628
|
+
}
|
|
629
|
+
const contents = smithyClient.map({
|
|
630
|
+
$metadata: deserializeMetadata(output),
|
|
631
|
+
});
|
|
632
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
633
|
+
const doc = smithyClient.take(data, {
|
|
634
|
+
revokedEntities: smithyClient._json,
|
|
635
|
+
});
|
|
636
|
+
Object.assign(contents, doc);
|
|
637
|
+
return contents;
|
|
638
|
+
};
|
|
639
|
+
const de_GetSigningPlatformCommand = async (output, context) => {
|
|
640
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
+
return de_CommandError(output, context);
|
|
642
|
+
}
|
|
643
|
+
const contents = smithyClient.map({
|
|
644
|
+
$metadata: deserializeMetadata(output),
|
|
645
|
+
});
|
|
646
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
647
|
+
const doc = smithyClient.take(data, {
|
|
648
|
+
category: smithyClient.expectString,
|
|
649
|
+
displayName: smithyClient.expectString,
|
|
650
|
+
maxSizeInMB: smithyClient.expectInt32,
|
|
651
|
+
partner: smithyClient.expectString,
|
|
652
|
+
platformId: smithyClient.expectString,
|
|
653
|
+
revocationSupported: smithyClient.expectBoolean,
|
|
654
|
+
signingConfiguration: smithyClient._json,
|
|
655
|
+
signingImageFormat: smithyClient._json,
|
|
656
|
+
target: smithyClient.expectString,
|
|
657
|
+
});
|
|
658
|
+
Object.assign(contents, doc);
|
|
659
|
+
return contents;
|
|
660
|
+
};
|
|
661
|
+
const de_GetSigningProfileCommand = async (output, context) => {
|
|
662
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
+
return de_CommandError(output, context);
|
|
664
|
+
}
|
|
665
|
+
const contents = smithyClient.map({
|
|
666
|
+
$metadata: deserializeMetadata(output),
|
|
667
|
+
});
|
|
668
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
669
|
+
const doc = smithyClient.take(data, {
|
|
670
|
+
arn: smithyClient.expectString,
|
|
671
|
+
overrides: smithyClient._json,
|
|
672
|
+
platformDisplayName: smithyClient.expectString,
|
|
673
|
+
platformId: smithyClient.expectString,
|
|
674
|
+
profileName: smithyClient.expectString,
|
|
675
|
+
profileVersion: smithyClient.expectString,
|
|
676
|
+
profileVersionArn: smithyClient.expectString,
|
|
677
|
+
revocationRecord: (_) => de_SigningProfileRevocationRecord(_),
|
|
678
|
+
signatureValidityPeriod: smithyClient._json,
|
|
679
|
+
signingMaterial: smithyClient._json,
|
|
680
|
+
signingParameters: smithyClient._json,
|
|
681
|
+
status: smithyClient.expectString,
|
|
682
|
+
statusReason: smithyClient.expectString,
|
|
683
|
+
tags: smithyClient._json,
|
|
684
|
+
});
|
|
685
|
+
Object.assign(contents, doc);
|
|
686
|
+
return contents;
|
|
687
|
+
};
|
|
688
|
+
const de_ListProfilePermissionsCommand = async (output, context) => {
|
|
689
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
690
|
+
return de_CommandError(output, context);
|
|
691
|
+
}
|
|
692
|
+
const contents = smithyClient.map({
|
|
693
|
+
$metadata: deserializeMetadata(output),
|
|
694
|
+
});
|
|
695
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
696
|
+
const doc = smithyClient.take(data, {
|
|
697
|
+
nextToken: smithyClient.expectString,
|
|
698
|
+
permissions: smithyClient._json,
|
|
699
|
+
policySizeBytes: smithyClient.expectInt32,
|
|
700
|
+
revisionId: smithyClient.expectString,
|
|
701
|
+
});
|
|
702
|
+
Object.assign(contents, doc);
|
|
703
|
+
return contents;
|
|
704
|
+
};
|
|
705
|
+
const de_ListSigningJobsCommand = async (output, context) => {
|
|
706
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
+
return de_CommandError(output, context);
|
|
708
|
+
}
|
|
709
|
+
const contents = smithyClient.map({
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
});
|
|
712
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
713
|
+
const doc = smithyClient.take(data, {
|
|
714
|
+
jobs: (_) => de_SigningJobs(_),
|
|
715
|
+
nextToken: smithyClient.expectString,
|
|
716
|
+
});
|
|
717
|
+
Object.assign(contents, doc);
|
|
718
|
+
return contents;
|
|
719
|
+
};
|
|
720
|
+
const de_ListSigningPlatformsCommand = async (output, context) => {
|
|
721
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
+
return de_CommandError(output, context);
|
|
723
|
+
}
|
|
724
|
+
const contents = smithyClient.map({
|
|
725
|
+
$metadata: deserializeMetadata(output),
|
|
726
|
+
});
|
|
727
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
728
|
+
const doc = smithyClient.take(data, {
|
|
729
|
+
nextToken: smithyClient.expectString,
|
|
730
|
+
platforms: smithyClient._json,
|
|
731
|
+
});
|
|
732
|
+
Object.assign(contents, doc);
|
|
733
|
+
return contents;
|
|
734
|
+
};
|
|
735
|
+
const de_ListSigningProfilesCommand = async (output, context) => {
|
|
736
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
+
return de_CommandError(output, context);
|
|
738
|
+
}
|
|
739
|
+
const contents = smithyClient.map({
|
|
740
|
+
$metadata: deserializeMetadata(output),
|
|
741
|
+
});
|
|
742
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
743
|
+
const doc = smithyClient.take(data, {
|
|
744
|
+
nextToken: smithyClient.expectString,
|
|
745
|
+
profiles: smithyClient._json,
|
|
746
|
+
});
|
|
747
|
+
Object.assign(contents, doc);
|
|
748
|
+
return contents;
|
|
749
|
+
};
|
|
750
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
751
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
+
return de_CommandError(output, context);
|
|
753
|
+
}
|
|
754
|
+
const contents = smithyClient.map({
|
|
755
|
+
$metadata: deserializeMetadata(output),
|
|
756
|
+
});
|
|
757
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
758
|
+
const doc = smithyClient.take(data, {
|
|
759
|
+
tags: smithyClient._json,
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
762
|
+
return contents;
|
|
763
|
+
};
|
|
764
|
+
const de_PutSigningProfileCommand = async (output, context) => {
|
|
765
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
+
return de_CommandError(output, context);
|
|
767
|
+
}
|
|
768
|
+
const contents = smithyClient.map({
|
|
769
|
+
$metadata: deserializeMetadata(output),
|
|
770
|
+
});
|
|
771
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
772
|
+
const doc = smithyClient.take(data, {
|
|
773
|
+
arn: smithyClient.expectString,
|
|
774
|
+
profileVersion: smithyClient.expectString,
|
|
775
|
+
profileVersionArn: smithyClient.expectString,
|
|
776
|
+
});
|
|
777
|
+
Object.assign(contents, doc);
|
|
778
|
+
return contents;
|
|
779
|
+
};
|
|
780
|
+
const de_RemoveProfilePermissionCommand = async (output, context) => {
|
|
781
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
+
return de_CommandError(output, context);
|
|
783
|
+
}
|
|
784
|
+
const contents = smithyClient.map({
|
|
785
|
+
$metadata: deserializeMetadata(output),
|
|
786
|
+
});
|
|
787
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
788
|
+
const doc = smithyClient.take(data, {
|
|
789
|
+
revisionId: smithyClient.expectString,
|
|
790
|
+
});
|
|
791
|
+
Object.assign(contents, doc);
|
|
792
|
+
return contents;
|
|
793
|
+
};
|
|
794
|
+
const de_RevokeSignatureCommand = async (output, context) => {
|
|
795
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
796
|
+
return de_CommandError(output, context);
|
|
797
|
+
}
|
|
798
|
+
const contents = smithyClient.map({
|
|
799
|
+
$metadata: deserializeMetadata(output),
|
|
800
|
+
});
|
|
801
|
+
await smithyClient.collectBody(output.body, context);
|
|
802
|
+
return contents;
|
|
803
|
+
};
|
|
804
|
+
const de_RevokeSigningProfileCommand = async (output, context) => {
|
|
805
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
+
return de_CommandError(output, context);
|
|
807
|
+
}
|
|
808
|
+
const contents = smithyClient.map({
|
|
809
|
+
$metadata: deserializeMetadata(output),
|
|
810
|
+
});
|
|
811
|
+
await smithyClient.collectBody(output.body, context);
|
|
812
|
+
return contents;
|
|
813
|
+
};
|
|
814
|
+
const de_SignPayloadCommand = async (output, context) => {
|
|
815
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
+
return de_CommandError(output, context);
|
|
817
|
+
}
|
|
818
|
+
const contents = smithyClient.map({
|
|
819
|
+
$metadata: deserializeMetadata(output),
|
|
820
|
+
});
|
|
821
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
822
|
+
const doc = smithyClient.take(data, {
|
|
823
|
+
jobId: smithyClient.expectString,
|
|
824
|
+
jobOwner: smithyClient.expectString,
|
|
825
|
+
metadata: smithyClient._json,
|
|
826
|
+
signature: context.base64Decoder,
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
return contents;
|
|
830
|
+
};
|
|
831
|
+
const de_StartSigningJobCommand = async (output, context) => {
|
|
832
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
+
return de_CommandError(output, context);
|
|
834
|
+
}
|
|
835
|
+
const contents = smithyClient.map({
|
|
836
|
+
$metadata: deserializeMetadata(output),
|
|
837
|
+
});
|
|
838
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
839
|
+
const doc = smithyClient.take(data, {
|
|
840
|
+
jobId: smithyClient.expectString,
|
|
841
|
+
jobOwner: smithyClient.expectString,
|
|
842
|
+
});
|
|
843
|
+
Object.assign(contents, doc);
|
|
844
|
+
return contents;
|
|
845
|
+
};
|
|
846
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
847
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
+
return de_CommandError(output, context);
|
|
849
|
+
}
|
|
850
|
+
const contents = smithyClient.map({
|
|
851
|
+
$metadata: deserializeMetadata(output),
|
|
852
|
+
});
|
|
853
|
+
await smithyClient.collectBody(output.body, context);
|
|
854
|
+
return contents;
|
|
855
|
+
};
|
|
856
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
857
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
858
|
+
return de_CommandError(output, context);
|
|
859
|
+
}
|
|
860
|
+
const contents = smithyClient.map({
|
|
861
|
+
$metadata: deserializeMetadata(output),
|
|
862
|
+
});
|
|
863
|
+
await smithyClient.collectBody(output.body, context);
|
|
864
|
+
return contents;
|
|
865
|
+
};
|
|
866
|
+
const de_CommandError = async (output, context) => {
|
|
867
|
+
const parsedOutput = {
|
|
868
|
+
...output,
|
|
869
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
870
|
+
};
|
|
871
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
+
switch (errorCode) {
|
|
873
|
+
case "AccessDeniedException":
|
|
874
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
875
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
876
|
+
case "ConflictException":
|
|
877
|
+
case "com.amazonaws.signer#ConflictException":
|
|
878
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
879
|
+
case "InternalServiceErrorException":
|
|
880
|
+
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
881
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput);
|
|
882
|
+
case "ResourceNotFoundException":
|
|
883
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
884
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
885
|
+
case "ServiceLimitExceededException":
|
|
886
|
+
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
887
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput);
|
|
888
|
+
case "TooManyRequestsException":
|
|
889
|
+
case "com.amazonaws.signer#TooManyRequestsException":
|
|
890
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput);
|
|
891
|
+
case "ValidationException":
|
|
892
|
+
case "com.amazonaws.signer#ValidationException":
|
|
893
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
894
|
+
case "BadRequestException":
|
|
895
|
+
case "com.amazonaws.signer#BadRequestException":
|
|
896
|
+
throw await de_BadRequestExceptionRes(parsedOutput);
|
|
897
|
+
case "NotFoundException":
|
|
898
|
+
case "com.amazonaws.signer#NotFoundException":
|
|
899
|
+
throw await de_NotFoundExceptionRes(parsedOutput);
|
|
900
|
+
case "ThrottlingException":
|
|
901
|
+
case "com.amazonaws.signer#ThrottlingException":
|
|
902
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
903
|
+
default:
|
|
904
|
+
const parsedBody = parsedOutput.body;
|
|
905
|
+
return throwDefaultError({
|
|
906
|
+
output,
|
|
907
|
+
parsedBody,
|
|
908
|
+
errorCode,
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
const throwDefaultError = smithyClient.withBaseException(SignerServiceException);
|
|
913
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
914
|
+
const contents = smithyClient.map({});
|
|
915
|
+
const data = parsedOutput.body;
|
|
916
|
+
const doc = smithyClient.take(data, {
|
|
917
|
+
code: smithyClient.expectString,
|
|
918
|
+
message: smithyClient.expectString,
|
|
919
|
+
});
|
|
920
|
+
Object.assign(contents, doc);
|
|
921
|
+
const exception = new AccessDeniedException({
|
|
922
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
923
|
+
...contents,
|
|
924
|
+
});
|
|
925
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
926
|
+
};
|
|
927
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
928
|
+
const contents = smithyClient.map({});
|
|
929
|
+
const data = parsedOutput.body;
|
|
930
|
+
const doc = smithyClient.take(data, {
|
|
931
|
+
code: smithyClient.expectString,
|
|
932
|
+
message: smithyClient.expectString,
|
|
933
|
+
});
|
|
934
|
+
Object.assign(contents, doc);
|
|
935
|
+
const exception = new BadRequestException({
|
|
936
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
937
|
+
...contents,
|
|
938
|
+
});
|
|
939
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
940
|
+
};
|
|
941
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
942
|
+
const contents = smithyClient.map({});
|
|
943
|
+
const data = parsedOutput.body;
|
|
944
|
+
const doc = smithyClient.take(data, {
|
|
945
|
+
code: smithyClient.expectString,
|
|
946
|
+
message: smithyClient.expectString,
|
|
947
|
+
});
|
|
948
|
+
Object.assign(contents, doc);
|
|
949
|
+
const exception = new ConflictException({
|
|
950
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
951
|
+
...contents,
|
|
952
|
+
});
|
|
953
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
954
|
+
};
|
|
955
|
+
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
956
|
+
const contents = smithyClient.map({});
|
|
957
|
+
const data = parsedOutput.body;
|
|
958
|
+
const doc = smithyClient.take(data, {
|
|
959
|
+
code: smithyClient.expectString,
|
|
960
|
+
message: smithyClient.expectString,
|
|
961
|
+
});
|
|
962
|
+
Object.assign(contents, doc);
|
|
963
|
+
const exception = new InternalServiceErrorException({
|
|
964
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
965
|
+
...contents,
|
|
966
|
+
});
|
|
967
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
968
|
+
};
|
|
969
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
970
|
+
const contents = smithyClient.map({});
|
|
971
|
+
const data = parsedOutput.body;
|
|
972
|
+
const doc = smithyClient.take(data, {
|
|
973
|
+
code: smithyClient.expectString,
|
|
974
|
+
message: smithyClient.expectString,
|
|
975
|
+
});
|
|
976
|
+
Object.assign(contents, doc);
|
|
977
|
+
const exception = new NotFoundException({
|
|
978
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
979
|
+
...contents,
|
|
980
|
+
});
|
|
981
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
982
|
+
};
|
|
983
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
984
|
+
const contents = smithyClient.map({});
|
|
985
|
+
const data = parsedOutput.body;
|
|
986
|
+
const doc = smithyClient.take(data, {
|
|
987
|
+
code: smithyClient.expectString,
|
|
988
|
+
message: smithyClient.expectString,
|
|
989
|
+
});
|
|
990
|
+
Object.assign(contents, doc);
|
|
991
|
+
const exception = new ResourceNotFoundException({
|
|
992
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
993
|
+
...contents,
|
|
994
|
+
});
|
|
995
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
996
|
+
};
|
|
997
|
+
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
998
|
+
const contents = smithyClient.map({});
|
|
999
|
+
const data = parsedOutput.body;
|
|
1000
|
+
const doc = smithyClient.take(data, {
|
|
1001
|
+
code: smithyClient.expectString,
|
|
1002
|
+
message: smithyClient.expectString,
|
|
1003
|
+
});
|
|
1004
|
+
Object.assign(contents, doc);
|
|
1005
|
+
const exception = new ServiceLimitExceededException({
|
|
1006
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1007
|
+
...contents,
|
|
1008
|
+
});
|
|
1009
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1010
|
+
};
|
|
1011
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1012
|
+
const contents = smithyClient.map({});
|
|
1013
|
+
const data = parsedOutput.body;
|
|
1014
|
+
const doc = smithyClient.take(data, {
|
|
1015
|
+
code: smithyClient.expectString,
|
|
1016
|
+
message: smithyClient.expectString,
|
|
1017
|
+
});
|
|
1018
|
+
Object.assign(contents, doc);
|
|
1019
|
+
const exception = new ThrottlingException({
|
|
1020
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1021
|
+
...contents,
|
|
1022
|
+
});
|
|
1023
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1024
|
+
};
|
|
1025
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1026
|
+
const contents = smithyClient.map({});
|
|
1027
|
+
const data = parsedOutput.body;
|
|
1028
|
+
const doc = smithyClient.take(data, {
|
|
1029
|
+
code: smithyClient.expectString,
|
|
1030
|
+
message: smithyClient.expectString,
|
|
1031
|
+
});
|
|
1032
|
+
Object.assign(contents, doc);
|
|
1033
|
+
const exception = new TooManyRequestsException({
|
|
1034
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1035
|
+
...contents,
|
|
1036
|
+
});
|
|
1037
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1038
|
+
};
|
|
1039
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1040
|
+
const contents = smithyClient.map({});
|
|
1041
|
+
const data = parsedOutput.body;
|
|
1042
|
+
const doc = smithyClient.take(data, {
|
|
1043
|
+
code: smithyClient.expectString,
|
|
1044
|
+
message: smithyClient.expectString,
|
|
1045
|
+
});
|
|
1046
|
+
Object.assign(contents, doc);
|
|
1047
|
+
const exception = new ValidationException({
|
|
1048
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
|
+
...contents,
|
|
1050
|
+
});
|
|
1051
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1052
|
+
};
|
|
1053
|
+
const de_SigningJob = (output, context) => {
|
|
1054
|
+
return smithyClient.take(output, {
|
|
1055
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1056
|
+
isRevoked: smithyClient.expectBoolean,
|
|
1057
|
+
jobId: smithyClient.expectString,
|
|
1058
|
+
jobInvoker: smithyClient.expectString,
|
|
1059
|
+
jobOwner: smithyClient.expectString,
|
|
1060
|
+
platformDisplayName: smithyClient.expectString,
|
|
1061
|
+
platformId: smithyClient.expectString,
|
|
1062
|
+
profileName: smithyClient.expectString,
|
|
1063
|
+
profileVersion: smithyClient.expectString,
|
|
1064
|
+
signatureExpiresAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1065
|
+
signedObject: smithyClient._json,
|
|
1066
|
+
signingMaterial: smithyClient._json,
|
|
1067
|
+
source: smithyClient._json,
|
|
1068
|
+
status: smithyClient.expectString,
|
|
1069
|
+
});
|
|
1070
|
+
};
|
|
1071
|
+
const de_SigningJobRevocationRecord = (output, context) => {
|
|
1072
|
+
return smithyClient.take(output, {
|
|
1073
|
+
reason: smithyClient.expectString,
|
|
1074
|
+
revokedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1075
|
+
revokedBy: smithyClient.expectString,
|
|
1076
|
+
});
|
|
1077
|
+
};
|
|
1078
|
+
const de_SigningJobs = (output, context) => {
|
|
1079
|
+
const retVal = (output || [])
|
|
1080
|
+
.filter((e) => e != null)
|
|
1081
|
+
.map((entry) => {
|
|
1082
|
+
return de_SigningJob(entry);
|
|
1083
|
+
});
|
|
1084
|
+
return retVal;
|
|
1085
|
+
};
|
|
1086
|
+
const de_SigningProfileRevocationRecord = (output, context) => {
|
|
1087
|
+
return smithyClient.take(output, {
|
|
1088
|
+
revocationEffectiveFrom: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1089
|
+
revokedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1090
|
+
revokedBy: smithyClient.expectString,
|
|
1091
|
+
});
|
|
1092
|
+
};
|
|
1093
|
+
const deserializeMetadata = (output) => ({
|
|
1094
|
+
httpStatusCode: output.statusCode,
|
|
1095
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1096
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1097
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1098
|
+
});
|
|
1099
|
+
const _c = "category";
|
|
1100
|
+
const _cH = "certificateHashes";
|
|
1101
|
+
const _iC = "includeCanceled";
|
|
1102
|
+
const _iR = "isRevoked";
|
|
1103
|
+
const _jA = "jobArn";
|
|
1104
|
+
const _jI = "jobInvoker";
|
|
1105
|
+
const _mR = "maxResults";
|
|
1106
|
+
const _nT = "nextToken";
|
|
1107
|
+
const _p = "partner";
|
|
1108
|
+
const _pI = "platformId";
|
|
1109
|
+
const _pO = "profileOwner";
|
|
1110
|
+
const _pVA = "profileVersionArn";
|
|
1111
|
+
const _rB = "requestedBy";
|
|
1112
|
+
const _rI = "revisionId";
|
|
1113
|
+
const _s = "status";
|
|
1114
|
+
const _sEA = "signatureExpiresAfter";
|
|
1115
|
+
const _sEB = "signatureExpiresBefore";
|
|
1116
|
+
const _sT = "signatureTimestamp";
|
|
1117
|
+
const _st = "statuses";
|
|
1118
|
+
const _t = "target";
|
|
1119
|
+
const _tK = "tagKeys";
|
|
1120
|
+
|
|
1121
|
+
class AddProfilePermissionCommand extends smithyClient.Command
|
|
1122
|
+
.classBuilder()
|
|
1123
|
+
.ep(commonParams)
|
|
1124
|
+
.m(function (Command, cs, config, o) {
|
|
1125
|
+
return [
|
|
1126
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1127
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1128
|
+
];
|
|
1129
|
+
})
|
|
1130
|
+
.s("WallabyService", "AddProfilePermission", {})
|
|
1131
|
+
.n("SignerClient", "AddProfilePermissionCommand")
|
|
1132
|
+
.f(void 0, void 0)
|
|
1133
|
+
.ser(se_AddProfilePermissionCommand)
|
|
1134
|
+
.de(de_AddProfilePermissionCommand)
|
|
1135
|
+
.build() {
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
class CancelSigningProfileCommand extends smithyClient.Command
|
|
1139
|
+
.classBuilder()
|
|
1140
|
+
.ep(commonParams)
|
|
1141
|
+
.m(function (Command, cs, config, o) {
|
|
1142
|
+
return [
|
|
1143
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1144
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1145
|
+
];
|
|
1146
|
+
})
|
|
1147
|
+
.s("WallabyService", "CancelSigningProfile", {})
|
|
1148
|
+
.n("SignerClient", "CancelSigningProfileCommand")
|
|
1149
|
+
.f(void 0, void 0)
|
|
1150
|
+
.ser(se_CancelSigningProfileCommand)
|
|
1151
|
+
.de(de_CancelSigningProfileCommand)
|
|
1152
|
+
.build() {
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
class DescribeSigningJobCommand extends smithyClient.Command
|
|
1156
|
+
.classBuilder()
|
|
1157
|
+
.ep(commonParams)
|
|
1158
|
+
.m(function (Command, cs, config, o) {
|
|
1159
|
+
return [
|
|
1160
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1161
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1162
|
+
];
|
|
1163
|
+
})
|
|
1164
|
+
.s("WallabyService", "DescribeSigningJob", {})
|
|
1165
|
+
.n("SignerClient", "DescribeSigningJobCommand")
|
|
1166
|
+
.f(void 0, void 0)
|
|
1167
|
+
.ser(se_DescribeSigningJobCommand)
|
|
1168
|
+
.de(de_DescribeSigningJobCommand)
|
|
1169
|
+
.build() {
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
class GetRevocationStatusCommand extends smithyClient.Command
|
|
1173
|
+
.classBuilder()
|
|
1174
|
+
.ep(commonParams)
|
|
1175
|
+
.m(function (Command, cs, config, o) {
|
|
1176
|
+
return [
|
|
1177
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1178
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1179
|
+
];
|
|
1180
|
+
})
|
|
1181
|
+
.s("WallabyService", "GetRevocationStatus", {})
|
|
1182
|
+
.n("SignerClient", "GetRevocationStatusCommand")
|
|
1183
|
+
.f(void 0, void 0)
|
|
1184
|
+
.ser(se_GetRevocationStatusCommand)
|
|
1185
|
+
.de(de_GetRevocationStatusCommand)
|
|
1186
|
+
.build() {
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
class GetSigningPlatformCommand extends smithyClient.Command
|
|
1190
|
+
.classBuilder()
|
|
1191
|
+
.ep(commonParams)
|
|
1192
|
+
.m(function (Command, cs, config, o) {
|
|
1193
|
+
return [
|
|
1194
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1195
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1196
|
+
];
|
|
1197
|
+
})
|
|
1198
|
+
.s("WallabyService", "GetSigningPlatform", {})
|
|
1199
|
+
.n("SignerClient", "GetSigningPlatformCommand")
|
|
1200
|
+
.f(void 0, void 0)
|
|
1201
|
+
.ser(se_GetSigningPlatformCommand)
|
|
1202
|
+
.de(de_GetSigningPlatformCommand)
|
|
1203
|
+
.build() {
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
class GetSigningProfileCommand extends smithyClient.Command
|
|
1207
|
+
.classBuilder()
|
|
1208
|
+
.ep(commonParams)
|
|
1209
|
+
.m(function (Command, cs, config, o) {
|
|
1210
|
+
return [
|
|
1211
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1212
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1213
|
+
];
|
|
1214
|
+
})
|
|
1215
|
+
.s("WallabyService", "GetSigningProfile", {})
|
|
1216
|
+
.n("SignerClient", "GetSigningProfileCommand")
|
|
1217
|
+
.f(void 0, void 0)
|
|
1218
|
+
.ser(se_GetSigningProfileCommand)
|
|
1219
|
+
.de(de_GetSigningProfileCommand)
|
|
1220
|
+
.build() {
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
class ListProfilePermissionsCommand extends smithyClient.Command
|
|
1224
|
+
.classBuilder()
|
|
1225
|
+
.ep(commonParams)
|
|
1226
|
+
.m(function (Command, cs, config, o) {
|
|
1227
|
+
return [
|
|
1228
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1229
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1230
|
+
];
|
|
1231
|
+
})
|
|
1232
|
+
.s("WallabyService", "ListProfilePermissions", {})
|
|
1233
|
+
.n("SignerClient", "ListProfilePermissionsCommand")
|
|
1234
|
+
.f(void 0, void 0)
|
|
1235
|
+
.ser(se_ListProfilePermissionsCommand)
|
|
1236
|
+
.de(de_ListProfilePermissionsCommand)
|
|
1237
|
+
.build() {
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
class ListSigningJobsCommand extends smithyClient.Command
|
|
1241
|
+
.classBuilder()
|
|
1242
|
+
.ep(commonParams)
|
|
1243
|
+
.m(function (Command, cs, config, o) {
|
|
1244
|
+
return [
|
|
1245
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1246
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1247
|
+
];
|
|
1248
|
+
})
|
|
1249
|
+
.s("WallabyService", "ListSigningJobs", {})
|
|
1250
|
+
.n("SignerClient", "ListSigningJobsCommand")
|
|
1251
|
+
.f(void 0, void 0)
|
|
1252
|
+
.ser(se_ListSigningJobsCommand)
|
|
1253
|
+
.de(de_ListSigningJobsCommand)
|
|
1254
|
+
.build() {
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
class ListSigningPlatformsCommand extends smithyClient.Command
|
|
1258
|
+
.classBuilder()
|
|
1259
|
+
.ep(commonParams)
|
|
1260
|
+
.m(function (Command, cs, config, o) {
|
|
1261
|
+
return [
|
|
1262
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1263
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1264
|
+
];
|
|
1265
|
+
})
|
|
1266
|
+
.s("WallabyService", "ListSigningPlatforms", {})
|
|
1267
|
+
.n("SignerClient", "ListSigningPlatformsCommand")
|
|
1268
|
+
.f(void 0, void 0)
|
|
1269
|
+
.ser(se_ListSigningPlatformsCommand)
|
|
1270
|
+
.de(de_ListSigningPlatformsCommand)
|
|
1271
|
+
.build() {
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
class ListSigningProfilesCommand extends smithyClient.Command
|
|
1275
|
+
.classBuilder()
|
|
1276
|
+
.ep(commonParams)
|
|
1277
|
+
.m(function (Command, cs, config, o) {
|
|
1278
|
+
return [
|
|
1279
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1280
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1281
|
+
];
|
|
1282
|
+
})
|
|
1283
|
+
.s("WallabyService", "ListSigningProfiles", {})
|
|
1284
|
+
.n("SignerClient", "ListSigningProfilesCommand")
|
|
1285
|
+
.f(void 0, void 0)
|
|
1286
|
+
.ser(se_ListSigningProfilesCommand)
|
|
1287
|
+
.de(de_ListSigningProfilesCommand)
|
|
1288
|
+
.build() {
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1292
|
+
.classBuilder()
|
|
1293
|
+
.ep(commonParams)
|
|
1294
|
+
.m(function (Command, cs, config, o) {
|
|
1295
|
+
return [
|
|
1296
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1297
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1298
|
+
];
|
|
1299
|
+
})
|
|
1300
|
+
.s("WallabyService", "ListTagsForResource", {})
|
|
1301
|
+
.n("SignerClient", "ListTagsForResourceCommand")
|
|
1302
|
+
.f(void 0, void 0)
|
|
1303
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1304
|
+
.de(de_ListTagsForResourceCommand)
|
|
1305
|
+
.build() {
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
class PutSigningProfileCommand extends smithyClient.Command
|
|
1309
|
+
.classBuilder()
|
|
1310
|
+
.ep(commonParams)
|
|
1311
|
+
.m(function (Command, cs, config, o) {
|
|
1312
|
+
return [
|
|
1313
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1314
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1315
|
+
];
|
|
1316
|
+
})
|
|
1317
|
+
.s("WallabyService", "PutSigningProfile", {})
|
|
1318
|
+
.n("SignerClient", "PutSigningProfileCommand")
|
|
1319
|
+
.f(void 0, void 0)
|
|
1320
|
+
.ser(se_PutSigningProfileCommand)
|
|
1321
|
+
.de(de_PutSigningProfileCommand)
|
|
1322
|
+
.build() {
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
class RemoveProfilePermissionCommand extends smithyClient.Command
|
|
1326
|
+
.classBuilder()
|
|
1327
|
+
.ep(commonParams)
|
|
1328
|
+
.m(function (Command, cs, config, o) {
|
|
1329
|
+
return [
|
|
1330
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1331
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1332
|
+
];
|
|
1333
|
+
})
|
|
1334
|
+
.s("WallabyService", "RemoveProfilePermission", {})
|
|
1335
|
+
.n("SignerClient", "RemoveProfilePermissionCommand")
|
|
1336
|
+
.f(void 0, void 0)
|
|
1337
|
+
.ser(se_RemoveProfilePermissionCommand)
|
|
1338
|
+
.de(de_RemoveProfilePermissionCommand)
|
|
1339
|
+
.build() {
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
class RevokeSignatureCommand extends smithyClient.Command
|
|
1343
|
+
.classBuilder()
|
|
1344
|
+
.ep(commonParams)
|
|
1345
|
+
.m(function (Command, cs, config, o) {
|
|
1346
|
+
return [
|
|
1347
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1348
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1349
|
+
];
|
|
1350
|
+
})
|
|
1351
|
+
.s("WallabyService", "RevokeSignature", {})
|
|
1352
|
+
.n("SignerClient", "RevokeSignatureCommand")
|
|
1353
|
+
.f(void 0, void 0)
|
|
1354
|
+
.ser(se_RevokeSignatureCommand)
|
|
1355
|
+
.de(de_RevokeSignatureCommand)
|
|
1356
|
+
.build() {
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
class RevokeSigningProfileCommand extends smithyClient.Command
|
|
1360
|
+
.classBuilder()
|
|
1361
|
+
.ep(commonParams)
|
|
1362
|
+
.m(function (Command, cs, config, o) {
|
|
1363
|
+
return [
|
|
1364
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1365
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1366
|
+
];
|
|
1367
|
+
})
|
|
1368
|
+
.s("WallabyService", "RevokeSigningProfile", {})
|
|
1369
|
+
.n("SignerClient", "RevokeSigningProfileCommand")
|
|
1370
|
+
.f(void 0, void 0)
|
|
1371
|
+
.ser(se_RevokeSigningProfileCommand)
|
|
1372
|
+
.de(de_RevokeSigningProfileCommand)
|
|
1373
|
+
.build() {
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
class SignPayloadCommand extends smithyClient.Command
|
|
1377
|
+
.classBuilder()
|
|
1378
|
+
.ep(commonParams)
|
|
1379
|
+
.m(function (Command, cs, config, o) {
|
|
1380
|
+
return [
|
|
1381
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1382
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1383
|
+
];
|
|
1384
|
+
})
|
|
1385
|
+
.s("WallabyService", "SignPayload", {})
|
|
1386
|
+
.n("SignerClient", "SignPayloadCommand")
|
|
1387
|
+
.f(void 0, void 0)
|
|
1388
|
+
.ser(se_SignPayloadCommand)
|
|
1389
|
+
.de(de_SignPayloadCommand)
|
|
1390
|
+
.build() {
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
class StartSigningJobCommand extends smithyClient.Command
|
|
1394
|
+
.classBuilder()
|
|
1395
|
+
.ep(commonParams)
|
|
1396
|
+
.m(function (Command, cs, config, o) {
|
|
1397
|
+
return [
|
|
1398
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1399
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1400
|
+
];
|
|
1401
|
+
})
|
|
1402
|
+
.s("WallabyService", "StartSigningJob", {})
|
|
1403
|
+
.n("SignerClient", "StartSigningJobCommand")
|
|
1404
|
+
.f(void 0, void 0)
|
|
1405
|
+
.ser(se_StartSigningJobCommand)
|
|
1406
|
+
.de(de_StartSigningJobCommand)
|
|
1407
|
+
.build() {
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1411
|
+
.classBuilder()
|
|
1412
|
+
.ep(commonParams)
|
|
1413
|
+
.m(function (Command, cs, config, o) {
|
|
1414
|
+
return [
|
|
1415
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1416
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1417
|
+
];
|
|
1418
|
+
})
|
|
1419
|
+
.s("WallabyService", "TagResource", {})
|
|
1420
|
+
.n("SignerClient", "TagResourceCommand")
|
|
1421
|
+
.f(void 0, void 0)
|
|
1422
|
+
.ser(se_TagResourceCommand)
|
|
1423
|
+
.de(de_TagResourceCommand)
|
|
1424
|
+
.build() {
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1428
|
+
.classBuilder()
|
|
1429
|
+
.ep(commonParams)
|
|
1430
|
+
.m(function (Command, cs, config, o) {
|
|
1431
|
+
return [
|
|
1432
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1433
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1434
|
+
];
|
|
1435
|
+
})
|
|
1436
|
+
.s("WallabyService", "UntagResource", {})
|
|
1437
|
+
.n("SignerClient", "UntagResourceCommand")
|
|
1438
|
+
.f(void 0, void 0)
|
|
1439
|
+
.ser(se_UntagResourceCommand)
|
|
1440
|
+
.de(de_UntagResourceCommand)
|
|
1441
|
+
.build() {
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
const commands = {
|
|
1445
|
+
AddProfilePermissionCommand,
|
|
1446
|
+
CancelSigningProfileCommand,
|
|
1447
|
+
DescribeSigningJobCommand,
|
|
1448
|
+
GetRevocationStatusCommand,
|
|
1449
|
+
GetSigningPlatformCommand,
|
|
1450
|
+
GetSigningProfileCommand,
|
|
1451
|
+
ListProfilePermissionsCommand,
|
|
1452
|
+
ListSigningJobsCommand,
|
|
1453
|
+
ListSigningPlatformsCommand,
|
|
1454
|
+
ListSigningProfilesCommand,
|
|
1455
|
+
ListTagsForResourceCommand,
|
|
1456
|
+
PutSigningProfileCommand,
|
|
1457
|
+
RemoveProfilePermissionCommand,
|
|
1458
|
+
RevokeSignatureCommand,
|
|
1459
|
+
RevokeSigningProfileCommand,
|
|
1460
|
+
SignPayloadCommand,
|
|
1461
|
+
StartSigningJobCommand,
|
|
1462
|
+
TagResourceCommand,
|
|
1463
|
+
UntagResourceCommand,
|
|
1464
|
+
};
|
|
1465
|
+
class Signer extends SignerClient {
|
|
1466
|
+
}
|
|
1467
|
+
smithyClient.createAggregatedClient(commands, Signer);
|
|
1597
1468
|
|
|
1598
|
-
|
|
1599
|
-
var commands = {
|
|
1600
|
-
AddProfilePermissionCommand,
|
|
1601
|
-
CancelSigningProfileCommand,
|
|
1602
|
-
DescribeSigningJobCommand,
|
|
1603
|
-
GetRevocationStatusCommand,
|
|
1604
|
-
GetSigningPlatformCommand,
|
|
1605
|
-
GetSigningProfileCommand,
|
|
1606
|
-
ListProfilePermissionsCommand,
|
|
1607
|
-
ListSigningJobsCommand,
|
|
1608
|
-
ListSigningPlatformsCommand,
|
|
1609
|
-
ListSigningProfilesCommand,
|
|
1610
|
-
ListTagsForResourceCommand,
|
|
1611
|
-
PutSigningProfileCommand,
|
|
1612
|
-
RemoveProfilePermissionCommand,
|
|
1613
|
-
RevokeSignatureCommand,
|
|
1614
|
-
RevokeSigningProfileCommand,
|
|
1615
|
-
SignPayloadCommand,
|
|
1616
|
-
StartSigningJobCommand,
|
|
1617
|
-
TagResourceCommand,
|
|
1618
|
-
UntagResourceCommand
|
|
1619
|
-
};
|
|
1620
|
-
var Signer = class extends SignerClient {
|
|
1621
|
-
static {
|
|
1622
|
-
__name(this, "Signer");
|
|
1623
|
-
}
|
|
1624
|
-
};
|
|
1625
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Signer);
|
|
1626
|
-
|
|
1627
|
-
// src/pagination/ListSigningJobsPaginator.ts
|
|
1628
|
-
|
|
1629
|
-
var paginateListSigningJobs = (0, import_core.createPaginator)(SignerClient, ListSigningJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
1630
|
-
|
|
1631
|
-
// src/pagination/ListSigningPlatformsPaginator.ts
|
|
1632
|
-
|
|
1633
|
-
var paginateListSigningPlatforms = (0, import_core.createPaginator)(SignerClient, ListSigningPlatformsCommand, "nextToken", "nextToken", "maxResults");
|
|
1469
|
+
const paginateListSigningJobs = core.createPaginator(SignerClient, ListSigningJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
1634
1470
|
|
|
1635
|
-
|
|
1471
|
+
const paginateListSigningPlatforms = core.createPaginator(SignerClient, ListSigningPlatformsCommand, "nextToken", "nextToken", "maxResults");
|
|
1636
1472
|
|
|
1637
|
-
|
|
1473
|
+
const paginateListSigningProfiles = core.createPaginator(SignerClient, ListSigningProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
1638
1474
|
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
1642
|
-
let reason;
|
|
1643
|
-
try {
|
|
1644
|
-
const result = await client.send(new DescribeSigningJobCommand(input));
|
|
1645
|
-
reason = result;
|
|
1475
|
+
const checkState = async (client, input) => {
|
|
1476
|
+
let reason;
|
|
1646
1477
|
try {
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1478
|
+
const result = await client.send(new DescribeSigningJobCommand(input));
|
|
1479
|
+
reason = result;
|
|
1480
|
+
try {
|
|
1481
|
+
const returnComparator = () => {
|
|
1482
|
+
return result.status;
|
|
1483
|
+
};
|
|
1484
|
+
if (returnComparator() === "Succeeded") {
|
|
1485
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
catch (e) { }
|
|
1489
|
+
try {
|
|
1490
|
+
const returnComparator = () => {
|
|
1491
|
+
return result.status;
|
|
1492
|
+
};
|
|
1493
|
+
if (returnComparator() === "Failed") {
|
|
1494
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
catch (e) { }
|
|
1654
1498
|
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1661
|
-
}
|
|
1662
|
-
} catch (e) {
|
|
1663
|
-
}
|
|
1664
|
-
} catch (exception) {
|
|
1665
|
-
reason = exception;
|
|
1666
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
1667
|
-
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1499
|
+
catch (exception) {
|
|
1500
|
+
reason = exception;
|
|
1501
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
1502
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1503
|
+
}
|
|
1668
1504
|
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
}, "waitUntilSuccessfulSigningJob");
|
|
1681
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1505
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1506
|
+
};
|
|
1507
|
+
const waitForSuccessfulSigningJob = async (params, input) => {
|
|
1508
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
1509
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1510
|
+
};
|
|
1511
|
+
const waitUntilSuccessfulSigningJob = async (params, input) => {
|
|
1512
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
1513
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1514
|
+
return utilWaiter.checkExceptions(result);
|
|
1515
|
+
};
|
|
1682
1516
|
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
SignerClient,
|
|
1687
|
-
Signer,
|
|
1688
|
-
$Command,
|
|
1689
|
-
AddProfilePermissionCommand,
|
|
1690
|
-
CancelSigningProfileCommand,
|
|
1691
|
-
DescribeSigningJobCommand,
|
|
1692
|
-
GetRevocationStatusCommand,
|
|
1693
|
-
GetSigningPlatformCommand,
|
|
1694
|
-
GetSigningProfileCommand,
|
|
1695
|
-
ListProfilePermissionsCommand,
|
|
1696
|
-
ListSigningJobsCommand,
|
|
1697
|
-
ListSigningPlatformsCommand,
|
|
1698
|
-
ListSigningProfilesCommand,
|
|
1699
|
-
ListTagsForResourceCommand,
|
|
1700
|
-
PutSigningProfileCommand,
|
|
1701
|
-
RemoveProfilePermissionCommand,
|
|
1702
|
-
RevokeSignatureCommand,
|
|
1703
|
-
RevokeSigningProfileCommand,
|
|
1704
|
-
SignPayloadCommand,
|
|
1705
|
-
StartSigningJobCommand,
|
|
1706
|
-
TagResourceCommand,
|
|
1707
|
-
UntagResourceCommand,
|
|
1708
|
-
paginateListSigningJobs,
|
|
1709
|
-
paginateListSigningPlatforms,
|
|
1710
|
-
paginateListSigningProfiles,
|
|
1711
|
-
waitForSuccessfulSigningJob,
|
|
1712
|
-
waitUntilSuccessfulSigningJob,
|
|
1713
|
-
AccessDeniedException,
|
|
1714
|
-
ConflictException,
|
|
1715
|
-
InternalServiceErrorException,
|
|
1716
|
-
ResourceNotFoundException,
|
|
1717
|
-
ServiceLimitExceededException,
|
|
1718
|
-
TooManyRequestsException,
|
|
1719
|
-
ValidationException,
|
|
1720
|
-
BadRequestException,
|
|
1721
|
-
Category,
|
|
1722
|
-
EncryptionAlgorithm,
|
|
1723
|
-
HashAlgorithm,
|
|
1724
|
-
ImageFormat,
|
|
1725
|
-
SigningStatus,
|
|
1726
|
-
ValidityType,
|
|
1727
|
-
SigningProfileStatus,
|
|
1728
|
-
NotFoundException,
|
|
1729
|
-
ThrottlingException
|
|
1517
|
+
Object.defineProperty(exports, "$Command", {
|
|
1518
|
+
enumerable: true,
|
|
1519
|
+
get: function () { return smithyClient.Command; }
|
|
1730
1520
|
});
|
|
1731
|
-
|
|
1521
|
+
Object.defineProperty(exports, "__Client", {
|
|
1522
|
+
enumerable: true,
|
|
1523
|
+
get: function () { return smithyClient.Client; }
|
|
1524
|
+
});
|
|
1525
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1526
|
+
exports.AddProfilePermissionCommand = AddProfilePermissionCommand;
|
|
1527
|
+
exports.BadRequestException = BadRequestException;
|
|
1528
|
+
exports.CancelSigningProfileCommand = CancelSigningProfileCommand;
|
|
1529
|
+
exports.Category = Category;
|
|
1530
|
+
exports.ConflictException = ConflictException;
|
|
1531
|
+
exports.DescribeSigningJobCommand = DescribeSigningJobCommand;
|
|
1532
|
+
exports.EncryptionAlgorithm = EncryptionAlgorithm;
|
|
1533
|
+
exports.GetRevocationStatusCommand = GetRevocationStatusCommand;
|
|
1534
|
+
exports.GetSigningPlatformCommand = GetSigningPlatformCommand;
|
|
1535
|
+
exports.GetSigningProfileCommand = GetSigningProfileCommand;
|
|
1536
|
+
exports.HashAlgorithm = HashAlgorithm;
|
|
1537
|
+
exports.ImageFormat = ImageFormat;
|
|
1538
|
+
exports.InternalServiceErrorException = InternalServiceErrorException;
|
|
1539
|
+
exports.ListProfilePermissionsCommand = ListProfilePermissionsCommand;
|
|
1540
|
+
exports.ListSigningJobsCommand = ListSigningJobsCommand;
|
|
1541
|
+
exports.ListSigningPlatformsCommand = ListSigningPlatformsCommand;
|
|
1542
|
+
exports.ListSigningProfilesCommand = ListSigningProfilesCommand;
|
|
1543
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1544
|
+
exports.NotFoundException = NotFoundException;
|
|
1545
|
+
exports.PutSigningProfileCommand = PutSigningProfileCommand;
|
|
1546
|
+
exports.RemoveProfilePermissionCommand = RemoveProfilePermissionCommand;
|
|
1547
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1548
|
+
exports.RevokeSignatureCommand = RevokeSignatureCommand;
|
|
1549
|
+
exports.RevokeSigningProfileCommand = RevokeSigningProfileCommand;
|
|
1550
|
+
exports.ServiceLimitExceededException = ServiceLimitExceededException;
|
|
1551
|
+
exports.SignPayloadCommand = SignPayloadCommand;
|
|
1552
|
+
exports.Signer = Signer;
|
|
1553
|
+
exports.SignerClient = SignerClient;
|
|
1554
|
+
exports.SignerServiceException = SignerServiceException;
|
|
1555
|
+
exports.SigningProfileStatus = SigningProfileStatus;
|
|
1556
|
+
exports.SigningStatus = SigningStatus;
|
|
1557
|
+
exports.StartSigningJobCommand = StartSigningJobCommand;
|
|
1558
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1559
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1560
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
1561
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1562
|
+
exports.ValidationException = ValidationException;
|
|
1563
|
+
exports.ValidityType = ValidityType;
|
|
1564
|
+
exports.paginateListSigningJobs = paginateListSigningJobs;
|
|
1565
|
+
exports.paginateListSigningPlatforms = paginateListSigningPlatforms;
|
|
1566
|
+
exports.paginateListSigningProfiles = paginateListSigningProfiles;
|
|
1567
|
+
exports.waitForSuccessfulSigningJob = waitForSuccessfulSigningJob;
|
|
1568
|
+
exports.waitUntilSuccessfulSigningJob = waitUntilSuccessfulSigningJob;
|