@aws-sdk/client-bedrock 3.834.0 → 3.836.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 +48 -0
- package/dist-cjs/index.js +417 -120
- package/dist-es/Bedrock.js +12 -0
- package/dist-es/commands/CreateFoundationModelAgreementCommand.js +22 -0
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +1 -1
- package/dist-es/commands/DeleteFoundationModelAgreementCommand.js +22 -0
- package/dist-es/commands/GetFoundationModelAvailabilityCommand.js +22 -0
- package/dist-es/commands/GetModelCustomizationJobCommand.js +1 -1
- package/dist-es/commands/GetUseCaseForModelAccessCommand.js +22 -0
- package/dist-es/commands/ListFoundationModelAgreementOffersCommand.js +22 -0
- package/dist-es/commands/PutUseCaseForModelAccessCommand.js +22 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +54 -126
- package/dist-es/models/models_1.js +95 -1
- package/dist-es/protocols/Aws_restJson1.js +153 -2
- package/dist-types/Bedrock.d.ts +43 -0
- package/dist-types/BedrockClient.d.ts +8 -2
- package/dist-types/commands/CreateFoundationModelAgreementCommand.d.ts +91 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFoundationModelAgreementCommand.d.ts +88 -0
- package/dist-types/commands/GetFoundationModelAvailabilityCommand.d.ts +94 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetUseCaseForModelAccessCommand.d.ts +82 -0
- package/dist-types/commands/ListFoundationModelAgreementOffersCommand.d.ts +116 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutUseCaseForModelAccessCommand.d.ts +82 -0
- package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +239 -804
- package/dist-types/models/models_1.d.ts +901 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/Bedrock.d.ts +109 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateFoundationModelAgreementCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteFoundationModelAgreementCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFoundationModelAvailabilityCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUseCaseForModelAccessCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFoundationModelAgreementOffersCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutUseCaseForModelAccessCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
- package/dist-types/ts3.4/models/models_0.d.ts +107 -425
- package/dist-types/ts3.4/models/models_1.d.ts +431 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +11 -11
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
GetModelCustomizationJobRequest,
|
|
10
10
|
GetModelCustomizationJobResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface GetModelCustomizationJobCommandInput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockClient";
|
|
8
|
+
import {
|
|
9
|
+
GetUseCaseForModelAccessRequest,
|
|
10
|
+
GetUseCaseForModelAccessResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetUseCaseForModelAccessCommandInput
|
|
15
|
+
extends GetUseCaseForModelAccessRequest {}
|
|
16
|
+
export interface GetUseCaseForModelAccessCommandOutput
|
|
17
|
+
extends GetUseCaseForModelAccessResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetUseCaseForModelAccessCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetUseCaseForModelAccessCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetUseCaseForModelAccessCommandInput,
|
|
24
|
+
GetUseCaseForModelAccessCommandOutput,
|
|
25
|
+
BedrockClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: [] | [GetUseCaseForModelAccessCommandInput]
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetUseCaseForModelAccessCommandInput,
|
|
33
|
+
GetUseCaseForModelAccessCommandOutput,
|
|
34
|
+
BedrockClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetUseCaseForModelAccessCommand extends GetUseCaseForModelAccessCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: {};
|
|
44
|
+
output: GetUseCaseForModelAccessResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: GetUseCaseForModelAccessCommandInput;
|
|
48
|
+
output: GetUseCaseForModelAccessCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockClient";
|
|
8
|
+
import { ListFoundationModelAgreementOffersRequest } from "../models/models_0";
|
|
9
|
+
import { ListFoundationModelAgreementOffersResponse } from "../models/models_1";
|
|
10
|
+
export { __MetadataBearer };
|
|
11
|
+
export { $Command };
|
|
12
|
+
export interface ListFoundationModelAgreementOffersCommandInput
|
|
13
|
+
extends ListFoundationModelAgreementOffersRequest {}
|
|
14
|
+
export interface ListFoundationModelAgreementOffersCommandOutput
|
|
15
|
+
extends ListFoundationModelAgreementOffersResponse,
|
|
16
|
+
__MetadataBearer {}
|
|
17
|
+
declare const ListFoundationModelAgreementOffersCommand_base: {
|
|
18
|
+
new (
|
|
19
|
+
input: ListFoundationModelAgreementOffersCommandInput
|
|
20
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
21
|
+
ListFoundationModelAgreementOffersCommandInput,
|
|
22
|
+
ListFoundationModelAgreementOffersCommandOutput,
|
|
23
|
+
BedrockClientResolvedConfig,
|
|
24
|
+
ServiceInputTypes,
|
|
25
|
+
ServiceOutputTypes
|
|
26
|
+
>;
|
|
27
|
+
new (
|
|
28
|
+
input: ListFoundationModelAgreementOffersCommandInput
|
|
29
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
30
|
+
ListFoundationModelAgreementOffersCommandInput,
|
|
31
|
+
ListFoundationModelAgreementOffersCommandOutput,
|
|
32
|
+
BedrockClientResolvedConfig,
|
|
33
|
+
ServiceInputTypes,
|
|
34
|
+
ServiceOutputTypes
|
|
35
|
+
>;
|
|
36
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
37
|
+
};
|
|
38
|
+
export declare class ListFoundationModelAgreementOffersCommand extends ListFoundationModelAgreementOffersCommand_base {
|
|
39
|
+
protected static __types: {
|
|
40
|
+
api: {
|
|
41
|
+
input: ListFoundationModelAgreementOffersRequest;
|
|
42
|
+
output: ListFoundationModelAgreementOffersResponse;
|
|
43
|
+
};
|
|
44
|
+
sdk: {
|
|
45
|
+
input: ListFoundationModelAgreementOffersCommandInput;
|
|
46
|
+
output: ListFoundationModelAgreementOffersCommandOutput;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
ListModelCustomizationJobsRequest,
|
|
10
10
|
ListModelCustomizationJobsResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface ListModelCustomizationJobsCommandInput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockClient";
|
|
8
|
+
import {
|
|
9
|
+
PutUseCaseForModelAccessRequest,
|
|
10
|
+
PutUseCaseForModelAccessResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface PutUseCaseForModelAccessCommandInput
|
|
15
|
+
extends PutUseCaseForModelAccessRequest {}
|
|
16
|
+
export interface PutUseCaseForModelAccessCommandOutput
|
|
17
|
+
extends PutUseCaseForModelAccessResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const PutUseCaseForModelAccessCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: PutUseCaseForModelAccessCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
PutUseCaseForModelAccessCommandInput,
|
|
24
|
+
PutUseCaseForModelAccessCommandOutput,
|
|
25
|
+
BedrockClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: PutUseCaseForModelAccessCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
PutUseCaseForModelAccessCommandInput,
|
|
33
|
+
PutUseCaseForModelAccessCommandOutput,
|
|
34
|
+
BedrockClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class PutUseCaseForModelAccessCommand extends PutUseCaseForModelAccessCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: PutUseCaseForModelAccessRequest;
|
|
44
|
+
output: {};
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: PutUseCaseForModelAccessCommandInput;
|
|
48
|
+
output: PutUseCaseForModelAccessCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
StopModelCustomizationJobRequest,
|
|
10
10
|
StopModelCustomizationJobResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface StopModelCustomizationJobCommandInput
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockClient";
|
|
8
|
-
import { TagResourceRequest, TagResourceResponse } from "../models/
|
|
8
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
|
|
9
9
|
export { __MetadataBearer };
|
|
10
10
|
export { $Command };
|
|
11
11
|
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
UntagResourceRequest,
|
|
10
10
|
UntagResourceResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BatchDeleteEvaluationJobCommand";
|
|
2
2
|
export * from "./CreateCustomModelCommand";
|
|
3
3
|
export * from "./CreateEvaluationJobCommand";
|
|
4
|
+
export * from "./CreateFoundationModelAgreementCommand";
|
|
4
5
|
export * from "./CreateGuardrailCommand";
|
|
5
6
|
export * from "./CreateGuardrailVersionCommand";
|
|
6
7
|
export * from "./CreateInferenceProfileCommand";
|
|
@@ -12,6 +13,7 @@ export * from "./CreateModelInvocationJobCommand";
|
|
|
12
13
|
export * from "./CreatePromptRouterCommand";
|
|
13
14
|
export * from "./CreateProvisionedModelThroughputCommand";
|
|
14
15
|
export * from "./DeleteCustomModelCommand";
|
|
16
|
+
export * from "./DeleteFoundationModelAgreementCommand";
|
|
15
17
|
export * from "./DeleteGuardrailCommand";
|
|
16
18
|
export * from "./DeleteImportedModelCommand";
|
|
17
19
|
export * from "./DeleteInferenceProfileCommand";
|
|
@@ -22,6 +24,7 @@ export * from "./DeleteProvisionedModelThroughputCommand";
|
|
|
22
24
|
export * from "./DeregisterMarketplaceModelEndpointCommand";
|
|
23
25
|
export * from "./GetCustomModelCommand";
|
|
24
26
|
export * from "./GetEvaluationJobCommand";
|
|
27
|
+
export * from "./GetFoundationModelAvailabilityCommand";
|
|
25
28
|
export * from "./GetFoundationModelCommand";
|
|
26
29
|
export * from "./GetGuardrailCommand";
|
|
27
30
|
export * from "./GetImportedModelCommand";
|
|
@@ -34,8 +37,10 @@ export * from "./GetModelInvocationJobCommand";
|
|
|
34
37
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
35
38
|
export * from "./GetPromptRouterCommand";
|
|
36
39
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
40
|
+
export * from "./GetUseCaseForModelAccessCommand";
|
|
37
41
|
export * from "./ListCustomModelsCommand";
|
|
38
42
|
export * from "./ListEvaluationJobsCommand";
|
|
43
|
+
export * from "./ListFoundationModelAgreementOffersCommand";
|
|
39
44
|
export * from "./ListFoundationModelsCommand";
|
|
40
45
|
export * from "./ListGuardrailsCommand";
|
|
41
46
|
export * from "./ListImportedModelsCommand";
|
|
@@ -49,6 +54,7 @@ export * from "./ListPromptRoutersCommand";
|
|
|
49
54
|
export * from "./ListProvisionedModelThroughputsCommand";
|
|
50
55
|
export * from "./ListTagsForResourceCommand";
|
|
51
56
|
export * from "./PutModelInvocationLoggingConfigurationCommand";
|
|
57
|
+
export * from "./PutUseCaseForModelAccessCommand";
|
|
52
58
|
export * from "./RegisterMarketplaceModelEndpointCommand";
|
|
53
59
|
export * from "./StopEvaluationJobCommand";
|
|
54
60
|
export * from "./StopModelCustomizationJobCommand";
|
|
@@ -16,7 +16,10 @@ export interface ClientInputEndpointParameters {
|
|
|
16
16
|
| EndpointV2
|
|
17
17
|
| Provider<EndpointV2>;
|
|
18
18
|
}
|
|
19
|
-
export type ClientResolvedEndpointParameters =
|
|
19
|
+
export type ClientResolvedEndpointParameters = Pick<
|
|
20
|
+
ClientInputEndpointParameters,
|
|
21
|
+
Exclude<keyof ClientInputEndpointParameters, "endpoint">
|
|
22
|
+
> & {
|
|
20
23
|
defaultSigningName: string;
|
|
21
24
|
};
|
|
22
25
|
export declare const resolveClientEndpointParameters: <T>(
|