@aws-sdk/client-bedrock 3.490.0 → 3.495.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/Bedrock.js +1 -51
- package/dist-cjs/BedrockClient.js +1 -43
- package/dist-cjs/commands/CreateModelCustomizationJobCommand.js +1 -28
- package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomModelCommand.js +1 -28
- package/dist-cjs/commands/DeleteModelInvocationLoggingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/GetCustomModelCommand.js +1 -28
- package/dist-cjs/commands/GetFoundationModelCommand.js +1 -28
- package/dist-cjs/commands/GetModelCustomizationJobCommand.js +1 -28
- package/dist-cjs/commands/GetModelInvocationLoggingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/ListCustomModelsCommand.js +1 -28
- package/dist-cjs/commands/ListFoundationModelsCommand.js +1 -28
- package/dist-cjs/commands/ListModelCustomizationJobsCommand.js +1 -28
- package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutModelInvocationLoggingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/StopModelCustomizationJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -23
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2273 -11
- package/dist-cjs/models/BedrockServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -167
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCustomModelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListModelCustomizationJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1505
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
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;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,167 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FineTuningJobStatus = exports.SortJobsBy = exports.ModelCustomizationJobStatus = exports.SortByProvisionedModels = exports.ProvisionedModelStatus = exports.TooManyTagsException = exports.ServiceQuotaExceededException = exports.CommitmentDuration = exports.SortOrder = exports.SortModelsBy = exports.FoundationModelLifecycleStatus = exports.ModelModality = exports.InferenceType = exports.ModelCustomization = exports.CustomizationType = exports.ResourceNotFoundException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const BedrockServiceException_1 = require("./BedrockServiceException");
|
|
5
|
-
class AccessDeniedException extends BedrockServiceException_1.BedrockServiceException {
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "AccessDeniedException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
this.name = "AccessDeniedException";
|
|
13
|
-
this.$fault = "client";
|
|
14
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
-
class InternalServerException extends BedrockServiceException_1.BedrockServiceException {
|
|
19
|
-
constructor(opts) {
|
|
20
|
-
super({
|
|
21
|
-
name: "InternalServerException",
|
|
22
|
-
$fault: "server",
|
|
23
|
-
...opts,
|
|
24
|
-
});
|
|
25
|
-
this.name = "InternalServerException";
|
|
26
|
-
this.$fault = "server";
|
|
27
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.InternalServerException = InternalServerException;
|
|
31
|
-
class ThrottlingException extends BedrockServiceException_1.BedrockServiceException {
|
|
32
|
-
constructor(opts) {
|
|
33
|
-
super({
|
|
34
|
-
name: "ThrottlingException",
|
|
35
|
-
$fault: "client",
|
|
36
|
-
...opts,
|
|
37
|
-
});
|
|
38
|
-
this.name = "ThrottlingException";
|
|
39
|
-
this.$fault = "client";
|
|
40
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.ThrottlingException = ThrottlingException;
|
|
44
|
-
class ValidationException extends BedrockServiceException_1.BedrockServiceException {
|
|
45
|
-
constructor(opts) {
|
|
46
|
-
super({
|
|
47
|
-
name: "ValidationException",
|
|
48
|
-
$fault: "client",
|
|
49
|
-
...opts,
|
|
50
|
-
});
|
|
51
|
-
this.name = "ValidationException";
|
|
52
|
-
this.$fault = "client";
|
|
53
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.ValidationException = ValidationException;
|
|
57
|
-
class ConflictException extends BedrockServiceException_1.BedrockServiceException {
|
|
58
|
-
constructor(opts) {
|
|
59
|
-
super({
|
|
60
|
-
name: "ConflictException",
|
|
61
|
-
$fault: "client",
|
|
62
|
-
...opts,
|
|
63
|
-
});
|
|
64
|
-
this.name = "ConflictException";
|
|
65
|
-
this.$fault = "client";
|
|
66
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.ConflictException = ConflictException;
|
|
70
|
-
class ResourceNotFoundException extends BedrockServiceException_1.BedrockServiceException {
|
|
71
|
-
constructor(opts) {
|
|
72
|
-
super({
|
|
73
|
-
name: "ResourceNotFoundException",
|
|
74
|
-
$fault: "client",
|
|
75
|
-
...opts,
|
|
76
|
-
});
|
|
77
|
-
this.name = "ResourceNotFoundException";
|
|
78
|
-
this.$fault = "client";
|
|
79
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
83
|
-
exports.CustomizationType = {
|
|
84
|
-
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
85
|
-
FINE_TUNING: "FINE_TUNING",
|
|
86
|
-
};
|
|
87
|
-
exports.ModelCustomization = {
|
|
88
|
-
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
89
|
-
FINE_TUNING: "FINE_TUNING",
|
|
90
|
-
};
|
|
91
|
-
exports.InferenceType = {
|
|
92
|
-
ON_DEMAND: "ON_DEMAND",
|
|
93
|
-
PROVISIONED: "PROVISIONED",
|
|
94
|
-
};
|
|
95
|
-
exports.ModelModality = {
|
|
96
|
-
EMBEDDING: "EMBEDDING",
|
|
97
|
-
IMAGE: "IMAGE",
|
|
98
|
-
TEXT: "TEXT",
|
|
99
|
-
};
|
|
100
|
-
exports.FoundationModelLifecycleStatus = {
|
|
101
|
-
ACTIVE: "ACTIVE",
|
|
102
|
-
LEGACY: "LEGACY",
|
|
103
|
-
};
|
|
104
|
-
exports.SortModelsBy = {
|
|
105
|
-
CREATION_TIME: "CreationTime",
|
|
106
|
-
};
|
|
107
|
-
exports.SortOrder = {
|
|
108
|
-
ASCENDING: "Ascending",
|
|
109
|
-
DESCENDING: "Descending",
|
|
110
|
-
};
|
|
111
|
-
exports.CommitmentDuration = {
|
|
112
|
-
ONE_MONTH: "OneMonth",
|
|
113
|
-
SIX_MONTHS: "SixMonths",
|
|
114
|
-
};
|
|
115
|
-
class ServiceQuotaExceededException extends BedrockServiceException_1.BedrockServiceException {
|
|
116
|
-
constructor(opts) {
|
|
117
|
-
super({
|
|
118
|
-
name: "ServiceQuotaExceededException",
|
|
119
|
-
$fault: "client",
|
|
120
|
-
...opts,
|
|
121
|
-
});
|
|
122
|
-
this.name = "ServiceQuotaExceededException";
|
|
123
|
-
this.$fault = "client";
|
|
124
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
128
|
-
class TooManyTagsException extends BedrockServiceException_1.BedrockServiceException {
|
|
129
|
-
constructor(opts) {
|
|
130
|
-
super({
|
|
131
|
-
name: "TooManyTagsException",
|
|
132
|
-
$fault: "client",
|
|
133
|
-
...opts,
|
|
134
|
-
});
|
|
135
|
-
this.name = "TooManyTagsException";
|
|
136
|
-
this.$fault = "client";
|
|
137
|
-
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
138
|
-
this.resourceName = opts.resourceName;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
exports.TooManyTagsException = TooManyTagsException;
|
|
142
|
-
exports.ProvisionedModelStatus = {
|
|
143
|
-
CREATING: "Creating",
|
|
144
|
-
FAILED: "Failed",
|
|
145
|
-
IN_SERVICE: "InService",
|
|
146
|
-
UPDATING: "Updating",
|
|
147
|
-
};
|
|
148
|
-
exports.SortByProvisionedModels = {
|
|
149
|
-
CREATION_TIME: "CreationTime",
|
|
150
|
-
};
|
|
151
|
-
exports.ModelCustomizationJobStatus = {
|
|
152
|
-
COMPLETED: "Completed",
|
|
153
|
-
FAILED: "Failed",
|
|
154
|
-
IN_PROGRESS: "InProgress",
|
|
155
|
-
STOPPED: "Stopped",
|
|
156
|
-
STOPPING: "Stopping",
|
|
157
|
-
};
|
|
158
|
-
exports.SortJobsBy = {
|
|
159
|
-
CREATION_TIME: "CreationTime",
|
|
160
|
-
};
|
|
161
|
-
exports.FineTuningJobStatus = {
|
|
162
|
-
COMPLETED: "Completed",
|
|
163
|
-
FAILED: "Failed",
|
|
164
|
-
IN_PROGRESS: "InProgress",
|
|
165
|
-
STOPPED: "Stopped",
|
|
166
|
-
STOPPING: "Stopping",
|
|
167
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListCustomModels = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const BedrockClient_1 = require("../BedrockClient");
|
|
6
|
-
const ListCustomModelsCommand_1 = require("../commands/ListCustomModelsCommand");
|
|
7
|
-
exports.paginateListCustomModels = (0, core_1.createPaginator)(BedrockClient_1.BedrockClient, ListCustomModelsCommand_1.ListCustomModelsCommand, "nextToken", "nextToken", "maxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListModelCustomizationJobs = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const BedrockClient_1 = require("../BedrockClient");
|
|
6
|
-
const ListModelCustomizationJobsCommand_1 = require("../commands/ListModelCustomizationJobsCommand");
|
|
7
|
-
exports.paginateListModelCustomizationJobs = (0, core_1.createPaginator)(BedrockClient_1.BedrockClient, ListModelCustomizationJobsCommand_1.ListModelCustomizationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListProvisionedModelThroughputs = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const BedrockClient_1 = require("../BedrockClient");
|
|
6
|
-
const ListProvisionedModelThroughputsCommand_1 = require("../commands/ListProvisionedModelThroughputsCommand");
|
|
7
|
-
exports.paginateListProvisionedModelThroughputs = (0, core_1.createPaginator)(BedrockClient_1.BedrockClient, ListProvisionedModelThroughputsCommand_1.ListProvisionedModelThroughputsCommand, "nextToken", "nextToken", "maxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ListCustomModelsPaginator"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ListModelCustomizationJobsPaginator"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./ListProvisionedModelThroughputsPaginator"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|