@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.
Files changed (82) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Bedrock.js +10 -0
  3. package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +51 -0
  5. package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +51 -0
  6. package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +25 -12
  10. package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +386 -1
  13. package/dist-es/Bedrock.js +10 -0
  14. package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +47 -0
  15. package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +47 -0
  16. package/dist-es/commands/GetProvisionedModelThroughputCommand.js +47 -0
  17. package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +47 -0
  18. package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +47 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +22 -9
  21. package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +376 -1
  24. package/dist-types/Bedrock.d.ts +35 -0
  25. package/dist-types/BedrockClient.d.ts +7 -2
  26. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +8 -8
  27. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +106 -0
  28. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +89 -0
  29. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
  30. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +100 -0
  31. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +109 -0
  33. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +88 -0
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +370 -36
  37. package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  40. package/dist-types/ts3.4/Bedrock.d.ts +363 -115
  41. package/dist-types/ts3.4/BedrockClient.d.ts +238 -182
  42. package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +42 -149
  43. package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +39 -89
  45. package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +42 -78
  46. package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +38 -118
  48. package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +39 -106
  49. package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +42 -133
  50. package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +42 -96
  51. package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +38 -103
  53. package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +42 -108
  54. package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +42 -107
  55. package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -94
  57. package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +42 -99
  58. package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +42 -89
  59. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -96
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -89
  61. package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +42 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +20 -15
  63. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -22
  64. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -5
  65. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
  66. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -8
  67. package/dist-types/ts3.4/index.d.ts +7 -12
  68. package/dist-types/ts3.4/models/BedrockServiceException.d.ts +8 -13
  69. package/dist-types/ts3.4/models/index.d.ts +1 -1
  70. package/dist-types/ts3.4/models/models_0.d.ts +412 -1144
  71. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -8
  72. package/dist-types/ts3.4/pagination/ListCustomModelsPaginator.d.ts +11 -7
  73. package/dist-types/ts3.4/pagination/ListModelCustomizationJobsPaginator.d.ts +11 -7
  74. package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +11 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +4 -3
  76. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +245 -137
  77. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -46
  78. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -46
  79. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -45
  80. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
  81. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -17
  82. package/package.json +3 -3
@@ -1,182 +1,238 @@
1
- import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
- import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
- import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
- import { Credentials as __Credentials } from "@aws-sdk/types";
5
- import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
- import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
- import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
- import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
- import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
- import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
12
- import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
13
- import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
14
- import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
15
- import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
16
- import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
17
- import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
18
- import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
19
- import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
20
- import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
21
- import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
22
- import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
23
- import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
24
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
- import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
27
- import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
28
- export { __Client };
29
- /**
30
- * @public
31
- */
32
- export type ServiceInputTypes = CreateModelCustomizationJobCommandInput | DeleteCustomModelCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | GetCustomModelCommandInput | GetFoundationModelCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | ListCustomModelsCommandInput | ListFoundationModelsCommandInput | ListModelCustomizationJobsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopModelCustomizationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
33
- /**
34
- * @public
35
- */
36
- export type ServiceOutputTypes = CreateModelCustomizationJobCommandOutput | DeleteCustomModelCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | GetCustomModelCommandOutput | GetFoundationModelCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | ListCustomModelsCommandOutput | ListFoundationModelsCommandOutput | ListModelCustomizationJobsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopModelCustomizationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
37
- /**
38
- * @public
39
- */
40
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
41
- /**
42
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
43
- */
44
- requestHandler?: __HttpHandler;
45
- /**
46
- * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
47
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
48
- * @internal
49
- */
50
- sha256?: __ChecksumConstructor | __HashConstructor;
51
- /**
52
- * The function that will be used to convert strings into HTTP endpoints.
53
- * @internal
54
- */
55
- urlParser?: __UrlParser;
56
- /**
57
- * A function that can calculate the length of a request body.
58
- * @internal
59
- */
60
- bodyLengthChecker?: __BodyLengthCalculator;
61
- /**
62
- * A function that converts a stream into an array of bytes.
63
- * @internal
64
- */
65
- streamCollector?: __StreamCollector;
66
- /**
67
- * The function that will be used to convert a base64-encoded string to a byte array.
68
- * @internal
69
- */
70
- base64Decoder?: __Decoder;
71
- /**
72
- * The function that will be used to convert binary data to a base64-encoded string.
73
- * @internal
74
- */
75
- base64Encoder?: __Encoder;
76
- /**
77
- * The function that will be used to convert a UTF8-encoded string to a byte array.
78
- * @internal
79
- */
80
- utf8Decoder?: __Decoder;
81
- /**
82
- * The function that will be used to convert binary data to a UTF-8 encoded string.
83
- * @internal
84
- */
85
- utf8Encoder?: __Encoder;
86
- /**
87
- * The runtime environment.
88
- * @internal
89
- */
90
- runtime?: string;
91
- /**
92
- * Disable dynamically changing the endpoint of the client based on the hostPrefix
93
- * trait of an operation.
94
- */
95
- disableHostPrefix?: boolean;
96
- /**
97
- * Unique service identifier.
98
- * @internal
99
- */
100
- serviceId?: string;
101
- /**
102
- * Enables IPv6/IPv4 dualstack endpoint.
103
- */
104
- useDualstackEndpoint?: boolean | __Provider<boolean>;
105
- /**
106
- * Enables FIPS compatible endpoints.
107
- */
108
- useFipsEndpoint?: boolean | __Provider<boolean>;
109
- /**
110
- * The AWS region to which this client will send requests
111
- */
112
- region?: string | __Provider<string>;
113
- /**
114
- * Default credentials provider; Not available in browser runtime.
115
- * @internal
116
- */
117
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
118
- /**
119
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
120
- * @internal
121
- */
122
- defaultUserAgentProvider?: Provider<__UserAgent>;
123
- /**
124
- * Value for how many times a request will be made at most in case of retry.
125
- */
126
- maxAttempts?: number | __Provider<number>;
127
- /**
128
- * Specifies which retry algorithm to use.
129
- */
130
- retryMode?: string | __Provider<string>;
131
- /**
132
- * Optional logger for logging debug/info/warn/error.
133
- */
134
- logger?: __Logger;
135
- /**
136
- * Optional extensions
137
- */
138
- extensions?: RuntimeExtension[];
139
- /**
140
- * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
141
- */
142
- defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
143
- }
144
- /**
145
- * @public
146
- */
147
- export type BedrockClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
148
- /**
149
- * @public
150
- *
151
- * The configuration interface of BedrockClient class constructor that set the region, credentials and other options.
152
- */
153
- export interface BedrockClientConfig extends BedrockClientConfigType {
154
- }
155
- /**
156
- * @public
157
- */
158
- export type BedrockClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
159
- /**
160
- * @public
161
- *
162
- * The resolved configuration interface of BedrockClient class. This is resolved and normalized from the {@link BedrockClientConfig | constructor configuration interface}.
163
- */
164
- export interface BedrockClientResolvedConfig extends BedrockClientResolvedConfigType {
165
- }
166
- /**
167
- * @public
168
- * <p>Describes the API operations for creating and managing Bedrock models.</p>
169
- */
170
- export declare class BedrockClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BedrockClientResolvedConfig> {
171
- /**
172
- * The resolved configuration of BedrockClient class. This is resolved and normalized from the {@link BedrockClientConfig | constructor configuration interface}.
173
- */
174
- readonly config: BedrockClientResolvedConfig;
175
- constructor(...[configuration]: __CheckOptionalClientConfig<BedrockClientConfig>);
176
- /**
177
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
178
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
179
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
180
- */
181
- destroy(): void;
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 { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
- import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
5
- import { CreateModelCustomizationJobRequest, CreateModelCustomizationJobResponse } from "../models/models_0";
6
- /**
7
- * @public
8
- */
9
- export { __MetadataBearer, $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link CreateModelCustomizationJobCommand}.
14
- */
15
- export interface CreateModelCustomizationJobCommandInput extends CreateModelCustomizationJobRequest {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link CreateModelCustomizationJobCommand}.
21
- */
22
- export interface CreateModelCustomizationJobCommandOutput extends CreateModelCustomizationJobResponse, __MetadataBearer {
23
- }
24
- /**
25
- * @public
26
- * <p>Creates a fine-tuning job to customize a base model.</p>
27
- * <p>You specify the base foundation model and the location of the training data.
28
- * After the model-customization job completes successfully, your custom model resource will be ready to use. Training data
29
- * contains input and output text for each record in a JSONL format. Optionally, you can specify validation data
30
- * in the same format as the training data. Bedrock returns validation loss metrics and output generations
31
- * after the job completes.
32
- * </p>
33
- * <p>
34
- * Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
35
- * To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
36
- * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { BedrockClient, CreateModelCustomizationJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
41
- * // const { BedrockClient, CreateModelCustomizationJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
42
- * const client = new BedrockClient(config);
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
+ }