@aws-sdk/client-bedrock 3.422.1 → 3.423.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/README.md +40 -0
- package/dist-cjs/Bedrock.js +10 -0
- package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +51 -0
- package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +25 -12
- package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +386 -1
- package/dist-es/Bedrock.js +10 -0
- package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/GetProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +47 -0
- package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +22 -9
- package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +376 -1
- package/dist-types/Bedrock.d.ts +35 -0
- package/dist-types/BedrockClient.d.ts +7 -2
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +8 -8
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +106 -0
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +89 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +100 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +109 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +370 -36
- package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Bedrock.d.ts +363 -115
- package/dist-types/ts3.4/BedrockClient.d.ts +238 -182
- package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +42 -149
- package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +39 -89
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +42 -78
- package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +38 -118
- package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +39 -106
- package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +42 -133
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +42 -96
- package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +38 -103
- package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +42 -108
- package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +42 -107
- package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -94
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +42 -99
- package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +42 -89
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -96
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -89
- package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -15
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -22
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -5
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -8
- package/dist-types/ts3.4/index.d.ts +7 -12
- package/dist-types/ts3.4/models/BedrockServiceException.d.ts +8 -13
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +412 -1144
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -8
- package/dist-types/ts3.4/pagination/ListCustomModelsPaginator.d.ts +11 -7
- package/dist-types/ts3.4/pagination/ListModelCustomizationJobsPaginator.d.ts +11 -7
- package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -3
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +245 -137
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -46
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -46
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -45
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -17
- package/package.json +3 -3
|
@@ -1,182 +1,238 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
1
|
+
import {
|
|
2
|
+
HostHeaderInputConfig,
|
|
3
|
+
HostHeaderResolvedConfig,
|
|
4
|
+
} from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import {
|
|
6
|
+
AwsAuthInputConfig,
|
|
7
|
+
AwsAuthResolvedConfig,
|
|
8
|
+
} from "@aws-sdk/middleware-signing";
|
|
9
|
+
import {
|
|
10
|
+
UserAgentInputConfig,
|
|
11
|
+
UserAgentResolvedConfig,
|
|
12
|
+
} from "@aws-sdk/middleware-user-agent";
|
|
13
|
+
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
14
|
+
import {
|
|
15
|
+
RegionInputConfig,
|
|
16
|
+
RegionResolvedConfig,
|
|
17
|
+
} from "@smithy/config-resolver";
|
|
18
|
+
import {
|
|
19
|
+
EndpointInputConfig,
|
|
20
|
+
EndpointResolvedConfig,
|
|
21
|
+
} from "@smithy/middleware-endpoint";
|
|
22
|
+
import {
|
|
23
|
+
RetryInputConfig,
|
|
24
|
+
RetryResolvedConfig,
|
|
25
|
+
} from "@smithy/middleware-retry";
|
|
26
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
27
|
+
import {
|
|
28
|
+
Client as __Client,
|
|
29
|
+
DefaultsMode as __DefaultsMode,
|
|
30
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
31
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
32
|
+
} from "@smithy/smithy-client";
|
|
33
|
+
import {
|
|
34
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
35
|
+
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
36
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
37
|
+
Decoder as __Decoder,
|
|
38
|
+
Encoder as __Encoder,
|
|
39
|
+
HashConstructor as __HashConstructor,
|
|
40
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
41
|
+
Logger as __Logger,
|
|
42
|
+
Provider as __Provider,
|
|
43
|
+
Provider,
|
|
44
|
+
StreamCollector as __StreamCollector,
|
|
45
|
+
UrlParser as __UrlParser,
|
|
46
|
+
UserAgent as __UserAgent,
|
|
47
|
+
} from "@smithy/types";
|
|
48
|
+
import {
|
|
49
|
+
CreateModelCustomizationJobCommandInput,
|
|
50
|
+
CreateModelCustomizationJobCommandOutput,
|
|
51
|
+
} from "./commands/CreateModelCustomizationJobCommand";
|
|
52
|
+
import {
|
|
53
|
+
CreateProvisionedModelThroughputCommandInput,
|
|
54
|
+
CreateProvisionedModelThroughputCommandOutput,
|
|
55
|
+
} from "./commands/CreateProvisionedModelThroughputCommand";
|
|
56
|
+
import {
|
|
57
|
+
DeleteCustomModelCommandInput,
|
|
58
|
+
DeleteCustomModelCommandOutput,
|
|
59
|
+
} from "./commands/DeleteCustomModelCommand";
|
|
60
|
+
import {
|
|
61
|
+
DeleteModelInvocationLoggingConfigurationCommandInput,
|
|
62
|
+
DeleteModelInvocationLoggingConfigurationCommandOutput,
|
|
63
|
+
} from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
64
|
+
import {
|
|
65
|
+
DeleteProvisionedModelThroughputCommandInput,
|
|
66
|
+
DeleteProvisionedModelThroughputCommandOutput,
|
|
67
|
+
} from "./commands/DeleteProvisionedModelThroughputCommand";
|
|
68
|
+
import {
|
|
69
|
+
GetCustomModelCommandInput,
|
|
70
|
+
GetCustomModelCommandOutput,
|
|
71
|
+
} from "./commands/GetCustomModelCommand";
|
|
72
|
+
import {
|
|
73
|
+
GetFoundationModelCommandInput,
|
|
74
|
+
GetFoundationModelCommandOutput,
|
|
75
|
+
} from "./commands/GetFoundationModelCommand";
|
|
76
|
+
import {
|
|
77
|
+
GetModelCustomizationJobCommandInput,
|
|
78
|
+
GetModelCustomizationJobCommandOutput,
|
|
79
|
+
} from "./commands/GetModelCustomizationJobCommand";
|
|
80
|
+
import {
|
|
81
|
+
GetModelInvocationLoggingConfigurationCommandInput,
|
|
82
|
+
GetModelInvocationLoggingConfigurationCommandOutput,
|
|
83
|
+
} from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
84
|
+
import {
|
|
85
|
+
GetProvisionedModelThroughputCommandInput,
|
|
86
|
+
GetProvisionedModelThroughputCommandOutput,
|
|
87
|
+
} from "./commands/GetProvisionedModelThroughputCommand";
|
|
88
|
+
import {
|
|
89
|
+
ListCustomModelsCommandInput,
|
|
90
|
+
ListCustomModelsCommandOutput,
|
|
91
|
+
} from "./commands/ListCustomModelsCommand";
|
|
92
|
+
import {
|
|
93
|
+
ListFoundationModelsCommandInput,
|
|
94
|
+
ListFoundationModelsCommandOutput,
|
|
95
|
+
} from "./commands/ListFoundationModelsCommand";
|
|
96
|
+
import {
|
|
97
|
+
ListModelCustomizationJobsCommandInput,
|
|
98
|
+
ListModelCustomizationJobsCommandOutput,
|
|
99
|
+
} from "./commands/ListModelCustomizationJobsCommand";
|
|
100
|
+
import {
|
|
101
|
+
ListProvisionedModelThroughputsCommandInput,
|
|
102
|
+
ListProvisionedModelThroughputsCommandOutput,
|
|
103
|
+
} from "./commands/ListProvisionedModelThroughputsCommand";
|
|
104
|
+
import {
|
|
105
|
+
ListTagsForResourceCommandInput,
|
|
106
|
+
ListTagsForResourceCommandOutput,
|
|
107
|
+
} from "./commands/ListTagsForResourceCommand";
|
|
108
|
+
import {
|
|
109
|
+
PutModelInvocationLoggingConfigurationCommandInput,
|
|
110
|
+
PutModelInvocationLoggingConfigurationCommandOutput,
|
|
111
|
+
} from "./commands/PutModelInvocationLoggingConfigurationCommand";
|
|
112
|
+
import {
|
|
113
|
+
StopModelCustomizationJobCommandInput,
|
|
114
|
+
StopModelCustomizationJobCommandOutput,
|
|
115
|
+
} from "./commands/StopModelCustomizationJobCommand";
|
|
116
|
+
import {
|
|
117
|
+
TagResourceCommandInput,
|
|
118
|
+
TagResourceCommandOutput,
|
|
119
|
+
} from "./commands/TagResourceCommand";
|
|
120
|
+
import {
|
|
121
|
+
UntagResourceCommandInput,
|
|
122
|
+
UntagResourceCommandOutput,
|
|
123
|
+
} from "./commands/UntagResourceCommand";
|
|
124
|
+
import {
|
|
125
|
+
UpdateProvisionedModelThroughputCommandInput,
|
|
126
|
+
UpdateProvisionedModelThroughputCommandOutput,
|
|
127
|
+
} from "./commands/UpdateProvisionedModelThroughputCommand";
|
|
128
|
+
import {
|
|
129
|
+
ClientInputEndpointParameters,
|
|
130
|
+
ClientResolvedEndpointParameters,
|
|
131
|
+
EndpointParameters,
|
|
132
|
+
} from "./endpoint/EndpointParameters";
|
|
133
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
134
|
+
export { __Client };
|
|
135
|
+
export type ServiceInputTypes =
|
|
136
|
+
| CreateModelCustomizationJobCommandInput
|
|
137
|
+
| CreateProvisionedModelThroughputCommandInput
|
|
138
|
+
| DeleteCustomModelCommandInput
|
|
139
|
+
| DeleteModelInvocationLoggingConfigurationCommandInput
|
|
140
|
+
| DeleteProvisionedModelThroughputCommandInput
|
|
141
|
+
| GetCustomModelCommandInput
|
|
142
|
+
| GetFoundationModelCommandInput
|
|
143
|
+
| GetModelCustomizationJobCommandInput
|
|
144
|
+
| GetModelInvocationLoggingConfigurationCommandInput
|
|
145
|
+
| GetProvisionedModelThroughputCommandInput
|
|
146
|
+
| ListCustomModelsCommandInput
|
|
147
|
+
| ListFoundationModelsCommandInput
|
|
148
|
+
| ListModelCustomizationJobsCommandInput
|
|
149
|
+
| ListProvisionedModelThroughputsCommandInput
|
|
150
|
+
| ListTagsForResourceCommandInput
|
|
151
|
+
| PutModelInvocationLoggingConfigurationCommandInput
|
|
152
|
+
| StopModelCustomizationJobCommandInput
|
|
153
|
+
| TagResourceCommandInput
|
|
154
|
+
| UntagResourceCommandInput
|
|
155
|
+
| UpdateProvisionedModelThroughputCommandInput;
|
|
156
|
+
export type ServiceOutputTypes =
|
|
157
|
+
| CreateModelCustomizationJobCommandOutput
|
|
158
|
+
| CreateProvisionedModelThroughputCommandOutput
|
|
159
|
+
| DeleteCustomModelCommandOutput
|
|
160
|
+
| DeleteModelInvocationLoggingConfigurationCommandOutput
|
|
161
|
+
| DeleteProvisionedModelThroughputCommandOutput
|
|
162
|
+
| GetCustomModelCommandOutput
|
|
163
|
+
| GetFoundationModelCommandOutput
|
|
164
|
+
| GetModelCustomizationJobCommandOutput
|
|
165
|
+
| GetModelInvocationLoggingConfigurationCommandOutput
|
|
166
|
+
| GetProvisionedModelThroughputCommandOutput
|
|
167
|
+
| ListCustomModelsCommandOutput
|
|
168
|
+
| ListFoundationModelsCommandOutput
|
|
169
|
+
| ListModelCustomizationJobsCommandOutput
|
|
170
|
+
| ListProvisionedModelThroughputsCommandOutput
|
|
171
|
+
| ListTagsForResourceCommandOutput
|
|
172
|
+
| PutModelInvocationLoggingConfigurationCommandOutput
|
|
173
|
+
| StopModelCustomizationJobCommandOutput
|
|
174
|
+
| TagResourceCommandOutput
|
|
175
|
+
| UntagResourceCommandOutput
|
|
176
|
+
| UpdateProvisionedModelThroughputCommandOutput;
|
|
177
|
+
export interface ClientDefaults
|
|
178
|
+
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
179
|
+
requestHandler?: __HttpHandler;
|
|
180
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
181
|
+
urlParser?: __UrlParser;
|
|
182
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
183
|
+
streamCollector?: __StreamCollector;
|
|
184
|
+
base64Decoder?: __Decoder;
|
|
185
|
+
base64Encoder?: __Encoder;
|
|
186
|
+
utf8Decoder?: __Decoder;
|
|
187
|
+
utf8Encoder?: __Encoder;
|
|
188
|
+
runtime?: string;
|
|
189
|
+
disableHostPrefix?: boolean;
|
|
190
|
+
serviceId?: string;
|
|
191
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
192
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
193
|
+
region?: string | __Provider<string>;
|
|
194
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
195
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
196
|
+
maxAttempts?: number | __Provider<number>;
|
|
197
|
+
retryMode?: string | __Provider<string>;
|
|
198
|
+
logger?: __Logger;
|
|
199
|
+
extensions?: RuntimeExtension[];
|
|
200
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
201
|
+
}
|
|
202
|
+
export type BedrockClientConfigType = Partial<
|
|
203
|
+
__SmithyConfiguration<__HttpHandlerOptions>
|
|
204
|
+
> &
|
|
205
|
+
ClientDefaults &
|
|
206
|
+
RegionInputConfig &
|
|
207
|
+
EndpointInputConfig<EndpointParameters> &
|
|
208
|
+
RetryInputConfig &
|
|
209
|
+
HostHeaderInputConfig &
|
|
210
|
+
AwsAuthInputConfig &
|
|
211
|
+
UserAgentInputConfig &
|
|
212
|
+
ClientInputEndpointParameters;
|
|
213
|
+
export interface BedrockClientConfig extends BedrockClientConfigType {}
|
|
214
|
+
export type BedrockClientResolvedConfigType =
|
|
215
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
216
|
+
Required<ClientDefaults> &
|
|
217
|
+
RuntimeExtensionsConfig &
|
|
218
|
+
RegionResolvedConfig &
|
|
219
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
220
|
+
RetryResolvedConfig &
|
|
221
|
+
HostHeaderResolvedConfig &
|
|
222
|
+
AwsAuthResolvedConfig &
|
|
223
|
+
UserAgentResolvedConfig &
|
|
224
|
+
ClientResolvedEndpointParameters;
|
|
225
|
+
export interface BedrockClientResolvedConfig
|
|
226
|
+
extends BedrockClientResolvedConfigType {}
|
|
227
|
+
export declare class BedrockClient extends __Client<
|
|
228
|
+
__HttpHandlerOptions,
|
|
229
|
+
ServiceInputTypes,
|
|
230
|
+
ServiceOutputTypes,
|
|
231
|
+
BedrockClientResolvedConfig
|
|
232
|
+
> {
|
|
233
|
+
readonly config: BedrockClientResolvedConfig;
|
|
234
|
+
constructor(
|
|
235
|
+
...[configuration]: __CheckOptionalClientConfig<BedrockClientConfig>
|
|
236
|
+
);
|
|
237
|
+
destroy(): void;
|
|
238
|
+
}
|
|
@@ -1,149 +1,42 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* const input = { // CreateModelCustomizationJobRequest
|
|
44
|
-
* jobName: "STRING_VALUE", // required
|
|
45
|
-
* customModelName: "STRING_VALUE", // required
|
|
46
|
-
* roleArn: "STRING_VALUE", // required
|
|
47
|
-
* clientRequestToken: "STRING_VALUE",
|
|
48
|
-
* baseModelIdentifier: "STRING_VALUE", // required
|
|
49
|
-
* customModelKmsKeyId: "STRING_VALUE",
|
|
50
|
-
* jobTags: [ // TagList
|
|
51
|
-
* { // Tag
|
|
52
|
-
* key: "STRING_VALUE", // required
|
|
53
|
-
* value: "STRING_VALUE", // required
|
|
54
|
-
* },
|
|
55
|
-
* ],
|
|
56
|
-
* customModelTags: [
|
|
57
|
-
* {
|
|
58
|
-
* key: "STRING_VALUE", // required
|
|
59
|
-
* value: "STRING_VALUE", // required
|
|
60
|
-
* },
|
|
61
|
-
* ],
|
|
62
|
-
* trainingDataConfig: { // TrainingDataConfig
|
|
63
|
-
* s3Uri: "STRING_VALUE", // required
|
|
64
|
-
* },
|
|
65
|
-
* validationDataConfig: { // ValidationDataConfig
|
|
66
|
-
* validators: [ // Validators // required
|
|
67
|
-
* { // Validator
|
|
68
|
-
* s3Uri: "STRING_VALUE", // required
|
|
69
|
-
* },
|
|
70
|
-
* ],
|
|
71
|
-
* },
|
|
72
|
-
* outputDataConfig: { // OutputDataConfig
|
|
73
|
-
* s3Uri: "STRING_VALUE", // required
|
|
74
|
-
* },
|
|
75
|
-
* hyperParameters: { // ModelCustomizationHyperParameters // required
|
|
76
|
-
* "<keys>": "STRING_VALUE",
|
|
77
|
-
* },
|
|
78
|
-
* vpcConfig: { // VpcConfig
|
|
79
|
-
* subnetIds: [ // SubnetIds // required
|
|
80
|
-
* "STRING_VALUE",
|
|
81
|
-
* ],
|
|
82
|
-
* securityGroupIds: [ // SecurityGroupIds // required
|
|
83
|
-
* "STRING_VALUE",
|
|
84
|
-
* ],
|
|
85
|
-
* },
|
|
86
|
-
* };
|
|
87
|
-
* const command = new CreateModelCustomizationJobCommand(input);
|
|
88
|
-
* const response = await client.send(command);
|
|
89
|
-
* // { // CreateModelCustomizationJobResponse
|
|
90
|
-
* // jobArn: "STRING_VALUE", // required
|
|
91
|
-
* // };
|
|
92
|
-
*
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* @param CreateModelCustomizationJobCommandInput - {@link CreateModelCustomizationJobCommandInput}
|
|
96
|
-
* @returns {@link CreateModelCustomizationJobCommandOutput}
|
|
97
|
-
* @see {@link CreateModelCustomizationJobCommandInput} for command's `input` shape.
|
|
98
|
-
* @see {@link CreateModelCustomizationJobCommandOutput} for command's `response` shape.
|
|
99
|
-
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
100
|
-
*
|
|
101
|
-
* @throws {@link AccessDeniedException} (client fault)
|
|
102
|
-
* <p>The request is denied because of missing access permissions.</p>
|
|
103
|
-
*
|
|
104
|
-
* @throws {@link ConflictException} (client fault)
|
|
105
|
-
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
106
|
-
*
|
|
107
|
-
* @throws {@link InternalServerException} (server fault)
|
|
108
|
-
* <p>An internal server error occurred. Retry your request.</p>
|
|
109
|
-
*
|
|
110
|
-
* @throws {@link ResourceNotFoundException} (client fault)
|
|
111
|
-
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
|
|
112
|
-
*
|
|
113
|
-
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
114
|
-
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
115
|
-
*
|
|
116
|
-
* @throws {@link ThrottlingException} (client fault)
|
|
117
|
-
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
118
|
-
*
|
|
119
|
-
* @throws {@link TooManyTagsException} (client fault)
|
|
120
|
-
* <p>The request contains more tags than can be associated with a resource (50 tags per resource).
|
|
121
|
-
* The maximum number of tags includes both existing tags and those included in your current request. </p>
|
|
122
|
-
*
|
|
123
|
-
* @throws {@link ValidationException} (client fault)
|
|
124
|
-
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
125
|
-
*
|
|
126
|
-
* @throws {@link BedrockServiceException}
|
|
127
|
-
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
export declare class CreateModelCustomizationJobCommand extends $Command<CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput, BedrockClientResolvedConfig> {
|
|
131
|
-
readonly input: CreateModelCustomizationJobCommandInput;
|
|
132
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
133
|
-
/**
|
|
134
|
-
* @public
|
|
135
|
-
*/
|
|
136
|
-
constructor(input: CreateModelCustomizationJobCommandInput);
|
|
137
|
-
/**
|
|
138
|
-
* @internal
|
|
139
|
-
*/
|
|
140
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput>;
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
private serialize;
|
|
145
|
-
/**
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
148
|
-
private deserialize;
|
|
149
|
-
}
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
BedrockClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../BedrockClient";
|
|
14
|
+
import {
|
|
15
|
+
CreateModelCustomizationJobRequest,
|
|
16
|
+
CreateModelCustomizationJobResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface CreateModelCustomizationJobCommandInput
|
|
20
|
+
extends CreateModelCustomizationJobRequest {}
|
|
21
|
+
export interface CreateModelCustomizationJobCommandOutput
|
|
22
|
+
extends CreateModelCustomizationJobResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class CreateModelCustomizationJobCommand extends $Command<
|
|
25
|
+
CreateModelCustomizationJobCommandInput,
|
|
26
|
+
CreateModelCustomizationJobCommandOutput,
|
|
27
|
+
BedrockClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: CreateModelCustomizationJobCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: CreateModelCustomizationJobCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: BedrockClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
CreateModelCustomizationJobCommandInput,
|
|
38
|
+
CreateModelCustomizationJobCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|