@aws-sdk/client-bedrock 3.1172.0 → 3.1174.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.
Files changed (117) hide show
  1. package/README.md +175 -0
  2. package/dist-cjs/index.js +790 -44
  3. package/dist-es/Bedrock.js +54 -0
  4. package/dist-es/commands/ArchiveProjectCommand.js +4 -0
  5. package/dist-es/commands/CreateProjectCommand.js +4 -0
  6. package/dist-es/commands/DeleteAccountDataRetentionStorageCommand.js +4 -0
  7. package/dist-es/commands/DeleteOrganizationDataRetentionStorageCommand.js +4 -0
  8. package/dist-es/commands/DeleteProjectDataRetentionStorageCommand.js +4 -0
  9. package/dist-es/commands/GetAccountDataRetentionStorageCommand.js +4 -0
  10. package/dist-es/commands/GetOrganizationDataRetentionStorageCommand.js +4 -0
  11. package/dist-es/commands/GetProjectCommand.js +4 -0
  12. package/dist-es/commands/GetProjectDataRetentionStorageCommand.js +4 -0
  13. package/dist-es/commands/GetTrustedAccessProgramAccountEnrollmentCommand.js +4 -0
  14. package/dist-es/commands/GetTrustedAccessProgramCommand.js +4 -0
  15. package/dist-es/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.js +4 -0
  16. package/dist-es/commands/GetTrustedAccessProgramProjectEnrollmentCommand.js +4 -0
  17. package/dist-es/commands/ListProjectsCommand.js +4 -0
  18. package/dist-es/commands/ListTrustedAccessProgramsCommand.js +4 -0
  19. package/dist-es/commands/PutAccountDataRetentionStorageCommand.js +4 -0
  20. package/dist-es/commands/PutOrganizationDataRetentionStorageCommand.js +4 -0
  21. package/dist-es/commands/PutProjectDataRetentionStorageCommand.js +4 -0
  22. package/dist-es/commands/PutTrustedAccessProgramAccountEnrollmentCommand.js +4 -0
  23. package/dist-es/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.js +4 -0
  24. package/dist-es/commands/PutTrustedAccessProgramProjectEnrollmentCommand.js +4 -0
  25. package/dist-es/commands/StartTrustedAccessProgramAccountApplicationCommand.js +4 -0
  26. package/dist-es/commands/StartTrustedAccessProgramOrganizationApplicationCommand.js +4 -0
  27. package/dist-es/commands/StartTrustedAccessProgramProjectApplicationCommand.js +4 -0
  28. package/dist-es/commands/UpdateProjectCommand.js +4 -0
  29. package/dist-es/commands/index.js +25 -0
  30. package/dist-es/models/enums.js +40 -0
  31. package/dist-es/pagination/ListProjectsPaginator.js +4 -0
  32. package/dist-es/pagination/ListTrustedAccessProgramsPaginator.js +4 -0
  33. package/dist-es/pagination/index.js +2 -0
  34. package/dist-es/schemas/schemas_0.js +526 -43
  35. package/dist-types/Bedrock.d.ts +191 -0
  36. package/dist-types/BedrockClient.d.ts +27 -2
  37. package/dist-types/commands/ArchiveProjectCommand.d.ts +97 -0
  38. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +1 -2
  39. package/dist-types/commands/CreateProjectCommand.d.ts +109 -0
  40. package/dist-types/commands/DeleteAccountDataRetentionStorageCommand.d.ts +81 -0
  41. package/dist-types/commands/DeleteOrganizationDataRetentionStorageCommand.d.ts +81 -0
  42. package/dist-types/commands/DeleteProjectDataRetentionStorageCommand.d.ts +85 -0
  43. package/dist-types/commands/GetAccountDataRetentionStorageCommand.d.ts +96 -0
  44. package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -2
  45. package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -0
  46. package/dist-types/commands/GetInferenceProfileCommand.d.ts +1 -0
  47. package/dist-types/commands/GetOrganizationDataRetentionStorageCommand.d.ts +96 -0
  48. package/dist-types/commands/GetProjectCommand.d.ts +94 -0
  49. package/dist-types/commands/GetProjectDataRetentionStorageCommand.d.ts +98 -0
  50. package/dist-types/commands/GetTrustedAccessProgramAccountEnrollmentCommand.d.ts +87 -0
  51. package/dist-types/commands/GetTrustedAccessProgramCommand.d.ts +102 -0
  52. package/dist-types/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +87 -0
  53. package/dist-types/commands/GetTrustedAccessProgramProjectEnrollmentCommand.d.ts +88 -0
  54. package/dist-types/commands/ListEvaluationJobsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -0
  56. package/dist-types/commands/ListInferenceProfilesCommand.d.ts +1 -0
  57. package/dist-types/commands/ListProjectsCommand.d.ts +98 -0
  58. package/dist-types/commands/ListTrustedAccessProgramsCommand.d.ts +108 -0
  59. package/dist-types/commands/PutAccountDataRetentionStorageCommand.d.ts +102 -0
  60. package/dist-types/commands/PutOrganizationDataRetentionStorageCommand.d.ts +102 -0
  61. package/dist-types/commands/PutProjectDataRetentionStorageCommand.d.ts +107 -0
  62. package/dist-types/commands/PutTrustedAccessProgramAccountEnrollmentCommand.d.ts +91 -0
  63. package/dist-types/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +91 -0
  64. package/dist-types/commands/PutTrustedAccessProgramProjectEnrollmentCommand.d.ts +92 -0
  65. package/dist-types/commands/StartTrustedAccessProgramAccountApplicationCommand.d.ts +92 -0
  66. package/dist-types/commands/StartTrustedAccessProgramOrganizationApplicationCommand.d.ts +92 -0
  67. package/dist-types/commands/StartTrustedAccessProgramProjectApplicationCommand.d.ts +93 -0
  68. package/dist-types/commands/StopEvaluationJobCommand.d.ts +1 -1
  69. package/dist-types/commands/UpdateProjectCommand.d.ts +101 -0
  70. package/dist-types/commands/index.d.ts +25 -0
  71. package/dist-types/models/enums.d.ts +176 -0
  72. package/dist-types/models/models_0.d.ts +768 -716
  73. package/dist-types/models/models_1.d.ts +3216 -1969
  74. package/dist-types/pagination/ListProjectsPaginator.d.ts +7 -0
  75. package/dist-types/pagination/ListTrustedAccessProgramsPaginator.d.ts +7 -0
  76. package/dist-types/pagination/index.d.ts +2 -0
  77. package/dist-types/schemas/schemas_0.d.ts +82 -0
  78. package/dist-types/ts3.4/Bedrock.d.ts +438 -0
  79. package/dist-types/ts3.4/BedrockClient.d.ts +147 -0
  80. package/dist-types/ts3.4/commands/ArchiveProjectCommand.d.ts +38 -0
  81. package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +1 -2
  82. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +38 -0
  83. package/dist-types/ts3.4/commands/DeleteAccountDataRetentionStorageCommand.d.ts +42 -0
  84. package/dist-types/ts3.4/commands/DeleteOrganizationDataRetentionStorageCommand.d.ts +42 -0
  85. package/dist-types/ts3.4/commands/DeleteProjectDataRetentionStorageCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/GetAccountDataRetentionStorageCommand.d.ts +42 -0
  87. package/dist-types/ts3.4/commands/GetEvaluationJobCommand.d.ts +1 -2
  88. package/dist-types/ts3.4/commands/GetOrganizationDataRetentionStorageCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/GetProjectDataRetentionStorageCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/GetTrustedAccessProgramAccountEnrollmentCommand.d.ts +42 -0
  92. package/dist-types/ts3.4/commands/GetTrustedAccessProgramCommand.d.ts +42 -0
  93. package/dist-types/ts3.4/commands/GetTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +42 -0
  94. package/dist-types/ts3.4/commands/GetTrustedAccessProgramProjectEnrollmentCommand.d.ts +42 -0
  95. package/dist-types/ts3.4/commands/ListEvaluationJobsCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +38 -0
  97. package/dist-types/ts3.4/commands/ListTrustedAccessProgramsCommand.d.ts +42 -0
  98. package/dist-types/ts3.4/commands/PutAccountDataRetentionStorageCommand.d.ts +42 -0
  99. package/dist-types/ts3.4/commands/PutOrganizationDataRetentionStorageCommand.d.ts +42 -0
  100. package/dist-types/ts3.4/commands/PutProjectDataRetentionStorageCommand.d.ts +42 -0
  101. package/dist-types/ts3.4/commands/PutTrustedAccessProgramAccountEnrollmentCommand.d.ts +42 -0
  102. package/dist-types/ts3.4/commands/PutTrustedAccessProgramOrganizationEnrollmentCommand.d.ts +42 -0
  103. package/dist-types/ts3.4/commands/PutTrustedAccessProgramProjectEnrollmentCommand.d.ts +42 -0
  104. package/dist-types/ts3.4/commands/StartTrustedAccessProgramAccountApplicationCommand.d.ts +42 -0
  105. package/dist-types/ts3.4/commands/StartTrustedAccessProgramOrganizationApplicationCommand.d.ts +42 -0
  106. package/dist-types/ts3.4/commands/StartTrustedAccessProgramProjectApplicationCommand.d.ts +42 -0
  107. package/dist-types/ts3.4/commands/StopEvaluationJobCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
  109. package/dist-types/ts3.4/commands/index.d.ts +25 -0
  110. package/dist-types/ts3.4/models/enums.d.ts +55 -0
  111. package/dist-types/ts3.4/models/models_0.d.ts +104 -102
  112. package/dist-types/ts3.4/models/models_1.d.ts +310 -5
  113. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
  114. package/dist-types/ts3.4/pagination/ListTrustedAccessProgramsPaginator.d.ts +11 -0
  115. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  116. package/dist-types/ts3.4/schemas/schemas_0.d.ts +82 -0
  117. package/package.json +2 -2
@@ -0,0 +1,97 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ArchiveProjectRequest, ArchiveProjectResponse } from "../models/models_1";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ArchiveProjectCommand}.
11
+ */
12
+ export interface ArchiveProjectCommandInput extends ArchiveProjectRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ArchiveProjectCommand}.
18
+ */
19
+ export interface ArchiveProjectCommandOutput extends ArchiveProjectResponse, __MetadataBearer {
20
+ }
21
+ declare const ArchiveProjectCommand_base: {
22
+ new (input: ArchiveProjectCommandInput): import("@smithy/core/client").CommandImpl<ArchiveProjectCommandInput, ArchiveProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ArchiveProjectCommandInput): import("@smithy/core/client").CommandImpl<ArchiveProjectCommandInput, ArchiveProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Archives a project. Archiving is terminal; there is no delete. Archiving an already-archived project succeeds without effect. The default project cannot be archived.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BedrockClient, ArchiveProjectCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
32
+ * // const { BedrockClient, ArchiveProjectCommand } = 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 = { // ArchiveProjectRequest
37
+ * projectIdentifier: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new ArchiveProjectCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ArchiveProjectResponse
42
+ * // id: "STRING_VALUE", // required
43
+ * // arn: "STRING_VALUE", // required
44
+ * // name: "STRING_VALUE", // required
45
+ * // status: "active" || "archived", // required
46
+ * // createdAt: new Date("TIMESTAMP"), // required
47
+ * // archivedAt: new Date("TIMESTAMP"),
48
+ * // dataRetention: { // ProjectDataRetention
49
+ * // mode: "default" || "none" || "aws_review" || "provider_data_share" || "inherit", // required
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param ArchiveProjectCommandInput - {@link ArchiveProjectCommandInput}
56
+ * @returns {@link ArchiveProjectCommandOutput}
57
+ * @see {@link ArchiveProjectCommandInput} for command's `input` shape.
58
+ * @see {@link ArchiveProjectCommandOutput} 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 ConflictException} (client fault)
65
+ * <p>Error occurred because of a conflict while performing an operation.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>An internal server error occurred. Retry your request.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
78
+ *
79
+ * @throws {@link BedrockServiceException}
80
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class ArchiveProjectCommand extends ArchiveProjectCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: ArchiveProjectRequest;
90
+ output: ArchiveProjectResponse;
91
+ };
92
+ sdk: {
93
+ input: ArchiveProjectCommandInput;
94
+ output: ArchiveProjectCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -1,6 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { CreateEvaluationJobResponse } from "../models/models_0";
3
- import type { CreateEvaluationJobRequest } from "../models/models_1";
2
+ import type { CreateEvaluationJobRequest, CreateEvaluationJobResponse } from "../models/models_1";
4
3
  /**
5
4
  * @public
6
5
  */
@@ -0,0 +1,109 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateProjectRequest, CreateProjectResponse } from "../models/models_1";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateProjectCommand}.
11
+ */
12
+ export interface CreateProjectCommandInput extends CreateProjectRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateProjectCommand}.
18
+ */
19
+ export interface CreateProjectCommandOutput extends CreateProjectResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateProjectCommand_base: {
22
+ new (input: CreateProjectCommandInput): import("@smithy/core/client").CommandImpl<CreateProjectCommandInput, CreateProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateProjectCommandInput): import("@smithy/core/client").CommandImpl<CreateProjectCommandInput, CreateProjectCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a project: a workload boundary within the account that inference requests can be associated with.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BedrockClient, CreateProjectCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
32
+ * // const { BedrockClient, CreateProjectCommand } = 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 = { // CreateProjectRequest
37
+ * name: "STRING_VALUE", // required
38
+ * tags: [ // TagList
39
+ * { // Tag
40
+ * key: "STRING_VALUE", // required
41
+ * value: "STRING_VALUE", // required
42
+ * },
43
+ * ],
44
+ * dataRetention: { // ProjectDataRetention
45
+ * mode: "default" || "none" || "aws_review" || "provider_data_share" || "inherit", // required
46
+ * },
47
+ * };
48
+ * const command = new CreateProjectCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // CreateProjectResponse
51
+ * // id: "STRING_VALUE", // required
52
+ * // arn: "STRING_VALUE", // required
53
+ * // name: "STRING_VALUE", // required
54
+ * // status: "active" || "archived", // required
55
+ * // createdAt: new Date("TIMESTAMP"), // required
56
+ * // archivedAt: new Date("TIMESTAMP"),
57
+ * // dataRetention: { // ProjectDataRetention
58
+ * // mode: "default" || "none" || "aws_review" || "provider_data_share" || "inherit", // required
59
+ * // },
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param CreateProjectCommandInput - {@link CreateProjectCommandInput}
65
+ * @returns {@link CreateProjectCommandOutput}
66
+ * @see {@link CreateProjectCommandInput} for command's `input` shape.
67
+ * @see {@link CreateProjectCommandOutput} for command's `response` shape.
68
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>The request is denied because of missing access permissions.</p>
72
+ *
73
+ * @throws {@link ConflictException} (client fault)
74
+ * <p>Error occurred because of a conflict while performing an operation.</p>
75
+ *
76
+ * @throws {@link InternalServerException} (server fault)
77
+ * <p>An internal server error occurred. Retry your request.</p>
78
+ *
79
+ * @throws {@link ServiceQuotaExceededException} (client fault)
80
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
81
+ *
82
+ * @throws {@link ThrottlingException} (client fault)
83
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
84
+ *
85
+ * @throws {@link TooManyTagsException} (client fault)
86
+ * <p>The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. </p>
87
+ *
88
+ * @throws {@link ValidationException} (client fault)
89
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
90
+ *
91
+ * @throws {@link BedrockServiceException}
92
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
93
+ *
94
+ *
95
+ * @public
96
+ */
97
+ export declare class CreateProjectCommand extends CreateProjectCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: CreateProjectRequest;
102
+ output: CreateProjectResponse;
103
+ };
104
+ sdk: {
105
+ input: CreateProjectCommandInput;
106
+ output: CreateProjectCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -0,0 +1,81 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DeleteAccountDataRetentionStorageRequest, DeleteAccountDataRetentionStorageResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DeleteAccountDataRetentionStorageCommand}.
11
+ */
12
+ export interface DeleteAccountDataRetentionStorageCommandInput extends DeleteAccountDataRetentionStorageRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DeleteAccountDataRetentionStorageCommand}.
18
+ */
19
+ export interface DeleteAccountDataRetentionStorageCommandOutput extends DeleteAccountDataRetentionStorageResponse, __MetadataBearer {
20
+ }
21
+ declare const DeleteAccountDataRetentionStorageCommand_base: {
22
+ new (input: DeleteAccountDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<DeleteAccountDataRetentionStorageCommandInput, DeleteAccountDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteAccountDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<DeleteAccountDataRetentionStorageCommandInput, DeleteAccountDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Deletes your account's retention storage configuration for a model provider. Deleting an absent configuration succeeds. You do not need to participate in the program to delete the configuration. You can delete it 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, DeleteAccountDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
32
+ * // const { BedrockClient, DeleteAccountDataRetentionStorageCommand } = 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 = { // DeleteAccountDataRetentionStorageRequest
37
+ * modelProvider: "anthropic" || "openai", // required
38
+ * };
39
+ * const command = new DeleteAccountDataRetentionStorageCommand(input);
40
+ * const response = await client.send(command);
41
+ * // {};
42
+ *
43
+ * ```
44
+ *
45
+ * @param DeleteAccountDataRetentionStorageCommandInput - {@link DeleteAccountDataRetentionStorageCommandInput}
46
+ * @returns {@link DeleteAccountDataRetentionStorageCommandOutput}
47
+ * @see {@link DeleteAccountDataRetentionStorageCommandInput} for command's `input` shape.
48
+ * @see {@link DeleteAccountDataRetentionStorageCommandOutput} for command's `response` shape.
49
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
50
+ *
51
+ * @throws {@link AccessDeniedException} (client fault)
52
+ * <p>The request is denied because of missing access permissions.</p>
53
+ *
54
+ * @throws {@link InternalServerException} (server fault)
55
+ * <p>An internal server error occurred. Retry your request.</p>
56
+ *
57
+ * @throws {@link ThrottlingException} (client fault)
58
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
59
+ *
60
+ * @throws {@link ValidationException} (client fault)
61
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
62
+ *
63
+ * @throws {@link BedrockServiceException}
64
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
65
+ *
66
+ *
67
+ * @public
68
+ */
69
+ export declare class DeleteAccountDataRetentionStorageCommand extends DeleteAccountDataRetentionStorageCommand_base {
70
+ /** @internal type navigation helper, not in runtime. */
71
+ protected static __types: {
72
+ api: {
73
+ input: DeleteAccountDataRetentionStorageRequest;
74
+ output: {};
75
+ };
76
+ sdk: {
77
+ input: DeleteAccountDataRetentionStorageCommandInput;
78
+ output: DeleteAccountDataRetentionStorageCommandOutput;
79
+ };
80
+ };
81
+ }
@@ -0,0 +1,81 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DeleteOrganizationDataRetentionStorageRequest, DeleteOrganizationDataRetentionStorageResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DeleteOrganizationDataRetentionStorageCommand}.
11
+ */
12
+ export interface DeleteOrganizationDataRetentionStorageCommandInput extends DeleteOrganizationDataRetentionStorageRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DeleteOrganizationDataRetentionStorageCommand}.
18
+ */
19
+ export interface DeleteOrganizationDataRetentionStorageCommandOutput extends DeleteOrganizationDataRetentionStorageResponse, __MetadataBearer {
20
+ }
21
+ declare const DeleteOrganizationDataRetentionStorageCommand_base: {
22
+ new (input: DeleteOrganizationDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<DeleteOrganizationDataRetentionStorageCommandInput, DeleteOrganizationDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteOrganizationDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<DeleteOrganizationDataRetentionStorageCommandInput, DeleteOrganizationDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Deletes the organization's retention storage configuration for a model provider. The caller must be the organization's management account or a delegated administrator. Deleting an absent configuration succeeds; no program participation is required to delete.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BedrockClient, DeleteOrganizationDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
32
+ * // const { BedrockClient, DeleteOrganizationDataRetentionStorageCommand } = 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 = { // DeleteOrganizationDataRetentionStorageRequest
37
+ * modelProvider: "anthropic" || "openai", // required
38
+ * };
39
+ * const command = new DeleteOrganizationDataRetentionStorageCommand(input);
40
+ * const response = await client.send(command);
41
+ * // {};
42
+ *
43
+ * ```
44
+ *
45
+ * @param DeleteOrganizationDataRetentionStorageCommandInput - {@link DeleteOrganizationDataRetentionStorageCommandInput}
46
+ * @returns {@link DeleteOrganizationDataRetentionStorageCommandOutput}
47
+ * @see {@link DeleteOrganizationDataRetentionStorageCommandInput} for command's `input` shape.
48
+ * @see {@link DeleteOrganizationDataRetentionStorageCommandOutput} for command's `response` shape.
49
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
50
+ *
51
+ * @throws {@link AccessDeniedException} (client fault)
52
+ * <p>The request is denied because of missing access permissions.</p>
53
+ *
54
+ * @throws {@link InternalServerException} (server fault)
55
+ * <p>An internal server error occurred. Retry your request.</p>
56
+ *
57
+ * @throws {@link ThrottlingException} (client fault)
58
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
59
+ *
60
+ * @throws {@link ValidationException} (client fault)
61
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
62
+ *
63
+ * @throws {@link BedrockServiceException}
64
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
65
+ *
66
+ *
67
+ * @public
68
+ */
69
+ export declare class DeleteOrganizationDataRetentionStorageCommand extends DeleteOrganizationDataRetentionStorageCommand_base {
70
+ /** @internal type navigation helper, not in runtime. */
71
+ protected static __types: {
72
+ api: {
73
+ input: DeleteOrganizationDataRetentionStorageRequest;
74
+ output: {};
75
+ };
76
+ sdk: {
77
+ input: DeleteOrganizationDataRetentionStorageCommandInput;
78
+ output: DeleteOrganizationDataRetentionStorageCommandOutput;
79
+ };
80
+ };
81
+ }
@@ -0,0 +1,85 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DeleteProjectDataRetentionStorageRequest, DeleteProjectDataRetentionStorageResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DeleteProjectDataRetentionStorageCommand}.
11
+ */
12
+ export interface DeleteProjectDataRetentionStorageCommandInput extends DeleteProjectDataRetentionStorageRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DeleteProjectDataRetentionStorageCommand}.
18
+ */
19
+ export interface DeleteProjectDataRetentionStorageCommandOutput extends DeleteProjectDataRetentionStorageResponse, __MetadataBearer {
20
+ }
21
+ declare const DeleteProjectDataRetentionStorageCommand_base: {
22
+ new (input: DeleteProjectDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<DeleteProjectDataRetentionStorageCommandInput, DeleteProjectDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteProjectDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<DeleteProjectDataRetentionStorageCommandInput, DeleteProjectDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Deletes a project's retention storage configuration for a model provider. Deleting an absent configuration on an active project succeeds. If the project does not exist or your account does not own it, the operation returns <code>ResourceNotFoundException</code>. For an archived project, the operation returns <code>ValidationException</code>. You can read the archived project's stored configuration until Amazon Bedrock purges the project. You do not need to participate in the program to delete the configuration.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BedrockClient, DeleteProjectDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
32
+ * // const { BedrockClient, DeleteProjectDataRetentionStorageCommand } = 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 = { // DeleteProjectDataRetentionStorageRequest
37
+ * projectIdentifier: "STRING_VALUE", // required
38
+ * modelProvider: "anthropic" || "openai", // required
39
+ * };
40
+ * const command = new DeleteProjectDataRetentionStorageCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param DeleteProjectDataRetentionStorageCommandInput - {@link DeleteProjectDataRetentionStorageCommandInput}
47
+ * @returns {@link DeleteProjectDataRetentionStorageCommandOutput}
48
+ * @see {@link DeleteProjectDataRetentionStorageCommandInput} for command's `input` shape.
49
+ * @see {@link DeleteProjectDataRetentionStorageCommandOutput} for command's `response` shape.
50
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
51
+ *
52
+ * @throws {@link AccessDeniedException} (client fault)
53
+ * <p>The request is denied because of missing access permissions.</p>
54
+ *
55
+ * @throws {@link InternalServerException} (server fault)
56
+ * <p>An internal server error occurred. Retry your request.</p>
57
+ *
58
+ * @throws {@link ResourceNotFoundException} (client fault)
59
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
60
+ *
61
+ * @throws {@link ThrottlingException} (client fault)
62
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
66
+ *
67
+ * @throws {@link BedrockServiceException}
68
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class DeleteProjectDataRetentionStorageCommand extends DeleteProjectDataRetentionStorageCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: DeleteProjectDataRetentionStorageRequest;
78
+ output: {};
79
+ };
80
+ sdk: {
81
+ input: DeleteProjectDataRetentionStorageCommandInput;
82
+ output: DeleteProjectDataRetentionStorageCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -0,0 +1,96 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetAccountDataRetentionStorageRequest, GetAccountDataRetentionStorageResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetAccountDataRetentionStorageCommand}.
11
+ */
12
+ export interface GetAccountDataRetentionStorageCommandInput extends GetAccountDataRetentionStorageRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetAccountDataRetentionStorageCommand}.
18
+ */
19
+ export interface GetAccountDataRetentionStorageCommandOutput extends GetAccountDataRetentionStorageResponse, __MetadataBearer {
20
+ }
21
+ declare const GetAccountDataRetentionStorageCommand_base: {
22
+ new (input: GetAccountDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<GetAccountDataRetentionStorageCommandInput, GetAccountDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetAccountDataRetentionStorageCommandInput): import("@smithy/core/client").CommandImpl<GetAccountDataRetentionStorageCommandInput, GetAccountDataRetentionStorageCommandOutput, import("..").BedrockClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns your account's stored retention storage configuration for a model provider. Amazon Bedrock determines whether the configuration applies when processing an inference request. Returns <code>ResourceNotFoundException</code> when no configuration exists.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BedrockClient, GetAccountDataRetentionStorageCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
32
+ * // const { BedrockClient, GetAccountDataRetentionStorageCommand } = 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 = { // GetAccountDataRetentionStorageRequest
37
+ * modelProvider: "anthropic" || "openai", // required
38
+ * };
39
+ * const command = new GetAccountDataRetentionStorageCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetAccountDataRetentionStorageResponse
42
+ * // scope: "account" || "organization" || "project", // required
43
+ * // modelProvider: "anthropic" || "openai", // required
44
+ * // storageDestination: "customer_managed" || "amazon_managed", // required
45
+ * // storageConfiguration: { // DataRetentionStorageConfiguration
46
+ * // kmsKeyArn: "STRING_VALUE", // required
47
+ * // s3BucketArn: "STRING_VALUE", // required
48
+ * // s3BucketOwner: "STRING_VALUE", // required
49
+ * // },
50
+ * // updatedAt: new Date("TIMESTAMP"), // required
51
+ * // kmsKeyStatus: "pending" || "active" || "access_denied",
52
+ * // s3BucketStatus: "pending" || "active" || "access_denied",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetAccountDataRetentionStorageCommandInput - {@link GetAccountDataRetentionStorageCommandInput}
58
+ * @returns {@link GetAccountDataRetentionStorageCommandOutput}
59
+ * @see {@link GetAccountDataRetentionStorageCommandInput} for command's `input` shape.
60
+ * @see {@link GetAccountDataRetentionStorageCommandOutput} for command's `response` shape.
61
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>The request is denied because of missing access permissions.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>An internal server error occurred. Retry your request.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
77
+ *
78
+ * @throws {@link BedrockServiceException}
79
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
80
+ *
81
+ *
82
+ * @public
83
+ */
84
+ export declare class GetAccountDataRetentionStorageCommand extends GetAccountDataRetentionStorageCommand_base {
85
+ /** @internal type navigation helper, not in runtime. */
86
+ protected static __types: {
87
+ api: {
88
+ input: GetAccountDataRetentionStorageRequest;
89
+ output: GetAccountDataRetentionStorageResponse;
90
+ };
91
+ sdk: {
92
+ input: GetAccountDataRetentionStorageCommandInput;
93
+ output: GetAccountDataRetentionStorageCommandOutput;
94
+ };
95
+ };
96
+ }
@@ -1,6 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetEvaluationJobRequest } from "../models/models_0";
3
- import type { GetEvaluationJobResponse } from "../models/models_1";
2
+ import type { GetEvaluationJobRequest, GetEvaluationJobResponse } from "../models/models_1";
4
3
  /**
5
4
  * @public
6
5
  */
@@ -35,6 +35,7 @@ declare const GetFoundationModelCommand_base: {
35
35
  * const client = new BedrockClient(config);
36
36
  * const input = { // GetFoundationModelRequest
37
37
  * modelIdentifier: "STRING_VALUE", // required
38
+ * projectIdentifier: "STRING_VALUE",
38
39
  * };
39
40
  * const command = new GetFoundationModelCommand(input);
40
41
  * const response = await client.send(command);
@@ -35,6 +35,7 @@ declare const GetInferenceProfileCommand_base: {
35
35
  * const client = new BedrockClient(config);
36
36
  * const input = { // GetInferenceProfileRequest
37
37
  * inferenceProfileIdentifier: "STRING_VALUE", // required
38
+ * projectIdentifier: "STRING_VALUE",
38
39
  * };
39
40
  * const command = new GetInferenceProfileCommand(input);
40
41
  * const response = await client.send(command);