@aws-sdk/client-bedrock 3.705.0 → 3.709.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 +35 -35
|
@@ -0,0 +1,99 @@
|
|
|
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 { ListMarketplaceModelEndpointsRequest, ListMarketplaceModelEndpointsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListMarketplaceModelEndpointsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListMarketplaceModelEndpointsCommandInput extends ListMarketplaceModelEndpointsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListMarketplaceModelEndpointsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListMarketplaceModelEndpointsCommandOutput extends ListMarketplaceModelEndpointsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListMarketplaceModelEndpointsCommand_base: {
|
|
25
|
+
new (input: ListMarketplaceModelEndpointsCommandInput): import("@smithy/smithy-client").CommandImpl<ListMarketplaceModelEndpointsCommandInput, ListMarketplaceModelEndpointsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListMarketplaceModelEndpointsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListMarketplaceModelEndpointsCommandInput, ListMarketplaceModelEndpointsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services
|
|
31
|
+
* account.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BedrockClient, ListMarketplaceModelEndpointsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
36
|
+
* // const { BedrockClient, ListMarketplaceModelEndpointsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
37
|
+
* const client = new BedrockClient(config);
|
|
38
|
+
* const input = { // ListMarketplaceModelEndpointsRequest
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* nextToken: "STRING_VALUE",
|
|
41
|
+
* modelSourceEquals: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListMarketplaceModelEndpointsCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ListMarketplaceModelEndpointsResponse
|
|
46
|
+
* // marketplaceModelEndpoints: [ // MarketplaceModelEndpointSummaries
|
|
47
|
+
* // { // MarketplaceModelEndpointSummary
|
|
48
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
49
|
+
* // modelSourceIdentifier: "STRING_VALUE", // required
|
|
50
|
+
* // status: "REGISTERED" || "INCOMPATIBLE_ENDPOINT",
|
|
51
|
+
* // statusMessage: "STRING_VALUE",
|
|
52
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // nextToken: "STRING_VALUE",
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param ListMarketplaceModelEndpointsCommandInput - {@link ListMarketplaceModelEndpointsCommandInput}
|
|
62
|
+
* @returns {@link ListMarketplaceModelEndpointsCommandOutput}
|
|
63
|
+
* @see {@link ListMarketplaceModelEndpointsCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link ListMarketplaceModelEndpointsCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
68
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
77
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link BedrockServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare class ListMarketplaceModelEndpointsCommand extends ListMarketplaceModelEndpointsCommand_base {
|
|
88
|
+
/** @internal type navigation helper, not in runtime. */
|
|
89
|
+
protected static __types: {
|
|
90
|
+
api: {
|
|
91
|
+
input: ListMarketplaceModelEndpointsRequest;
|
|
92
|
+
output: ListMarketplaceModelEndpointsResponse;
|
|
93
|
+
};
|
|
94
|
+
sdk: {
|
|
95
|
+
input: ListMarketplaceModelEndpointsCommandInput;
|
|
96
|
+
output: ListMarketplaceModelEndpointsCommandOutput;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { ListPromptRoutersRequest, ListPromptRoutersResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListPromptRoutersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListPromptRoutersCommandInput extends ListPromptRoutersRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListPromptRoutersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListPromptRoutersCommandOutput extends ListPromptRoutersResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListPromptRoutersCommand_base: {
|
|
25
|
+
new (input: ListPromptRoutersCommandInput): import("@smithy/smithy-client").CommandImpl<ListPromptRoutersCommandInput, ListPromptRoutersCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListPromptRoutersCommandInput]): import("@smithy/smithy-client").CommandImpl<ListPromptRoutersCommandInput, ListPromptRoutersCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves a list of prompt routers.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, ListPromptRoutersCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, ListPromptRoutersCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // ListPromptRoutersRequest
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListPromptRoutersCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListPromptRoutersResponse
|
|
44
|
+
* // promptRouterSummaries: [ // PromptRouterSummaries
|
|
45
|
+
* // { // PromptRouterSummary
|
|
46
|
+
* // promptRouterName: "STRING_VALUE", // required
|
|
47
|
+
* // routingCriteria: { // RoutingCriteria
|
|
48
|
+
* // responseQualityDifference: Number("double"), // required
|
|
49
|
+
* // },
|
|
50
|
+
* // description: "STRING_VALUE",
|
|
51
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
53
|
+
* // promptRouterArn: "STRING_VALUE", // required
|
|
54
|
+
* // models: [ // PromptRouterTargetModels // required
|
|
55
|
+
* // { // PromptRouterTargetModel
|
|
56
|
+
* // modelArn: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // fallbackModel: {
|
|
60
|
+
* // modelArn: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // status: "AVAILABLE", // required
|
|
63
|
+
* // type: "custom" || "default", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // nextToken: "STRING_VALUE",
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param ListPromptRoutersCommandInput - {@link ListPromptRoutersCommandInput}
|
|
72
|
+
* @returns {@link ListPromptRoutersCommandOutput}
|
|
73
|
+
* @see {@link ListPromptRoutersCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link ListPromptRoutersCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
78
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InternalServerException} (server fault)
|
|
81
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ValidationException} (client fault)
|
|
87
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link BedrockServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class ListPromptRoutersCommand extends ListPromptRoutersCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: ListPromptRoutersRequest;
|
|
99
|
+
output: ListPromptRoutersResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: ListPromptRoutersCommandInput;
|
|
103
|
+
output: ListPromptRoutersCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { RegisterMarketplaceModelEndpointRequest, RegisterMarketplaceModelEndpointResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link RegisterMarketplaceModelEndpointCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RegisterMarketplaceModelEndpointCommandInput extends RegisterMarketplaceModelEndpointRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RegisterMarketplaceModelEndpointCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RegisterMarketplaceModelEndpointCommandOutput extends RegisterMarketplaceModelEndpointResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const RegisterMarketplaceModelEndpointCommand_base: {
|
|
25
|
+
new (input: RegisterMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterMarketplaceModelEndpointCommandInput, RegisterMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: RegisterMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterMarketplaceModelEndpointCommandInput, RegisterMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with
|
|
31
|
+
* Amazon Bedrock APIs.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BedrockClient, RegisterMarketplaceModelEndpointCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
36
|
+
* // const { BedrockClient, RegisterMarketplaceModelEndpointCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
37
|
+
* const client = new BedrockClient(config);
|
|
38
|
+
* const input = { // RegisterMarketplaceModelEndpointRequest
|
|
39
|
+
* endpointIdentifier: "STRING_VALUE", // required
|
|
40
|
+
* modelSourceIdentifier: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new RegisterMarketplaceModelEndpointCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // RegisterMarketplaceModelEndpointResponse
|
|
45
|
+
* // marketplaceModelEndpoint: { // MarketplaceModelEndpoint
|
|
46
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
47
|
+
* // modelSourceIdentifier: "STRING_VALUE", // required
|
|
48
|
+
* // status: "REGISTERED" || "INCOMPATIBLE_ENDPOINT",
|
|
49
|
+
* // statusMessage: "STRING_VALUE",
|
|
50
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // endpointConfig: { // EndpointConfig Union: only one key present
|
|
53
|
+
* // sageMaker: { // SageMakerEndpoint
|
|
54
|
+
* // initialInstanceCount: Number("int"), // required
|
|
55
|
+
* // instanceType: "STRING_VALUE", // required
|
|
56
|
+
* // executionRole: "STRING_VALUE", // required
|
|
57
|
+
* // kmsEncryptionKey: "STRING_VALUE",
|
|
58
|
+
* // vpc: { // VpcConfig
|
|
59
|
+
* // subnetIds: [ // SubnetIds // required
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // securityGroupIds: [ // SecurityGroupIds // required
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // endpointStatus: "STRING_VALUE", // required
|
|
69
|
+
* // endpointStatusMessage: "STRING_VALUE",
|
|
70
|
+
* // },
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param RegisterMarketplaceModelEndpointCommandInput - {@link RegisterMarketplaceModelEndpointCommandInput}
|
|
76
|
+
* @returns {@link RegisterMarketplaceModelEndpointCommandOutput}
|
|
77
|
+
* @see {@link RegisterMarketplaceModelEndpointCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link RegisterMarketplaceModelEndpointCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
82
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InternalServerException} (server fault)
|
|
85
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
88
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
91
|
+
* <p>Returned if the service cannot complete the request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
94
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ValidationException} (client fault)
|
|
97
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link BedrockServiceException}
|
|
100
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class RegisterMarketplaceModelEndpointCommand extends RegisterMarketplaceModelEndpointCommand_base {
|
|
105
|
+
/** @internal type navigation helper, not in runtime. */
|
|
106
|
+
protected static __types: {
|
|
107
|
+
api: {
|
|
108
|
+
input: RegisterMarketplaceModelEndpointRequest;
|
|
109
|
+
output: RegisterMarketplaceModelEndpointResponse;
|
|
110
|
+
};
|
|
111
|
+
sdk: {
|
|
112
|
+
input: RegisterMarketplaceModelEndpointCommandInput;
|
|
113
|
+
output: RegisterMarketplaceModelEndpointCommandOutput;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -92,6 +92,12 @@ declare const UpdateGuardrailCommand_base: {
|
|
|
92
92
|
* type: "SEXUAL" || "VIOLENCE" || "HATE" || "INSULTS" || "MISCONDUCT" || "PROMPT_ATTACK", // required
|
|
93
93
|
* inputStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
|
|
94
94
|
* outputStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
|
|
95
|
+
* inputModalities: [ // GuardrailModalities
|
|
96
|
+
* "TEXT" || "IMAGE",
|
|
97
|
+
* ],
|
|
98
|
+
* outputModalities: [
|
|
99
|
+
* "TEXT" || "IMAGE",
|
|
100
|
+
* ],
|
|
95
101
|
* },
|
|
96
102
|
* ],
|
|
97
103
|
* },
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { UpdateMarketplaceModelEndpointRequest, UpdateMarketplaceModelEndpointResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateMarketplaceModelEndpointCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateMarketplaceModelEndpointCommandInput extends UpdateMarketplaceModelEndpointRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateMarketplaceModelEndpointCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateMarketplaceModelEndpointCommandOutput extends UpdateMarketplaceModelEndpointResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateMarketplaceModelEndpointCommand_base: {
|
|
25
|
+
new (input: UpdateMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateMarketplaceModelEndpointCommandInput, UpdateMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateMarketplaceModelEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateMarketplaceModelEndpointCommandInput, UpdateMarketplaceModelEndpointCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates the configuration of an existing endpoint for a model from Amazon Bedrock
|
|
31
|
+
* Marketplace.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BedrockClient, UpdateMarketplaceModelEndpointCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
36
|
+
* // const { BedrockClient, UpdateMarketplaceModelEndpointCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
37
|
+
* const client = new BedrockClient(config);
|
|
38
|
+
* const input = { // UpdateMarketplaceModelEndpointRequest
|
|
39
|
+
* endpointArn: "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
|
+
* clientRequestToken: "STRING_VALUE",
|
|
57
|
+
* };
|
|
58
|
+
* const command = new UpdateMarketplaceModelEndpointCommand(input);
|
|
59
|
+
* const response = await client.send(command);
|
|
60
|
+
* // { // UpdateMarketplaceModelEndpointResponse
|
|
61
|
+
* // marketplaceModelEndpoint: { // MarketplaceModelEndpoint
|
|
62
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
63
|
+
* // modelSourceIdentifier: "STRING_VALUE", // required
|
|
64
|
+
* // status: "REGISTERED" || "INCOMPATIBLE_ENDPOINT",
|
|
65
|
+
* // statusMessage: "STRING_VALUE",
|
|
66
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
67
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
68
|
+
* // endpointConfig: { // EndpointConfig Union: only one key present
|
|
69
|
+
* // sageMaker: { // SageMakerEndpoint
|
|
70
|
+
* // initialInstanceCount: Number("int"), // required
|
|
71
|
+
* // instanceType: "STRING_VALUE", // required
|
|
72
|
+
* // executionRole: "STRING_VALUE", // required
|
|
73
|
+
* // kmsEncryptionKey: "STRING_VALUE",
|
|
74
|
+
* // vpc: { // VpcConfig
|
|
75
|
+
* // subnetIds: [ // SubnetIds // required
|
|
76
|
+
* // "STRING_VALUE",
|
|
77
|
+
* // ],
|
|
78
|
+
* // securityGroupIds: [ // SecurityGroupIds // required
|
|
79
|
+
* // "STRING_VALUE",
|
|
80
|
+
* // ],
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // },
|
|
84
|
+
* // endpointStatus: "STRING_VALUE", // required
|
|
85
|
+
* // endpointStatusMessage: "STRING_VALUE",
|
|
86
|
+
* // },
|
|
87
|
+
* // };
|
|
88
|
+
*
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @param UpdateMarketplaceModelEndpointCommandInput - {@link UpdateMarketplaceModelEndpointCommandInput}
|
|
92
|
+
* @returns {@link UpdateMarketplaceModelEndpointCommandOutput}
|
|
93
|
+
* @see {@link UpdateMarketplaceModelEndpointCommandInput} for command's `input` shape.
|
|
94
|
+
* @see {@link UpdateMarketplaceModelEndpointCommandOutput} for command's `response` shape.
|
|
95
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
98
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ConflictException} (client fault)
|
|
101
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link InternalServerException} (server fault)
|
|
104
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
107
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
110
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
113
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ValidationException} (client fault)
|
|
116
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link BedrockServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
120
|
+
*
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export declare class UpdateMarketplaceModelEndpointCommand extends UpdateMarketplaceModelEndpointCommand_base {
|
|
124
|
+
/** @internal type navigation helper, not in runtime. */
|
|
125
|
+
protected static __types: {
|
|
126
|
+
api: {
|
|
127
|
+
input: UpdateMarketplaceModelEndpointRequest;
|
|
128
|
+
output: UpdateMarketplaceModelEndpointResponse;
|
|
129
|
+
};
|
|
130
|
+
sdk: {
|
|
131
|
+
input: UpdateMarketplaceModelEndpointCommandInput;
|
|
132
|
+
output: UpdateMarketplaceModelEndpointCommandOutput;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./CreateEvaluationJobCommand";
|
|
|
3
3
|
export * from "./CreateGuardrailCommand";
|
|
4
4
|
export * from "./CreateGuardrailVersionCommand";
|
|
5
5
|
export * from "./CreateInferenceProfileCommand";
|
|
6
|
+
export * from "./CreateMarketplaceModelEndpointCommand";
|
|
6
7
|
export * from "./CreateModelCopyJobCommand";
|
|
7
8
|
export * from "./CreateModelCustomizationJobCommand";
|
|
8
9
|
export * from "./CreateModelImportJobCommand";
|
|
@@ -12,19 +13,23 @@ export * from "./DeleteCustomModelCommand";
|
|
|
12
13
|
export * from "./DeleteGuardrailCommand";
|
|
13
14
|
export * from "./DeleteImportedModelCommand";
|
|
14
15
|
export * from "./DeleteInferenceProfileCommand";
|
|
16
|
+
export * from "./DeleteMarketplaceModelEndpointCommand";
|
|
15
17
|
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
|
|
16
18
|
export * from "./DeleteProvisionedModelThroughputCommand";
|
|
19
|
+
export * from "./DeregisterMarketplaceModelEndpointCommand";
|
|
17
20
|
export * from "./GetCustomModelCommand";
|
|
18
21
|
export * from "./GetEvaluationJobCommand";
|
|
19
22
|
export * from "./GetFoundationModelCommand";
|
|
20
23
|
export * from "./GetGuardrailCommand";
|
|
21
24
|
export * from "./GetImportedModelCommand";
|
|
22
25
|
export * from "./GetInferenceProfileCommand";
|
|
26
|
+
export * from "./GetMarketplaceModelEndpointCommand";
|
|
23
27
|
export * from "./GetModelCopyJobCommand";
|
|
24
28
|
export * from "./GetModelCustomizationJobCommand";
|
|
25
29
|
export * from "./GetModelImportJobCommand";
|
|
26
30
|
export * from "./GetModelInvocationJobCommand";
|
|
27
31
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
32
|
+
export * from "./GetPromptRouterCommand";
|
|
28
33
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
29
34
|
export * from "./ListCustomModelsCommand";
|
|
30
35
|
export * from "./ListEvaluationJobsCommand";
|
|
@@ -32,17 +37,21 @@ export * from "./ListFoundationModelsCommand";
|
|
|
32
37
|
export * from "./ListGuardrailsCommand";
|
|
33
38
|
export * from "./ListImportedModelsCommand";
|
|
34
39
|
export * from "./ListInferenceProfilesCommand";
|
|
40
|
+
export * from "./ListMarketplaceModelEndpointsCommand";
|
|
35
41
|
export * from "./ListModelCopyJobsCommand";
|
|
36
42
|
export * from "./ListModelCustomizationJobsCommand";
|
|
37
43
|
export * from "./ListModelImportJobsCommand";
|
|
38
44
|
export * from "./ListModelInvocationJobsCommand";
|
|
45
|
+
export * from "./ListPromptRoutersCommand";
|
|
39
46
|
export * from "./ListProvisionedModelThroughputsCommand";
|
|
40
47
|
export * from "./ListTagsForResourceCommand";
|
|
41
48
|
export * from "./PutModelInvocationLoggingConfigurationCommand";
|
|
49
|
+
export * from "./RegisterMarketplaceModelEndpointCommand";
|
|
42
50
|
export * from "./StopEvaluationJobCommand";
|
|
43
51
|
export * from "./StopModelCustomizationJobCommand";
|
|
44
52
|
export * from "./StopModelInvocationJobCommand";
|
|
45
53
|
export * from "./TagResourceCommand";
|
|
46
54
|
export * from "./UntagResourceCommand";
|
|
47
55
|
export * from "./UpdateGuardrailCommand";
|
|
56
|
+
export * from "./UpdateMarketplaceModelEndpointCommand";
|
|
48
57
|
export * from "./UpdateProvisionedModelThroughputCommand";
|