@aws-sdk/client-bedrock 3.705.0 → 3.706.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 +72 -0
- package/dist-cjs/index.js +614 -27
- package/dist-es/Bedrock.js +18 -0
- package/dist-es/commands/CreateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/DeleteMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/DeregisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/GetPromptRouterCommand.js +23 -0
- package/dist-es/commands/ListMarketplaceModelEndpointsCommand.js +22 -0
- package/dist-es/commands/ListPromptRoutersCommand.js +23 -0
- package/dist-es/commands/RegisterMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/UpdateMarketplaceModelEndpointCommand.js +22 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +96 -20
- package/dist-es/pagination/ListMarketplaceModelEndpointsPaginator.js +4 -0
- package/dist-es/pagination/ListPromptRoutersPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +314 -1
- package/dist-types/Bedrock.d.ts +65 -0
- package/dist-types/BedrockClient.d.ts +11 -2
- package/dist-types/commands/CreateGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +143 -0
- package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +84 -0
- package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +89 -0
- package/dist-types/commands/GetGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +111 -0
- package/dist-types/commands/GetPromptRouterCommand.d.ts +103 -0
- package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +99 -0
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +106 -0
- package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +116 -0
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +6 -0
- package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +135 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +736 -97
- package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Bedrock.d.ts +161 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListMarketplaceModelEndpointsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateMarketplaceModelEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +229 -41
- package/dist-types/ts3.4/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPromptRoutersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } fro
|
|
|
12
12
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
13
13
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
14
14
|
import { CreateInferenceProfileCommandInput, CreateInferenceProfileCommandOutput } from "./commands/CreateInferenceProfileCommand";
|
|
15
|
+
import { CreateMarketplaceModelEndpointCommandInput, CreateMarketplaceModelEndpointCommandOutput } from "./commands/CreateMarketplaceModelEndpointCommand";
|
|
15
16
|
import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "./commands/CreateModelCopyJobCommand";
|
|
16
17
|
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
|
|
17
18
|
import { CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput } from "./commands/CreateModelImportJobCommand";
|
|
@@ -21,19 +22,23 @@ import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from ".
|
|
|
21
22
|
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
|
|
22
23
|
import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } from "./commands/DeleteImportedModelCommand";
|
|
23
24
|
import { DeleteInferenceProfileCommandInput, DeleteInferenceProfileCommandOutput } from "./commands/DeleteInferenceProfileCommand";
|
|
25
|
+
import { DeleteMarketplaceModelEndpointCommandInput, DeleteMarketplaceModelEndpointCommandOutput } from "./commands/DeleteMarketplaceModelEndpointCommand";
|
|
24
26
|
import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
25
27
|
import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
|
|
28
|
+
import { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
26
29
|
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
|
|
27
30
|
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
|
|
28
31
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
29
32
|
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
30
33
|
import { GetImportedModelCommandInput, GetImportedModelCommandOutput } from "./commands/GetImportedModelCommand";
|
|
31
34
|
import { GetInferenceProfileCommandInput, GetInferenceProfileCommandOutput } from "./commands/GetInferenceProfileCommand";
|
|
35
|
+
import { GetMarketplaceModelEndpointCommandInput, GetMarketplaceModelEndpointCommandOutput } from "./commands/GetMarketplaceModelEndpointCommand";
|
|
32
36
|
import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "./commands/GetModelCopyJobCommand";
|
|
33
37
|
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
|
|
34
38
|
import { GetModelImportJobCommandInput, GetModelImportJobCommandOutput } from "./commands/GetModelImportJobCommand";
|
|
35
39
|
import { GetModelInvocationJobCommandInput, GetModelInvocationJobCommandOutput } from "./commands/GetModelInvocationJobCommand";
|
|
36
40
|
import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
41
|
+
import { GetPromptRouterCommandInput, GetPromptRouterCommandOutput } from "./commands/GetPromptRouterCommand";
|
|
37
42
|
import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
38
43
|
import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
|
|
39
44
|
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
|
|
@@ -41,19 +46,23 @@ import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } f
|
|
|
41
46
|
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
42
47
|
import { ListImportedModelsCommandInput, ListImportedModelsCommandOutput } from "./commands/ListImportedModelsCommand";
|
|
43
48
|
import { ListInferenceProfilesCommandInput, ListInferenceProfilesCommandOutput } from "./commands/ListInferenceProfilesCommand";
|
|
49
|
+
import { ListMarketplaceModelEndpointsCommandInput, ListMarketplaceModelEndpointsCommandOutput } from "./commands/ListMarketplaceModelEndpointsCommand";
|
|
44
50
|
import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "./commands/ListModelCopyJobsCommand";
|
|
45
51
|
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
|
|
46
52
|
import { ListModelImportJobsCommandInput, ListModelImportJobsCommandOutput } from "./commands/ListModelImportJobsCommand";
|
|
47
53
|
import { ListModelInvocationJobsCommandInput, ListModelInvocationJobsCommandOutput } from "./commands/ListModelInvocationJobsCommand";
|
|
54
|
+
import { ListPromptRoutersCommandInput, ListPromptRoutersCommandOutput } from "./commands/ListPromptRoutersCommand";
|
|
48
55
|
import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
|
|
49
56
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
50
57
|
import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
|
|
58
|
+
import { RegisterMarketplaceModelEndpointCommandInput, RegisterMarketplaceModelEndpointCommandOutput } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
51
59
|
import { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
|
|
52
60
|
import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
|
|
53
61
|
import { StopModelInvocationJobCommandInput, StopModelInvocationJobCommandOutput } from "./commands/StopModelInvocationJobCommand";
|
|
54
62
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
55
63
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
56
64
|
import { UpdateGuardrailCommandInput, UpdateGuardrailCommandOutput } from "./commands/UpdateGuardrailCommand";
|
|
65
|
+
import { UpdateMarketplaceModelEndpointCommandInput, UpdateMarketplaceModelEndpointCommandOutput } from "./commands/UpdateMarketplaceModelEndpointCommand";
|
|
57
66
|
import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput } from "./commands/UpdateProvisionedModelThroughputCommand";
|
|
58
67
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
59
68
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -61,11 +70,11 @@ export { __Client };
|
|
|
61
70
|
/**
|
|
62
71
|
* @public
|
|
63
72
|
*/
|
|
64
|
-
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
73
|
+
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
65
74
|
/**
|
|
66
75
|
* @public
|
|
67
76
|
*/
|
|
68
|
-
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
77
|
+
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
69
78
|
/**
|
|
70
79
|
* @public
|
|
71
80
|
*/
|
|
@@ -86,6 +86,12 @@ declare const CreateGuardrailCommand_base: {
|
|
|
86
86
|
* type: "SEXUAL" || "VIOLENCE" || "HATE" || "INSULTS" || "MISCONDUCT" || "PROMPT_ATTACK", // required
|
|
87
87
|
* inputStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
|
|
88
88
|
* outputStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
|
|
89
|
+
* inputModalities: [ // GuardrailModalities
|
|
90
|
+
* "TEXT" || "IMAGE",
|
|
91
|
+
* ],
|
|
92
|
+
* outputModalities: [
|
|
93
|
+
* "TEXT" || "IMAGE",
|
|
94
|
+
* ],
|
|
89
95
|
* },
|
|
90
96
|
* ],
|
|
91
97
|
* },
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { CreateMarketplaceModelEndpointRequest, CreateMarketplaceModelEndpointResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateMarketplaceModelEndpointCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateMarketplaceModelEndpointCommandInput extends CreateMarketplaceModelEndpointRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateMarketplaceModelEndpointCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateMarketplaceModelEndpointCommandOutput extends CreateMarketplaceModelEndpointResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateMarketplaceModelEndpointCommand_base: {
|
|
25
|
+
new (input: CreateMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMarketplaceModelEndpointCommandInput, CreateMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMarketplaceModelEndpointCommandInput, CreateMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by
|
|
31
|
+
* Amazon SageMaker.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BedrockClient, CreateMarketplaceModelEndpointCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
36
|
+
* // const { BedrockClient, CreateMarketplaceModelEndpointCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
37
|
+
* const client = new BedrockClient(config);
|
|
38
|
+
* const input = { // CreateMarketplaceModelEndpointRequest
|
|
39
|
+
* modelSourceIdentifier: "STRING_VALUE", // required
|
|
40
|
+
* endpointConfig: { // EndpointConfig Union: only one key present
|
|
41
|
+
* sageMaker: { // SageMakerEndpoint
|
|
42
|
+
* initialInstanceCount: Number("int"), // required
|
|
43
|
+
* instanceType: "STRING_VALUE", // required
|
|
44
|
+
* executionRole: "STRING_VALUE", // required
|
|
45
|
+
* kmsEncryptionKey: "STRING_VALUE",
|
|
46
|
+
* vpc: { // VpcConfig
|
|
47
|
+
* subnetIds: [ // SubnetIds // required
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* securityGroupIds: [ // SecurityGroupIds // required
|
|
51
|
+
* "STRING_VALUE",
|
|
52
|
+
* ],
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* acceptEula: true || false,
|
|
57
|
+
* endpointName: "STRING_VALUE", // required
|
|
58
|
+
* clientRequestToken: "STRING_VALUE",
|
|
59
|
+
* tags: [ // TagList
|
|
60
|
+
* { // Tag
|
|
61
|
+
* key: "STRING_VALUE", // required
|
|
62
|
+
* value: "STRING_VALUE", // required
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* };
|
|
66
|
+
* const command = new CreateMarketplaceModelEndpointCommand(input);
|
|
67
|
+
* const response = await client.send(command);
|
|
68
|
+
* // { // CreateMarketplaceModelEndpointResponse
|
|
69
|
+
* // marketplaceModelEndpoint: { // MarketplaceModelEndpoint
|
|
70
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
71
|
+
* // modelSourceIdentifier: "STRING_VALUE", // required
|
|
72
|
+
* // status: "REGISTERED" || "INCOMPATIBLE_ENDPOINT",
|
|
73
|
+
* // statusMessage: "STRING_VALUE",
|
|
74
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
75
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
76
|
+
* // endpointConfig: { // EndpointConfig Union: only one key present
|
|
77
|
+
* // sageMaker: { // SageMakerEndpoint
|
|
78
|
+
* // initialInstanceCount: Number("int"), // required
|
|
79
|
+
* // instanceType: "STRING_VALUE", // required
|
|
80
|
+
* // executionRole: "STRING_VALUE", // required
|
|
81
|
+
* // kmsEncryptionKey: "STRING_VALUE",
|
|
82
|
+
* // vpc: { // VpcConfig
|
|
83
|
+
* // subnetIds: [ // SubnetIds // required
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
86
|
+
* // securityGroupIds: [ // SecurityGroupIds // required
|
|
87
|
+
* // "STRING_VALUE",
|
|
88
|
+
* // ],
|
|
89
|
+
* // },
|
|
90
|
+
* // },
|
|
91
|
+
* // },
|
|
92
|
+
* // endpointStatus: "STRING_VALUE", // required
|
|
93
|
+
* // endpointStatusMessage: "STRING_VALUE",
|
|
94
|
+
* // },
|
|
95
|
+
* // };
|
|
96
|
+
*
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @param CreateMarketplaceModelEndpointCommandInput - {@link CreateMarketplaceModelEndpointCommandInput}
|
|
100
|
+
* @returns {@link CreateMarketplaceModelEndpointCommandOutput}
|
|
101
|
+
* @see {@link CreateMarketplaceModelEndpointCommandInput} for command's `input` shape.
|
|
102
|
+
* @see {@link CreateMarketplaceModelEndpointCommandOutput} for command's `response` shape.
|
|
103
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
106
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ConflictException} (client fault)
|
|
109
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link InternalServerException} (server fault)
|
|
112
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
115
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
118
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
121
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</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
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
export declare class CreateMarketplaceModelEndpointCommand extends CreateMarketplaceModelEndpointCommand_base {
|
|
132
|
+
/** @internal type navigation helper, not in runtime. */
|
|
133
|
+
protected static __types: {
|
|
134
|
+
api: {
|
|
135
|
+
input: CreateMarketplaceModelEndpointRequest;
|
|
136
|
+
output: CreateMarketplaceModelEndpointResponse;
|
|
137
|
+
};
|
|
138
|
+
sdk: {
|
|
139
|
+
input: CreateMarketplaceModelEndpointCommandInput;
|
|
140
|
+
output: CreateMarketplaceModelEndpointCommandOutput;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { DeleteMarketplaceModelEndpointRequest, DeleteMarketplaceModelEndpointResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteMarketplaceModelEndpointCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteMarketplaceModelEndpointCommandInput extends DeleteMarketplaceModelEndpointRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteMarketplaceModelEndpointCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteMarketplaceModelEndpointCommandOutput extends DeleteMarketplaceModelEndpointResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteMarketplaceModelEndpointCommand_base: {
|
|
25
|
+
new (input: DeleteMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMarketplaceModelEndpointCommandInput, DeleteMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMarketplaceModelEndpointCommandInput, DeleteMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes an endpoint for a model from Amazon Bedrock Marketplace.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, DeleteMarketplaceModelEndpointCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, DeleteMarketplaceModelEndpointCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // DeleteMarketplaceModelEndpointRequest
|
|
38
|
+
* endpointArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteMarketplaceModelEndpointCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DeleteMarketplaceModelEndpointCommandInput - {@link DeleteMarketplaceModelEndpointCommandInput}
|
|
47
|
+
* @returns {@link DeleteMarketplaceModelEndpointCommandOutput}
|
|
48
|
+
* @see {@link DeleteMarketplaceModelEndpointCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DeleteMarketplaceModelEndpointCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
53
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InternalServerException} (server fault)
|
|
56
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
62
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link BedrockServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class DeleteMarketplaceModelEndpointCommand extends DeleteMarketplaceModelEndpointCommand_base {
|
|
73
|
+
/** @internal type navigation helper, not in runtime. */
|
|
74
|
+
protected static __types: {
|
|
75
|
+
api: {
|
|
76
|
+
input: DeleteMarketplaceModelEndpointRequest;
|
|
77
|
+
output: {};
|
|
78
|
+
};
|
|
79
|
+
sdk: {
|
|
80
|
+
input: DeleteMarketplaceModelEndpointCommandInput;
|
|
81
|
+
output: DeleteMarketplaceModelEndpointCommandOutput;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { DeregisterMarketplaceModelEndpointRequest, DeregisterMarketplaceModelEndpointResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeregisterMarketplaceModelEndpointCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeregisterMarketplaceModelEndpointCommandInput extends DeregisterMarketplaceModelEndpointRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeregisterMarketplaceModelEndpointCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeregisterMarketplaceModelEndpointCommandOutput extends DeregisterMarketplaceModelEndpointResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeregisterMarketplaceModelEndpointCommand_base: {
|
|
25
|
+
new (input: DeregisterMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeregisterMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the
|
|
31
|
+
* endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker
|
|
32
|
+
* endpoint.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockClient, DeregisterMarketplaceModelEndpointCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, DeregisterMarketplaceModelEndpointCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // DeregisterMarketplaceModelEndpointRequest
|
|
40
|
+
* endpointArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeregisterMarketplaceModelEndpointCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeregisterMarketplaceModelEndpointCommandInput - {@link DeregisterMarketplaceModelEndpointCommandInput}
|
|
49
|
+
* @returns {@link DeregisterMarketplaceModelEndpointCommandOutput}
|
|
50
|
+
* @see {@link DeregisterMarketplaceModelEndpointCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeregisterMarketplaceModelEndpointCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
64
|
+
* <p>Returned if the service cannot complete the request.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link BedrockServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class DeregisterMarketplaceModelEndpointCommand extends DeregisterMarketplaceModelEndpointCommand_base {
|
|
78
|
+
/** @internal type navigation helper, not in runtime. */
|
|
79
|
+
protected static __types: {
|
|
80
|
+
api: {
|
|
81
|
+
input: DeregisterMarketplaceModelEndpointRequest;
|
|
82
|
+
output: {};
|
|
83
|
+
};
|
|
84
|
+
sdk: {
|
|
85
|
+
input: DeregisterMarketplaceModelEndpointCommandInput;
|
|
86
|
+
output: DeregisterMarketplaceModelEndpointCommandOutput;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -65,6 +65,12 @@ declare const GetGuardrailCommand_base: {
|
|
|
65
65
|
* // type: "SEXUAL" || "VIOLENCE" || "HATE" || "INSULTS" || "MISCONDUCT" || "PROMPT_ATTACK", // required
|
|
66
66
|
* // inputStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
|
|
67
67
|
* // outputStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
|
|
68
|
+
* // inputModalities: [ // GuardrailModalities
|
|
69
|
+
* // "TEXT" || "IMAGE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // outputModalities: [
|
|
72
|
+
* // "TEXT" || "IMAGE",
|
|
73
|
+
* // ],
|
|
68
74
|
* // },
|
|
69
75
|
* // ],
|
|
70
76
|
* // },
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { GetMarketplaceModelEndpointRequest, GetMarketplaceModelEndpointResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetMarketplaceModelEndpointCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetMarketplaceModelEndpointCommandInput extends GetMarketplaceModelEndpointRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetMarketplaceModelEndpointCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetMarketplaceModelEndpointCommandOutput extends GetMarketplaceModelEndpointResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetMarketplaceModelEndpointCommand_base: {
|
|
25
|
+
new (input: GetMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<GetMarketplaceModelEndpointCommandInput, GetMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<GetMarketplaceModelEndpointCommandInput, GetMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetMarketplaceModelEndpointCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetMarketplaceModelEndpointCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetMarketplaceModelEndpointRequest
|
|
38
|
+
* endpointArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetMarketplaceModelEndpointCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetMarketplaceModelEndpointResponse
|
|
43
|
+
* // marketplaceModelEndpoint: { // MarketplaceModelEndpoint
|
|
44
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
45
|
+
* // modelSourceIdentifier: "STRING_VALUE", // required
|
|
46
|
+
* // status: "REGISTERED" || "INCOMPATIBLE_ENDPOINT",
|
|
47
|
+
* // statusMessage: "STRING_VALUE",
|
|
48
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // endpointConfig: { // EndpointConfig Union: only one key present
|
|
51
|
+
* // sageMaker: { // SageMakerEndpoint
|
|
52
|
+
* // initialInstanceCount: Number("int"), // required
|
|
53
|
+
* // instanceType: "STRING_VALUE", // required
|
|
54
|
+
* // executionRole: "STRING_VALUE", // required
|
|
55
|
+
* // kmsEncryptionKey: "STRING_VALUE",
|
|
56
|
+
* // vpc: { // VpcConfig
|
|
57
|
+
* // subnetIds: [ // SubnetIds // required
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // securityGroupIds: [ // SecurityGroupIds // required
|
|
61
|
+
* // "STRING_VALUE",
|
|
62
|
+
* // ],
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // endpointStatus: "STRING_VALUE", // required
|
|
67
|
+
* // endpointStatusMessage: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param GetMarketplaceModelEndpointCommandInput - {@link GetMarketplaceModelEndpointCommandInput}
|
|
74
|
+
* @returns {@link GetMarketplaceModelEndpointCommandOutput}
|
|
75
|
+
* @see {@link GetMarketplaceModelEndpointCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link GetMarketplaceModelEndpointCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
80
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InternalServerException} (server fault)
|
|
83
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
86
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
89
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ValidationException} (client fault)
|
|
92
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link BedrockServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class GetMarketplaceModelEndpointCommand extends GetMarketplaceModelEndpointCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: GetMarketplaceModelEndpointRequest;
|
|
104
|
+
output: GetMarketplaceModelEndpointResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: GetMarketplaceModelEndpointCommandInput;
|
|
108
|
+
output: GetMarketplaceModelEndpointCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { GetPromptRouterRequest, GetPromptRouterResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPromptRouterCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPromptRouterCommandInput extends GetPromptRouterRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPromptRouterCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPromptRouterCommandOutput extends GetPromptRouterResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPromptRouterCommand_base: {
|
|
25
|
+
new (input: GetPromptRouterCommandInput): import("@smithy/smithy-client").CommandImpl<GetPromptRouterCommandInput, GetPromptRouterCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetPromptRouterCommandInput): import("@smithy/smithy-client").CommandImpl<GetPromptRouterCommandInput, GetPromptRouterCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves details about a prompt router.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetPromptRouterCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetPromptRouterCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetPromptRouterRequest
|
|
38
|
+
* promptRouterArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetPromptRouterCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetPromptRouterResponse
|
|
43
|
+
* // promptRouterName: "STRING_VALUE", // required
|
|
44
|
+
* // routingCriteria: { // RoutingCriteria
|
|
45
|
+
* // responseQualityDifference: Number("double"), // required
|
|
46
|
+
* // },
|
|
47
|
+
* // description: "STRING_VALUE",
|
|
48
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
49
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
50
|
+
* // promptRouterArn: "STRING_VALUE", // required
|
|
51
|
+
* // models: [ // PromptRouterTargetModels // required
|
|
52
|
+
* // { // PromptRouterTargetModel
|
|
53
|
+
* // modelArn: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // fallbackModel: {
|
|
57
|
+
* // modelArn: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // status: "AVAILABLE", // required
|
|
60
|
+
* // type: "custom" || "default", // required
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param GetPromptRouterCommandInput - {@link GetPromptRouterCommandInput}
|
|
66
|
+
* @returns {@link GetPromptRouterCommandOutput}
|
|
67
|
+
* @see {@link GetPromptRouterCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link GetPromptRouterCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
81
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link BedrockServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class GetPromptRouterCommand extends GetPromptRouterCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: GetPromptRouterRequest;
|
|
96
|
+
output: GetPromptRouterResponse;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: GetPromptRouterCommandInput;
|
|
100
|
+
output: GetPromptRouterCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|