@aws-sdk/client-bedrock 3.835.0 → 3.839.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/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/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
|
@@ -0,0 +1,94 @@
|
|
|
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 { GetFoundationModelAvailabilityRequest, GetFoundationModelAvailabilityResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetFoundationModelAvailabilityCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetFoundationModelAvailabilityCommandInput extends GetFoundationModelAvailabilityRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetFoundationModelAvailabilityCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetFoundationModelAvailabilityCommandOutput extends GetFoundationModelAvailabilityResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetFoundationModelAvailabilityCommand_base: {
|
|
25
|
+
new (input: GetFoundationModelAvailabilityCommandInput): import("@smithy/smithy-client").CommandImpl<GetFoundationModelAvailabilityCommandInput, GetFoundationModelAvailabilityCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetFoundationModelAvailabilityCommandInput): import("@smithy/smithy-client").CommandImpl<GetFoundationModelAvailabilityCommandInput, GetFoundationModelAvailabilityCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Get information about the Foundation model availability.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetFoundationModelAvailabilityCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetFoundationModelAvailabilityCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetFoundationModelAvailabilityRequest
|
|
38
|
+
* modelId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetFoundationModelAvailabilityCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetFoundationModelAvailabilityResponse
|
|
43
|
+
* // modelId: "STRING_VALUE", // required
|
|
44
|
+
* // agreementAvailability: { // AgreementAvailability
|
|
45
|
+
* // status: "AVAILABLE" || "PENDING" || "NOT_AVAILABLE" || "ERROR", // required
|
|
46
|
+
* // errorMessage: "STRING_VALUE",
|
|
47
|
+
* // },
|
|
48
|
+
* // authorizationStatus: "AUTHORIZED" || "NOT_AUTHORIZED", // required
|
|
49
|
+
* // entitlementAvailability: "AVAILABLE" || "NOT_AVAILABLE", // required
|
|
50
|
+
* // regionAvailability: "AVAILABLE" || "NOT_AVAILABLE", // required
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param GetFoundationModelAvailabilityCommandInput - {@link GetFoundationModelAvailabilityCommandInput}
|
|
56
|
+
* @returns {@link GetFoundationModelAvailabilityCommandOutput}
|
|
57
|
+
* @see {@link GetFoundationModelAvailabilityCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link GetFoundationModelAvailabilityCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
71
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link BedrockServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class GetFoundationModelAvailabilityCommand extends GetFoundationModelAvailabilityCommand_base {
|
|
83
|
+
/** @internal type navigation helper, not in runtime. */
|
|
84
|
+
protected static __types: {
|
|
85
|
+
api: {
|
|
86
|
+
input: GetFoundationModelAvailabilityRequest;
|
|
87
|
+
output: GetFoundationModelAvailabilityResponse;
|
|
88
|
+
};
|
|
89
|
+
sdk: {
|
|
90
|
+
input: GetFoundationModelAvailabilityCommandInput;
|
|
91
|
+
output: GetFoundationModelAvailabilityCommandOutput;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import { GetModelCustomizationJobRequest, GetModelCustomizationJobResponse } from "../models/
|
|
4
|
+
import { GetModelCustomizationJobRequest, GetModelCustomizationJobResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { GetUseCaseForModelAccessRequest, GetUseCaseForModelAccessResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetUseCaseForModelAccessCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUseCaseForModelAccessCommandInput extends GetUseCaseForModelAccessRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUseCaseForModelAccessCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUseCaseForModelAccessCommandOutput extends GetUseCaseForModelAccessResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUseCaseForModelAccessCommand_base: {
|
|
25
|
+
new (input: GetUseCaseForModelAccessCommandInput): import("@smithy/smithy-client").CommandImpl<GetUseCaseForModelAccessCommandInput, GetUseCaseForModelAccessCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetUseCaseForModelAccessCommandInput]): import("@smithy/smithy-client").CommandImpl<GetUseCaseForModelAccessCommandInput, GetUseCaseForModelAccessCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Get usecase for model access.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetUseCaseForModelAccessCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetUseCaseForModelAccessCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = {};
|
|
38
|
+
* const command = new GetUseCaseForModelAccessCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // GetUseCaseForModelAccessResponse
|
|
41
|
+
* // formData: new Uint8Array(), // required
|
|
42
|
+
* // };
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param GetUseCaseForModelAccessCommandInput - {@link GetUseCaseForModelAccessCommandInput}
|
|
47
|
+
* @returns {@link GetUseCaseForModelAccessCommandOutput}
|
|
48
|
+
* @see {@link GetUseCaseForModelAccessCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link GetUseCaseForModelAccessCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link InternalServerException} (server fault)
|
|
53
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
56
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
59
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ValidationException} (client fault)
|
|
62
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link BedrockServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class GetUseCaseForModelAccessCommand extends GetUseCaseForModelAccessCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: {};
|
|
75
|
+
output: GetUseCaseForModelAccessResponse;
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: GetUseCaseForModelAccessCommandInput;
|
|
79
|
+
output: GetUseCaseForModelAccessCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -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 { ListFoundationModelAgreementOffersRequest } from "../models/models_0";
|
|
5
|
+
import { ListFoundationModelAgreementOffersResponse } from "../models/models_1";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export type { __MetadataBearer };
|
|
10
|
+
export { $Command };
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*
|
|
14
|
+
* The input for {@link ListFoundationModelAgreementOffersCommand}.
|
|
15
|
+
*/
|
|
16
|
+
export interface ListFoundationModelAgreementOffersCommandInput extends ListFoundationModelAgreementOffersRequest {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*
|
|
21
|
+
* The output of {@link ListFoundationModelAgreementOffersCommand}.
|
|
22
|
+
*/
|
|
23
|
+
export interface ListFoundationModelAgreementOffersCommandOutput extends ListFoundationModelAgreementOffersResponse, __MetadataBearer {
|
|
24
|
+
}
|
|
25
|
+
declare const ListFoundationModelAgreementOffersCommand_base: {
|
|
26
|
+
new (input: ListFoundationModelAgreementOffersCommandInput): import("@smithy/smithy-client").CommandImpl<ListFoundationModelAgreementOffersCommandInput, ListFoundationModelAgreementOffersCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
new (input: ListFoundationModelAgreementOffersCommandInput): import("@smithy/smithy-client").CommandImpl<ListFoundationModelAgreementOffersCommandInput, ListFoundationModelAgreementOffersCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
28
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* <p>Get the offers associated with the specified model.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BedrockClient, ListFoundationModelAgreementOffersCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
36
|
+
* // const { BedrockClient, ListFoundationModelAgreementOffersCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
37
|
+
* const client = new BedrockClient(config);
|
|
38
|
+
* const input = { // ListFoundationModelAgreementOffersRequest
|
|
39
|
+
* modelId: "STRING_VALUE", // required
|
|
40
|
+
* offerType: "ALL" || "PUBLIC",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListFoundationModelAgreementOffersCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListFoundationModelAgreementOffersResponse
|
|
45
|
+
* // modelId: "STRING_VALUE", // required
|
|
46
|
+
* // offers: [ // Offers // required
|
|
47
|
+
* // { // Offer
|
|
48
|
+
* // offerId: "STRING_VALUE",
|
|
49
|
+
* // offerToken: "STRING_VALUE", // required
|
|
50
|
+
* // termDetails: { // TermDetails
|
|
51
|
+
* // usageBasedPricingTerm: { // PricingTerm
|
|
52
|
+
* // rateCard: [ // RateCard // required
|
|
53
|
+
* // { // DimensionalPriceRate
|
|
54
|
+
* // dimension: "STRING_VALUE",
|
|
55
|
+
* // price: "STRING_VALUE",
|
|
56
|
+
* // description: "STRING_VALUE",
|
|
57
|
+
* // unit: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // legalTerm: { // LegalTerm
|
|
62
|
+
* // url: "STRING_VALUE",
|
|
63
|
+
* // },
|
|
64
|
+
* // supportTerm: { // SupportTerm
|
|
65
|
+
* // refundPolicyDescription: "STRING_VALUE",
|
|
66
|
+
* // },
|
|
67
|
+
* // validityTerm: { // ValidityTerm
|
|
68
|
+
* // agreementDuration: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // };
|
|
74
|
+
*
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param ListFoundationModelAgreementOffersCommandInput - {@link ListFoundationModelAgreementOffersCommandInput}
|
|
78
|
+
* @returns {@link ListFoundationModelAgreementOffersCommandOutput}
|
|
79
|
+
* @see {@link ListFoundationModelAgreementOffersCommandInput} for command's `input` shape.
|
|
80
|
+
* @see {@link ListFoundationModelAgreementOffersCommandOutput} for command's `response` shape.
|
|
81
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
84
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InternalServerException} (server fault)
|
|
87
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
90
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
93
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ValidationException} (client fault)
|
|
96
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link BedrockServiceException}
|
|
99
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class ListFoundationModelAgreementOffersCommand extends ListFoundationModelAgreementOffersCommand_base {
|
|
105
|
+
/** @internal type navigation helper, not in runtime. */
|
|
106
|
+
protected static __types: {
|
|
107
|
+
api: {
|
|
108
|
+
input: ListFoundationModelAgreementOffersRequest;
|
|
109
|
+
output: ListFoundationModelAgreementOffersResponse;
|
|
110
|
+
};
|
|
111
|
+
sdk: {
|
|
112
|
+
input: ListFoundationModelAgreementOffersCommandInput;
|
|
113
|
+
output: ListFoundationModelAgreementOffersCommandOutput;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import { ListModelCustomizationJobsRequest, ListModelCustomizationJobsResponse } from "../models/
|
|
4
|
+
import { ListModelCustomizationJobsRequest, ListModelCustomizationJobsResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { PutUseCaseForModelAccessRequest, PutUseCaseForModelAccessResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutUseCaseForModelAccessCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutUseCaseForModelAccessCommandInput extends PutUseCaseForModelAccessRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutUseCaseForModelAccessCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutUseCaseForModelAccessCommandOutput extends PutUseCaseForModelAccessResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutUseCaseForModelAccessCommand_base: {
|
|
25
|
+
new (input: PutUseCaseForModelAccessCommandInput): import("@smithy/smithy-client").CommandImpl<PutUseCaseForModelAccessCommandInput, PutUseCaseForModelAccessCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: PutUseCaseForModelAccessCommandInput): import("@smithy/smithy-client").CommandImpl<PutUseCaseForModelAccessCommandInput, PutUseCaseForModelAccessCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Put usecase for model access.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, PutUseCaseForModelAccessCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, PutUseCaseForModelAccessCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // PutUseCaseForModelAccessRequest
|
|
38
|
+
* formData: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new PutUseCaseForModelAccessCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param PutUseCaseForModelAccessCommandInput - {@link PutUseCaseForModelAccessCommandInput}
|
|
47
|
+
* @returns {@link PutUseCaseForModelAccessCommandOutput}
|
|
48
|
+
* @see {@link PutUseCaseForModelAccessCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link PutUseCaseForModelAccessCommandOutput} 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 ThrottlingException} (client fault)
|
|
59
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ValidationException} (client fault)
|
|
62
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link BedrockServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class PutUseCaseForModelAccessCommand extends PutUseCaseForModelAccessCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: PutUseCaseForModelAccessRequest;
|
|
75
|
+
output: {};
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: PutUseCaseForModelAccessCommandInput;
|
|
79
|
+
output: PutUseCaseForModelAccessCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import { StopModelCustomizationJobRequest, StopModelCustomizationJobResponse } from "../models/
|
|
4
|
+
import { StopModelCustomizationJobRequest, StopModelCustomizationJobResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import { TagResourceRequest, TagResourceResponse } from "../models/
|
|
4
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import { UntagResourceRequest, UntagResourceResponse } from "../models/
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -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";
|