@aws-sdk/client-datazone 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.DataZoneServiceException = 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 DataZoneServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, DataZoneServiceException.prototype);
10
+ }
11
+ }
12
+ exports.DataZoneServiceException = DataZoneServiceException;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceQuotaExceededException = exports.ValidationException = exports.UnauthorizedException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const DataZoneServiceException_1 = require("./DataZoneServiceException");
5
+ class AccessDeniedException extends DataZoneServiceException_1.DataZoneServiceException {
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 DataZoneServiceException_1.DataZoneServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ class InternalServerException extends DataZoneServiceException_1.DataZoneServiceException {
32
+ name = "InternalServerException";
33
+ $fault = "server";
34
+ $retryable = {};
35
+ constructor(opts) {
36
+ super({
37
+ name: "InternalServerException",
38
+ $fault: "server",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, InternalServerException.prototype);
42
+ }
43
+ }
44
+ exports.InternalServerException = InternalServerException;
45
+ class ResourceNotFoundException extends DataZoneServiceException_1.DataZoneServiceException {
46
+ name = "ResourceNotFoundException";
47
+ $fault = "client";
48
+ constructor(opts) {
49
+ super({
50
+ name: "ResourceNotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
55
+ }
56
+ }
57
+ exports.ResourceNotFoundException = ResourceNotFoundException;
58
+ class ThrottlingException extends DataZoneServiceException_1.DataZoneServiceException {
59
+ name = "ThrottlingException";
60
+ $fault = "client";
61
+ $retryable = {};
62
+ constructor(opts) {
63
+ super({
64
+ name: "ThrottlingException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
69
+ }
70
+ }
71
+ exports.ThrottlingException = ThrottlingException;
72
+ class UnauthorizedException extends DataZoneServiceException_1.DataZoneServiceException {
73
+ name = "UnauthorizedException";
74
+ $fault = "client";
75
+ constructor(opts) {
76
+ super({
77
+ name: "UnauthorizedException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
82
+ }
83
+ }
84
+ exports.UnauthorizedException = UnauthorizedException;
85
+ class ValidationException extends DataZoneServiceException_1.DataZoneServiceException {
86
+ name = "ValidationException";
87
+ $fault = "client";
88
+ constructor(opts) {
89
+ super({
90
+ name: "ValidationException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, ValidationException.prototype);
95
+ }
96
+ }
97
+ exports.ValidationException = ValidationException;
98
+ class ServiceQuotaExceededException extends DataZoneServiceException_1.DataZoneServiceException {
99
+ name = "ServiceQuotaExceededException";
100
+ $fault = "client";
101
+ constructor(opts) {
102
+ super({
103
+ name: "ServiceQuotaExceededException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
108
+ }
109
+ }
110
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
@@ -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.datazone",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-05-10",
33
35
  serviceTarget: "DataZone",
34
36
  },