@aws-sdk/client-bedrock 3.1173.0 → 3.1175.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 +175 -0
- package/dist-cjs/index.js +790 -44
- package/dist-es/Bedrock.js +54 -0
- package/dist-es/commands/ArchiveProjectCommand.js +4 -0
- package/dist-es/commands/CreateProjectCommand.js +4 -0
- package/dist-es/commands/DeleteAccountDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/DeleteOrganizationDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/DeleteProjectDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetAccountDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetOrganizationDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetProjectCommand.js +4 -0
- package/dist-es/commands/GetProjectDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramAccountEnrollmentCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.js +4 -0
- package/dist-es/commands/GetTrustedAccessProgramProjectEnrollmentCommand.js +4 -0
- package/dist-es/commands/ListProjectsCommand.js +4 -0
- package/dist-es/commands/ListTrustedAccessProgramsCommand.js +4 -0
- package/dist-es/commands/PutAccountDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/PutOrganizationDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/PutProjectDataRetentionStorageCommand.js +4 -0
- package/dist-es/commands/PutTrustedAccessProgramAccountEnrollmentCommand.js +4 -0
- package/dist-es/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.js +4 -0
- package/dist-es/commands/PutTrustedAccessProgramProjectEnrollmentCommand.js +4 -0
- package/dist-es/commands/StartTrustedAccessProgramAccountApplicationCommand.js +4 -0
- package/dist-es/commands/StartTrustedAccessProgramOrganizationApplicationCommand.js +4 -0
- package/dist-es/commands/StartTrustedAccessProgramProjectApplicationCommand.js +4 -0
- package/dist-es/commands/UpdateProjectCommand.js +4 -0
- package/dist-es/commands/index.js +25 -0
- package/dist-es/models/enums.js +40 -0
- package/dist-es/pagination/ListProjectsPaginator.js +4 -0
- package/dist-es/pagination/ListTrustedAccessProgramsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +526 -43
- package/dist-types/Bedrock.d.ts +191 -0
- package/dist-types/BedrockClient.d.ts +27 -2
- package/dist-types/commands/ArchiveProjectCommand.d.ts +97 -0
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +1 -2
- package/dist-types/commands/CreateProjectCommand.d.ts +109 -0
- package/dist-types/commands/DeleteAccountDataRetentionStorageCommand.d.ts +81 -0
- package/dist-types/commands/DeleteOrganizationDataRetentionStorageCommand.d.ts +81 -0
- package/dist-types/commands/DeleteProjectDataRetentionStorageCommand.d.ts +85 -0
- package/dist-types/commands/GetAccountDataRetentionStorageCommand.d.ts +96 -0
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -2
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -0
- package/dist-types/commands/GetInferenceProfileCommand.d.ts +1 -0
- package/dist-types/commands/GetOrganizationDataRetentionStorageCommand.d.ts +96 -0
- package/dist-types/commands/GetProjectCommand.d.ts +94 -0
- package/dist-types/commands/GetProjectDataRetentionStorageCommand.d.ts +98 -0
- package/dist-types/commands/GetTrustedAccessProgramAccountEnrollmentCommand.d.ts +87 -0
- package/dist-types/commands/GetTrustedAccessProgramCommand.d.ts +102 -0
- package/dist-types/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +87 -0
- package/dist-types/commands/GetTrustedAccessProgramProjectEnrollmentCommand.d.ts +88 -0
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -0
- package/dist-types/commands/ListInferenceProfilesCommand.d.ts +1 -0
- package/dist-types/commands/ListProjectsCommand.d.ts +98 -0
- package/dist-types/commands/ListTrustedAccessProgramsCommand.d.ts +108 -0
- package/dist-types/commands/PutAccountDataRetentionStorageCommand.d.ts +102 -0
- package/dist-types/commands/PutOrganizationDataRetentionStorageCommand.d.ts +102 -0
- package/dist-types/commands/PutProjectDataRetentionStorageCommand.d.ts +107 -0
- package/dist-types/commands/PutTrustedAccessProgramAccountEnrollmentCommand.d.ts +91 -0
- package/dist-types/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +91 -0
- package/dist-types/commands/PutTrustedAccessProgramProjectEnrollmentCommand.d.ts +92 -0
- package/dist-types/commands/StartTrustedAccessProgramAccountApplicationCommand.d.ts +92 -0
- package/dist-types/commands/StartTrustedAccessProgramOrganizationApplicationCommand.d.ts +92 -0
- package/dist-types/commands/StartTrustedAccessProgramProjectApplicationCommand.d.ts +93 -0
- package/dist-types/commands/StopEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProjectCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +25 -0
- package/dist-types/models/enums.d.ts +176 -0
- package/dist-types/models/models_0.d.ts +768 -716
- package/dist-types/models/models_1.d.ts +3216 -1969
- package/dist-types/pagination/ListProjectsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTrustedAccessProgramsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +82 -0
- package/dist-types/ts3.4/Bedrock.d.ts +438 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +147 -0
- package/dist-types/ts3.4/commands/ArchiveProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAccountDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteOrganizationDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteProjectDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAccountDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetEvaluationJobCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/GetOrganizationDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetProjectDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramAccountEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrustedAccessProgramProjectEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListEvaluationJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTrustedAccessProgramsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutAccountDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutOrganizationDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutProjectDataRetentionStorageCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutTrustedAccessProgramAccountEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutTrustedAccessProgramProjectEnrollmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartTrustedAccessProgramAccountApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartTrustedAccessProgramOrganizationApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartTrustedAccessProgramProjectApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopEvaluationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +25 -0
- package/dist-types/ts3.4/models/enums.d.ts +55 -0
- package/dist-types/ts3.4/models/models_0.d.ts +104 -102
- package/dist-types/ts3.4/models/models_1.d.ts +310 -5
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTrustedAccessProgramsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +82 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { ListEvaluationJobsRequest, ListEvaluationJobsResponse } from "../models/
|
|
2
|
+
import type { ListEvaluationJobsRequest, ListEvaluationJobsResponse } from "../models/models_1";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -38,6 +38,7 @@ declare const ListFoundationModelsCommand_base: {
|
|
|
38
38
|
* byCustomizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION",
|
|
39
39
|
* byOutputModality: "TEXT" || "IMAGE" || "EMBEDDING",
|
|
40
40
|
* byInferenceType: "ON_DEMAND" || "PROVISIONED",
|
|
41
|
+
* projectIdentifier: "STRING_VALUE",
|
|
41
42
|
* };
|
|
42
43
|
* const command = new ListFoundationModelsCommand(input);
|
|
43
44
|
* const response = await client.send(command);
|
|
@@ -37,6 +37,7 @@ declare const ListInferenceProfilesCommand_base: {
|
|
|
37
37
|
* maxResults: Number("int"),
|
|
38
38
|
* nextToken: "STRING_VALUE",
|
|
39
39
|
* typeEquals: "SYSTEM_DEFINED" || "APPLICATION",
|
|
40
|
+
* projectIdentifier: "STRING_VALUE",
|
|
40
41
|
* };
|
|
41
42
|
* const command = new ListInferenceProfilesCommand(input);
|
|
42
43
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListProjectsRequest, ListProjectsResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListProjectsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListProjectsCommandInput extends ListProjectsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListProjectsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListProjectsCommandOutput extends ListProjectsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListProjectsCommand_base: {
|
|
22
|
+
new (input: ListProjectsCommandInput): import("@smithy/core/client").CommandImpl<ListProjectsCommandInput, ListProjectsCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListProjectsCommandInput]): import("@smithy/core/client").CommandImpl<ListProjectsCommandInput, ListProjectsCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the account's projects. Results are paginated: when the response includes <code>nextToken</code>, pass it in the next request to fetch the following page. Page size is 1-100, default 20. By default every project is returned regardless of status; set <code>statusFilter</code> to list only active or only archived projects.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, ListProjectsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, ListProjectsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // ListProjectsRequest
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* statusFilter: "active" || "archived",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListProjectsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListProjectsResponse
|
|
44
|
+
* // projectSummaries: [ // ProjectSummaryList // required
|
|
45
|
+
* // { // ProjectSummary
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // arn: "STRING_VALUE", // required
|
|
48
|
+
* // name: "STRING_VALUE", // required
|
|
49
|
+
* // status: "active" || "archived", // required
|
|
50
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // archivedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // dataRetention: { // ProjectDataRetention
|
|
53
|
+
* // mode: "default" || "none" || "aws_review" || "provider_data_share" || "inherit", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // nextToken: "STRING_VALUE",
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param ListProjectsCommandInput - {@link ListProjectsCommandInput}
|
|
63
|
+
* @returns {@link ListProjectsCommandOutput}
|
|
64
|
+
* @see {@link ListProjectsCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link ListProjectsCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
69
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerException} (server fault)
|
|
72
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BedrockServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class ListProjectsCommand extends ListProjectsCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: ListProjectsRequest;
|
|
91
|
+
output: ListProjectsResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: ListProjectsCommandInput;
|
|
95
|
+
output: ListProjectsCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListTrustedAccessProgramsRequest, ListTrustedAccessProgramsResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListTrustedAccessProgramsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListTrustedAccessProgramsCommandInput extends ListTrustedAccessProgramsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListTrustedAccessProgramsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListTrustedAccessProgramsCommandOutput extends ListTrustedAccessProgramsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListTrustedAccessProgramsCommand_base: {
|
|
22
|
+
new (input: ListTrustedAccessProgramsCommandInput): import("@smithy/core/client").CommandImpl<ListTrustedAccessProgramsCommandInput, ListTrustedAccessProgramsCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListTrustedAccessProgramsCommandInput]): import("@smithy/core/client").CommandImpl<ListTrustedAccessProgramsCommandInput, ListTrustedAccessProgramsCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists all trusted access programs visible to your account, ordered by program ID. Amazon Bedrock resolves participation for your account and its current organization. If you specify a project, Amazon Bedrock resolves participation for the project, including inheritance from the account and organization. Archived projects remain readable until they expire. Amazon Bedrock returns all visible programs in one response.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, ListTrustedAccessProgramsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, ListTrustedAccessProgramsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // ListTrustedAccessProgramsRequest
|
|
37
|
+
* projectIdentifier: "STRING_VALUE",
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListTrustedAccessProgramsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListTrustedAccessProgramsResponse
|
|
44
|
+
* // programSummaries: [ // TrustedAccessProgramSummaries // required
|
|
45
|
+
* // { // TrustedAccessProgramSummary
|
|
46
|
+
* // programId: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE", // required
|
|
49
|
+
* // providerName: "STRING_VALUE", // required
|
|
50
|
+
* // detailsUrl: "STRING_VALUE", // required
|
|
51
|
+
* // enrollmentUrl: "STRING_VALUE",
|
|
52
|
+
* // status: "requestable" || "eligible" || "enabled" || "disabled" || "revoked", // required
|
|
53
|
+
* // statusReason: "STRING_VALUE",
|
|
54
|
+
* // source: "organization" || "account" || "project" || "program_default", // required
|
|
55
|
+
* // eligibilityScope: "organization" || "account" || "project" || "program_default",
|
|
56
|
+
* // resolvedFor: { // TrustedAccessResolutionContext
|
|
57
|
+
* // accountId: "STRING_VALUE", // required
|
|
58
|
+
* // projectArn: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
61
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // nextToken: "STRING_VALUE",
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param ListTrustedAccessProgramsCommandInput - {@link ListTrustedAccessProgramsCommandInput}
|
|
70
|
+
* @returns {@link ListTrustedAccessProgramsCommandOutput}
|
|
71
|
+
* @see {@link ListTrustedAccessProgramsCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link ListTrustedAccessProgramsCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link BedrockServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class ListTrustedAccessProgramsCommand extends ListTrustedAccessProgramsCommand_base {
|
|
97
|
+
/** @internal type navigation helper, not in runtime. */
|
|
98
|
+
protected static __types: {
|
|
99
|
+
api: {
|
|
100
|
+
input: ListTrustedAccessProgramsRequest;
|
|
101
|
+
output: ListTrustedAccessProgramsResponse;
|
|
102
|
+
};
|
|
103
|
+
sdk: {
|
|
104
|
+
input: ListTrustedAccessProgramsCommandInput;
|
|
105
|
+
output: ListTrustedAccessProgramsCommandOutput;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutAccountDataRetentionStorageRequest, PutAccountDataRetentionStorageResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutAccountDataRetentionStorageCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutAccountDataRetentionStorageCommandInput extends PutAccountDataRetentionStorageRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutAccountDataRetentionStorageCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutAccountDataRetentionStorageCommandOutput extends PutAccountDataRetentionStorageResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutAccountDataRetentionStorageCommand_base: {
|
|
22
|
+
new (input: PutAccountDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<PutAccountDataRetentionStorageCommandInput, PutAccountDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutAccountDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<PutAccountDataRetentionStorageCommandInput, PutAccountDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates or replaces the calling account's retention storage record for a model provider. Amazon Bedrock identifies the account from your authenticated request. Requires resolved trusted access eligibility for a storage-capable program of the provider at a covering scope; otherwise returns ConflictException. Writes replace the whole record; the last write wins.</p> <p>For <code>customer_managed</code> destinations, Amazon Bedrock validates the caller's and service's access to the bucket and key before saving the configuration. The bucket and key must be in the AWS Region where you register the configuration. Validation failures reject the write.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, PutAccountDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, PutAccountDataRetentionStorageCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // PutAccountDataRetentionStorageRequest
|
|
37
|
+
* modelProvider: "anthropic" || "openai", // required
|
|
38
|
+
* storageDestination: "customer_managed" || "amazon_managed", // required
|
|
39
|
+
* storageConfiguration: { // DataRetentionStorageConfiguration
|
|
40
|
+
* kmsKeyArn: "STRING_VALUE", // required
|
|
41
|
+
* s3BucketArn: "STRING_VALUE", // required
|
|
42
|
+
* s3BucketOwner: "STRING_VALUE", // required
|
|
43
|
+
* },
|
|
44
|
+
* };
|
|
45
|
+
* const command = new PutAccountDataRetentionStorageCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // PutAccountDataRetentionStorageResponse
|
|
48
|
+
* // scope: "account" || "organization" || "project", // required
|
|
49
|
+
* // modelProvider: "anthropic" || "openai", // required
|
|
50
|
+
* // storageDestination: "customer_managed" || "amazon_managed", // required
|
|
51
|
+
* // storageConfiguration: { // DataRetentionStorageConfiguration
|
|
52
|
+
* // kmsKeyArn: "STRING_VALUE", // required
|
|
53
|
+
* // s3BucketArn: "STRING_VALUE", // required
|
|
54
|
+
* // s3BucketOwner: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // kmsKeyStatus: "pending" || "active" || "access_denied",
|
|
58
|
+
* // s3BucketStatus: "pending" || "active" || "access_denied",
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param PutAccountDataRetentionStorageCommandInput - {@link PutAccountDataRetentionStorageCommandInput}
|
|
64
|
+
* @returns {@link PutAccountDataRetentionStorageCommandOutput}
|
|
65
|
+
* @see {@link PutAccountDataRetentionStorageCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link PutAccountDataRetentionStorageCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ConflictException} (client fault)
|
|
73
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link BedrockServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class PutAccountDataRetentionStorageCommand extends PutAccountDataRetentionStorageCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: PutAccountDataRetentionStorageRequest;
|
|
95
|
+
output: PutAccountDataRetentionStorageResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: PutAccountDataRetentionStorageCommandInput;
|
|
99
|
+
output: PutAccountDataRetentionStorageCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutOrganizationDataRetentionStorageRequest, PutOrganizationDataRetentionStorageResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutOrganizationDataRetentionStorageCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutOrganizationDataRetentionStorageCommandInput extends PutOrganizationDataRetentionStorageRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutOrganizationDataRetentionStorageCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutOrganizationDataRetentionStorageCommandOutput extends PutOrganizationDataRetentionStorageResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutOrganizationDataRetentionStorageCommand_base: {
|
|
22
|
+
new (input: PutOrganizationDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<PutOrganizationDataRetentionStorageCommandInput, PutOrganizationDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutOrganizationDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<PutOrganizationDataRetentionStorageCommandInput, PutOrganizationDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates or replaces the organization's retention storage record for a model provider. The organization is resolved from the authenticated caller's management context; the caller must be the organization's management account or a delegated administrator. Requires resolved organization-scope trusted access eligibility for a storage-capable program of the provider; otherwise returns ConflictException. Writes replace the whole record; the last write wins.</p> <p>For <code>customer_managed</code> destinations, Amazon Bedrock validates the caller's and service's access to the bucket and key before saving the configuration. The bucket and key must be in the AWS Region where you register the configuration. Validation failures reject the write.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, PutOrganizationDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, PutOrganizationDataRetentionStorageCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // PutOrganizationDataRetentionStorageRequest
|
|
37
|
+
* modelProvider: "anthropic" || "openai", // required
|
|
38
|
+
* storageDestination: "customer_managed" || "amazon_managed", // required
|
|
39
|
+
* storageConfiguration: { // DataRetentionStorageConfiguration
|
|
40
|
+
* kmsKeyArn: "STRING_VALUE", // required
|
|
41
|
+
* s3BucketArn: "STRING_VALUE", // required
|
|
42
|
+
* s3BucketOwner: "STRING_VALUE", // required
|
|
43
|
+
* },
|
|
44
|
+
* };
|
|
45
|
+
* const command = new PutOrganizationDataRetentionStorageCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // PutOrganizationDataRetentionStorageResponse
|
|
48
|
+
* // scope: "account" || "organization" || "project", // required
|
|
49
|
+
* // modelProvider: "anthropic" || "openai", // required
|
|
50
|
+
* // storageDestination: "customer_managed" || "amazon_managed", // required
|
|
51
|
+
* // storageConfiguration: { // DataRetentionStorageConfiguration
|
|
52
|
+
* // kmsKeyArn: "STRING_VALUE", // required
|
|
53
|
+
* // s3BucketArn: "STRING_VALUE", // required
|
|
54
|
+
* // s3BucketOwner: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // kmsKeyStatus: "pending" || "active" || "access_denied",
|
|
58
|
+
* // s3BucketStatus: "pending" || "active" || "access_denied",
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param PutOrganizationDataRetentionStorageCommandInput - {@link PutOrganizationDataRetentionStorageCommandInput}
|
|
64
|
+
* @returns {@link PutOrganizationDataRetentionStorageCommandOutput}
|
|
65
|
+
* @see {@link PutOrganizationDataRetentionStorageCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link PutOrganizationDataRetentionStorageCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ConflictException} (client fault)
|
|
73
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link BedrockServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class PutOrganizationDataRetentionStorageCommand extends PutOrganizationDataRetentionStorageCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: PutOrganizationDataRetentionStorageRequest;
|
|
95
|
+
output: PutOrganizationDataRetentionStorageResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: PutOrganizationDataRetentionStorageCommandInput;
|
|
99
|
+
output: PutOrganizationDataRetentionStorageCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutProjectDataRetentionStorageRequest, PutProjectDataRetentionStorageResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutProjectDataRetentionStorageCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutProjectDataRetentionStorageCommandInput extends PutProjectDataRetentionStorageRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutProjectDataRetentionStorageCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutProjectDataRetentionStorageCommandOutput extends PutProjectDataRetentionStorageResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutProjectDataRetentionStorageCommand_base: {
|
|
22
|
+
new (input: PutProjectDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<PutProjectDataRetentionStorageCommandInput, PutProjectDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutProjectDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<PutProjectDataRetentionStorageCommandInput, PutProjectDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates or replaces a project's retention storage record for a model provider. The project must be active in this AWS Region and owned by the calling account. A missing or unowned project returns <code>ResourceNotFoundException</code>; an archived project returns <code>ValidationException</code>.</p> <p>Requires applicable project, account, or organization approval for a storage-capable trusted access program of the provider, with no applicable revocation. Otherwise, the operation returns <code>ConflictException</code>. Enrollment is not required to save the configuration.</p> <p>The request replaces the complete stored configuration. The last successful write wins.</p> <p>For <code>customer_managed</code> destinations, Amazon Bedrock validates the caller's and service's access to the bucket and key before saving the configuration. The bucket and key must be in the AWS Region where you register the configuration. Validation failures reject the write.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, PutProjectDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, PutProjectDataRetentionStorageCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // PutProjectDataRetentionStorageRequest
|
|
37
|
+
* projectIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* modelProvider: "anthropic" || "openai", // required
|
|
39
|
+
* storageDestination: "customer_managed" || "amazon_managed", // required
|
|
40
|
+
* storageConfiguration: { // DataRetentionStorageConfiguration
|
|
41
|
+
* kmsKeyArn: "STRING_VALUE", // required
|
|
42
|
+
* s3BucketArn: "STRING_VALUE", // required
|
|
43
|
+
* s3BucketOwner: "STRING_VALUE", // required
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* const command = new PutProjectDataRetentionStorageCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // PutProjectDataRetentionStorageResponse
|
|
49
|
+
* // scope: "account" || "organization" || "project", // required
|
|
50
|
+
* // modelProvider: "anthropic" || "openai", // required
|
|
51
|
+
* // storageDestination: "customer_managed" || "amazon_managed", // required
|
|
52
|
+
* // storageConfiguration: { // DataRetentionStorageConfiguration
|
|
53
|
+
* // kmsKeyArn: "STRING_VALUE", // required
|
|
54
|
+
* // s3BucketArn: "STRING_VALUE", // required
|
|
55
|
+
* // s3BucketOwner: "STRING_VALUE", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
58
|
+
* // kmsKeyStatus: "pending" || "active" || "access_denied",
|
|
59
|
+
* // s3BucketStatus: "pending" || "active" || "access_denied",
|
|
60
|
+
* // projectArn: "STRING_VALUE", // required
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param PutProjectDataRetentionStorageCommandInput - {@link PutProjectDataRetentionStorageCommandInput}
|
|
66
|
+
* @returns {@link PutProjectDataRetentionStorageCommandOutput}
|
|
67
|
+
* @see {@link PutProjectDataRetentionStorageCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link PutProjectDataRetentionStorageCommandOutput} 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 ConflictException} (client fault)
|
|
75
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServerException} (server fault)
|
|
78
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
81
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</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
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class PutProjectDataRetentionStorageCommand extends PutProjectDataRetentionStorageCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: PutProjectDataRetentionStorageRequest;
|
|
100
|
+
output: PutProjectDataRetentionStorageResponse;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: PutProjectDataRetentionStorageCommandInput;
|
|
104
|
+
output: PutProjectDataRetentionStorageCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutTrustedAccessProgramAccountEnrollmentRequest, PutTrustedAccessProgramAccountEnrollmentResponse } from "../models/models_1";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutTrustedAccessProgramAccountEnrollmentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutTrustedAccessProgramAccountEnrollmentCommandInput extends PutTrustedAccessProgramAccountEnrollmentRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutTrustedAccessProgramAccountEnrollmentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutTrustedAccessProgramAccountEnrollmentCommandOutput extends PutTrustedAccessProgramAccountEnrollmentResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutTrustedAccessProgramAccountEnrollmentCommand_base: {
|
|
22
|
+
new (input: PutTrustedAccessProgramAccountEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<PutTrustedAccessProgramAccountEnrollmentCommandInput, PutTrustedAccessProgramAccountEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutTrustedAccessProgramAccountEnrollmentCommandInput): import("@smithy/core/client").CommandImpl<PutTrustedAccessProgramAccountEnrollmentCommandInput, PutTrustedAccessProgramAccountEnrollmentCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sets your account's enrollment preference for a trusted access program. Amazon Bedrock identifies the account from your authenticated request. To enable enrollment, your account needs applicable approval and no applicable revocation, including when you repeat an enabled setting. Otherwise, Amazon Bedrock returns <code>ConflictException</code> and preserves the stored setting. With the required permissions, you can set <code>disabled</code> or <code>inherit</code> even if your account is ineligible or its eligibility is revoked.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockClient, PutTrustedAccessProgramAccountEnrollmentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
32
|
+
* // const { BedrockClient, PutTrustedAccessProgramAccountEnrollmentCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
33
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
34
|
+
* const config = {}; // type is BedrockClientConfig
|
|
35
|
+
* const client = new BedrockClient(config);
|
|
36
|
+
* const input = { // PutTrustedAccessProgramAccountEnrollmentRequest
|
|
37
|
+
* programIdentifier: "STRING_VALUE", // required
|
|
38
|
+
* optIn: "inherit" || "enabled" || "disabled", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new PutTrustedAccessProgramAccountEnrollmentCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // PutTrustedAccessProgramAccountEnrollmentResponse
|
|
43
|
+
* // optIn: "inherit" || "enabled" || "disabled", // required
|
|
44
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param PutTrustedAccessProgramAccountEnrollmentCommandInput - {@link PutTrustedAccessProgramAccountEnrollmentCommandInput}
|
|
50
|
+
* @returns {@link PutTrustedAccessProgramAccountEnrollmentCommandOutput}
|
|
51
|
+
* @see {@link PutTrustedAccessProgramAccountEnrollmentCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link PutTrustedAccessProgramAccountEnrollmentCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConflictException} (client fault)
|
|
59
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link BedrockServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class PutTrustedAccessProgramAccountEnrollmentCommand extends PutTrustedAccessProgramAccountEnrollmentCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: PutTrustedAccessProgramAccountEnrollmentRequest;
|
|
84
|
+
output: PutTrustedAccessProgramAccountEnrollmentResponse;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: PutTrustedAccessProgramAccountEnrollmentCommandInput;
|
|
88
|
+
output: PutTrustedAccessProgramAccountEnrollmentCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|