@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
@@ -103,6 +103,37 @@ export class BadRequestException extends __BaseException {
103
103
  this.code = opts.code;
104
104
  }
105
105
  }
106
+ export const Category = {
107
+ AWSIoT: "AWSIoT",
108
+ };
109
+ export const EncryptionAlgorithm = {
110
+ ECDSA: "ECDSA",
111
+ RSA: "RSA",
112
+ };
113
+ export const HashAlgorithm = {
114
+ SHA1: "SHA1",
115
+ SHA256: "SHA256",
116
+ };
117
+ export const ImageFormat = {
118
+ JSON: "JSON",
119
+ JSONDetached: "JSONDetached",
120
+ JSONEmbedded: "JSONEmbedded",
121
+ };
122
+ export const SigningStatus = {
123
+ Failed: "Failed",
124
+ InProgress: "InProgress",
125
+ Succeeded: "Succeeded",
126
+ };
127
+ export const ValidityType = {
128
+ DAYS: "DAYS",
129
+ MONTHS: "MONTHS",
130
+ YEARS: "YEARS",
131
+ };
132
+ export const SigningProfileStatus = {
133
+ Active: "Active",
134
+ Canceled: "Canceled",
135
+ Revoked: "Revoked",
136
+ };
106
137
  export class NotFoundException extends __BaseException {
107
138
  constructor(opts) {
108
139
  super({
@@ -1,5 +1,5 @@
1
1
  import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
+ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AccessDeniedException, BadRequestException, ConflictException, InternalServiceErrorException, NotFoundException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, TooManyRequestsException, ValidationException, } from "../models/models_0";
5
5
  import { SignerServiceException as __BaseException } from "../models/SignerServiceException";
@@ -61,6 +61,42 @@ export const se_DescribeSigningJobCommand = async (input, context) => {
61
61
  body,
62
62
  });
63
63
  };
64
+ export const se_GetRevocationStatusCommand = async (input, context) => {
65
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const headers = {};
67
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/revocations";
68
+ const query = map({
69
+ signatureTimestamp: [
70
+ __expectNonNull(input.signatureTimestamp, `signatureTimestamp`) != null,
71
+ () => (input.signatureTimestamp.toISOString().split(".")[0] + "Z").toString(),
72
+ ],
73
+ platformId: [, __expectNonNull(input.platformId, `platformId`)],
74
+ profileVersionArn: [, __expectNonNull(input.profileVersionArn, `profileVersionArn`)],
75
+ jobArn: [, __expectNonNull(input.jobArn, `jobArn`)],
76
+ certificateHashes: [
77
+ __expectNonNull(input.certificateHashes, `certificateHashes`) != null,
78
+ () => (input.certificateHashes || []).map((_entry) => _entry),
79
+ ],
80
+ });
81
+ let body;
82
+ let { hostname: resolvedHostname } = await context.endpoint();
83
+ if (context.disableHostPrefix !== true) {
84
+ resolvedHostname = "verification." + resolvedHostname;
85
+ if (!__isValidHostname(resolvedHostname)) {
86
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
87
+ }
88
+ }
89
+ return new __HttpRequest({
90
+ protocol,
91
+ hostname: resolvedHostname,
92
+ port,
93
+ method: "GET",
94
+ headers,
95
+ path: resolvedPath,
96
+ query,
97
+ body,
98
+ });
99
+ };
64
100
  export const se_GetSigningPlatformCommand = async (input, context) => {
65
101
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
102
  const headers = {};
@@ -306,6 +342,29 @@ export const se_RevokeSigningProfileCommand = async (input, context) => {
306
342
  body,
307
343
  });
308
344
  };
345
+ export const se_SignPayloadCommand = async (input, context) => {
346
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
+ const headers = {
348
+ "content-type": "application/json",
349
+ };
350
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/with-payload";
351
+ let body;
352
+ body = JSON.stringify(take(input, {
353
+ payload: (_) => context.base64Encoder(_),
354
+ payloadFormat: [],
355
+ profileName: [],
356
+ profileOwner: [],
357
+ }));
358
+ return new __HttpRequest({
359
+ protocol,
360
+ hostname,
361
+ port,
362
+ method: "POST",
363
+ headers,
364
+ path: resolvedPath,
365
+ body,
366
+ });
367
+ };
309
368
  export const se_StartSigningJobCommand = async (input, context) => {
310
369
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
311
370
  const headers = {
@@ -523,6 +582,48 @@ const de_DescribeSigningJobCommandError = async (output, context) => {
523
582
  });
524
583
  }
525
584
  };
585
+ export const de_GetRevocationStatusCommand = async (output, context) => {
586
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
587
+ return de_GetRevocationStatusCommandError(output, context);
588
+ }
589
+ const contents = map({
590
+ $metadata: deserializeMetadata(output),
591
+ });
592
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
593
+ const doc = take(data, {
594
+ revokedEntities: _json,
595
+ });
596
+ Object.assign(contents, doc);
597
+ return contents;
598
+ };
599
+ const de_GetRevocationStatusCommandError = async (output, context) => {
600
+ const parsedOutput = {
601
+ ...output,
602
+ body: await parseErrorBody(output.body, context),
603
+ };
604
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
605
+ switch (errorCode) {
606
+ case "AccessDeniedException":
607
+ case "com.amazonaws.signer#AccessDeniedException":
608
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
609
+ case "InternalServiceErrorException":
610
+ case "com.amazonaws.signer#InternalServiceErrorException":
611
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
612
+ case "TooManyRequestsException":
613
+ case "com.amazonaws.signer#TooManyRequestsException":
614
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
615
+ case "ValidationException":
616
+ case "com.amazonaws.signer#ValidationException":
617
+ throw await de_ValidationExceptionRes(parsedOutput, context);
618
+ default:
619
+ const parsedBody = parsedOutput.body;
620
+ return throwDefaultError({
621
+ output,
622
+ parsedBody,
623
+ errorCode,
624
+ });
625
+ }
626
+ };
526
627
  export const de_GetSigningPlatformCommand = async (output, context) => {
527
628
  if (output.statusCode !== 200 && output.statusCode >= 300) {
528
629
  return de_GetSigningPlatformCommandError(output, context);
@@ -1021,6 +1122,54 @@ const de_RevokeSigningProfileCommandError = async (output, context) => {
1021
1122
  });
1022
1123
  }
1023
1124
  };
1125
+ export const de_SignPayloadCommand = async (output, context) => {
1126
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1127
+ return de_SignPayloadCommandError(output, context);
1128
+ }
1129
+ const contents = map({
1130
+ $metadata: deserializeMetadata(output),
1131
+ });
1132
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1133
+ const doc = take(data, {
1134
+ jobId: __expectString,
1135
+ jobOwner: __expectString,
1136
+ metadata: _json,
1137
+ signature: context.base64Decoder,
1138
+ });
1139
+ Object.assign(contents, doc);
1140
+ return contents;
1141
+ };
1142
+ const de_SignPayloadCommandError = async (output, context) => {
1143
+ const parsedOutput = {
1144
+ ...output,
1145
+ body: await parseErrorBody(output.body, context),
1146
+ };
1147
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1148
+ switch (errorCode) {
1149
+ case "AccessDeniedException":
1150
+ case "com.amazonaws.signer#AccessDeniedException":
1151
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1152
+ case "InternalServiceErrorException":
1153
+ case "com.amazonaws.signer#InternalServiceErrorException":
1154
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1155
+ case "ResourceNotFoundException":
1156
+ case "com.amazonaws.signer#ResourceNotFoundException":
1157
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1158
+ case "TooManyRequestsException":
1159
+ case "com.amazonaws.signer#TooManyRequestsException":
1160
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1161
+ case "ValidationException":
1162
+ case "com.amazonaws.signer#ValidationException":
1163
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1164
+ default:
1165
+ const parsedBody = parsedOutput.body;
1166
+ return throwDefaultError({
1167
+ output,
1168
+ parsedBody,
1169
+ errorCode,
1170
+ });
1171
+ }
1172
+ };
1024
1173
  export const de_StartSigningJobCommand = async (output, context) => {
1025
1174
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1026
1175
  return de_StartSigningJobCommandError(output, context);
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AddProfilePermissionCommandInput, AddProfilePermissionCommandOutput } from "./commands/AddProfilePermissionCommand";
3
3
  import { CancelSigningProfileCommandInput, CancelSigningProfileCommandOutput } from "./commands/CancelSigningProfileCommand";
4
4
  import { DescribeSigningJobCommandInput, DescribeSigningJobCommandOutput } from "./commands/DescribeSigningJobCommand";
5
+ import { GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput } from "./commands/GetRevocationStatusCommand";
5
6
  import { GetSigningPlatformCommandInput, GetSigningPlatformCommandOutput } from "./commands/GetSigningPlatformCommand";
6
7
  import { GetSigningProfileCommandInput, GetSigningProfileCommandOutput } from "./commands/GetSigningProfileCommand";
7
8
  import { ListProfilePermissionsCommandInput, ListProfilePermissionsCommandOutput } from "./commands/ListProfilePermissionsCommand";
@@ -13,6 +14,7 @@ import { PutSigningProfileCommandInput, PutSigningProfileCommandOutput } from ".
13
14
  import { RemoveProfilePermissionCommandInput, RemoveProfilePermissionCommandOutput } from "./commands/RemoveProfilePermissionCommand";
14
15
  import { RevokeSignatureCommandInput, RevokeSignatureCommandOutput } from "./commands/RevokeSignatureCommand";
15
16
  import { RevokeSigningProfileCommandInput, RevokeSigningProfileCommandOutput } from "./commands/RevokeSigningProfileCommand";
17
+ import { SignPayloadCommandInput, SignPayloadCommandOutput } from "./commands/SignPayloadCommand";
16
18
  import { StartSigningJobCommandInput, StartSigningJobCommandOutput } from "./commands/StartSigningJobCommand";
17
19
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
18
20
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -36,6 +38,12 @@ export interface Signer {
36
38
  describeSigningJob(args: DescribeSigningJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSigningJobCommandOutput>;
37
39
  describeSigningJob(args: DescribeSigningJobCommandInput, cb: (err: any, data?: DescribeSigningJobCommandOutput) => void): void;
38
40
  describeSigningJob(args: DescribeSigningJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSigningJobCommandOutput) => void): void;
41
+ /**
42
+ * @see {@link GetRevocationStatusCommand}
43
+ */
44
+ getRevocationStatus(args: GetRevocationStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetRevocationStatusCommandOutput>;
45
+ getRevocationStatus(args: GetRevocationStatusCommandInput, cb: (err: any, data?: GetRevocationStatusCommandOutput) => void): void;
46
+ getRevocationStatus(args: GetRevocationStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRevocationStatusCommandOutput) => void): void;
39
47
  /**
40
48
  * @see {@link GetSigningPlatformCommand}
41
49
  */
@@ -102,6 +110,12 @@ export interface Signer {
102
110
  revokeSigningProfile(args: RevokeSigningProfileCommandInput, options?: __HttpHandlerOptions): Promise<RevokeSigningProfileCommandOutput>;
103
111
  revokeSigningProfile(args: RevokeSigningProfileCommandInput, cb: (err: any, data?: RevokeSigningProfileCommandOutput) => void): void;
104
112
  revokeSigningProfile(args: RevokeSigningProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeSigningProfileCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link SignPayloadCommand}
115
+ */
116
+ signPayload(args: SignPayloadCommandInput, options?: __HttpHandlerOptions): Promise<SignPayloadCommandOutput>;
117
+ signPayload(args: SignPayloadCommandInput, cb: (err: any, data?: SignPayloadCommandOutput) => void): void;
118
+ signPayload(args: SignPayloadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SignPayloadCommandOutput) => void): void;
105
119
  /**
106
120
  * @see {@link StartSigningJobCommand}
107
121
  */
@@ -126,20 +140,18 @@ export interface Signer {
126
140
  * <p>AWS Signer is a fully managed code signing service to help you ensure the trust and
127
141
  * integrity of your code. </p>
128
142
  * <p>AWS Signer supports the following applications:</p>
129
- *
130
- * <p>With <i>code signing for AWS Lambda</i>, you can sign AWS Lambda
131
- * deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch,
132
- * and AWS CloudTrail. In order to sign code, you create a signing profile and then use
133
- * Signer to sign Lambda zip files in S3. </p>
134
- *
135
- * <p>With <i>code signing for IoT</i>, you can sign code for any IoT device that is
136
- * 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
137
- * integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign
138
- * code, you import a third-party code signing certificate using ACM, and use that to
139
- * sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
140
- * <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>
141
- *
142
- * <p></p>
143
+ * <p>With code signing for AWS Lambda, you can sign <a href="http://docs.aws.amazon.com/lambda/latest/dg/">AWS
144
+ * 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
145
+ * CloudWatch</a>, and <a href="http://docs.aws.amazon.com/awscloudtrail/latest/userguide/">AWS CloudTrail</a>. In order
146
+ * to sign code, you create a signing profile and then use Signer to sign Lambda zip files
147
+ * in S3. </p>
148
+ * <p>With code signing for IoT, you can sign code for any IoT device that is supported by AWS.
149
+ * 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
150
+ * certificate using ACM, and use that to sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
151
+ * <p>With code signing for
152
+ * containers …(TBD)</p>
153
+ * <p>For more information about AWS Signer, see the <a href="https://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer
154
+ * Guide</a>.</p>
143
155
  */
144
156
  export declare class Signer extends SignerClient implements Signer {
145
157
  }
@@ -11,6 +11,7 @@ import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, Str
11
11
  import { AddProfilePermissionCommandInput, AddProfilePermissionCommandOutput } from "./commands/AddProfilePermissionCommand";
12
12
  import { CancelSigningProfileCommandInput, CancelSigningProfileCommandOutput } from "./commands/CancelSigningProfileCommand";
13
13
  import { DescribeSigningJobCommandInput, DescribeSigningJobCommandOutput } from "./commands/DescribeSigningJobCommand";
14
+ import { GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput } from "./commands/GetRevocationStatusCommand";
14
15
  import { GetSigningPlatformCommandInput, GetSigningPlatformCommandOutput } from "./commands/GetSigningPlatformCommand";
15
16
  import { GetSigningProfileCommandInput, GetSigningProfileCommandOutput } from "./commands/GetSigningProfileCommand";
16
17
  import { ListProfilePermissionsCommandInput, ListProfilePermissionsCommandOutput } from "./commands/ListProfilePermissionsCommand";
@@ -22,6 +23,7 @@ import { PutSigningProfileCommandInput, PutSigningProfileCommandOutput } from ".
22
23
  import { RemoveProfilePermissionCommandInput, RemoveProfilePermissionCommandOutput } from "./commands/RemoveProfilePermissionCommand";
23
24
  import { RevokeSignatureCommandInput, RevokeSignatureCommandOutput } from "./commands/RevokeSignatureCommand";
24
25
  import { RevokeSigningProfileCommandInput, RevokeSigningProfileCommandOutput } from "./commands/RevokeSigningProfileCommand";
26
+ import { SignPayloadCommandInput, SignPayloadCommandOutput } from "./commands/SignPayloadCommand";
25
27
  import { StartSigningJobCommandInput, StartSigningJobCommandOutput } from "./commands/StartSigningJobCommand";
26
28
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
27
29
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -30,11 +32,11 @@ export { __Client };
30
32
  /**
31
33
  * @public
32
34
  */
33
- export type ServiceInputTypes = AddProfilePermissionCommandInput | CancelSigningProfileCommandInput | DescribeSigningJobCommandInput | GetSigningPlatformCommandInput | GetSigningProfileCommandInput | ListProfilePermissionsCommandInput | ListSigningJobsCommandInput | ListSigningPlatformsCommandInput | ListSigningProfilesCommandInput | ListTagsForResourceCommandInput | PutSigningProfileCommandInput | RemoveProfilePermissionCommandInput | RevokeSignatureCommandInput | RevokeSigningProfileCommandInput | StartSigningJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
35
+ export type ServiceInputTypes = AddProfilePermissionCommandInput | CancelSigningProfileCommandInput | DescribeSigningJobCommandInput | GetRevocationStatusCommandInput | GetSigningPlatformCommandInput | GetSigningProfileCommandInput | ListProfilePermissionsCommandInput | ListSigningJobsCommandInput | ListSigningPlatformsCommandInput | ListSigningProfilesCommandInput | ListTagsForResourceCommandInput | PutSigningProfileCommandInput | RemoveProfilePermissionCommandInput | RevokeSignatureCommandInput | RevokeSigningProfileCommandInput | SignPayloadCommandInput | StartSigningJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
34
36
  /**
35
37
  * @public
36
38
  */
37
- export type ServiceOutputTypes = AddProfilePermissionCommandOutput | CancelSigningProfileCommandOutput | DescribeSigningJobCommandOutput | GetSigningPlatformCommandOutput | GetSigningProfileCommandOutput | ListProfilePermissionsCommandOutput | ListSigningJobsCommandOutput | ListSigningPlatformsCommandOutput | ListSigningProfilesCommandOutput | ListTagsForResourceCommandOutput | PutSigningProfileCommandOutput | RemoveProfilePermissionCommandOutput | RevokeSignatureCommandOutput | RevokeSigningProfileCommandOutput | StartSigningJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
39
+ export type ServiceOutputTypes = AddProfilePermissionCommandOutput | CancelSigningProfileCommandOutput | DescribeSigningJobCommandOutput | GetRevocationStatusCommandOutput | GetSigningPlatformCommandOutput | GetSigningProfileCommandOutput | ListProfilePermissionsCommandOutput | ListSigningJobsCommandOutput | ListSigningPlatformsCommandOutput | ListSigningProfilesCommandOutput | ListTagsForResourceCommandOutput | PutSigningProfileCommandOutput | RemoveProfilePermissionCommandOutput | RevokeSignatureCommandOutput | RevokeSigningProfileCommandOutput | SignPayloadCommandOutput | StartSigningJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
38
40
  /**
39
41
  * @public
40
42
  */
@@ -165,20 +167,18 @@ export interface SignerClientResolvedConfig extends SignerClientResolvedConfigTy
165
167
  * <p>AWS Signer is a fully managed code signing service to help you ensure the trust and
166
168
  * integrity of your code. </p>
167
169
  * <p>AWS Signer supports the following applications:</p>
168
- *
169
- * <p>With <i>code signing for AWS Lambda</i>, you can sign AWS Lambda
170
- * deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch,
171
- * and AWS CloudTrail. In order to sign code, you create a signing profile and then use
172
- * Signer to sign Lambda zip files in S3. </p>
173
- *
174
- * <p>With <i>code signing for IoT</i>, you can sign code for any IoT device that is
175
- * 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
176
- * integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign
177
- * code, you import a third-party code signing certificate using ACM, and use that to
178
- * sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
179
- * <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>
180
- *
181
- * <p></p>
170
+ * <p>With code signing for AWS Lambda, you can sign <a href="http://docs.aws.amazon.com/lambda/latest/dg/">AWS
171
+ * 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
172
+ * CloudWatch</a>, and <a href="http://docs.aws.amazon.com/awscloudtrail/latest/userguide/">AWS CloudTrail</a>. In order
173
+ * to sign code, you create a signing profile and then use Signer to sign Lambda zip files
174
+ * in S3. </p>
175
+ * <p>With code signing for IoT, you can sign code for any IoT device that is supported by AWS.
176
+ * 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
177
+ * certificate using ACM, and use that to sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
178
+ * <p>With code signing for
179
+ * containers …(TBD)</p>
180
+ * <p>For more information about AWS Signer, see the <a href="https://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer
181
+ * Guide</a>.</p>
182
182
  */
183
183
  export declare class SignerClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SignerClientResolvedConfig> {
184
184
  /**
@@ -23,8 +23,8 @@ export interface DescribeSigningJobCommandOutput extends DescribeSigningJobRespo
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Returns information about a specific code signing job. You specify the job by using
27
- * the <code>jobId</code> value that is returned by the <a>StartSigningJob</a>
26
+ * <p>Returns information about a specific code signing job. You specify the job by using the
27
+ * <code>jobId</code> value that is returned by the <a>StartSigningJob</a>
28
28
  * operation. </p>
29
29
  * @example
30
30
  * Use a bare-bones client and the command you need to make an API call.
@@ -55,10 +55,10 @@ export interface DescribeSigningJobCommandOutput extends DescribeSigningJobRespo
55
55
  * // profileVersion: "STRING_VALUE",
56
56
  * // overrides: { // SigningPlatformOverrides
57
57
  * // signingConfiguration: { // SigningConfigurationOverrides
58
- * // encryptionAlgorithm: "STRING_VALUE",
59
- * // hashAlgorithm: "STRING_VALUE",
58
+ * // encryptionAlgorithm: "RSA" || "ECDSA",
59
+ * // hashAlgorithm: "SHA1" || "SHA256",
60
60
  * // },
61
- * // signingImageFormat: "STRING_VALUE",
61
+ * // signingImageFormat: "JSON" || "JSONEmbedded" || "JSONDetached",
62
62
  * // },
63
63
  * // signingParameters: { // SigningParameters
64
64
  * // "<keys>": "STRING_VALUE",
@@ -67,7 +67,7 @@ export interface DescribeSigningJobCommandOutput extends DescribeSigningJobRespo
67
67
  * // completedAt: new Date("TIMESTAMP"),
68
68
  * // signatureExpiresAt: new Date("TIMESTAMP"),
69
69
  * // requestedBy: "STRING_VALUE",
70
- * // status: "STRING_VALUE",
70
+ * // status: "InProgress" || "Failed" || "Succeeded",
71
71
  * // statusReason: "STRING_VALUE",
72
72
  * // revocationRecord: { // SigningJobRevocationRecord
73
73
  * // reason: "STRING_VALUE",
@@ -0,0 +1,96 @@
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 { GetRevocationStatusRequest, GetRevocationStatusResponse } 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 GetRevocationStatusCommand}.
14
+ */
15
+ export interface GetRevocationStatusCommandInput extends GetRevocationStatusRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRevocationStatusCommand}.
21
+ */
22
+ export interface GetRevocationStatusCommandOutput extends GetRevocationStatusResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves the
27
+ * revocation status of one or more of the signing profile, signing job, and signing
28
+ * certificate.</p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { SignerClient, GetRevocationStatusCommand } from "@aws-sdk/client-signer"; // ES Modules import
33
+ * // const { SignerClient, GetRevocationStatusCommand } = require("@aws-sdk/client-signer"); // CommonJS import
34
+ * const client = new SignerClient(config);
35
+ * const input = { // GetRevocationStatusRequest
36
+ * signatureTimestamp: new Date("TIMESTAMP"), // required
37
+ * platformId: "STRING_VALUE", // required
38
+ * profileVersionArn: "STRING_VALUE", // required
39
+ * jobArn: "STRING_VALUE", // required
40
+ * certificateHashes: [ // CertificateHashes // required
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * };
44
+ * const command = new GetRevocationStatusCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetRevocationStatusResponse
47
+ * // revokedEntities: [ // RevokedEntities
48
+ * // "STRING_VALUE",
49
+ * // ],
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param GetRevocationStatusCommandInput - {@link GetRevocationStatusCommandInput}
55
+ * @returns {@link GetRevocationStatusCommandOutput}
56
+ * @see {@link GetRevocationStatusCommandInput} for command's `input` shape.
57
+ * @see {@link GetRevocationStatusCommandOutput} for command's `response` shape.
58
+ * @see {@link SignerClientResolvedConfig | config} for SignerClient's `config` shape.
59
+ *
60
+ * @throws {@link AccessDeniedException} (client fault)
61
+ * <p>You do not have sufficient access to perform this action.</p>
62
+ *
63
+ * @throws {@link InternalServiceErrorException} (server fault)
64
+ * <p>An internal error occurred.</p>
65
+ *
66
+ * @throws {@link TooManyRequestsException} (client fault)
67
+ * <p>The allowed number of job-signing requests has been exceeded.</p>
68
+ * <p>This error supersedes the error <code>ThrottlingException</code>.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>You signing certificate could not be validated.</p>
72
+ *
73
+ * @throws {@link SignerServiceException}
74
+ * <p>Base exception class for all service exceptions from Signer service.</p>
75
+ *
76
+ */
77
+ export declare class GetRevocationStatusCommand extends $Command<GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput, SignerClientResolvedConfig> {
78
+ readonly input: GetRevocationStatusCommandInput;
79
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
+ /**
81
+ * @public
82
+ */
83
+ constructor(input: GetRevocationStatusCommandInput);
84
+ /**
85
+ * @internal
86
+ */
87
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SignerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput>;
88
+ /**
89
+ * @internal
90
+ */
91
+ private serialize;
92
+ /**
93
+ * @internal
94
+ */
95
+ private deserialize;
96
+ }
@@ -40,26 +40,26 @@ export interface GetSigningPlatformCommandOutput extends GetSigningPlatformRespo
40
40
  * // displayName: "STRING_VALUE",
41
41
  * // partner: "STRING_VALUE",
42
42
  * // target: "STRING_VALUE",
43
- * // category: "STRING_VALUE",
43
+ * // category: "AWSIoT",
44
44
  * // signingConfiguration: { // SigningConfiguration
45
45
  * // encryptionAlgorithmOptions: { // EncryptionAlgorithmOptions
46
46
  * // allowedValues: [ // EncryptionAlgorithms // required
47
- * // "STRING_VALUE",
47
+ * // "RSA" || "ECDSA",
48
48
  * // ],
49
- * // defaultValue: "STRING_VALUE", // required
49
+ * // defaultValue: "RSA" || "ECDSA", // required
50
50
  * // },
51
51
  * // hashAlgorithmOptions: { // HashAlgorithmOptions
52
52
  * // allowedValues: [ // HashAlgorithms // required
53
- * // "STRING_VALUE",
53
+ * // "SHA1" || "SHA256",
54
54
  * // ],
55
- * // defaultValue: "STRING_VALUE", // required
55
+ * // defaultValue: "SHA1" || "SHA256", // required
56
56
  * // },
57
57
  * // },
58
58
  * // signingImageFormat: { // SigningImageFormat
59
59
  * // supportedFormats: [ // ImageFormats // required
60
- * // "STRING_VALUE",
60
+ * // "JSON" || "JSONEmbedded" || "JSONDetached",
61
61
  * // ],
62
- * // defaultFormat: "STRING_VALUE", // required
62
+ * // defaultFormat: "JSON" || "JSONEmbedded" || "JSONDetached", // required
63
63
  * // },
64
64
  * // maxSizeInMB: Number("int"),
65
65
  * // revocationSupported: true || false,
@@ -52,19 +52,19 @@ export interface GetSigningProfileCommandOutput extends GetSigningProfileRespons
52
52
  * // platformDisplayName: "STRING_VALUE",
53
53
  * // signatureValidityPeriod: { // SignatureValidityPeriod
54
54
  * // value: Number("int"),
55
- * // type: "STRING_VALUE",
55
+ * // type: "DAYS" || "MONTHS" || "YEARS",
56
56
  * // },
57
57
  * // overrides: { // SigningPlatformOverrides
58
58
  * // signingConfiguration: { // SigningConfigurationOverrides
59
- * // encryptionAlgorithm: "STRING_VALUE",
60
- * // hashAlgorithm: "STRING_VALUE",
59
+ * // encryptionAlgorithm: "RSA" || "ECDSA",
60
+ * // hashAlgorithm: "SHA1" || "SHA256",
61
61
  * // },
62
- * // signingImageFormat: "STRING_VALUE",
62
+ * // signingImageFormat: "JSON" || "JSONEmbedded" || "JSONDetached",
63
63
  * // },
64
64
  * // signingParameters: { // SigningParameters
65
65
  * // "<keys>": "STRING_VALUE",
66
66
  * // },
67
- * // status: "STRING_VALUE",
67
+ * // status: "Active" || "Canceled" || "Revoked",
68
68
  * // statusReason: "STRING_VALUE",
69
69
  * // arn: "STRING_VALUE",
70
70
  * // tags: { // TagMap
@@ -37,7 +37,7 @@ export interface ListSigningJobsCommandOutput extends ListSigningJobsResponse, _
37
37
  * // const { SignerClient, ListSigningJobsCommand } = require("@aws-sdk/client-signer"); // CommonJS import
38
38
  * const client = new SignerClient(config);
39
39
  * const input = { // ListSigningJobsRequest
40
- * status: "STRING_VALUE",
40
+ * status: "InProgress" || "Failed" || "Succeeded",
41
41
  * platformId: "STRING_VALUE",
42
42
  * requestedBy: "STRING_VALUE",
43
43
  * maxResults: Number("int"),
@@ -70,7 +70,7 @@ export interface ListSigningJobsCommandOutput extends ListSigningJobsResponse, _
70
70
  * // certificateArn: "STRING_VALUE", // required
71
71
  * // },
72
72
  * // createdAt: new Date("TIMESTAMP"),
73
- * // status: "STRING_VALUE",
73
+ * // status: "InProgress" || "Failed" || "Succeeded",
74
74
  * // isRevoked: true || false,
75
75
  * // profileName: "STRING_VALUE",
76
76
  * // profileVersion: "STRING_VALUE",
@@ -52,26 +52,26 @@ export interface ListSigningPlatformsCommandOutput extends ListSigningPlatformsR
52
52
  * // displayName: "STRING_VALUE",
53
53
  * // partner: "STRING_VALUE",
54
54
  * // target: "STRING_VALUE",
55
- * // category: "STRING_VALUE",
55
+ * // category: "AWSIoT",
56
56
  * // signingConfiguration: { // SigningConfiguration
57
57
  * // encryptionAlgorithmOptions: { // EncryptionAlgorithmOptions
58
58
  * // allowedValues: [ // EncryptionAlgorithms // required
59
- * // "STRING_VALUE",
59
+ * // "RSA" || "ECDSA",
60
60
  * // ],
61
- * // defaultValue: "STRING_VALUE", // required
61
+ * // defaultValue: "RSA" || "ECDSA", // required
62
62
  * // },
63
63
  * // hashAlgorithmOptions: { // HashAlgorithmOptions
64
64
  * // allowedValues: [ // HashAlgorithms // required
65
- * // "STRING_VALUE",
65
+ * // "SHA1" || "SHA256",
66
66
  * // ],
67
- * // defaultValue: "STRING_VALUE", // required
67
+ * // defaultValue: "SHA1" || "SHA256", // required
68
68
  * // },
69
69
  * // },
70
70
  * // signingImageFormat: { // SigningImageFormat
71
71
  * // supportedFormats: [ // ImageFormats // required
72
- * // "STRING_VALUE",
72
+ * // "JSON" || "JSONEmbedded" || "JSONDetached",
73
73
  * // ],
74
- * // defaultFormat: "STRING_VALUE", // required
74
+ * // defaultFormat: "JSON" || "JSONEmbedded" || "JSONDetached", // required
75
75
  * // },
76
76
  * // maxSizeInMB: Number("int"),
77
77
  * // revocationSupported: true || false,
@@ -43,7 +43,7 @@ export interface ListSigningProfilesCommandOutput extends ListSigningProfilesRes
43
43
  * nextToken: "STRING_VALUE",
44
44
  * platformId: "STRING_VALUE",
45
45
  * statuses: [ // Statuses
46
- * "STRING_VALUE",
46
+ * "Active" || "Canceled" || "Revoked",
47
47
  * ],
48
48
  * };
49
49
  * const command = new ListSigningProfilesCommand(input);
@@ -59,14 +59,14 @@ export interface ListSigningProfilesCommandOutput extends ListSigningProfilesRes
59
59
  * // },
60
60
  * // signatureValidityPeriod: { // SignatureValidityPeriod
61
61
  * // value: Number("int"),
62
- * // type: "STRING_VALUE",
62
+ * // type: "DAYS" || "MONTHS" || "YEARS",
63
63
  * // },
64
64
  * // platformId: "STRING_VALUE",
65
65
  * // platformDisplayName: "STRING_VALUE",
66
66
  * // signingParameters: { // SigningParameters
67
67
  * // "<keys>": "STRING_VALUE",
68
68
  * // },
69
- * // status: "STRING_VALUE",
69
+ * // status: "Active" || "Canceled" || "Revoked",
70
70
  * // arn: "STRING_VALUE",
71
71
  * // tags: { // TagMap
72
72
  * // "<keys>": "STRING_VALUE",