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