@aws-sdk/client-rum 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.RUMServiceException = 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 RUMServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, RUMServiceException.prototype);
10
+ }
11
+ }
12
+ exports.RUMServiceException = RUMServiceException;
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PolicySizeLimitExceededException = exports.MalformedPolicyDocumentException = exports.PolicyNotFoundException = exports.InvalidPolicyRevisionIdException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const RUMServiceException_1 = require("./RUMServiceException");
5
+ class AccessDeniedException extends RUMServiceException_1.RUMServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends RUMServiceException_1.RUMServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ resourceName;
22
+ resourceType;
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.resourceName = opts.resourceName;
31
+ this.resourceType = opts.resourceType;
32
+ }
33
+ }
34
+ exports.ConflictException = ConflictException;
35
+ class InternalServerException extends RUMServiceException_1.RUMServiceException {
36
+ name = "InternalServerException";
37
+ $fault = "server";
38
+ $retryable = {};
39
+ retryAfterSeconds;
40
+ constructor(opts) {
41
+ super({
42
+ name: "InternalServerException",
43
+ $fault: "server",
44
+ ...opts,
45
+ });
46
+ Object.setPrototypeOf(this, InternalServerException.prototype);
47
+ this.retryAfterSeconds = opts.retryAfterSeconds;
48
+ }
49
+ }
50
+ exports.InternalServerException = InternalServerException;
51
+ class ResourceNotFoundException extends RUMServiceException_1.RUMServiceException {
52
+ name = "ResourceNotFoundException";
53
+ $fault = "client";
54
+ resourceName;
55
+ resourceType;
56
+ constructor(opts) {
57
+ super({
58
+ name: "ResourceNotFoundException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
63
+ this.resourceName = opts.resourceName;
64
+ this.resourceType = opts.resourceType;
65
+ }
66
+ }
67
+ exports.ResourceNotFoundException = ResourceNotFoundException;
68
+ class ServiceQuotaExceededException extends RUMServiceException_1.RUMServiceException {
69
+ name = "ServiceQuotaExceededException";
70
+ $fault = "client";
71
+ constructor(opts) {
72
+ super({
73
+ name: "ServiceQuotaExceededException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
78
+ }
79
+ }
80
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
81
+ class ThrottlingException extends RUMServiceException_1.RUMServiceException {
82
+ name = "ThrottlingException";
83
+ $fault = "client";
84
+ $retryable = {
85
+ throttling: true,
86
+ };
87
+ serviceCode;
88
+ quotaCode;
89
+ retryAfterSeconds;
90
+ constructor(opts) {
91
+ super({
92
+ name: "ThrottlingException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
97
+ this.serviceCode = opts.serviceCode;
98
+ this.quotaCode = opts.quotaCode;
99
+ this.retryAfterSeconds = opts.retryAfterSeconds;
100
+ }
101
+ }
102
+ exports.ThrottlingException = ThrottlingException;
103
+ class ValidationException extends RUMServiceException_1.RUMServiceException {
104
+ name = "ValidationException";
105
+ $fault = "client";
106
+ constructor(opts) {
107
+ super({
108
+ name: "ValidationException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, ValidationException.prototype);
113
+ }
114
+ }
115
+ exports.ValidationException = ValidationException;
116
+ class InvalidPolicyRevisionIdException extends RUMServiceException_1.RUMServiceException {
117
+ name = "InvalidPolicyRevisionIdException";
118
+ $fault = "client";
119
+ constructor(opts) {
120
+ super({
121
+ name: "InvalidPolicyRevisionIdException",
122
+ $fault: "client",
123
+ ...opts,
124
+ });
125
+ Object.setPrototypeOf(this, InvalidPolicyRevisionIdException.prototype);
126
+ }
127
+ }
128
+ exports.InvalidPolicyRevisionIdException = InvalidPolicyRevisionIdException;
129
+ class PolicyNotFoundException extends RUMServiceException_1.RUMServiceException {
130
+ name = "PolicyNotFoundException";
131
+ $fault = "client";
132
+ constructor(opts) {
133
+ super({
134
+ name: "PolicyNotFoundException",
135
+ $fault: "client",
136
+ ...opts,
137
+ });
138
+ Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
139
+ }
140
+ }
141
+ exports.PolicyNotFoundException = PolicyNotFoundException;
142
+ class MalformedPolicyDocumentException extends RUMServiceException_1.RUMServiceException {
143
+ name = "MalformedPolicyDocumentException";
144
+ $fault = "client";
145
+ constructor(opts) {
146
+ super({
147
+ name: "MalformedPolicyDocumentException",
148
+ $fault: "client",
149
+ ...opts,
150
+ });
151
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
152
+ }
153
+ }
154
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
155
+ class PolicySizeLimitExceededException extends RUMServiceException_1.RUMServiceException {
156
+ name = "PolicySizeLimitExceededException";
157
+ $fault = "client";
158
+ constructor(opts) {
159
+ super({
160
+ name: "PolicySizeLimitExceededException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, PolicySizeLimitExceededException.prototype);
165
+ }
166
+ }
167
+ exports.PolicySizeLimitExceededException = PolicySizeLimitExceededException;
@@ -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.rum",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-05-10",
33
35
  serviceTarget: "RUM",
34
36
  },