@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
package/README.md CHANGED
@@ -9,20 +9,18 @@ AWS SDK for JavaScript Signer Client for Node.js, Browser and React Native.
9
9
  <p>AWS Signer is a fully managed code signing service to help you ensure the trust and
10
10
  integrity of your code. </p>
11
11
  <p>AWS Signer supports the following applications:</p>
12
-
13
- <p>With <i>code signing for AWS Lambda</i>, you can sign AWS Lambda
14
- deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch,
15
- and AWS CloudTrail. In order to sign code, you create a signing profile and then use
16
- Signer to sign Lambda zip files in S3. </p>
17
-
18
- <p>With <i>code signing for IoT</i>, you can sign code for any IoT device that is
19
- 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
20
- integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign
21
- code, you import a third-party code signing certificate using ACM, and use that to
22
- sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
23
- <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>
24
-
25
- <p></p>
12
+ <p>With code signing for AWS Lambda, you can sign <a href="http://docs.aws.amazon.com/lambda/latest/dg/">AWS
13
+ 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
14
+ CloudWatch</a>, and <a href="http://docs.aws.amazon.com/awscloudtrail/latest/userguide/">AWS CloudTrail</a>. In order
15
+ to sign code, you create a signing profile and then use Signer to sign Lambda zip files
16
+ in S3. </p>
17
+ <p>With code signing for IoT, you can sign code for any IoT device that is supported by AWS.
18
+ 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
19
+ certificate using ACM, and use that to sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
20
+ <p>With code signing for
21
+ containers …(TBD)</p>
22
+ <p>For more information about AWS Signer, see the <a href="https://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer
23
+ Guide</a>.</p>
26
24
 
27
25
  ## Installing
28
26
 
@@ -242,6 +240,14 @@ DescribeSigningJob
242
240
 
243
241
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/classes/describesigningjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/describesigningjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/describesigningjobcommandoutput.html)
244
242
 
243
+ </details>
244
+ <details>
245
+ <summary>
246
+ GetRevocationStatus
247
+ </summary>
248
+
249
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/classes/getrevocationstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/getrevocationstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/getrevocationstatuscommandoutput.html)
250
+
245
251
  </details>
246
252
  <details>
247
253
  <summary>
@@ -330,6 +336,14 @@ RevokeSigningProfile
330
336
 
331
337
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/classes/revokesigningprofilecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/revokesigningprofilecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/revokesigningprofilecommandoutput.html)
332
338
 
339
+ </details>
340
+ <details>
341
+ <summary>
342
+ SignPayload
343
+ </summary>
344
+
345
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/classes/signpayloadcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/signpayloadcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-signer/interfaces/signpayloadcommandoutput.html)
346
+
333
347
  </details>
334
348
  <details>
335
349
  <summary>
@@ -5,6 +5,7 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const AddProfilePermissionCommand_1 = require("./commands/AddProfilePermissionCommand");
6
6
  const CancelSigningProfileCommand_1 = require("./commands/CancelSigningProfileCommand");
7
7
  const DescribeSigningJobCommand_1 = require("./commands/DescribeSigningJobCommand");
8
+ const GetRevocationStatusCommand_1 = require("./commands/GetRevocationStatusCommand");
8
9
  const GetSigningPlatformCommand_1 = require("./commands/GetSigningPlatformCommand");
9
10
  const GetSigningProfileCommand_1 = require("./commands/GetSigningProfileCommand");
10
11
  const ListProfilePermissionsCommand_1 = require("./commands/ListProfilePermissionsCommand");
@@ -16,6 +17,7 @@ const PutSigningProfileCommand_1 = require("./commands/PutSigningProfileCommand"
16
17
  const RemoveProfilePermissionCommand_1 = require("./commands/RemoveProfilePermissionCommand");
17
18
  const RevokeSignatureCommand_1 = require("./commands/RevokeSignatureCommand");
18
19
  const RevokeSigningProfileCommand_1 = require("./commands/RevokeSigningProfileCommand");
20
+ const SignPayloadCommand_1 = require("./commands/SignPayloadCommand");
19
21
  const StartSigningJobCommand_1 = require("./commands/StartSigningJobCommand");
20
22
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
21
23
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
@@ -24,6 +26,7 @@ const commands = {
24
26
  AddProfilePermissionCommand: AddProfilePermissionCommand_1.AddProfilePermissionCommand,
25
27
  CancelSigningProfileCommand: CancelSigningProfileCommand_1.CancelSigningProfileCommand,
26
28
  DescribeSigningJobCommand: DescribeSigningJobCommand_1.DescribeSigningJobCommand,
29
+ GetRevocationStatusCommand: GetRevocationStatusCommand_1.GetRevocationStatusCommand,
27
30
  GetSigningPlatformCommand: GetSigningPlatformCommand_1.GetSigningPlatformCommand,
28
31
  GetSigningProfileCommand: GetSigningProfileCommand_1.GetSigningProfileCommand,
29
32
  ListProfilePermissionsCommand: ListProfilePermissionsCommand_1.ListProfilePermissionsCommand,
@@ -35,6 +38,7 @@ const commands = {
35
38
  RemoveProfilePermissionCommand: RemoveProfilePermissionCommand_1.RemoveProfilePermissionCommand,
36
39
  RevokeSignatureCommand: RevokeSignatureCommand_1.RevokeSignatureCommand,
37
40
  RevokeSigningProfileCommand: RevokeSigningProfileCommand_1.RevokeSigningProfileCommand,
41
+ SignPayloadCommand: SignPayloadCommand_1.SignPayloadCommand,
38
42
  StartSigningJobCommand: StartSigningJobCommand_1.StartSigningJobCommand,
39
43
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
40
44
  UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetRevocationStatusCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class GetRevocationStatusCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetRevocationStatusCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SignerClient";
28
+ const commandName = "GetRevocationStatusCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_GetRevocationStatusCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_GetRevocationStatusCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetRevocationStatusCommand = GetRevocationStatusCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SignPayloadCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class SignPayloadCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SignPayloadCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SignerClient";
28
+ const commandName = "SignPayloadCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_SignPayloadCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_SignPayloadCommand)(output, context);
44
+ }
45
+ }
46
+ exports.SignPayloadCommand = SignPayloadCommand;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AddProfilePermissionCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CancelSigningProfileCommand"), exports);
6
6
  tslib_1.__exportStar(require("./DescribeSigningJobCommand"), exports);
7
+ tslib_1.__exportStar(require("./GetRevocationStatusCommand"), exports);
7
8
  tslib_1.__exportStar(require("./GetSigningPlatformCommand"), exports);
8
9
  tslib_1.__exportStar(require("./GetSigningProfileCommand"), exports);
9
10
  tslib_1.__exportStar(require("./ListProfilePermissionsCommand"), exports);
@@ -15,6 +16,7 @@ tslib_1.__exportStar(require("./PutSigningProfileCommand"), exports);
15
16
  tslib_1.__exportStar(require("./RemoveProfilePermissionCommand"), exports);
16
17
  tslib_1.__exportStar(require("./RevokeSignatureCommand"), exports);
17
18
  tslib_1.__exportStar(require("./RevokeSigningProfileCommand"), exports);
19
+ tslib_1.__exportStar(require("./SignPayloadCommand"), exports);
18
20
  tslib_1.__exportStar(require("./StartSigningJobCommand"), exports);
19
21
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
20
22
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://signer.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://signer.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://signer.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://signer.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThrottlingException = exports.NotFoundException = exports.BadRequestException = exports.ValidationException = exports.TooManyRequestsException = exports.ServiceLimitExceededException = exports.ResourceNotFoundException = exports.InternalServiceErrorException = exports.ConflictException = exports.AccessDeniedException = void 0;
3
+ exports.ThrottlingException = exports.NotFoundException = exports.SigningProfileStatus = exports.ValidityType = exports.SigningStatus = exports.ImageFormat = exports.HashAlgorithm = exports.EncryptionAlgorithm = exports.Category = exports.BadRequestException = exports.ValidationException = exports.TooManyRequestsException = exports.ServiceLimitExceededException = exports.ResourceNotFoundException = exports.InternalServiceErrorException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
4
  const SignerServiceException_1 = require("./SignerServiceException");
5
5
  class AccessDeniedException extends SignerServiceException_1.SignerServiceException {
6
6
  constructor(opts) {
@@ -114,6 +114,37 @@ class BadRequestException extends SignerServiceException_1.SignerServiceExceptio
114
114
  }
115
115
  }
116
116
  exports.BadRequestException = BadRequestException;
117
+ exports.Category = {
118
+ AWSIoT: "AWSIoT",
119
+ };
120
+ exports.EncryptionAlgorithm = {
121
+ ECDSA: "ECDSA",
122
+ RSA: "RSA",
123
+ };
124
+ exports.HashAlgorithm = {
125
+ SHA1: "SHA1",
126
+ SHA256: "SHA256",
127
+ };
128
+ exports.ImageFormat = {
129
+ JSON: "JSON",
130
+ JSONDetached: "JSONDetached",
131
+ JSONEmbedded: "JSONEmbedded",
132
+ };
133
+ exports.SigningStatus = {
134
+ Failed: "Failed",
135
+ InProgress: "InProgress",
136
+ Succeeded: "Succeeded",
137
+ };
138
+ exports.ValidityType = {
139
+ DAYS: "DAYS",
140
+ MONTHS: "MONTHS",
141
+ YEARS: "YEARS",
142
+ };
143
+ exports.SigningProfileStatus = {
144
+ Active: "Active",
145
+ Canceled: "Canceled",
146
+ Revoked: "Revoked",
147
+ };
117
148
  class NotFoundException extends SignerServiceException_1.SignerServiceException {
118
149
  constructor(opts) {
119
150
  super({
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartSigningJobCommand = exports.de_RevokeSigningProfileCommand = exports.de_RevokeSignatureCommand = exports.de_RemoveProfilePermissionCommand = exports.de_PutSigningProfileCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSigningProfilesCommand = exports.de_ListSigningPlatformsCommand = exports.de_ListSigningJobsCommand = exports.de_ListProfilePermissionsCommand = exports.de_GetSigningProfileCommand = exports.de_GetSigningPlatformCommand = exports.de_DescribeSigningJobCommand = exports.de_CancelSigningProfileCommand = exports.de_AddProfilePermissionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartSigningJobCommand = exports.se_RevokeSigningProfileCommand = exports.se_RevokeSignatureCommand = exports.se_RemoveProfilePermissionCommand = exports.se_PutSigningProfileCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSigningProfilesCommand = exports.se_ListSigningPlatformsCommand = exports.se_ListSigningJobsCommand = exports.se_ListProfilePermissionsCommand = exports.se_GetSigningProfileCommand = exports.se_GetSigningPlatformCommand = exports.se_DescribeSigningJobCommand = exports.se_CancelSigningProfileCommand = exports.se_AddProfilePermissionCommand = void 0;
3
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartSigningJobCommand = exports.de_SignPayloadCommand = exports.de_RevokeSigningProfileCommand = exports.de_RevokeSignatureCommand = exports.de_RemoveProfilePermissionCommand = exports.de_PutSigningProfileCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSigningProfilesCommand = exports.de_ListSigningPlatformsCommand = exports.de_ListSigningJobsCommand = exports.de_ListProfilePermissionsCommand = exports.de_GetSigningProfileCommand = exports.de_GetSigningPlatformCommand = exports.de_GetRevocationStatusCommand = exports.de_DescribeSigningJobCommand = exports.de_CancelSigningProfileCommand = exports.de_AddProfilePermissionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartSigningJobCommand = exports.se_SignPayloadCommand = exports.se_RevokeSigningProfileCommand = exports.se_RevokeSignatureCommand = exports.se_RemoveProfilePermissionCommand = exports.se_PutSigningProfileCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSigningProfilesCommand = exports.se_ListSigningPlatformsCommand = exports.se_ListSigningJobsCommand = exports.se_ListProfilePermissionsCommand = exports.se_GetSigningProfileCommand = exports.se_GetSigningPlatformCommand = exports.se_GetRevocationStatusCommand = exports.se_DescribeSigningJobCommand = exports.se_CancelSigningProfileCommand = exports.se_AddProfilePermissionCommand = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const uuid_1 = require("uuid");
@@ -67,6 +67,43 @@ const se_DescribeSigningJobCommand = async (input, context) => {
67
67
  });
68
68
  };
69
69
  exports.se_DescribeSigningJobCommand = se_DescribeSigningJobCommand;
70
+ const se_GetRevocationStatusCommand = async (input, context) => {
71
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
+ const headers = {};
73
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/revocations";
74
+ const query = (0, smithy_client_1.map)({
75
+ signatureTimestamp: [
76
+ (0, smithy_client_1.expectNonNull)(input.signatureTimestamp, `signatureTimestamp`) != null,
77
+ () => (input.signatureTimestamp.toISOString().split(".")[0] + "Z").toString(),
78
+ ],
79
+ platformId: [, (0, smithy_client_1.expectNonNull)(input.platformId, `platformId`)],
80
+ profileVersionArn: [, (0, smithy_client_1.expectNonNull)(input.profileVersionArn, `profileVersionArn`)],
81
+ jobArn: [, (0, smithy_client_1.expectNonNull)(input.jobArn, `jobArn`)],
82
+ certificateHashes: [
83
+ (0, smithy_client_1.expectNonNull)(input.certificateHashes, `certificateHashes`) != null,
84
+ () => (input.certificateHashes || []).map((_entry) => _entry),
85
+ ],
86
+ });
87
+ let body;
88
+ let { hostname: resolvedHostname } = await context.endpoint();
89
+ if (context.disableHostPrefix !== true) {
90
+ resolvedHostname = "verification." + resolvedHostname;
91
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
92
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
93
+ }
94
+ }
95
+ return new protocol_http_1.HttpRequest({
96
+ protocol,
97
+ hostname: resolvedHostname,
98
+ port,
99
+ method: "GET",
100
+ headers,
101
+ path: resolvedPath,
102
+ query,
103
+ body,
104
+ });
105
+ };
106
+ exports.se_GetRevocationStatusCommand = se_GetRevocationStatusCommand;
70
107
  const se_GetSigningPlatformCommand = async (input, context) => {
71
108
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
109
  const headers = {};
@@ -323,6 +360,30 @@ const se_RevokeSigningProfileCommand = async (input, context) => {
323
360
  });
324
361
  };
325
362
  exports.se_RevokeSigningProfileCommand = se_RevokeSigningProfileCommand;
363
+ const se_SignPayloadCommand = async (input, context) => {
364
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
365
+ const headers = {
366
+ "content-type": "application/json",
367
+ };
368
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/with-payload";
369
+ let body;
370
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
371
+ payload: (_) => context.base64Encoder(_),
372
+ payloadFormat: [],
373
+ profileName: [],
374
+ profileOwner: [],
375
+ }));
376
+ return new protocol_http_1.HttpRequest({
377
+ protocol,
378
+ hostname,
379
+ port,
380
+ method: "POST",
381
+ headers,
382
+ path: resolvedPath,
383
+ body,
384
+ });
385
+ };
386
+ exports.se_SignPayloadCommand = se_SignPayloadCommand;
326
387
  const se_StartSigningJobCommand = async (input, context) => {
327
388
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
389
  const headers = {
@@ -546,6 +607,49 @@ const de_DescribeSigningJobCommandError = async (output, context) => {
546
607
  });
547
608
  }
548
609
  };
610
+ const de_GetRevocationStatusCommand = async (output, context) => {
611
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
612
+ return de_GetRevocationStatusCommandError(output, context);
613
+ }
614
+ const contents = (0, smithy_client_1.map)({
615
+ $metadata: deserializeMetadata(output),
616
+ });
617
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
618
+ const doc = (0, smithy_client_1.take)(data, {
619
+ revokedEntities: smithy_client_1._json,
620
+ });
621
+ Object.assign(contents, doc);
622
+ return contents;
623
+ };
624
+ exports.de_GetRevocationStatusCommand = de_GetRevocationStatusCommand;
625
+ const de_GetRevocationStatusCommandError = async (output, context) => {
626
+ const parsedOutput = {
627
+ ...output,
628
+ body: await parseErrorBody(output.body, context),
629
+ };
630
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
631
+ switch (errorCode) {
632
+ case "AccessDeniedException":
633
+ case "com.amazonaws.signer#AccessDeniedException":
634
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
635
+ case "InternalServiceErrorException":
636
+ case "com.amazonaws.signer#InternalServiceErrorException":
637
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
638
+ case "TooManyRequestsException":
639
+ case "com.amazonaws.signer#TooManyRequestsException":
640
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
641
+ case "ValidationException":
642
+ case "com.amazonaws.signer#ValidationException":
643
+ throw await de_ValidationExceptionRes(parsedOutput, context);
644
+ default:
645
+ const parsedBody = parsedOutput.body;
646
+ return throwDefaultError({
647
+ output,
648
+ parsedBody,
649
+ errorCode,
650
+ });
651
+ }
652
+ };
549
653
  const de_GetSigningPlatformCommand = async (output, context) => {
550
654
  if (output.statusCode !== 200 && output.statusCode >= 300) {
551
655
  return de_GetSigningPlatformCommandError(output, context);
@@ -1055,6 +1159,55 @@ const de_RevokeSigningProfileCommandError = async (output, context) => {
1055
1159
  });
1056
1160
  }
1057
1161
  };
1162
+ const de_SignPayloadCommand = async (output, context) => {
1163
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1164
+ return de_SignPayloadCommandError(output, context);
1165
+ }
1166
+ const contents = (0, smithy_client_1.map)({
1167
+ $metadata: deserializeMetadata(output),
1168
+ });
1169
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1170
+ const doc = (0, smithy_client_1.take)(data, {
1171
+ jobId: smithy_client_1.expectString,
1172
+ jobOwner: smithy_client_1.expectString,
1173
+ metadata: smithy_client_1._json,
1174
+ signature: context.base64Decoder,
1175
+ });
1176
+ Object.assign(contents, doc);
1177
+ return contents;
1178
+ };
1179
+ exports.de_SignPayloadCommand = de_SignPayloadCommand;
1180
+ const de_SignPayloadCommandError = async (output, context) => {
1181
+ const parsedOutput = {
1182
+ ...output,
1183
+ body: await parseErrorBody(output.body, context),
1184
+ };
1185
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1186
+ switch (errorCode) {
1187
+ case "AccessDeniedException":
1188
+ case "com.amazonaws.signer#AccessDeniedException":
1189
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1190
+ case "InternalServiceErrorException":
1191
+ case "com.amazonaws.signer#InternalServiceErrorException":
1192
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1193
+ case "ResourceNotFoundException":
1194
+ case "com.amazonaws.signer#ResourceNotFoundException":
1195
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1196
+ case "TooManyRequestsException":
1197
+ case "com.amazonaws.signer#TooManyRequestsException":
1198
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1199
+ case "ValidationException":
1200
+ case "com.amazonaws.signer#ValidationException":
1201
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1202
+ default:
1203
+ const parsedBody = parsedOutput.body;
1204
+ return throwDefaultError({
1205
+ output,
1206
+ parsedBody,
1207
+ errorCode,
1208
+ });
1209
+ }
1210
+ };
1058
1211
  const de_StartSigningJobCommand = async (output, context) => {
1059
1212
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1060
1213
  return de_StartSigningJobCommandError(output, context);
package/dist-es/Signer.js CHANGED
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { AddProfilePermissionCommand, } from "./commands/AddProfilePermissionCommand";
3
3
  import { CancelSigningProfileCommand, } from "./commands/CancelSigningProfileCommand";
4
4
  import { DescribeSigningJobCommand, } from "./commands/DescribeSigningJobCommand";
5
+ import { GetRevocationStatusCommand, } from "./commands/GetRevocationStatusCommand";
5
6
  import { GetSigningPlatformCommand, } from "./commands/GetSigningPlatformCommand";
6
7
  import { GetSigningProfileCommand, } from "./commands/GetSigningProfileCommand";
7
8
  import { ListProfilePermissionsCommand, } from "./commands/ListProfilePermissionsCommand";
@@ -13,6 +14,7 @@ import { PutSigningProfileCommand, } from "./commands/PutSigningProfileCommand";
13
14
  import { RemoveProfilePermissionCommand, } from "./commands/RemoveProfilePermissionCommand";
14
15
  import { RevokeSignatureCommand, } from "./commands/RevokeSignatureCommand";
15
16
  import { RevokeSigningProfileCommand, } from "./commands/RevokeSigningProfileCommand";
17
+ import { SignPayloadCommand } from "./commands/SignPayloadCommand";
16
18
  import { StartSigningJobCommand, } from "./commands/StartSigningJobCommand";
17
19
  import { TagResourceCommand } from "./commands/TagResourceCommand";
18
20
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -21,6 +23,7 @@ const commands = {
21
23
  AddProfilePermissionCommand,
22
24
  CancelSigningProfileCommand,
23
25
  DescribeSigningJobCommand,
26
+ GetRevocationStatusCommand,
24
27
  GetSigningPlatformCommand,
25
28
  GetSigningProfileCommand,
26
29
  ListProfilePermissionsCommand,
@@ -32,6 +35,7 @@ const commands = {
32
35
  RemoveProfilePermissionCommand,
33
36
  RevokeSignatureCommand,
34
37
  RevokeSigningProfileCommand,
38
+ SignPayloadCommand,
35
39
  StartSigningJobCommand,
36
40
  TagResourceCommand,
37
41
  UntagResourceCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_GetRevocationStatusCommand, se_GetRevocationStatusCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class GetRevocationStatusCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetRevocationStatusCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SignerClient";
25
+ const commandName = "GetRevocationStatusCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_GetRevocationStatusCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_GetRevocationStatusCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_SignPayloadCommand, se_SignPayloadCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class SignPayloadCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, SignPayloadCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SignerClient";
25
+ const commandName = "SignPayloadCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_SignPayloadCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_SignPayloadCommand(output, context);
41
+ }
42
+ }
@@ -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";
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://signer.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://signer.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://signer-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://signer.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://signer.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;