@aws-sdk/client-signer 3.345.0 → 3.347.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.
Files changed (39) hide show
  1. package/README.md +28 -14
  2. package/dist-cjs/Signer.js +4 -0
  3. package/dist-cjs/commands/GetRevocationStatusCommand.js +46 -0
  4. package/dist-cjs/commands/SignPayloadCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/models/models_0.js +32 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +154 -1
  9. package/dist-es/Signer.js +4 -0
  10. package/dist-es/commands/GetRevocationStatusCommand.js +42 -0
  11. package/dist-es/commands/SignPayloadCommand.js +42 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/endpoint/ruleset.js +3 -3
  14. package/dist-es/models/models_0.js +31 -0
  15. package/dist-es/protocols/Aws_restJson1.js +150 -1
  16. package/dist-types/Signer.d.ts +26 -14
  17. package/dist-types/SignerClient.d.ts +16 -16
  18. package/dist-types/commands/DescribeSigningJobCommand.d.ts +6 -6
  19. package/dist-types/commands/GetRevocationStatusCommand.d.ts +96 -0
  20. package/dist-types/commands/GetSigningPlatformCommand.d.ts +7 -7
  21. package/dist-types/commands/GetSigningProfileCommand.d.ts +5 -5
  22. package/dist-types/commands/ListSigningJobsCommand.d.ts +2 -2
  23. package/dist-types/commands/ListSigningPlatformsCommand.d.ts +7 -7
  24. package/dist-types/commands/ListSigningProfilesCommand.d.ts +3 -3
  25. package/dist-types/commands/PutSigningProfileCommand.d.ts +6 -6
  26. package/dist-types/commands/SignPayloadCommand.d.ts +98 -0
  27. package/dist-types/commands/StartSigningJobCommand.d.ts +3 -4
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/index.d.ts +12 -14
  30. package/dist-types/models/models_0.d.ts +151 -11
  31. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  32. package/dist-types/ts3.4/Signer.d.ts +34 -0
  33. package/dist-types/ts3.4/SignerClient.d.ts +12 -0
  34. package/dist-types/ts3.4/commands/GetRevocationStatusCommand.d.ts +39 -0
  35. package/dist-types/ts3.4/commands/SignPayloadCommand.d.ts +35 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +62 -7
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  39. package/package.json +29 -29
@@ -24,8 +24,8 @@ export interface PutSigningProfileCommandOutput extends PutSigningProfileRespons
24
24
  /**
25
25
  * @public
26
26
  * <p>Creates a signing profile. A signing profile is a code signing template that can be used to
27
- * carry out a pre-defined signing job. For more information, see <a href="http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html">http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html</a>
28
- * </p>
27
+ * carry out a pre-defined signing job.
28
+ * </p>
29
29
  * @example
30
30
  * Use a bare-bones client and the command you need to make an API call.
31
31
  * ```javascript
@@ -39,15 +39,15 @@ export interface PutSigningProfileCommandOutput extends PutSigningProfileRespons
39
39
  * },
40
40
  * signatureValidityPeriod: { // SignatureValidityPeriod
41
41
  * value: Number("int"),
42
- * type: "STRING_VALUE",
42
+ * type: "DAYS" || "MONTHS" || "YEARS",
43
43
  * },
44
44
  * platformId: "STRING_VALUE", // required
45
45
  * overrides: { // SigningPlatformOverrides
46
46
  * signingConfiguration: { // SigningConfigurationOverrides
47
- * encryptionAlgorithm: "STRING_VALUE",
48
- * hashAlgorithm: "STRING_VALUE",
47
+ * encryptionAlgorithm: "RSA" || "ECDSA",
48
+ * hashAlgorithm: "SHA1" || "SHA256",
49
49
  * },
50
- * signingImageFormat: "STRING_VALUE",
50
+ * signingImageFormat: "JSON" || "JSONEmbedded" || "JSONDetached",
51
51
  * },
52
52
  * signingParameters: { // SigningParameters
53
53
  * "<keys>": "STRING_VALUE",
@@ -0,0 +1,98 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { SignPayloadRequest, SignPayloadResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SignerClientResolvedConfig } from "../SignerClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SignPayloadCommand}.
14
+ */
15
+ export interface SignPayloadCommandInput extends SignPayloadRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SignPayloadCommand}.
21
+ */
22
+ export interface SignPayloadCommandOutput extends SignPayloadResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Signs a binary
27
+ * payload and returns a signature envelope.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { SignerClient, SignPayloadCommand } from "@aws-sdk/client-signer"; // ES Modules import
32
+ * // const { SignerClient, SignPayloadCommand } = require("@aws-sdk/client-signer"); // CommonJS import
33
+ * const client = new SignerClient(config);
34
+ * const input = { // SignPayloadRequest
35
+ * profileName: "STRING_VALUE", // required
36
+ * profileOwner: "STRING_VALUE",
37
+ * payload: "BLOB_VALUE", // required
38
+ * payloadFormat: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new SignPayloadCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // SignPayloadResponse
43
+ * // jobId: "STRING_VALUE",
44
+ * // jobOwner: "STRING_VALUE",
45
+ * // metadata: { // Metadata
46
+ * // "<keys>": "STRING_VALUE",
47
+ * // },
48
+ * // signature: "BLOB_VALUE",
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param SignPayloadCommandInput - {@link SignPayloadCommandInput}
54
+ * @returns {@link SignPayloadCommandOutput}
55
+ * @see {@link SignPayloadCommandInput} for command's `input` shape.
56
+ * @see {@link SignPayloadCommandOutput} for command's `response` shape.
57
+ * @see {@link SignerClientResolvedConfig | config} for SignerClient's `config` shape.
58
+ *
59
+ * @throws {@link AccessDeniedException} (client fault)
60
+ * <p>You do not have sufficient access to perform this action.</p>
61
+ *
62
+ * @throws {@link InternalServiceErrorException} (server fault)
63
+ * <p>An internal error occurred.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>A specified resource could not be found.</p>
67
+ *
68
+ * @throws {@link TooManyRequestsException} (client fault)
69
+ * <p>The allowed number of job-signing requests has been exceeded.</p>
70
+ * <p>This error supersedes the error <code>ThrottlingException</code>.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>You signing certificate could not be validated.</p>
74
+ *
75
+ * @throws {@link SignerServiceException}
76
+ * <p>Base exception class for all service exceptions from Signer service.</p>
77
+ *
78
+ */
79
+ export declare class SignPayloadCommand extends $Command<SignPayloadCommandInput, SignPayloadCommandOutput, SignerClientResolvedConfig> {
80
+ readonly input: SignPayloadCommandInput;
81
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
82
+ /**
83
+ * @public
84
+ */
85
+ constructor(input: SignPayloadCommandInput);
86
+ /**
87
+ * @internal
88
+ */
89
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SignPayloadCommandInput, SignPayloadCommandOutput>;
90
+ /**
91
+ * @internal
92
+ */
93
+ private serialize;
94
+ /**
95
+ * @internal
96
+ */
97
+ private deserialize;
98
+ }
@@ -28,7 +28,7 @@ export interface StartSigningJobCommandOutput extends StartSigningJobResponse, _
28
28
  * performed. Note the following requirements: </p>
29
29
  * <ul>
30
30
  * <li>
31
- * <p> You must create an Amazon S3 source bucket. For more information, see <a href="http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html">Create a Bucket</a> in the
31
+ * <p> You must create an Amazon S3 source bucket. For more information, see <a href="http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html">Creating a Bucket</a> in the
32
32
  * <i>Amazon S3 Getting Started Guide</i>. </p>
33
33
  * </li>
34
34
  * <li>
@@ -49,8 +49,7 @@ export interface StartSigningJobCommandOutput extends StartSigningJobResponse, _
49
49
  * </ul>
50
50
  * <p>You can call the <a>DescribeSigningJob</a> and the <a>ListSigningJobs</a> actions after you call
51
51
  * <code>StartSigningJob</code>.</p>
52
- * <p>For a Java example that shows how to use this action, see <a href="http://docs.aws.amazon.com/acm/latest/userguide/">http://docs.aws.amazon.com/acm/latest/userguide/</a>
53
- * </p>
52
+ * <p>For a Java example that shows how to use this action, see <a href="https://docs.aws.amazon.com/signer/latest/developerguide/api-startsigningjob.html">StartSigningJob</a>.</p>
54
53
  * @example
55
54
  * Use a bare-bones client and the command you need to make an API call.
56
55
  * ```javascript
@@ -101,7 +100,7 @@ export interface StartSigningJobCommandOutput extends StartSigningJobResponse, _
101
100
  *
102
101
  * @throws {@link ThrottlingException} (client fault)
103
102
  * <p>The request was denied due to request throttling.</p>
104
- * <p>Instead of this error, <code>TooManyRequestsException</code> should be used.</p>
103
+ * <p>Instead of this error, <code>TooManyRequestsException</code> should be used.</p>
105
104
  *
106
105
  * @throws {@link TooManyRequestsException} (client fault)
107
106
  * <p>The allowed number of job-signing requests has been exceeded.</p>
@@ -1,6 +1,7 @@
1
1
  export * from "./AddProfilePermissionCommand";
2
2
  export * from "./CancelSigningProfileCommand";
3
3
  export * from "./DescribeSigningJobCommand";
4
+ export * from "./GetRevocationStatusCommand";
4
5
  export * from "./GetSigningPlatformCommand";
5
6
  export * from "./GetSigningProfileCommand";
6
7
  export * from "./ListProfilePermissionsCommand";
@@ -12,6 +13,7 @@ export * from "./PutSigningProfileCommand";
12
13
  export * from "./RemoveProfilePermissionCommand";
13
14
  export * from "./RevokeSignatureCommand";
14
15
  export * from "./RevokeSigningProfileCommand";
16
+ export * from "./SignPayloadCommand";
15
17
  export * from "./StartSigningJobCommand";
16
18
  export * from "./TagResourceCommand";
17
19
  export * from "./UntagResourceCommand";
@@ -2,20 +2,18 @@
2
2
  * <p>AWS Signer is a fully managed code signing service to help you ensure the trust and
3
3
  * integrity of your code. </p>
4
4
  * <p>AWS Signer supports the following applications:</p>
5
- *
6
- * <p>With <i>code signing for AWS Lambda</i>, you can sign AWS Lambda
7
- * deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch,
8
- * and AWS CloudTrail. In order to sign code, you create a signing profile and then use
9
- * Signer to sign Lambda zip files in S3. </p>
10
- *
11
- * <p>With <i>code signing for IoT</i>, you can sign code for any IoT device that is
12
- * supported by AWS. IoT code signing is available for <a href="http://docs.aws.amazon.com/freertos/latest/userguide/">Amazon FreeRTOS</a> and <a href="http://docs.aws.amazon.com/iot/latest/developerguide/">AWS IoT Device Management</a>, and is
13
- * integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign
14
- * code, you import a third-party code signing certificate using ACM, and use that to
15
- * sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
16
- * <p>For more information about AWS Signer, see the <a href="http://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer Guide</a>.</p>
17
- *
18
- * <p></p>
5
+ * <p>With code signing for AWS Lambda, you can sign <a href="http://docs.aws.amazon.com/lambda/latest/dg/">AWS
6
+ * Lambda</a> deployment packages. Integrated support is provided for <a href="http://docs.aws.amazon.com/AmazonS3/latest/gsg/">Amazon S3</a>, <a href="http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/">Amazon
7
+ * CloudWatch</a>, and <a href="http://docs.aws.amazon.com/awscloudtrail/latest/userguide/">AWS CloudTrail</a>. In order
8
+ * to sign code, you create a signing profile and then use Signer to sign Lambda zip files
9
+ * in S3. </p>
10
+ * <p>With code signing for IoT, you can sign code for any IoT device that is supported by AWS.
11
+ * IoT code signing is available for <a href="http://docs.aws.amazon.com/freertos/latest/userguide/">Amazon FreeRTOS</a> and <a href="http://docs.aws.amazon.com/iot/latest/developerguide/">AWS IoT Device Management</a>, and is integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign code, you import a third-party code signing
12
+ * certificate using ACM, and use that to sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
13
+ * <p>With code signing for
14
+ * containers …(TBD)</p>
15
+ * <p>For more information about AWS Signer, see the <a href="https://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer
16
+ * Guide</a>.</p>
19
17
  *
20
18
  * @packageDocumentation
21
19
  */
@@ -156,8 +156,15 @@ export interface CancelSigningProfileRequest {
156
156
  }
157
157
  /**
158
158
  * @public
159
+ * @enum
159
160
  */
160
- export type Category = "AWSIoT";
161
+ export declare const Category: {
162
+ readonly AWSIoT: "AWSIoT";
163
+ };
164
+ /**
165
+ * @public
166
+ */
167
+ export type Category = (typeof Category)[keyof typeof Category];
161
168
  /**
162
169
  * @public
163
170
  */
@@ -167,14 +174,30 @@ export interface DescribeSigningJobRequest {
167
174
  */
168
175
  jobId: string | undefined;
169
176
  }
177
+ /**
178
+ * @public
179
+ * @enum
180
+ */
181
+ export declare const EncryptionAlgorithm: {
182
+ readonly ECDSA: "ECDSA";
183
+ readonly RSA: "RSA";
184
+ };
170
185
  /**
171
186
  * @public
172
187
  */
173
- export type EncryptionAlgorithm = "ECDSA" | "RSA";
188
+ export type EncryptionAlgorithm = (typeof EncryptionAlgorithm)[keyof typeof EncryptionAlgorithm];
174
189
  /**
175
190
  * @public
191
+ * @enum
176
192
  */
177
- export type HashAlgorithm = "SHA1" | "SHA256";
193
+ export declare const HashAlgorithm: {
194
+ readonly SHA1: "SHA1";
195
+ readonly SHA256: "SHA256";
196
+ };
197
+ /**
198
+ * @public
199
+ */
200
+ export type HashAlgorithm = (typeof HashAlgorithm)[keyof typeof HashAlgorithm];
178
201
  /**
179
202
  * @public
180
203
  * <p>A signing configuration that overrides the default encryption or hash algorithm of a
@@ -194,8 +217,17 @@ export interface SigningConfigurationOverrides {
194
217
  }
195
218
  /**
196
219
  * @public
220
+ * @enum
197
221
  */
198
- export type ImageFormat = "JSON" | "JSONDetached" | "JSONEmbedded";
222
+ export declare const ImageFormat: {
223
+ readonly JSON: "JSON";
224
+ readonly JSONDetached: "JSONDetached";
225
+ readonly JSONEmbedded: "JSONEmbedded";
226
+ };
227
+ /**
228
+ * @public
229
+ */
230
+ export type ImageFormat = (typeof ImageFormat)[keyof typeof ImageFormat];
199
231
  /**
200
232
  * @public
201
233
  * <p>Any overrides that are applied to the signing configuration of a code signing
@@ -300,10 +332,19 @@ export interface Source {
300
332
  */
301
333
  s3?: S3Source;
302
334
  }
335
+ /**
336
+ * @public
337
+ * @enum
338
+ */
339
+ export declare const SigningStatus: {
340
+ readonly Failed: "Failed";
341
+ readonly InProgress: "InProgress";
342
+ readonly Succeeded: "Succeeded";
343
+ };
303
344
  /**
304
345
  * @public
305
346
  */
306
- export type SigningStatus = "Failed" | "InProgress" | "Succeeded";
347
+ export type SigningStatus = (typeof SigningStatus)[keyof typeof SigningStatus];
307
348
  /**
308
349
  * @public
309
350
  */
@@ -428,6 +469,44 @@ export interface EncryptionAlgorithmOptions {
428
469
  */
429
470
  defaultValue: EncryptionAlgorithm | string | undefined;
430
471
  }
472
+ /**
473
+ * @public
474
+ */
475
+ export interface GetRevocationStatusRequest {
476
+ /**
477
+ * <p>The timestamp of the signature that validates the profile or job.</p>
478
+ */
479
+ signatureTimestamp: Date | undefined;
480
+ /**
481
+ * <p>The ID of a signing platform. </p>
482
+ */
483
+ platformId: string | undefined;
484
+ /**
485
+ * <p>The version of a signing profile.</p>
486
+ */
487
+ profileVersionArn: string | undefined;
488
+ /**
489
+ * <p>The ARN of a signing job.</p>
490
+ */
491
+ jobArn: string | undefined;
492
+ /**
493
+ * <p>A list of composite signed hashes that identify certificates.</p>
494
+ * <p>A certificate identifier consists of a subject certificate TBS hash (signed by the
495
+ * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). Root
496
+ * certificates are defined as their own CA.</p>
497
+ */
498
+ certificateHashes: string[] | undefined;
499
+ }
500
+ /**
501
+ * @public
502
+ */
503
+ export interface GetRevocationStatusResponse {
504
+ /**
505
+ * <p>A list of revoked entities (including one or more of the signing profile ARN, signing
506
+ * job ID, and certificate hash) supplied as input to the API.</p>
507
+ */
508
+ revokedEntities?: string[];
509
+ }
431
510
  /**
432
511
  * @public
433
512
  */
@@ -555,8 +634,17 @@ export interface SigningProfileRevocationRecord {
555
634
  }
556
635
  /**
557
636
  * @public
637
+ * @enum
558
638
  */
559
- export type ValidityType = "DAYS" | "MONTHS" | "YEARS";
639
+ export declare const ValidityType: {
640
+ readonly DAYS: "DAYS";
641
+ readonly MONTHS: "MONTHS";
642
+ readonly YEARS: "YEARS";
643
+ };
644
+ /**
645
+ * @public
646
+ */
647
+ export type ValidityType = (typeof ValidityType)[keyof typeof ValidityType];
560
648
  /**
561
649
  * @public
562
650
  * <p>The validity period for a signing job.</p>
@@ -567,15 +655,23 @@ export interface SignatureValidityPeriod {
567
655
  */
568
656
  value?: number;
569
657
  /**
570
- * <p>The time unit for signature
571
- * validity.</p>
658
+ * <p>The time unit for signature validity.</p>
572
659
  */
573
660
  type?: ValidityType | string;
574
661
  }
662
+ /**
663
+ * @public
664
+ * @enum
665
+ */
666
+ export declare const SigningProfileStatus: {
667
+ readonly Active: "Active";
668
+ readonly Canceled: "Canceled";
669
+ readonly Revoked: "Revoked";
670
+ };
575
671
  /**
576
672
  * @public
577
673
  */
578
- export type SigningProfileStatus = "Active" | "Canceled" | "Revoked";
674
+ export type SigningProfileStatus = (typeof SigningProfileStatus)[keyof typeof SigningProfileStatus];
579
675
  /**
580
676
  * @public
581
677
  */
@@ -859,7 +955,7 @@ export interface ListSigningPlatformsRequest {
859
955
  */
860
956
  export interface SigningPlatform {
861
957
  /**
862
- * <p>The ID of a code signing; platform.</p>
958
+ * <p>The ID of a code signing platform.</p>
863
959
  */
864
960
  platformId?: string;
865
961
  /**
@@ -1157,6 +1253,50 @@ export interface RevokeSigningProfileRequest {
1157
1253
  */
1158
1254
  effectiveTime: Date | undefined;
1159
1255
  }
1256
+ /**
1257
+ * @public
1258
+ */
1259
+ export interface SignPayloadRequest {
1260
+ /**
1261
+ * <p>The name of the signing profile.</p>
1262
+ */
1263
+ profileName: string | undefined;
1264
+ /**
1265
+ * <p>The AWS account ID of the profile owner.</p>
1266
+ */
1267
+ profileOwner?: string;
1268
+ /**
1269
+ * <p>Specifies the object digest (hash) to sign.</p>
1270
+ */
1271
+ payload: Uint8Array | undefined;
1272
+ /**
1273
+ * <p>Payload content type</p>
1274
+ */
1275
+ payloadFormat: string | undefined;
1276
+ }
1277
+ /**
1278
+ * @public
1279
+ */
1280
+ export interface SignPayloadResponse {
1281
+ /**
1282
+ * <p>Unique identifier of the signing job.</p>
1283
+ */
1284
+ jobId?: string;
1285
+ /**
1286
+ * <p>The AWS account ID of the job owner.</p>
1287
+ */
1288
+ jobOwner?: string;
1289
+ /**
1290
+ * <p>Information including the signing profile ARN and the signing job ID. Clients use
1291
+ * metadata to signature records, for example, as annotations added to the signature
1292
+ * manifest inside an OCI registry.</p>
1293
+ */
1294
+ metadata?: Record<string, string>;
1295
+ /**
1296
+ * <p>A cryptographic signature.</p>
1297
+ */
1298
+ signature?: Uint8Array;
1299
+ }
1160
1300
  /**
1161
1301
  * @public
1162
1302
  */
@@ -1203,7 +1343,7 @@ export interface StartSigningJobResponse {
1203
1343
  * @deprecated
1204
1344
  *
1205
1345
  * <p>The request was denied due to request throttling.</p>
1206
- * <p>Instead of this error, <code>TooManyRequestsException</code> should be used.</p>
1346
+ * <p>Instead of this error, <code>TooManyRequestsException</code> should be used.</p>
1207
1347
  */
1208
1348
  export declare class ThrottlingException extends __BaseException {
1209
1349
  readonly name: "ThrottlingException";
@@ -3,6 +3,7 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
3
  import { AddProfilePermissionCommandInput, AddProfilePermissionCommandOutput } from "../commands/AddProfilePermissionCommand";
4
4
  import { CancelSigningProfileCommandInput, CancelSigningProfileCommandOutput } from "../commands/CancelSigningProfileCommand";
5
5
  import { DescribeSigningJobCommandInput, DescribeSigningJobCommandOutput } from "../commands/DescribeSigningJobCommand";
6
+ import { GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput } from "../commands/GetRevocationStatusCommand";
6
7
  import { GetSigningPlatformCommandInput, GetSigningPlatformCommandOutput } from "../commands/GetSigningPlatformCommand";
7
8
  import { GetSigningProfileCommandInput, GetSigningProfileCommandOutput } from "../commands/GetSigningProfileCommand";
8
9
  import { ListProfilePermissionsCommandInput, ListProfilePermissionsCommandOutput } from "../commands/ListProfilePermissionsCommand";
@@ -14,6 +15,7 @@ import { PutSigningProfileCommandInput, PutSigningProfileCommandOutput } from ".
14
15
  import { RemoveProfilePermissionCommandInput, RemoveProfilePermissionCommandOutput } from "../commands/RemoveProfilePermissionCommand";
15
16
  import { RevokeSignatureCommandInput, RevokeSignatureCommandOutput } from "../commands/RevokeSignatureCommand";
16
17
  import { RevokeSigningProfileCommandInput, RevokeSigningProfileCommandOutput } from "../commands/RevokeSigningProfileCommand";
18
+ import { SignPayloadCommandInput, SignPayloadCommandOutput } from "../commands/SignPayloadCommand";
17
19
  import { StartSigningJobCommandInput, StartSigningJobCommandOutput } from "../commands/StartSigningJobCommand";
18
20
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
19
21
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
@@ -29,6 +31,10 @@ export declare const se_CancelSigningProfileCommand: (input: CancelSigningProfil
29
31
  * serializeAws_restJson1DescribeSigningJobCommand
30
32
  */
31
33
  export declare const se_DescribeSigningJobCommand: (input: DescribeSigningJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
+ /**
35
+ * serializeAws_restJson1GetRevocationStatusCommand
36
+ */
37
+ export declare const se_GetRevocationStatusCommand: (input: GetRevocationStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
38
  /**
33
39
  * serializeAws_restJson1GetSigningPlatformCommand
34
40
  */
@@ -73,6 +79,10 @@ export declare const se_RevokeSignatureCommand: (input: RevokeSignatureCommandIn
73
79
  * serializeAws_restJson1RevokeSigningProfileCommand
74
80
  */
75
81
  export declare const se_RevokeSigningProfileCommand: (input: RevokeSigningProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
82
+ /**
83
+ * serializeAws_restJson1SignPayloadCommand
84
+ */
85
+ export declare const se_SignPayloadCommand: (input: SignPayloadCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
86
  /**
77
87
  * serializeAws_restJson1StartSigningJobCommand
78
88
  */
@@ -97,6 +107,10 @@ export declare const de_CancelSigningProfileCommand: (output: __HttpResponse, co
97
107
  * deserializeAws_restJson1DescribeSigningJobCommand
98
108
  */
99
109
  export declare const de_DescribeSigningJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeSigningJobCommandOutput>;
110
+ /**
111
+ * deserializeAws_restJson1GetRevocationStatusCommand
112
+ */
113
+ export declare const de_GetRevocationStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRevocationStatusCommandOutput>;
100
114
  /**
101
115
  * deserializeAws_restJson1GetSigningPlatformCommand
102
116
  */
@@ -141,6 +155,10 @@ export declare const de_RevokeSignatureCommand: (output: __HttpResponse, context
141
155
  * deserializeAws_restJson1RevokeSigningProfileCommand
142
156
  */
143
157
  export declare const de_RevokeSigningProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RevokeSigningProfileCommandOutput>;
158
+ /**
159
+ * deserializeAws_restJson1SignPayloadCommand
160
+ */
161
+ export declare const de_SignPayloadCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SignPayloadCommandOutput>;
144
162
  /**
145
163
  * deserializeAws_restJson1StartSigningJobCommand
146
164
  */
@@ -11,6 +11,10 @@ import {
11
11
  DescribeSigningJobCommandInput,
12
12
  DescribeSigningJobCommandOutput,
13
13
  } from "./commands/DescribeSigningJobCommand";
14
+ import {
15
+ GetRevocationStatusCommandInput,
16
+ GetRevocationStatusCommandOutput,
17
+ } from "./commands/GetRevocationStatusCommand";
14
18
  import {
15
19
  GetSigningPlatformCommandInput,
16
20
  GetSigningPlatformCommandOutput,
@@ -55,6 +59,10 @@ import {
55
59
  RevokeSigningProfileCommandInput,
56
60
  RevokeSigningProfileCommandOutput,
57
61
  } from "./commands/RevokeSigningProfileCommand";
62
+ import {
63
+ SignPayloadCommandInput,
64
+ SignPayloadCommandOutput,
65
+ } from "./commands/SignPayloadCommand";
58
66
  import {
59
67
  StartSigningJobCommandInput,
60
68
  StartSigningJobCommandOutput,
@@ -108,6 +116,19 @@ export interface Signer {
108
116
  options: __HttpHandlerOptions,
109
117
  cb: (err: any, data?: DescribeSigningJobCommandOutput) => void
110
118
  ): void;
119
+ getRevocationStatus(
120
+ args: GetRevocationStatusCommandInput,
121
+ options?: __HttpHandlerOptions
122
+ ): Promise<GetRevocationStatusCommandOutput>;
123
+ getRevocationStatus(
124
+ args: GetRevocationStatusCommandInput,
125
+ cb: (err: any, data?: GetRevocationStatusCommandOutput) => void
126
+ ): void;
127
+ getRevocationStatus(
128
+ args: GetRevocationStatusCommandInput,
129
+ options: __HttpHandlerOptions,
130
+ cb: (err: any, data?: GetRevocationStatusCommandOutput) => void
131
+ ): void;
111
132
  getSigningPlatform(
112
133
  args: GetSigningPlatformCommandInput,
113
134
  options?: __HttpHandlerOptions
@@ -251,6 +272,19 @@ export interface Signer {
251
272
  options: __HttpHandlerOptions,
252
273
  cb: (err: any, data?: RevokeSigningProfileCommandOutput) => void
253
274
  ): void;
275
+ signPayload(
276
+ args: SignPayloadCommandInput,
277
+ options?: __HttpHandlerOptions
278
+ ): Promise<SignPayloadCommandOutput>;
279
+ signPayload(
280
+ args: SignPayloadCommandInput,
281
+ cb: (err: any, data?: SignPayloadCommandOutput) => void
282
+ ): void;
283
+ signPayload(
284
+ args: SignPayloadCommandInput,
285
+ options: __HttpHandlerOptions,
286
+ cb: (err: any, data?: SignPayloadCommandOutput) => void
287
+ ): void;
254
288
  startSigningJob(
255
289
  args: StartSigningJobCommandInput,
256
290
  options?: __HttpHandlerOptions
@@ -58,6 +58,10 @@ import {
58
58
  DescribeSigningJobCommandInput,
59
59
  DescribeSigningJobCommandOutput,
60
60
  } from "./commands/DescribeSigningJobCommand";
61
+ import {
62
+ GetRevocationStatusCommandInput,
63
+ GetRevocationStatusCommandOutput,
64
+ } from "./commands/GetRevocationStatusCommand";
61
65
  import {
62
66
  GetSigningPlatformCommandInput,
63
67
  GetSigningPlatformCommandOutput,
@@ -102,6 +106,10 @@ import {
102
106
  RevokeSigningProfileCommandInput,
103
107
  RevokeSigningProfileCommandOutput,
104
108
  } from "./commands/RevokeSigningProfileCommand";
109
+ import {
110
+ SignPayloadCommandInput,
111
+ SignPayloadCommandOutput,
112
+ } from "./commands/SignPayloadCommand";
105
113
  import {
106
114
  StartSigningJobCommandInput,
107
115
  StartSigningJobCommandOutput,
@@ -124,6 +132,7 @@ export type ServiceInputTypes =
124
132
  | AddProfilePermissionCommandInput
125
133
  | CancelSigningProfileCommandInput
126
134
  | DescribeSigningJobCommandInput
135
+ | GetRevocationStatusCommandInput
127
136
  | GetSigningPlatformCommandInput
128
137
  | GetSigningProfileCommandInput
129
138
  | ListProfilePermissionsCommandInput
@@ -135,6 +144,7 @@ export type ServiceInputTypes =
135
144
  | RemoveProfilePermissionCommandInput
136
145
  | RevokeSignatureCommandInput
137
146
  | RevokeSigningProfileCommandInput
147
+ | SignPayloadCommandInput
138
148
  | StartSigningJobCommandInput
139
149
  | TagResourceCommandInput
140
150
  | UntagResourceCommandInput;
@@ -142,6 +152,7 @@ export type ServiceOutputTypes =
142
152
  | AddProfilePermissionCommandOutput
143
153
  | CancelSigningProfileCommandOutput
144
154
  | DescribeSigningJobCommandOutput
155
+ | GetRevocationStatusCommandOutput
145
156
  | GetSigningPlatformCommandOutput
146
157
  | GetSigningProfileCommandOutput
147
158
  | ListProfilePermissionsCommandOutput
@@ -153,6 +164,7 @@ export type ServiceOutputTypes =
153
164
  | RemoveProfilePermissionCommandOutput
154
165
  | RevokeSignatureCommandOutput
155
166
  | RevokeSigningProfileCommandOutput
167
+ | SignPayloadCommandOutput
156
168
  | StartSigningJobCommandOutput
157
169
  | TagResourceCommandOutput
158
170
  | UntagResourceCommandOutput;
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ GetRevocationStatusRequest,
11
+ GetRevocationStatusResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ ServiceInputTypes,
15
+ ServiceOutputTypes,
16
+ SignerClientResolvedConfig,
17
+ } from "../SignerClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetRevocationStatusCommandInput
20
+ extends GetRevocationStatusRequest {}
21
+ export interface GetRevocationStatusCommandOutput
22
+ extends GetRevocationStatusResponse,
23
+ __MetadataBearer {}
24
+ export declare class GetRevocationStatusCommand extends $Command<
25
+ GetRevocationStatusCommandInput,
26
+ GetRevocationStatusCommandOutput,
27
+ SignerClientResolvedConfig
28
+ > {
29
+ readonly input: GetRevocationStatusCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetRevocationStatusCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: SignerClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }