@aws-sdk/client-pca-connector-ad 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PcaConnectorAdServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class PcaConnectorAdServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, PcaConnectorAdServiceException.prototype);
10
+ }
11
+ }
12
+ exports.PcaConnectorAdServiceException = PcaConnectorAdServiceException;
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const PcaConnectorAdServiceException_1 = require("./PcaConnectorAdServiceException");
5
+ class AccessDeniedException extends PcaConnectorAdServiceException_1.PcaConnectorAdServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class ConflictException extends PcaConnectorAdServiceException_1.PcaConnectorAdServiceException {
21
+ name = "ConflictException";
22
+ $fault = "client";
23
+ Message;
24
+ ResourceId;
25
+ ResourceType;
26
+ constructor(opts) {
27
+ super({
28
+ name: "ConflictException",
29
+ $fault: "client",
30
+ ...opts,
31
+ });
32
+ Object.setPrototypeOf(this, ConflictException.prototype);
33
+ this.Message = opts.Message;
34
+ this.ResourceId = opts.ResourceId;
35
+ this.ResourceType = opts.ResourceType;
36
+ }
37
+ }
38
+ exports.ConflictException = ConflictException;
39
+ class InternalServerException extends PcaConnectorAdServiceException_1.PcaConnectorAdServiceException {
40
+ name = "InternalServerException";
41
+ $fault = "server";
42
+ $retryable = {};
43
+ Message;
44
+ constructor(opts) {
45
+ super({
46
+ name: "InternalServerException",
47
+ $fault: "server",
48
+ ...opts,
49
+ });
50
+ Object.setPrototypeOf(this, InternalServerException.prototype);
51
+ this.Message = opts.Message;
52
+ }
53
+ }
54
+ exports.InternalServerException = InternalServerException;
55
+ class ResourceNotFoundException extends PcaConnectorAdServiceException_1.PcaConnectorAdServiceException {
56
+ name = "ResourceNotFoundException";
57
+ $fault = "client";
58
+ Message;
59
+ ResourceId;
60
+ ResourceType;
61
+ constructor(opts) {
62
+ super({
63
+ name: "ResourceNotFoundException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
68
+ this.Message = opts.Message;
69
+ this.ResourceId = opts.ResourceId;
70
+ this.ResourceType = opts.ResourceType;
71
+ }
72
+ }
73
+ exports.ResourceNotFoundException = ResourceNotFoundException;
74
+ class ServiceQuotaExceededException extends PcaConnectorAdServiceException_1.PcaConnectorAdServiceException {
75
+ name = "ServiceQuotaExceededException";
76
+ $fault = "client";
77
+ Message;
78
+ ResourceId;
79
+ ResourceType;
80
+ ServiceCode;
81
+ QuotaCode;
82
+ constructor(opts) {
83
+ super({
84
+ name: "ServiceQuotaExceededException",
85
+ $fault: "client",
86
+ ...opts,
87
+ });
88
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
89
+ this.Message = opts.Message;
90
+ this.ResourceId = opts.ResourceId;
91
+ this.ResourceType = opts.ResourceType;
92
+ this.ServiceCode = opts.ServiceCode;
93
+ this.QuotaCode = opts.QuotaCode;
94
+ }
95
+ }
96
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
97
+ class ThrottlingException extends PcaConnectorAdServiceException_1.PcaConnectorAdServiceException {
98
+ name = "ThrottlingException";
99
+ $fault = "client";
100
+ $retryable = {
101
+ throttling: true,
102
+ };
103
+ Message;
104
+ ServiceCode;
105
+ QuotaCode;
106
+ constructor(opts) {
107
+ super({
108
+ name: "ThrottlingException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
113
+ this.Message = opts.Message;
114
+ this.ServiceCode = opts.ServiceCode;
115
+ this.QuotaCode = opts.QuotaCode;
116
+ }
117
+ }
118
+ exports.ThrottlingException = ThrottlingException;
119
+ class ValidationException extends PcaConnectorAdServiceException_1.PcaConnectorAdServiceException {
120
+ name = "ValidationException";
121
+ $fault = "client";
122
+ Message;
123
+ Reason;
124
+ constructor(opts) {
125
+ super({
126
+ name: "ValidationException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, ValidationException.prototype);
131
+ this.Message = opts.Message;
132
+ this.Reason = opts.Reason;
133
+ }
134
+ }
135
+ exports.ValidationException = ValidationException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-05-10",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.pcaconnectorad",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-05-10",
33
35
  serviceTarget: "PcaConnectorAd",
34
36
  },