@aws-sdk/client-signer 3.52.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-signer
package/dist-cjs/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SignerServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Signer"), exports);
5
6
  tslib_1.__exportStar(require("./SignerClient"), exports);
@@ -7,3 +8,5 @@ tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
9
10
  tslib_1.__exportStar(require("./waiters"), exports);
11
+ var SignerServiceException_1 = require("./models/SignerServiceException");
12
+ Object.defineProperty(exports, "SignerServiceException", { enumerable: true, get: function () { return SignerServiceException_1.SignerServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SignerServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class SignerServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, SignerServiceException.prototype);
9
+ }
10
+ }
11
+ exports.SignerServiceException = SignerServiceException;
@@ -1,7 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartSigningJobResponse = exports.StartSigningJobRequest = exports.RevokeSigningProfileRequest = exports.RevokeSignatureRequest = exports.RemoveProfilePermissionResponse = exports.RemoveProfilePermissionRequest = exports.PutSigningProfileResponse = exports.PutSigningProfileRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSigningProfilesResponse = exports.SigningProfile = exports.ListSigningProfilesRequest = exports.ListSigningPlatformsResponse = exports.SigningPlatform = exports.ListSigningPlatformsRequest = exports.ListSigningJobsResponse = exports.SigningJob = exports.ListSigningJobsRequest = exports.ListProfilePermissionsResponse = exports.Permission = exports.ListProfilePermissionsRequest = exports.GetSigningProfileResponse = exports.SignatureValidityPeriod = exports.SigningProfileRevocationRecord = exports.GetSigningProfileRequest = exports.GetSigningPlatformResponse = exports.SigningImageFormat = exports.SigningConfiguration = exports.HashAlgorithmOptions = exports.GetSigningPlatformRequest = exports.EncryptionAlgorithmOptions = exports.Destination = exports.S3Destination = exports.DescribeSigningJobResponse = exports.Source = exports.S3Source = exports.SigningMaterial = exports.SignedObject = exports.S3SignedObject = exports.SigningJobRevocationRecord = exports.SigningPlatformOverrides = exports.SigningConfigurationOverrides = exports.DescribeSigningJobRequest = exports.CancelSigningProfileRequest = exports.AddProfilePermissionResponse = exports.AddProfilePermissionRequest = void 0;
4
- exports.UntagResourceResponse = void 0;
3
+ exports.PutSigningProfileResponse = exports.PutSigningProfileRequest = exports.NotFoundException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSigningProfilesResponse = exports.SigningProfile = exports.ListSigningProfilesRequest = exports.ListSigningPlatformsResponse = exports.SigningPlatform = exports.ListSigningPlatformsRequest = exports.ListSigningJobsResponse = exports.SigningJob = exports.ListSigningJobsRequest = exports.ListProfilePermissionsResponse = exports.Permission = exports.ListProfilePermissionsRequest = exports.GetSigningProfileResponse = exports.SignatureValidityPeriod = exports.SigningProfileRevocationRecord = exports.GetSigningProfileRequest = exports.GetSigningPlatformResponse = exports.SigningImageFormat = exports.SigningConfiguration = exports.HashAlgorithmOptions = exports.GetSigningPlatformRequest = exports.EncryptionAlgorithmOptions = exports.Destination = exports.S3Destination = exports.DescribeSigningJobResponse = exports.Source = exports.S3Source = exports.SigningMaterial = exports.SignedObject = exports.S3SignedObject = exports.SigningJobRevocationRecord = exports.SigningPlatformOverrides = exports.SigningConfigurationOverrides = exports.DescribeSigningJobRequest = exports.CancelSigningProfileRequest = exports.BadRequestException = exports.ValidationException = exports.TooManyRequestsException = exports.ServiceLimitExceededException = exports.ResourceNotFoundException = exports.InternalServiceErrorException = exports.ConflictException = exports.AddProfilePermissionResponse = exports.AddProfilePermissionRequest = exports.AccessDeniedException = void 0;
4
+ exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ThrottlingException = exports.StartSigningJobResponse = exports.StartSigningJobRequest = exports.RevokeSigningProfileRequest = exports.RevokeSignatureRequest = exports.RemoveProfilePermissionResponse = exports.RemoveProfilePermissionRequest = void 0;
5
+ const SignerServiceException_1 = require("./SignerServiceException");
6
+ class AccessDeniedException extends SignerServiceException_1.SignerServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.code = opts.code;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
5
20
  var AddProfilePermissionRequest;
6
21
  (function (AddProfilePermissionRequest) {
7
22
  AddProfilePermissionRequest.filterSensitiveLog = (obj) => ({
@@ -14,6 +29,104 @@ var AddProfilePermissionResponse;
14
29
  ...obj,
15
30
  });
16
31
  })(AddProfilePermissionResponse = exports.AddProfilePermissionResponse || (exports.AddProfilePermissionResponse = {}));
32
+ class ConflictException extends SignerServiceException_1.SignerServiceException {
33
+ constructor(opts) {
34
+ super({
35
+ name: "ConflictException",
36
+ $fault: "client",
37
+ ...opts,
38
+ });
39
+ this.name = "ConflictException";
40
+ this.$fault = "client";
41
+ Object.setPrototypeOf(this, ConflictException.prototype);
42
+ this.code = opts.code;
43
+ }
44
+ }
45
+ exports.ConflictException = ConflictException;
46
+ class InternalServiceErrorException extends SignerServiceException_1.SignerServiceException {
47
+ constructor(opts) {
48
+ super({
49
+ name: "InternalServiceErrorException",
50
+ $fault: "server",
51
+ ...opts,
52
+ });
53
+ this.name = "InternalServiceErrorException";
54
+ this.$fault = "server";
55
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
56
+ this.code = opts.code;
57
+ }
58
+ }
59
+ exports.InternalServiceErrorException = InternalServiceErrorException;
60
+ class ResourceNotFoundException extends SignerServiceException_1.SignerServiceException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "ResourceNotFoundException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ this.name = "ResourceNotFoundException";
68
+ this.$fault = "client";
69
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
70
+ this.code = opts.code;
71
+ }
72
+ }
73
+ exports.ResourceNotFoundException = ResourceNotFoundException;
74
+ class ServiceLimitExceededException extends SignerServiceException_1.SignerServiceException {
75
+ constructor(opts) {
76
+ super({
77
+ name: "ServiceLimitExceededException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ this.name = "ServiceLimitExceededException";
82
+ this.$fault = "client";
83
+ Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
84
+ this.code = opts.code;
85
+ }
86
+ }
87
+ exports.ServiceLimitExceededException = ServiceLimitExceededException;
88
+ class TooManyRequestsException extends SignerServiceException_1.SignerServiceException {
89
+ constructor(opts) {
90
+ super({
91
+ name: "TooManyRequestsException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ this.name = "TooManyRequestsException";
96
+ this.$fault = "client";
97
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
98
+ this.code = opts.code;
99
+ }
100
+ }
101
+ exports.TooManyRequestsException = TooManyRequestsException;
102
+ class ValidationException extends SignerServiceException_1.SignerServiceException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "ValidationException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "ValidationException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, ValidationException.prototype);
112
+ this.code = opts.code;
113
+ }
114
+ }
115
+ exports.ValidationException = ValidationException;
116
+ class BadRequestException extends SignerServiceException_1.SignerServiceException {
117
+ constructor(opts) {
118
+ super({
119
+ name: "BadRequestException",
120
+ $fault: "client",
121
+ ...opts,
122
+ });
123
+ this.name = "BadRequestException";
124
+ this.$fault = "client";
125
+ Object.setPrototypeOf(this, BadRequestException.prototype);
126
+ this.code = opts.code;
127
+ }
128
+ }
129
+ exports.BadRequestException = BadRequestException;
17
130
  var CancelSigningProfileRequest;
18
131
  (function (CancelSigningProfileRequest) {
19
132
  CancelSigningProfileRequest.filterSensitiveLog = (obj) => ({
@@ -236,6 +349,20 @@ var ListTagsForResourceResponse;
236
349
  ...obj,
237
350
  });
238
351
  })(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
352
+ class NotFoundException extends SignerServiceException_1.SignerServiceException {
353
+ constructor(opts) {
354
+ super({
355
+ name: "NotFoundException",
356
+ $fault: "client",
357
+ ...opts,
358
+ });
359
+ this.name = "NotFoundException";
360
+ this.$fault = "client";
361
+ Object.setPrototypeOf(this, NotFoundException.prototype);
362
+ this.code = opts.code;
363
+ }
364
+ }
365
+ exports.NotFoundException = NotFoundException;
239
366
  var PutSigningProfileRequest;
240
367
  (function (PutSigningProfileRequest) {
241
368
  PutSigningProfileRequest.filterSensitiveLog = (obj) => ({
@@ -284,6 +411,20 @@ var StartSigningJobResponse;
284
411
  ...obj,
285
412
  });
286
413
  })(StartSigningJobResponse = exports.StartSigningJobResponse || (exports.StartSigningJobResponse = {}));
414
+ class ThrottlingException extends SignerServiceException_1.SignerServiceException {
415
+ constructor(opts) {
416
+ super({
417
+ name: "ThrottlingException",
418
+ $fault: "client",
419
+ ...opts,
420
+ });
421
+ this.name = "ThrottlingException";
422
+ this.$fault = "client";
423
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
424
+ this.code = opts.code;
425
+ }
426
+ }
427
+ exports.ThrottlingException = ThrottlingException;
287
428
  var TagResourceRequest;
288
429
  (function (TagResourceRequest) {
289
430
  TagResourceRequest.filterSensitiveLog = (obj) => ({