@aws-sdk/client-bedrock 3.1064.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.
@@ -188,6 +188,10 @@ import {
188
188
  ExportAutomatedReasoningPolicyVersionCommandInput,
189
189
  ExportAutomatedReasoningPolicyVersionCommandOutput,
190
190
  } from "./commands/ExportAutomatedReasoningPolicyVersionCommand";
191
+ import {
192
+ GetAccountDataRetentionCommandInput,
193
+ GetAccountDataRetentionCommandOutput,
194
+ } from "./commands/GetAccountDataRetentionCommand";
191
195
  import {
192
196
  GetAdvancedPromptOptimizationJobCommandInput,
193
197
  GetAdvancedPromptOptimizationJobCommandOutput,
@@ -380,6 +384,10 @@ import {
380
384
  ListTagsForResourceCommandInput,
381
385
  ListTagsForResourceCommandOutput,
382
386
  } from "./commands/ListTagsForResourceCommand";
387
+ import {
388
+ PutAccountDataRetentionCommandInput,
389
+ PutAccountDataRetentionCommandOutput,
390
+ } from "./commands/PutAccountDataRetentionCommand";
383
391
  import {
384
392
  PutEnforcedGuardrailConfigurationCommandInput,
385
393
  PutEnforcedGuardrailConfigurationCommandOutput,
@@ -506,6 +514,7 @@ export type ServiceInputTypes =
506
514
  | DeleteResourcePolicyCommandInput
507
515
  | DeregisterMarketplaceModelEndpointCommandInput
508
516
  | ExportAutomatedReasoningPolicyVersionCommandInput
517
+ | GetAccountDataRetentionCommandInput
509
518
  | GetAdvancedPromptOptimizationJobCommandInput
510
519
  | GetAutomatedReasoningPolicyAnnotationsCommandInput
511
520
  | GetAutomatedReasoningPolicyBuildWorkflowCommandInput
@@ -554,6 +563,7 @@ export type ServiceInputTypes =
554
563
  | ListPromptRoutersCommandInput
555
564
  | ListProvisionedModelThroughputsCommandInput
556
565
  | ListTagsForResourceCommandInput
566
+ | PutAccountDataRetentionCommandInput
557
567
  | PutEnforcedGuardrailConfigurationCommandInput
558
568
  | PutModelInvocationLoggingConfigurationCommandInput
559
569
  | PutResourcePolicyCommandInput
@@ -613,6 +623,7 @@ export type ServiceOutputTypes =
613
623
  | DeleteResourcePolicyCommandOutput
614
624
  | DeregisterMarketplaceModelEndpointCommandOutput
615
625
  | ExportAutomatedReasoningPolicyVersionCommandOutput
626
+ | GetAccountDataRetentionCommandOutput
616
627
  | GetAdvancedPromptOptimizationJobCommandOutput
617
628
  | GetAutomatedReasoningPolicyAnnotationsCommandOutput
618
629
  | GetAutomatedReasoningPolicyBuildWorkflowCommandOutput
@@ -661,6 +672,7 @@ export type ServiceOutputTypes =
661
672
  | ListPromptRoutersCommandOutput
662
673
  | ListProvisionedModelThroughputsCommandOutput
663
674
  | ListTagsForResourceCommandOutput
675
+ | PutAccountDataRetentionCommandOutput
664
676
  | PutEnforcedGuardrailConfigurationCommandOutput
665
677
  | PutModelInvocationLoggingConfigurationCommandOutput
666
678
  | PutResourcePolicyCommandOutput
@@ -0,0 +1,53 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockClient";
8
+ import {
9
+ GetAccountDataRetentionRequest,
10
+ GetAccountDataRetentionResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetAccountDataRetentionCommandInput
15
+ extends GetAccountDataRetentionRequest {}
16
+ export interface GetAccountDataRetentionCommandOutput
17
+ extends GetAccountDataRetentionResponse,
18
+ __MetadataBearer {}
19
+ declare const GetAccountDataRetentionCommand_base: {
20
+ new (
21
+ input: GetAccountDataRetentionCommandInput
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ GetAccountDataRetentionCommandInput,
24
+ GetAccountDataRetentionCommandOutput,
25
+ BedrockClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ ...[input]: [] | [GetAccountDataRetentionCommandInput]
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ GetAccountDataRetentionCommandInput,
33
+ GetAccountDataRetentionCommandOutput,
34
+ BedrockClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): {
39
+ [x: string]: unknown;
40
+ };
41
+ };
42
+ export declare class GetAccountDataRetentionCommand extends GetAccountDataRetentionCommand_base {
43
+ protected static __types: {
44
+ api: {
45
+ input: {};
46
+ output: GetAccountDataRetentionResponse;
47
+ };
48
+ sdk: {
49
+ input: GetAccountDataRetentionCommandInput;
50
+ output: GetAccountDataRetentionCommandOutput;
51
+ };
52
+ };
53
+ }
@@ -0,0 +1,53 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockClient";
8
+ import {
9
+ PutAccountDataRetentionRequest,
10
+ PutAccountDataRetentionResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface PutAccountDataRetentionCommandInput
15
+ extends PutAccountDataRetentionRequest {}
16
+ export interface PutAccountDataRetentionCommandOutput
17
+ extends PutAccountDataRetentionResponse,
18
+ __MetadataBearer {}
19
+ declare const PutAccountDataRetentionCommand_base: {
20
+ new (
21
+ input: PutAccountDataRetentionCommandInput
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ PutAccountDataRetentionCommandInput,
24
+ PutAccountDataRetentionCommandOutput,
25
+ BedrockClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: PutAccountDataRetentionCommandInput
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ PutAccountDataRetentionCommandInput,
33
+ PutAccountDataRetentionCommandOutput,
34
+ BedrockClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): {
39
+ [x: string]: unknown;
40
+ };
41
+ };
42
+ export declare class PutAccountDataRetentionCommand extends PutAccountDataRetentionCommand_base {
43
+ protected static __types: {
44
+ api: {
45
+ input: PutAccountDataRetentionRequest;
46
+ output: PutAccountDataRetentionResponse;
47
+ };
48
+ sdk: {
49
+ input: PutAccountDataRetentionCommandInput;
50
+ output: PutAccountDataRetentionCommandOutput;
51
+ };
52
+ };
53
+ }
@@ -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";
@@ -173,6 +173,14 @@ export declare const ModelStatus: {
173
173
  readonly FAILED: "Failed";
174
174
  };
175
175
  export type ModelStatus = (typeof ModelStatus)[keyof typeof ModelStatus];
176
+ export declare const DataRetentionMode: {
177
+ readonly DEFAULT: "default";
178
+ readonly INHERIT: "inherit";
179
+ readonly NONE: "none";
180
+ readonly PROVIDER_DATA_SHARE: "provider_data_share";
181
+ };
182
+ export type DataRetentionMode =
183
+ (typeof DataRetentionMode)[keyof typeof DataRetentionMode];
176
184
  export declare const EvaluationJobStatus: {
177
185
  readonly COMPLETED: "Completed";
178
186
  readonly DELETING: "Deleting";
@@ -18,6 +18,7 @@ import {
18
18
  CustomizationType,
19
19
  CustomModelDeploymentStatus,
20
20
  CustomModelDeploymentUpdateStatus,
21
+ DataRetentionMode,
21
22
  EvaluationJobStatus,
22
23
  EvaluationJobType,
23
24
  EvaluationTaskType,
@@ -31,9 +32,6 @@ import {
31
32
  GuardrailModality,
32
33
  GuardrailPiiEntityType,
33
34
  GuardrailSensitiveInformationAction,
34
- GuardrailTopicAction,
35
- GuardrailTopicsTierName,
36
- GuardrailTopicType,
37
35
  InputTags,
38
36
  ModelStatus,
39
37
  PerformanceConfigLatency,
@@ -2045,6 +2043,18 @@ export interface ListCustomModelsResponse {
2045
2043
  nextToken?: string | undefined;
2046
2044
  modelSummaries?: CustomModelSummary[] | undefined;
2047
2045
  }
2046
+ export interface GetAccountDataRetentionRequest {}
2047
+ export interface GetAccountDataRetentionResponse {
2048
+ mode: DataRetentionMode | undefined;
2049
+ updatedAt?: Date | undefined;
2050
+ }
2051
+ export interface PutAccountDataRetentionRequest {
2052
+ mode: DataRetentionMode | undefined;
2053
+ }
2054
+ export interface PutAccountDataRetentionResponse {
2055
+ mode: DataRetentionMode | undefined;
2056
+ updatedAt?: Date | undefined;
2057
+ }
2048
2058
  export interface DeleteEnforcedGuardrailConfigurationRequest {
2049
2059
  configId: string | undefined;
2050
2060
  }
@@ -2526,30 +2536,3 @@ export interface GuardrailPiiEntityConfig {
2526
2536
  inputEnabled?: boolean | undefined;
2527
2537
  outputEnabled?: boolean | undefined;
2528
2538
  }
2529
- export interface GuardrailRegexConfig {
2530
- name: string | undefined;
2531
- description?: string | undefined;
2532
- pattern: string | undefined;
2533
- action: GuardrailSensitiveInformationAction | undefined;
2534
- inputAction?: GuardrailSensitiveInformationAction | undefined;
2535
- outputAction?: GuardrailSensitiveInformationAction | undefined;
2536
- inputEnabled?: boolean | undefined;
2537
- outputEnabled?: boolean | undefined;
2538
- }
2539
- export interface GuardrailSensitiveInformationPolicyConfig {
2540
- piiEntitiesConfig?: GuardrailPiiEntityConfig[] | undefined;
2541
- regexesConfig?: GuardrailRegexConfig[] | undefined;
2542
- }
2543
- export interface GuardrailTopicsTierConfig {
2544
- tierName: GuardrailTopicsTierName | undefined;
2545
- }
2546
- export interface GuardrailTopicConfig {
2547
- name: string | undefined;
2548
- definition: string | undefined;
2549
- examples?: string[] | undefined;
2550
- type: GuardrailTopicType | undefined;
2551
- inputAction?: GuardrailTopicAction | undefined;
2552
- outputAction?: GuardrailTopicAction | undefined;
2553
- inputEnabled?: boolean | undefined;
2554
- outputEnabled?: boolean | undefined;
2555
- }
@@ -61,9 +61,7 @@ import {
61
61
  GuardrailContentPolicyConfig,
62
62
  GuardrailContextualGroundingPolicyConfig,
63
63
  GuardrailCrossRegionConfig,
64
- GuardrailSensitiveInformationPolicyConfig,
65
- GuardrailTopicConfig,
66
- GuardrailTopicsTierConfig,
64
+ GuardrailPiiEntityConfig,
67
65
  ImplicitFilterConfiguration,
68
66
  ModelDataSource,
69
67
  OrchestrationConfiguration,
@@ -76,6 +74,33 @@ import {
76
74
  VectorSearchRerankingConfiguration,
77
75
  VpcConfig,
78
76
  } from "./models_0";
77
+ export interface GuardrailRegexConfig {
78
+ name: string | undefined;
79
+ description?: string | undefined;
80
+ pattern: string | undefined;
81
+ action: GuardrailSensitiveInformationAction | undefined;
82
+ inputAction?: GuardrailSensitiveInformationAction | undefined;
83
+ outputAction?: GuardrailSensitiveInformationAction | undefined;
84
+ inputEnabled?: boolean | undefined;
85
+ outputEnabled?: boolean | undefined;
86
+ }
87
+ export interface GuardrailSensitiveInformationPolicyConfig {
88
+ piiEntitiesConfig?: GuardrailPiiEntityConfig[] | undefined;
89
+ regexesConfig?: GuardrailRegexConfig[] | undefined;
90
+ }
91
+ export interface GuardrailTopicsTierConfig {
92
+ tierName: GuardrailTopicsTierName | undefined;
93
+ }
94
+ export interface GuardrailTopicConfig {
95
+ name: string | undefined;
96
+ definition: string | undefined;
97
+ examples?: string[] | undefined;
98
+ type: GuardrailTopicType | undefined;
99
+ inputAction?: GuardrailTopicAction | undefined;
100
+ outputAction?: GuardrailTopicAction | undefined;
101
+ inputEnabled?: boolean | undefined;
102
+ outputEnabled?: boolean | undefined;
103
+ }
79
104
  export interface GuardrailTopicPolicyConfig {
80
105
  topicsConfig: GuardrailTopicConfig[] | undefined;
81
106
  tierConfig?: GuardrailTopicsTierConfig | undefined;
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock",
3
3
  "description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
4
- "version": "3.1064.0",
4
+ "version": "3.1065.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.19",
25
- "@aws-sdk/credential-provider-node": "^3.972.53",
26
- "@aws-sdk/token-providers": "3.1064.0",
24
+ "@aws-sdk/core": "^3.974.20",
25
+ "@aws-sdk/credential-provider-node": "^3.972.54",
26
+ "@aws-sdk/token-providers": "3.1065.0",
27
27
  "@aws-sdk/types": "^3.973.12",
28
28
  "@smithy/core": "^3.24.6",
29
29
  "@smithy/fetch-http-handler": "^5.4.6",