@aws-sdk/client-bedrock-agent-runtime 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.
- package/dist-cjs/index.js +50 -3297
- package/dist-cjs/models/BedrockAgentRuntimeServiceException.js +12 -0
- package/dist-cjs/models/errors.js +140 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +2805 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +78 -72
- package/dist-types/schemas/schemas_0.d.ts +17 -10
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -10
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BedrockAgentRuntimeServiceException = 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 BedrockAgentRuntimeServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, BedrockAgentRuntimeServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.BedrockAgentRuntimeServiceException = BedrockAgentRuntimeServiceException;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModelNotReadyException = exports.ServiceQuotaExceededException = exports.DependencyFailedException = exports.ConflictException = exports.BadGatewayException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const BedrockAgentRuntimeServiceException_1 = require("./BedrockAgentRuntimeServiceException");
|
|
5
|
+
class AccessDeniedException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
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 BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
19
|
+
name = "InternalServerException";
|
|
20
|
+
$fault = "server";
|
|
21
|
+
reason;
|
|
22
|
+
constructor(opts) {
|
|
23
|
+
super({
|
|
24
|
+
name: "InternalServerException",
|
|
25
|
+
$fault: "server",
|
|
26
|
+
...opts,
|
|
27
|
+
});
|
|
28
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
29
|
+
this.reason = opts.reason;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.InternalServerException = InternalServerException;
|
|
33
|
+
class ResourceNotFoundException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
34
|
+
name = "ResourceNotFoundException";
|
|
35
|
+
$fault = "client";
|
|
36
|
+
constructor(opts) {
|
|
37
|
+
super({
|
|
38
|
+
name: "ResourceNotFoundException",
|
|
39
|
+
$fault: "client",
|
|
40
|
+
...opts,
|
|
41
|
+
});
|
|
42
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
46
|
+
class ThrottlingException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
47
|
+
name = "ThrottlingException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "ThrottlingException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ThrottlingException = ThrottlingException;
|
|
59
|
+
class ValidationException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
60
|
+
name = "ValidationException";
|
|
61
|
+
$fault = "client";
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "ValidationException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.ValidationException = ValidationException;
|
|
72
|
+
class BadGatewayException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
73
|
+
name = "BadGatewayException";
|
|
74
|
+
$fault = "server";
|
|
75
|
+
resourceName;
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "BadGatewayException",
|
|
79
|
+
$fault: "server",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
83
|
+
this.resourceName = opts.resourceName;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.BadGatewayException = BadGatewayException;
|
|
87
|
+
class ConflictException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
88
|
+
name = "ConflictException";
|
|
89
|
+
$fault = "client";
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "ConflictException",
|
|
93
|
+
$fault: "client",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.ConflictException = ConflictException;
|
|
100
|
+
class DependencyFailedException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
101
|
+
name = "DependencyFailedException";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
resourceName;
|
|
104
|
+
constructor(opts) {
|
|
105
|
+
super({
|
|
106
|
+
name: "DependencyFailedException",
|
|
107
|
+
$fault: "client",
|
|
108
|
+
...opts,
|
|
109
|
+
});
|
|
110
|
+
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
111
|
+
this.resourceName = opts.resourceName;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.DependencyFailedException = DependencyFailedException;
|
|
115
|
+
class ServiceQuotaExceededException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
116
|
+
name = "ServiceQuotaExceededException";
|
|
117
|
+
$fault = "client";
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "ServiceQuotaExceededException",
|
|
121
|
+
$fault: "client",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
128
|
+
class ModelNotReadyException extends BedrockAgentRuntimeServiceException_1.BedrockAgentRuntimeServiceException {
|
|
129
|
+
name = "ModelNotReadyException";
|
|
130
|
+
$fault = "client";
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "ModelNotReadyException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts,
|
|
136
|
+
});
|
|
137
|
+
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.ModelNotReadyException = ModelNotReadyException;
|
|
@@ -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: "2023-07-26",
|
|
@@ -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.bedrockagentruntime",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2023-07-26",
|
|
33
35
|
serviceTarget: "AmazonBedrockAgentRunTimeService",
|
|
34
36
|
},
|