@aws-sdk/client-bedrock 3.1063.0 → 3.1065.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.
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
+ import type { GetAccountDataRetentionRequest, GetAccountDataRetentionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAccountDataRetentionCommand}.
14
+ */
15
+ export interface GetAccountDataRetentionCommandInput extends GetAccountDataRetentionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAccountDataRetentionCommand}.
21
+ */
22
+ export interface GetAccountDataRetentionCommandOutput extends GetAccountDataRetentionResponse, __MetadataBearer {
23
+ }
24
+ declare const GetAccountDataRetentionCommand_base: {
25
+ new (input: GetAccountDataRetentionCommandInput): import("@smithy/core/client").CommandImpl<GetAccountDataRetentionCommandInput, GetAccountDataRetentionCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetAccountDataRetentionCommandInput]): import("@smithy/core/client").CommandImpl<GetAccountDataRetentionCommandInput, GetAccountDataRetentionCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Returns the account-wide data retention mode for Amazon Bedrock.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { BedrockClient, GetAccountDataRetentionCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
37
+ * // const { BedrockClient, GetAccountDataRetentionCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
38
+ * // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
39
+ * const config = {}; // type is BedrockClientConfig
40
+ * const client = new BedrockClient(config);
41
+ * const input = {};
42
+ * const command = new GetAccountDataRetentionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetAccountDataRetentionResponse
45
+ * // mode: "default" || "none" || "provider_data_share" || "inherit", // required
46
+ * // updatedAt: new Date("TIMESTAMP"),
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetAccountDataRetentionCommandInput - {@link GetAccountDataRetentionCommandInput}
52
+ * @returns {@link GetAccountDataRetentionCommandOutput}
53
+ * @see {@link GetAccountDataRetentionCommandInput} for command's `input` shape.
54
+ * @see {@link GetAccountDataRetentionCommandOutput} for command's `response` shape.
55
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>The request is denied because of missing access permissions.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>An internal server error occurred. Retry your request.</p>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
68
+ *
69
+ * @throws {@link BedrockServiceException}
70
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class GetAccountDataRetentionCommand extends GetAccountDataRetentionCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: {};
80
+ output: GetAccountDataRetentionResponse;
81
+ };
82
+ sdk: {
83
+ input: GetAccountDataRetentionCommandInput;
84
+ output: GetAccountDataRetentionCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,89 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
+ import type { PutAccountDataRetentionRequest, PutAccountDataRetentionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutAccountDataRetentionCommand}.
14
+ */
15
+ export interface PutAccountDataRetentionCommandInput extends PutAccountDataRetentionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutAccountDataRetentionCommand}.
21
+ */
22
+ export interface PutAccountDataRetentionCommandOutput extends PutAccountDataRetentionResponse, __MetadataBearer {
23
+ }
24
+ declare const PutAccountDataRetentionCommand_base: {
25
+ new (input: PutAccountDataRetentionCommandInput): import("@smithy/core/client").CommandImpl<PutAccountDataRetentionCommandInput, PutAccountDataRetentionCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: PutAccountDataRetentionCommandInput): import("@smithy/core/client").CommandImpl<PutAccountDataRetentionCommandInput, PutAccountDataRetentionCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Sets the account-wide data retention mode for Amazon Bedrock.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { BedrockClient, PutAccountDataRetentionCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
37
+ * // const { BedrockClient, PutAccountDataRetentionCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
38
+ * // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
39
+ * const config = {}; // type is BedrockClientConfig
40
+ * const client = new BedrockClient(config);
41
+ * const input = { // PutAccountDataRetentionRequest
42
+ * mode: "default" || "none" || "provider_data_share" || "inherit", // required
43
+ * };
44
+ * const command = new PutAccountDataRetentionCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // PutAccountDataRetentionResponse
47
+ * // mode: "default" || "none" || "provider_data_share" || "inherit", // required
48
+ * // updatedAt: new Date("TIMESTAMP"),
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param PutAccountDataRetentionCommandInput - {@link PutAccountDataRetentionCommandInput}
54
+ * @returns {@link PutAccountDataRetentionCommandOutput}
55
+ * @see {@link PutAccountDataRetentionCommandInput} for command's `input` shape.
56
+ * @see {@link PutAccountDataRetentionCommandOutput} for command's `response` shape.
57
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
58
+ *
59
+ * @throws {@link AccessDeniedException} (client fault)
60
+ * <p>The request is denied because of missing access permissions.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>An internal server error occurred. Retry your request.</p>
64
+ *
65
+ * @throws {@link ThrottlingException} (client fault)
66
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
70
+ *
71
+ * @throws {@link BedrockServiceException}
72
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
73
+ *
74
+ *
75
+ * @public
76
+ */
77
+ export declare class PutAccountDataRetentionCommand extends PutAccountDataRetentionCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: PutAccountDataRetentionRequest;
82
+ output: PutAccountDataRetentionResponse;
83
+ };
84
+ sdk: {
85
+ input: PutAccountDataRetentionCommandInput;
86
+ output: PutAccountDataRetentionCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -36,6 +36,7 @@ export * from "./DeleteProvisionedModelThroughputCommand";
36
36
  export * from "./DeleteResourcePolicyCommand";
37
37
  export * from "./DeregisterMarketplaceModelEndpointCommand";
38
38
  export * from "./ExportAutomatedReasoningPolicyVersionCommand";
39
+ export * from "./GetAccountDataRetentionCommand";
39
40
  export * from "./GetAdvancedPromptOptimizationJobCommand";
40
41
  export * from "./GetAutomatedReasoningPolicyAnnotationsCommand";
41
42
  export * from "./GetAutomatedReasoningPolicyBuildWorkflowCommand";
@@ -84,6 +85,7 @@ export * from "./ListModelInvocationJobsCommand";
84
85
  export * from "./ListPromptRoutersCommand";
85
86
  export * from "./ListProvisionedModelThroughputsCommand";
86
87
  export * from "./ListTagsForResourceCommand";
88
+ export * from "./PutAccountDataRetentionCommand";
87
89
  export * from "./PutEnforcedGuardrailConfigurationCommand";
88
90
  export * from "./PutModelInvocationLoggingConfigurationCommand";
89
91
  export * from "./PutResourcePolicyCommand";
@@ -326,6 +326,20 @@ export declare const ModelStatus: {
326
326
  * @public
327
327
  */
328
328
  export type ModelStatus = (typeof ModelStatus)[keyof typeof ModelStatus];
329
+ /**
330
+ * @public
331
+ * @enum
332
+ */
333
+ export declare const DataRetentionMode: {
334
+ readonly DEFAULT: "default";
335
+ readonly INHERIT: "inherit";
336
+ readonly NONE: "none";
337
+ readonly PROVIDER_DATA_SHARE: "provider_data_share";
338
+ };
339
+ /**
340
+ * @public
341
+ */
342
+ export type DataRetentionMode = (typeof DataRetentionMode)[keyof typeof DataRetentionMode];
329
343
  /**
330
344
  * @public
331
345
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { AdvancedPromptOptimizationJobStatus, AgreementStatus, ApplicationType, AttributeType, AutomatedReasoningCheckLogicWarningType, AutomatedReasoningCheckResult, AutomatedReasoningPolicyAnnotationStatus, AutomatedReasoningPolicyBuildDocumentContentType, AutomatedReasoningPolicyBuildMessageType, AutomatedReasoningPolicyBuildResultAssetType, AutomatedReasoningPolicyBuildWorkflowStatus, AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyTestRunResult, AutomatedReasoningPolicyTestRunStatus, ConfigurationOwner, CustomizationType, CustomModelDeploymentStatus, CustomModelDeploymentUpdateStatus, EvaluationJobStatus, EvaluationJobType, EvaluationTaskType, ExternalSourceType, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailFilterStrength, GuardrailModality, GuardrailPiiEntityType, GuardrailSensitiveInformationAction, GuardrailTopicAction, GuardrailTopicsTierName, GuardrailTopicType, InputTags, ModelStatus, PerformanceConfigLatency, QueryTransformationType, ReasoningEffort, RerankingMetadataSelectionMode, SelectiveGuardingMode, SortJobsBy, SortModelsBy, SortOrder, Status, VectorSearchRerankingConfigurationType } from "./enums";
2
+ import type { AdvancedPromptOptimizationJobStatus, AgreementStatus, ApplicationType, AttributeType, AutomatedReasoningCheckLogicWarningType, AutomatedReasoningCheckResult, AutomatedReasoningPolicyAnnotationStatus, AutomatedReasoningPolicyBuildDocumentContentType, AutomatedReasoningPolicyBuildMessageType, AutomatedReasoningPolicyBuildResultAssetType, AutomatedReasoningPolicyBuildWorkflowStatus, AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyTestRunResult, AutomatedReasoningPolicyTestRunStatus, ConfigurationOwner, CustomizationType, CustomModelDeploymentStatus, CustomModelDeploymentUpdateStatus, DataRetentionMode, EvaluationJobStatus, EvaluationJobType, EvaluationTaskType, ExternalSourceType, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailFilterStrength, GuardrailModality, GuardrailPiiEntityType, GuardrailSensitiveInformationAction, InputTags, ModelStatus, PerformanceConfigLatency, QueryTransformationType, ReasoningEffort, RerankingMetadataSelectionMode, SelectiveGuardingMode, SortJobsBy, SortModelsBy, SortOrder, Status, VectorSearchRerankingConfigurationType } from "./enums";
3
3
  /**
4
4
  * <p>Model-specific information for the enforced guardrail configuration.</p>
5
5
  * @public
@@ -5415,6 +5415,51 @@ export interface ListCustomModelsResponse {
5415
5415
  */
5416
5416
  modelSummaries?: CustomModelSummary[] | undefined;
5417
5417
  }
5418
+ /**
5419
+ * @public
5420
+ */
5421
+ export interface GetAccountDataRetentionRequest {
5422
+ }
5423
+ /**
5424
+ * @public
5425
+ */
5426
+ export interface GetAccountDataRetentionResponse {
5427
+ /**
5428
+ * <p>The data retention mode configured for the account.</p>
5429
+ * @public
5430
+ */
5431
+ mode: DataRetentionMode | undefined;
5432
+ /**
5433
+ * <p>The time at which the data retention mode was last updated.</p>
5434
+ * @public
5435
+ */
5436
+ updatedAt?: Date | undefined;
5437
+ }
5438
+ /**
5439
+ * @public
5440
+ */
5441
+ export interface PutAccountDataRetentionRequest {
5442
+ /**
5443
+ * <p>The data retention mode to set for the account.</p>
5444
+ * @public
5445
+ */
5446
+ mode: DataRetentionMode | undefined;
5447
+ }
5448
+ /**
5449
+ * @public
5450
+ */
5451
+ export interface PutAccountDataRetentionResponse {
5452
+ /**
5453
+ * <p>The data retention mode set for the account.</p>
5454
+ * @public
5455
+ */
5456
+ mode: DataRetentionMode | undefined;
5457
+ /**
5458
+ * <p>The time at which the data retention mode was last updated.</p>
5459
+ * @public
5460
+ */
5461
+ updatedAt?: Date | undefined;
5462
+ }
5418
5463
  /**
5419
5464
  * @public
5420
5465
  */
@@ -6895,122 +6940,3 @@ export interface GuardrailPiiEntityConfig {
6895
6940
  */
6896
6941
  outputEnabled?: boolean | undefined;
6897
6942
  }
6898
- /**
6899
- * <p>The regular expression to configure for the guardrail.</p>
6900
- * @public
6901
- */
6902
- export interface GuardrailRegexConfig {
6903
- /**
6904
- * <p>The name of the regular expression to configure for the guardrail.</p>
6905
- * @public
6906
- */
6907
- name: string | undefined;
6908
- /**
6909
- * <p>The description of the regular expression to configure for the guardrail.</p>
6910
- * @public
6911
- */
6912
- description?: string | undefined;
6913
- /**
6914
- * <p>The regular expression pattern to configure for the guardrail.</p>
6915
- * @public
6916
- */
6917
- pattern: string | undefined;
6918
- /**
6919
- * <p>The guardrail action to configure when matching regular expression is detected.</p>
6920
- * @public
6921
- */
6922
- action: GuardrailSensitiveInformationAction | undefined;
6923
- /**
6924
- * <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
6925
- * @public
6926
- */
6927
- inputAction?: GuardrailSensitiveInformationAction | undefined;
6928
- /**
6929
- * <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
6930
- * @public
6931
- */
6932
- outputAction?: GuardrailSensitiveInformationAction | undefined;
6933
- /**
6934
- * <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
6935
- * @public
6936
- */
6937
- inputEnabled?: boolean | undefined;
6938
- /**
6939
- * <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
6940
- * @public
6941
- */
6942
- outputEnabled?: boolean | undefined;
6943
- }
6944
- /**
6945
- * <p>Contains details about PII entities and regular expressions to configure for the guardrail.</p>
6946
- * @public
6947
- */
6948
- export interface GuardrailSensitiveInformationPolicyConfig {
6949
- /**
6950
- * <p>A list of PII entities to configure to the guardrail.</p>
6951
- * @public
6952
- */
6953
- piiEntitiesConfig?: GuardrailPiiEntityConfig[] | undefined;
6954
- /**
6955
- * <p>A list of regular expressions to configure to the guardrail.</p>
6956
- * @public
6957
- */
6958
- regexesConfig?: GuardrailRegexConfig[] | undefined;
6959
- }
6960
- /**
6961
- * <p>The tier that your guardrail uses for denied topic filters. Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.</p>
6962
- * @public
6963
- */
6964
- export interface GuardrailTopicsTierConfig {
6965
- /**
6966
- * <p>The tier that your guardrail uses for denied topic filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">cross-Region inference</a>.</p> </li> </ul>
6967
- * @public
6968
- */
6969
- tierName: GuardrailTopicsTierName | undefined;
6970
- }
6971
- /**
6972
- * <p>Details about topics for the guardrail to identify and deny.</p>
6973
- * @public
6974
- */
6975
- export interface GuardrailTopicConfig {
6976
- /**
6977
- * <p>The name of the topic to deny.</p>
6978
- * @public
6979
- */
6980
- name: string | undefined;
6981
- /**
6982
- * <p>A definition of the topic to deny.</p>
6983
- * @public
6984
- */
6985
- definition: string | undefined;
6986
- /**
6987
- * <p>A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.</p>
6988
- * @public
6989
- */
6990
- examples?: string[] | undefined;
6991
- /**
6992
- * <p>Specifies to deny the topic.</p>
6993
- * @public
6994
- */
6995
- type: GuardrailTopicType | undefined;
6996
- /**
6997
- * <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
6998
- * @public
6999
- */
7000
- inputAction?: GuardrailTopicAction | undefined;
7001
- /**
7002
- * <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
7003
- * @public
7004
- */
7005
- outputAction?: GuardrailTopicAction | undefined;
7006
- /**
7007
- * <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
7008
- * @public
7009
- */
7010
- inputEnabled?: boolean | undefined;
7011
- /**
7012
- * <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
7013
- * @public
7014
- */
7015
- outputEnabled?: boolean | undefined;
7016
- }
@@ -1,5 +1,124 @@
1
1
  import type { ApplicationType, AuthorizationStatus, CommitmentDuration, CustomizationType, EntitlementAvailability, EvaluationJobStatus, EvaluationJobType, FineTuningJobStatus, FoundationModelLifecycleStatus, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailFilterStrength, GuardrailManagedWordsType, GuardrailModality, GuardrailPiiEntityType, GuardrailSensitiveInformationAction, GuardrailStatus, GuardrailTopicAction, GuardrailTopicsTierName, GuardrailTopicType, GuardrailWordAction, InferenceProfileStatus, InferenceProfileType, InferenceType, JobStatusDetails, ModelCopyJobStatus, ModelCustomization, ModelCustomizationJobStatus, ModelImportJobStatus, ModelInvocationJobStatus, ModelInvocationType, ModelModality, OfferType, PromptRouterStatus, PromptRouterType, ProvisionedModelStatus, RegionAvailability, RetrieveAndGenerateType, S3InputFormat, SearchType, SortByProvisionedModels, SortJobsBy, SortModelsBy, SortOrder } from "./enums";
2
- import type { AgreementAvailability, CustomizationConfig, EvaluationConfig, EvaluationModelConfig, EvaluationOutputDataConfig, EvaluationPrecomputedRagSourceConfig, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailAutomatedReasoningPolicyConfig, GuardrailContentPolicyConfig, GuardrailContextualGroundingPolicyConfig, GuardrailCrossRegionConfig, GuardrailSensitiveInformationPolicyConfig, GuardrailTopicConfig, GuardrailTopicsTierConfig, ImplicitFilterConfiguration, ModelDataSource, OrchestrationConfiguration, OutputDataConfig, Tag, TrainingDataConfig, TrainingMetrics, ValidationDataConfig, ValidatorMetric, VectorSearchRerankingConfiguration, VpcConfig } from "./models_0";
2
+ import type { AgreementAvailability, CustomizationConfig, EvaluationConfig, EvaluationModelConfig, EvaluationOutputDataConfig, EvaluationPrecomputedRagSourceConfig, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailAutomatedReasoningPolicyConfig, GuardrailContentPolicyConfig, GuardrailContextualGroundingPolicyConfig, GuardrailCrossRegionConfig, GuardrailPiiEntityConfig, ImplicitFilterConfiguration, ModelDataSource, OrchestrationConfiguration, OutputDataConfig, Tag, TrainingDataConfig, TrainingMetrics, ValidationDataConfig, ValidatorMetric, VectorSearchRerankingConfiguration, VpcConfig } from "./models_0";
3
+ /**
4
+ * <p>The regular expression to configure for the guardrail.</p>
5
+ * @public
6
+ */
7
+ export interface GuardrailRegexConfig {
8
+ /**
9
+ * <p>The name of the regular expression to configure for the guardrail.</p>
10
+ * @public
11
+ */
12
+ name: string | undefined;
13
+ /**
14
+ * <p>The description of the regular expression to configure for the guardrail.</p>
15
+ * @public
16
+ */
17
+ description?: string | undefined;
18
+ /**
19
+ * <p>The regular expression pattern to configure for the guardrail.</p>
20
+ * @public
21
+ */
22
+ pattern: string | undefined;
23
+ /**
24
+ * <p>The guardrail action to configure when matching regular expression is detected.</p>
25
+ * @public
26
+ */
27
+ action: GuardrailSensitiveInformationAction | undefined;
28
+ /**
29
+ * <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
30
+ * @public
31
+ */
32
+ inputAction?: GuardrailSensitiveInformationAction | undefined;
33
+ /**
34
+ * <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
35
+ * @public
36
+ */
37
+ outputAction?: GuardrailSensitiveInformationAction | undefined;
38
+ /**
39
+ * <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
40
+ * @public
41
+ */
42
+ inputEnabled?: boolean | undefined;
43
+ /**
44
+ * <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
45
+ * @public
46
+ */
47
+ outputEnabled?: boolean | undefined;
48
+ }
49
+ /**
50
+ * <p>Contains details about PII entities and regular expressions to configure for the guardrail.</p>
51
+ * @public
52
+ */
53
+ export interface GuardrailSensitiveInformationPolicyConfig {
54
+ /**
55
+ * <p>A list of PII entities to configure to the guardrail.</p>
56
+ * @public
57
+ */
58
+ piiEntitiesConfig?: GuardrailPiiEntityConfig[] | undefined;
59
+ /**
60
+ * <p>A list of regular expressions to configure to the guardrail.</p>
61
+ * @public
62
+ */
63
+ regexesConfig?: GuardrailRegexConfig[] | undefined;
64
+ }
65
+ /**
66
+ * <p>The tier that your guardrail uses for denied topic filters. Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.</p>
67
+ * @public
68
+ */
69
+ export interface GuardrailTopicsTierConfig {
70
+ /**
71
+ * <p>The tier that your guardrail uses for denied topic filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">cross-Region inference</a>.</p> </li> </ul>
72
+ * @public
73
+ */
74
+ tierName: GuardrailTopicsTierName | undefined;
75
+ }
76
+ /**
77
+ * <p>Details about topics for the guardrail to identify and deny.</p>
78
+ * @public
79
+ */
80
+ export interface GuardrailTopicConfig {
81
+ /**
82
+ * <p>The name of the topic to deny.</p>
83
+ * @public
84
+ */
85
+ name: string | undefined;
86
+ /**
87
+ * <p>A definition of the topic to deny.</p>
88
+ * @public
89
+ */
90
+ definition: string | undefined;
91
+ /**
92
+ * <p>A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.</p>
93
+ * @public
94
+ */
95
+ examples?: string[] | undefined;
96
+ /**
97
+ * <p>Specifies to deny the topic.</p>
98
+ * @public
99
+ */
100
+ type: GuardrailTopicType | undefined;
101
+ /**
102
+ * <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
103
+ * @public
104
+ */
105
+ inputAction?: GuardrailTopicAction | undefined;
106
+ /**
107
+ * <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
108
+ * @public
109
+ */
110
+ outputAction?: GuardrailTopicAction | undefined;
111
+ /**
112
+ * <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
113
+ * @public
114
+ */
115
+ inputEnabled?: boolean | undefined;
116
+ /**
117
+ * <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
118
+ * @public
119
+ */
120
+ outputEnabled?: boolean | undefined;
121
+ }
3
122
  /**
4
123
  * <p>Contains details about topics that the guardrail should identify and deny.</p>
5
124
  * @public
@@ -214,6 +214,8 @@ export declare var FoundationModelDetails$: StaticStructureSchema;
214
214
  export declare var FoundationModelLifecycle$: StaticStructureSchema;
215
215
  export declare var FoundationModelSummary$: StaticStructureSchema;
216
216
  export declare var GenerationConfiguration$: StaticStructureSchema;
217
+ export declare var GetAccountDataRetentionRequest$: StaticStructureSchema;
218
+ export declare var GetAccountDataRetentionResponse$: StaticStructureSchema;
217
219
  export declare var GetAdvancedPromptOptimizationJobRequest$: StaticStructureSchema;
218
220
  export declare var GetAdvancedPromptOptimizationJobResponse$: StaticStructureSchema;
219
221
  export declare var GetAutomatedReasoningPolicyAnnotationsRequest$: StaticStructureSchema;
@@ -382,6 +384,8 @@ export declare var PromptRouterSummary$: StaticStructureSchema;
382
384
  export declare var PromptRouterTargetModel$: StaticStructureSchema;
383
385
  export declare var PromptTemplate$: StaticStructureSchema;
384
386
  export declare var ProvisionedModelSummary$: StaticStructureSchema;
387
+ export declare var PutAccountDataRetentionRequest$: StaticStructureSchema;
388
+ export declare var PutAccountDataRetentionResponse$: StaticStructureSchema;
385
389
  export declare var PutEnforcedGuardrailConfigurationRequest$: StaticStructureSchema;
386
390
  export declare var PutEnforcedGuardrailConfigurationResponse$: StaticStructureSchema;
387
391
  export declare var PutModelInvocationLoggingConfigurationRequest$: StaticStructureSchema;
@@ -523,6 +527,7 @@ export declare var DeleteProvisionedModelThroughput$: StaticOperationSchema;
523
527
  export declare var DeleteResourcePolicy$: StaticOperationSchema;
524
528
  export declare var DeregisterMarketplaceModelEndpoint$: StaticOperationSchema;
525
529
  export declare var ExportAutomatedReasoningPolicyVersion$: StaticOperationSchema;
530
+ export declare var GetAccountDataRetention$: StaticOperationSchema;
526
531
  export declare var GetAdvancedPromptOptimizationJob$: StaticOperationSchema;
527
532
  export declare var GetAutomatedReasoningPolicy$: StaticOperationSchema;
528
533
  export declare var GetAutomatedReasoningPolicyAnnotations$: StaticOperationSchema;
@@ -571,6 +576,7 @@ export declare var ListModelInvocationJobs$: StaticOperationSchema;
571
576
  export declare var ListPromptRouters$: StaticOperationSchema;
572
577
  export declare var ListProvisionedModelThroughputs$: StaticOperationSchema;
573
578
  export declare var ListTagsForResource$: StaticOperationSchema;
579
+ export declare var PutAccountDataRetention$: StaticOperationSchema;
574
580
  export declare var PutEnforcedGuardrailConfiguration$: StaticOperationSchema;
575
581
  export declare var PutModelInvocationLoggingConfiguration$: StaticOperationSchema;
576
582
  export declare var PutResourcePolicy$: StaticOperationSchema;
@@ -156,6 +156,10 @@ import {
156
156
  ExportAutomatedReasoningPolicyVersionCommandInput,
157
157
  ExportAutomatedReasoningPolicyVersionCommandOutput,
158
158
  } from "./commands/ExportAutomatedReasoningPolicyVersionCommand";
159
+ import {
160
+ GetAccountDataRetentionCommandInput,
161
+ GetAccountDataRetentionCommandOutput,
162
+ } from "./commands/GetAccountDataRetentionCommand";
159
163
  import {
160
164
  GetAdvancedPromptOptimizationJobCommandInput,
161
165
  GetAdvancedPromptOptimizationJobCommandOutput,
@@ -348,6 +352,10 @@ import {
348
352
  ListTagsForResourceCommandInput,
349
353
  ListTagsForResourceCommandOutput,
350
354
  } from "./commands/ListTagsForResourceCommand";
355
+ import {
356
+ PutAccountDataRetentionCommandInput,
357
+ PutAccountDataRetentionCommandOutput,
358
+ } from "./commands/PutAccountDataRetentionCommand";
351
359
  import {
352
360
  PutEnforcedGuardrailConfigurationCommandInput,
353
361
  PutEnforcedGuardrailConfigurationCommandOutput,
@@ -990,6 +998,20 @@ export interface Bedrock {
990
998
  data?: ExportAutomatedReasoningPolicyVersionCommandOutput
991
999
  ) => void
992
1000
  ): void;
1001
+ getAccountDataRetention(): Promise<GetAccountDataRetentionCommandOutput>;
1002
+ getAccountDataRetention(
1003
+ args: GetAccountDataRetentionCommandInput,
1004
+ options?: __HttpHandlerOptions
1005
+ ): Promise<GetAccountDataRetentionCommandOutput>;
1006
+ getAccountDataRetention(
1007
+ args: GetAccountDataRetentionCommandInput,
1008
+ cb: (err: any, data?: GetAccountDataRetentionCommandOutput) => void
1009
+ ): void;
1010
+ getAccountDataRetention(
1011
+ args: GetAccountDataRetentionCommandInput,
1012
+ options: __HttpHandlerOptions,
1013
+ cb: (err: any, data?: GetAccountDataRetentionCommandOutput) => void
1014
+ ): void;
993
1015
  getAdvancedPromptOptimizationJob(
994
1016
  args: GetAdvancedPromptOptimizationJobCommandInput,
995
1017
  options?: __HttpHandlerOptions
@@ -1711,6 +1733,19 @@ export interface Bedrock {
1711
1733
  options: __HttpHandlerOptions,
1712
1734
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1713
1735
  ): void;
1736
+ putAccountDataRetention(
1737
+ args: PutAccountDataRetentionCommandInput,
1738
+ options?: __HttpHandlerOptions
1739
+ ): Promise<PutAccountDataRetentionCommandOutput>;
1740
+ putAccountDataRetention(
1741
+ args: PutAccountDataRetentionCommandInput,
1742
+ cb: (err: any, data?: PutAccountDataRetentionCommandOutput) => void
1743
+ ): void;
1744
+ putAccountDataRetention(
1745
+ args: PutAccountDataRetentionCommandInput,
1746
+ options: __HttpHandlerOptions,
1747
+ cb: (err: any, data?: PutAccountDataRetentionCommandOutput) => void
1748
+ ): void;
1714
1749
  putEnforcedGuardrailConfiguration(
1715
1750
  args: PutEnforcedGuardrailConfigurationCommandInput,
1716
1751
  options?: __HttpHandlerOptions