@aws-sdk/client-bedrock-agent 3.1069.0 → 3.1071.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 (46) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +73 -5
  3. package/dist-cjs/schemas/schemas_0.js +160 -21
  4. package/dist-es/BedrockAgent.js +6 -0
  5. package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
  6. package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
  7. package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/models/enums.js +26 -4
  10. package/dist-es/schemas/schemas_0.js +146 -21
  11. package/dist-types/BedrockAgent.d.ts +21 -0
  12. package/dist-types/BedrockAgentClient.d.ts +5 -2
  13. package/dist-types/commands/CreateDataSourceCommand.d.ts +41 -5
  14. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +58 -4
  15. package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +96 -0
  18. package/dist-types/commands/GetDataSourceCommand.d.ts +21 -3
  19. package/dist-types/commands/GetIngestionJobCommand.d.ts +1 -0
  20. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +29 -2
  21. package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
  22. package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +7 -0
  23. package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
  24. package/dist-types/commands/ListIngestionJobsCommand.d.ts +1 -0
  25. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  26. package/dist-types/commands/PutResourcePolicyCommand.d.ts +97 -0
  27. package/dist-types/commands/StartIngestionJobCommand.d.ts +1 -0
  28. package/dist-types/commands/StopIngestionJobCommand.d.ts +1 -0
  29. package/dist-types/commands/UpdateDataSourceCommand.d.ts +41 -5
  30. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +57 -3
  31. package/dist-types/commands/index.d.ts +3 -0
  32. package/dist-types/models/enums.d.ts +66 -12
  33. package/dist-types/models/models_0.d.ts +248 -241
  34. package/dist-types/models/models_1.d.ts +269 -21
  35. package/dist-types/schemas/schemas_0.d.ts +17 -0
  36. package/dist-types/ts3.4/BedrockAgent.d.ts +51 -0
  37. package/dist-types/ts3.4/BedrockAgentClient.d.ts +18 -0
  38. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +53 -0
  39. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +53 -0
  40. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +53 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  42. package/dist-types/ts3.4/models/enums.d.ts +36 -6
  43. package/dist-types/ts3.4/models/models_0.d.ts +79 -74
  44. package/dist-types/ts3.4/models/models_1.d.ts +83 -13
  45. package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
  46. package/package.json +3 -3
@@ -0,0 +1,53 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockAgentClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockAgentClient";
8
+ import {
9
+ GetResourcePolicyRequest,
10
+ GetResourcePolicyResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetResourcePolicyCommandInput
15
+ extends GetResourcePolicyRequest {}
16
+ export interface GetResourcePolicyCommandOutput
17
+ extends GetResourcePolicyResponse,
18
+ __MetadataBearer {}
19
+ declare const GetResourcePolicyCommand_base: {
20
+ new (
21
+ input: GetResourcePolicyCommandInput
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ GetResourcePolicyCommandInput,
24
+ GetResourcePolicyCommandOutput,
25
+ BedrockAgentClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: GetResourcePolicyCommandInput
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ GetResourcePolicyCommandInput,
33
+ GetResourcePolicyCommandOutput,
34
+ BedrockAgentClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): {
39
+ [x: string]: unknown;
40
+ };
41
+ };
42
+ export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
43
+ protected static __types: {
44
+ api: {
45
+ input: GetResourcePolicyRequest;
46
+ output: GetResourcePolicyResponse;
47
+ };
48
+ sdk: {
49
+ input: GetResourcePolicyCommandInput;
50
+ output: GetResourcePolicyCommandOutput;
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
+ BedrockAgentClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockAgentClient";
8
+ import {
9
+ PutResourcePolicyRequest,
10
+ PutResourcePolicyResponse,
11
+ } from "../models/models_1";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface PutResourcePolicyCommandInput
15
+ extends PutResourcePolicyRequest {}
16
+ export interface PutResourcePolicyCommandOutput
17
+ extends PutResourcePolicyResponse,
18
+ __MetadataBearer {}
19
+ declare const PutResourcePolicyCommand_base: {
20
+ new (
21
+ input: PutResourcePolicyCommandInput
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ PutResourcePolicyCommandInput,
24
+ PutResourcePolicyCommandOutput,
25
+ BedrockAgentClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: PutResourcePolicyCommandInput
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ PutResourcePolicyCommandInput,
33
+ PutResourcePolicyCommandOutput,
34
+ BedrockAgentClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): {
39
+ [x: string]: unknown;
40
+ };
41
+ };
42
+ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
43
+ protected static __types: {
44
+ api: {
45
+ input: PutResourcePolicyRequest;
46
+ output: PutResourcePolicyResponse;
47
+ };
48
+ sdk: {
49
+ input: PutResourcePolicyCommandInput;
50
+ output: PutResourcePolicyCommandOutput;
51
+ };
52
+ };
53
+ }
@@ -21,6 +21,7 @@ export * from "./DeleteFlowVersionCommand";
21
21
  export * from "./DeleteKnowledgeBaseCommand";
22
22
  export * from "./DeleteKnowledgeBaseDocumentsCommand";
23
23
  export * from "./DeletePromptCommand";
24
+ export * from "./DeleteResourcePolicyCommand";
24
25
  export * from "./DisassociateAgentCollaboratorCommand";
25
26
  export * from "./DisassociateAgentKnowledgeBaseCommand";
26
27
  export * from "./GetAgentActionGroupCommand";
@@ -37,6 +38,7 @@ export * from "./GetIngestionJobCommand";
37
38
  export * from "./GetKnowledgeBaseCommand";
38
39
  export * from "./GetKnowledgeBaseDocumentsCommand";
39
40
  export * from "./GetPromptCommand";
41
+ export * from "./GetResourcePolicyCommand";
40
42
  export * from "./IngestKnowledgeBaseDocumentsCommand";
41
43
  export * from "./ListAgentActionGroupsCommand";
42
44
  export * from "./ListAgentAliasesCommand";
@@ -55,6 +57,7 @@ export * from "./ListPromptsCommand";
55
57
  export * from "./ListTagsForResourceCommand";
56
58
  export * from "./PrepareAgentCommand";
57
59
  export * from "./PrepareFlowCommand";
60
+ export * from "./PutResourcePolicyCommand";
58
61
  export * from "./StartIngestionJobCommand";
59
62
  export * from "./StopIngestionJobCommand";
60
63
  export * from "./TagResourceCommand";
@@ -1,3 +1,14 @@
1
+ export declare const AccessControlAccess: {
2
+ readonly ALLOW: "ALLOW";
3
+ readonly DENY: "DENY";
4
+ };
5
+ export type AccessControlAccess =
6
+ (typeof AccessControlAccess)[keyof typeof AccessControlAccess];
7
+ export declare const AccessControlPrincipalType: {
8
+ readonly USER: "USER";
9
+ };
10
+ export type AccessControlPrincipalType =
11
+ (typeof AccessControlPrincipalType)[keyof typeof AccessControlPrincipalType];
1
12
  export declare const CustomControlMethod: {
2
13
  readonly RETURN_CONTROL: "RETURN_CONTROL";
3
14
  };
@@ -128,6 +139,12 @@ export declare const ConfluenceHostType: {
128
139
  };
129
140
  export type ConfluenceHostType =
130
141
  (typeof ConfluenceHostType)[keyof typeof ConfluenceHostType];
142
+ export declare const EnabledOrDisabledState: {
143
+ readonly DISABLED: "DISABLED";
144
+ readonly ENABLED: "ENABLED";
145
+ };
146
+ export type EnabledOrDisabledState =
147
+ (typeof EnabledOrDisabledState)[keyof typeof EnabledOrDisabledState];
131
148
  export declare const SalesforceAuthType: {
132
149
  readonly OAUTH2_CLIENT_CREDENTIALS: "OAUTH2_CLIENT_CREDENTIALS";
133
150
  };
@@ -147,6 +164,7 @@ export type SharePointHostType =
147
164
  export declare const DataSourceType: {
148
165
  readonly CONFLUENCE: "CONFLUENCE";
149
166
  readonly CUSTOM: "CUSTOM";
167
+ readonly MANAGED_KNOWLEDGE_BASE_CONNECTOR: "MANAGED_KNOWLEDGE_BASE_CONNECTOR";
150
168
  readonly REDSHIFT_METADATA: "REDSHIFT_METADATA";
151
169
  readonly S3: "S3";
152
170
  readonly SALESFORCE: "SALESFORCE";
@@ -190,13 +208,17 @@ export type ParsingModality =
190
208
  export declare const ParsingStrategy: {
191
209
  readonly BEDROCK_DATA_AUTOMATION: "BEDROCK_DATA_AUTOMATION";
192
210
  readonly BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL";
211
+ readonly SMART_PARSING: "SMART_PARSING";
193
212
  };
194
213
  export type ParsingStrategy =
195
214
  (typeof ParsingStrategy)[keyof typeof ParsingStrategy];
196
215
  export declare const DataSourceStatus: {
197
216
  readonly AVAILABLE: "AVAILABLE";
217
+ readonly CREATING: "CREATING";
198
218
  readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
199
219
  readonly DELETING: "DELETING";
220
+ readonly FAILED: "FAILED";
221
+ readonly UPDATING: "UPDATING";
200
222
  };
201
223
  export type DataSourceStatus =
202
224
  (typeof DataSourceStatus)[keyof typeof DataSourceStatus];
@@ -423,6 +445,18 @@ export declare const MetadataSourceType: {
423
445
  };
424
446
  export type MetadataSourceType =
425
447
  (typeof MetadataSourceType)[keyof typeof MetadataSourceType];
448
+ export declare const EmbeddingDataType: {
449
+ readonly BINARY: "BINARY";
450
+ readonly FLOAT32: "FLOAT32";
451
+ };
452
+ export type EmbeddingDataType =
453
+ (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
454
+ export declare const EmbeddingModelType: {
455
+ readonly CUSTOM: "CUSTOM";
456
+ readonly MANAGED: "MANAGED";
457
+ };
458
+ export type EmbeddingModelType =
459
+ (typeof EmbeddingModelType)[keyof typeof EmbeddingModelType];
426
460
  export declare const RedshiftProvisionedAuthType: {
427
461
  readonly IAM: "IAM";
428
462
  readonly USERNAME: "USERNAME";
@@ -461,17 +495,12 @@ export type QueryEngineType =
461
495
  (typeof QueryEngineType)[keyof typeof QueryEngineType];
462
496
  export declare const KnowledgeBaseType: {
463
497
  readonly KENDRA: "KENDRA";
498
+ readonly MANAGED: "MANAGED";
464
499
  readonly SQL: "SQL";
465
500
  readonly VECTOR: "VECTOR";
466
501
  };
467
502
  export type KnowledgeBaseType =
468
503
  (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
469
- export declare const EmbeddingDataType: {
470
- readonly BINARY: "BINARY";
471
- readonly FLOAT32: "FLOAT32";
472
- };
473
- export type EmbeddingDataType =
474
- (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
475
504
  export declare const SupplementalDataStorageLocationType: {
476
505
  readonly S3: "S3";
477
506
  };
@@ -495,6 +524,7 @@ export declare const KnowledgeBaseStatus: {
495
524
  readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
496
525
  readonly DELETING: "DELETING";
497
526
  readonly FAILED: "FAILED";
527
+ readonly UPDATE_UNSUCCESSFUL: "UPDATE_UNSUCCESSFUL";
498
528
  readonly UPDATING: "UPDATING";
499
529
  };
500
530
  export type KnowledgeBaseStatus =
@@ -1,5 +1,8 @@
1
+ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/core/serde";
1
2
  import { DocumentType as __DocumentType } from "@smithy/types";
2
3
  import {
4
+ AccessControlAccess,
5
+ AccessControlPrincipalType,
3
6
  ActionGroupSignature,
4
7
  ActionGroupState,
5
8
  AgentAliasStatus,
@@ -22,6 +25,9 @@ import {
22
25
  DataSourceStatus,
23
26
  DataSourceType,
24
27
  DocumentStatus,
28
+ EmbeddingDataType,
29
+ EmbeddingModelType,
30
+ EnabledOrDisabledState,
25
31
  EnrichmentStrategyMethod,
26
32
  FlowConnectionType,
27
33
  FlowNodeInputCategory,
@@ -29,7 +35,6 @@ import {
29
35
  FlowStatus,
30
36
  FlowValidationSeverity,
31
37
  FlowValidationType,
32
- IncludeExclude,
33
38
  IncompatibleLoopNodeType,
34
39
  IngestionJobFilterAttribute,
35
40
  IngestionJobFilterOperator,
@@ -47,11 +52,7 @@ import {
47
52
  PromptState,
48
53
  PromptTemplateType,
49
54
  PromptType,
50
- QueryEngineType,
51
55
  RedshiftProvisionedAuthType,
52
- RedshiftQueryEngineStorageType,
53
- RedshiftQueryEngineType,
54
- RedshiftServerlessAuthType,
55
56
  RelayConversationHistory,
56
57
  RequireConfirmation,
57
58
  RerankingMetadataSelectionMode,
@@ -618,6 +619,29 @@ export interface ConfluenceDataSourceConfiguration {
618
619
  sourceConfiguration: ConfluenceSourceConfiguration | undefined;
619
620
  crawlerConfiguration?: ConfluenceCrawlerConfiguration | undefined;
620
621
  }
622
+ export interface DeletionProtectionConfiguration {
623
+ deletionProtectionStatus: EnabledOrDisabledState | undefined;
624
+ deletionProtectionThreshold?: number | undefined;
625
+ }
626
+ export interface AudioExtractionConfiguration {
627
+ audioExtractionStatus: EnabledOrDisabledState | undefined;
628
+ }
629
+ export interface ImageExtractionConfiguration {
630
+ imageExtractionStatus: EnabledOrDisabledState | undefined;
631
+ }
632
+ export interface VideoExtractionConfiguration {
633
+ videoExtractionStatus: EnabledOrDisabledState | undefined;
634
+ }
635
+ export interface MediaExtractionConfiguration {
636
+ imageExtractionConfiguration?: ImageExtractionConfiguration | undefined;
637
+ audioExtractionConfiguration?: AudioExtractionConfiguration | undefined;
638
+ videoExtractionConfiguration?: VideoExtractionConfiguration | undefined;
639
+ }
640
+ export interface ManagedKnowledgeBaseConnectorConfiguration {
641
+ deletionProtectionConfiguration?: DeletionProtectionConfiguration | undefined;
642
+ mediaExtractionConfiguration?: MediaExtractionConfiguration | undefined;
643
+ connectorParameters?: __DocumentType | undefined;
644
+ }
621
645
  export interface S3DataSourceConfiguration {
622
646
  bucketArn: string | undefined;
623
647
  inclusionPrefixes?: string[] | undefined;
@@ -677,6 +701,9 @@ export interface WebDataSourceConfiguration {
677
701
  }
678
702
  export interface DataSourceConfiguration {
679
703
  type: DataSourceType | undefined;
704
+ managedKnowledgeBaseConnectorConfiguration?:
705
+ | ManagedKnowledgeBaseConnectorConfiguration
706
+ | undefined;
680
707
  s3Configuration?: S3DataSourceConfiguration | undefined;
681
708
  webConfiguration?: WebDataSourceConfiguration | undefined;
682
709
  confluenceConfiguration?: ConfluenceDataSourceConfiguration | undefined;
@@ -852,6 +879,14 @@ export interface UpdateDataSourceRequest {
852
879
  export interface UpdateDataSourceResponse {
853
880
  dataSource: DataSource | undefined;
854
881
  }
882
+ export interface DeleteResourcePolicyRequest {
883
+ resourceArn: string | undefined;
884
+ expectedRevisionId?: string | undefined;
885
+ }
886
+ export interface DeleteResourcePolicyResponse {
887
+ resourceArn: string | undefined;
888
+ revisionId?: string | undefined;
889
+ }
855
890
  export interface FlowConditionalConnectionConfiguration {
856
891
  condition: string | undefined;
857
892
  }
@@ -2930,6 +2965,14 @@ export interface PrepareFlowResponse {
2930
2965
  id: string | undefined;
2931
2966
  status: FlowStatus | undefined;
2932
2967
  }
2968
+ export interface GetResourcePolicyRequest {
2969
+ resourceArn: string | undefined;
2970
+ }
2971
+ export interface GetResourcePolicyResponse {
2972
+ resourceArn: string | undefined;
2973
+ policy: __AutomaticJsonStringConversion | string | undefined;
2974
+ revisionId: string | undefined;
2975
+ }
2933
2976
  export interface GetIngestionJobRequest {
2934
2977
  knowledgeBaseId: string | undefined;
2935
2978
  dataSourceId: string | undefined;
@@ -2943,6 +2986,7 @@ export interface IngestionJobStatistics {
2943
2986
  numberOfMetadataDocumentsModified?: number | undefined;
2944
2987
  numberOfDocumentsDeleted?: number | undefined;
2945
2988
  numberOfDocumentsFailed?: number | undefined;
2989
+ numberOfDocumentsSkipped?: number | undefined;
2946
2990
  }
2947
2991
  export interface IngestionJob {
2948
2992
  knowledgeBaseId: string | undefined;
@@ -3069,6 +3113,11 @@ export interface DocumentContent {
3069
3113
  custom?: CustomContent | undefined;
3070
3114
  s3?: S3Content | undefined;
3071
3115
  }
3116
+ export interface DocumentAccessControlEntry {
3117
+ name: string | undefined;
3118
+ type: AccessControlPrincipalType | undefined;
3119
+ access: AccessControlAccess | undefined;
3120
+ }
3072
3121
  export interface MetadataAttributeValue {
3073
3122
  type: MetadataValueType | undefined;
3074
3123
  numberValue?: number | undefined;
@@ -3084,6 +3133,7 @@ export interface DocumentMetadata {
3084
3133
  type: MetadataSourceType | undefined;
3085
3134
  inlineAttributes?: MetadataAttribute[] | undefined;
3086
3135
  s3Location?: CustomS3Location | undefined;
3136
+ accessControlList?: DocumentAccessControlEntry[] | undefined;
3087
3137
  }
3088
3138
  export interface KnowledgeBaseDocument {
3089
3139
  metadata?: DocumentMetadata | undefined;
@@ -3121,75 +3171,6 @@ export interface AssociateAgentKnowledgeBaseResponse {
3121
3171
  export interface KendraKnowledgeBaseConfiguration {
3122
3172
  kendraIndexArn: string | undefined;
3123
3173
  }
3124
- export interface RedshiftProvisionedAuthConfiguration {
3125
- type: RedshiftProvisionedAuthType | undefined;
3126
- databaseUser?: string | undefined;
3127
- usernamePasswordSecretArn?: string | undefined;
3128
- }
3129
- export interface RedshiftProvisionedConfiguration {
3130
- clusterIdentifier: string | undefined;
3131
- authConfiguration: RedshiftProvisionedAuthConfiguration | undefined;
3132
- }
3133
- export interface RedshiftServerlessAuthConfiguration {
3134
- type: RedshiftServerlessAuthType | undefined;
3135
- usernamePasswordSecretArn?: string | undefined;
3136
- }
3137
- export interface RedshiftServerlessConfiguration {
3138
- workgroupArn: string | undefined;
3139
- authConfiguration: RedshiftServerlessAuthConfiguration | undefined;
3140
- }
3141
- export interface RedshiftQueryEngineConfiguration {
3142
- type: RedshiftQueryEngineType | undefined;
3143
- serverlessConfiguration?: RedshiftServerlessConfiguration | undefined;
3144
- provisionedConfiguration?: RedshiftProvisionedConfiguration | undefined;
3145
- }
3146
- export interface CuratedQuery {
3147
- naturalLanguage: string | undefined;
3148
- sql: string | undefined;
3149
- }
3150
- export interface QueryGenerationColumn {
3151
- name?: string | undefined;
3152
- description?: string | undefined;
3153
- inclusion?: IncludeExclude | undefined;
3154
- }
3155
- export interface QueryGenerationTable {
3156
- name: string | undefined;
3157
- description?: string | undefined;
3158
- inclusion?: IncludeExclude | undefined;
3159
- columns?: QueryGenerationColumn[] | undefined;
3160
- }
3161
- export interface QueryGenerationContext {
3162
- tables?: QueryGenerationTable[] | undefined;
3163
- curatedQueries?: CuratedQuery[] | undefined;
3164
- }
3165
- export interface QueryGenerationConfiguration {
3166
- executionTimeoutSeconds?: number | undefined;
3167
- generationContext?: QueryGenerationContext | undefined;
3168
- }
3169
- export interface RedshiftQueryEngineAwsDataCatalogStorageConfiguration {
3170
- tableNames: string[] | undefined;
3171
- }
3172
- export interface RedshiftQueryEngineRedshiftStorageConfiguration {
3173
- databaseName: string | undefined;
3174
- }
3175
- export interface RedshiftQueryEngineStorageConfiguration {
3176
- type: RedshiftQueryEngineStorageType | undefined;
3177
- awsDataCatalogConfiguration?:
3178
- | RedshiftQueryEngineAwsDataCatalogStorageConfiguration
3179
- | undefined;
3180
- redshiftConfiguration?:
3181
- | RedshiftQueryEngineRedshiftStorageConfiguration
3182
- | undefined;
3183
- }
3184
- export interface RedshiftConfiguration {
3185
- storageConfigurations: RedshiftQueryEngineStorageConfiguration[] | undefined;
3186
- queryEngineConfiguration: RedshiftQueryEngineConfiguration | undefined;
3187
- queryGenerationConfiguration?: QueryGenerationConfiguration | undefined;
3188
- }
3189
- export interface SqlKnowledgeBaseConfiguration {
3190
- type: QueryEngineType | undefined;
3191
- redshiftConfiguration?: RedshiftConfiguration | undefined;
3192
- }
3193
3174
  export interface AudioSegmentationConfiguration {
3194
3175
  fixedLengthDuration: number | undefined;
3195
3176
  }
@@ -3202,3 +3183,27 @@ export interface VideoSegmentationConfiguration {
3202
3183
  export interface VideoConfiguration {
3203
3184
  segmentationConfiguration: VideoSegmentationConfiguration | undefined;
3204
3185
  }
3186
+ export interface BedrockEmbeddingModelConfiguration {
3187
+ dimensions?: number | undefined;
3188
+ embeddingDataType?: EmbeddingDataType | undefined;
3189
+ audio?: AudioConfiguration[] | undefined;
3190
+ video?: VideoConfiguration[] | undefined;
3191
+ }
3192
+ export interface EmbeddingModelConfiguration {
3193
+ bedrockEmbeddingModelConfiguration?:
3194
+ | BedrockEmbeddingModelConfiguration
3195
+ | undefined;
3196
+ }
3197
+ export interface ManagedKnowledgeBaseConfiguration {
3198
+ embeddingModelType?: EmbeddingModelType | undefined;
3199
+ embeddingModelArn?: string | undefined;
3200
+ embeddingModelConfiguration?: EmbeddingModelConfiguration | undefined;
3201
+ serverSideEncryptionConfiguration?:
3202
+ | ServerSideEncryptionConfiguration
3203
+ | undefined;
3204
+ }
3205
+ export interface RedshiftProvisionedAuthConfiguration {
3206
+ type: RedshiftProvisionedAuthType | undefined;
3207
+ databaseUser?: string | undefined;
3208
+ usernamePasswordSecretArn?: string | undefined;
3209
+ }
@@ -1,14 +1,19 @@
1
+ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/core/serde";
1
2
  import { DocumentType as __DocumentType } from "@smithy/types";
2
3
  import {
3
4
  AgentStatus,
4
- EmbeddingDataType,
5
5
  FlowNodeType,
6
6
  FlowStatus,
7
+ IncludeExclude,
7
8
  KnowledgeBaseState,
8
9
  KnowledgeBaseStatus,
9
10
  KnowledgeBaseStorageType,
10
11
  KnowledgeBaseType,
11
12
  PromptTemplateType,
13
+ QueryEngineType,
14
+ RedshiftQueryEngineStorageType,
15
+ RedshiftQueryEngineType,
16
+ RedshiftServerlessAuthType,
12
17
  SupplementalDataStorageLocationType,
13
18
  } from "./enums";
14
19
  import {
@@ -17,9 +22,9 @@ import {
17
22
  AgentKnowledgeBaseSummary,
18
23
  AgentVersion,
19
24
  AgentVersionSummary,
20
- AudioConfiguration,
21
25
  CollectorFlowNodeConfiguration,
22
26
  ConditionFlowNodeConfiguration,
27
+ EmbeddingModelConfiguration,
23
28
  FlowConnection,
24
29
  FlowNodeInput,
25
30
  FlowNodeOutput,
@@ -33,26 +38,79 @@ import {
33
38
  LexFlowNodeConfiguration,
34
39
  LoopControllerFlowNodeConfiguration,
35
40
  LoopInputFlowNodeConfiguration,
41
+ ManagedKnowledgeBaseConfiguration,
36
42
  OutputFlowNodeConfiguration,
37
43
  PromptFlowNodeConfiguration,
38
44
  PromptInferenceConfiguration,
39
45
  PromptTemplateConfiguration,
46
+ RedshiftProvisionedAuthConfiguration,
40
47
  RetrievalFlowNodeConfiguration,
41
48
  S3Location,
42
- SqlKnowledgeBaseConfiguration,
43
49
  StorageFlowNodeConfiguration,
44
- VideoConfiguration,
45
50
  } from "./models_0";
46
- export interface BedrockEmbeddingModelConfiguration {
47
- dimensions?: number | undefined;
48
- embeddingDataType?: EmbeddingDataType | undefined;
49
- audio?: AudioConfiguration[] | undefined;
50
- video?: VideoConfiguration[] | undefined;
51
- }
52
- export interface EmbeddingModelConfiguration {
53
- bedrockEmbeddingModelConfiguration?:
54
- | BedrockEmbeddingModelConfiguration
51
+ export interface RedshiftProvisionedConfiguration {
52
+ clusterIdentifier: string | undefined;
53
+ authConfiguration: RedshiftProvisionedAuthConfiguration | undefined;
54
+ }
55
+ export interface RedshiftServerlessAuthConfiguration {
56
+ type: RedshiftServerlessAuthType | undefined;
57
+ usernamePasswordSecretArn?: string | undefined;
58
+ }
59
+ export interface RedshiftServerlessConfiguration {
60
+ workgroupArn: string | undefined;
61
+ authConfiguration: RedshiftServerlessAuthConfiguration | undefined;
62
+ }
63
+ export interface RedshiftQueryEngineConfiguration {
64
+ type: RedshiftQueryEngineType | undefined;
65
+ serverlessConfiguration?: RedshiftServerlessConfiguration | undefined;
66
+ provisionedConfiguration?: RedshiftProvisionedConfiguration | undefined;
67
+ }
68
+ export interface CuratedQuery {
69
+ naturalLanguage: string | undefined;
70
+ sql: string | undefined;
71
+ }
72
+ export interface QueryGenerationColumn {
73
+ name?: string | undefined;
74
+ description?: string | undefined;
75
+ inclusion?: IncludeExclude | undefined;
76
+ }
77
+ export interface QueryGenerationTable {
78
+ name: string | undefined;
79
+ description?: string | undefined;
80
+ inclusion?: IncludeExclude | undefined;
81
+ columns?: QueryGenerationColumn[] | undefined;
82
+ }
83
+ export interface QueryGenerationContext {
84
+ tables?: QueryGenerationTable[] | undefined;
85
+ curatedQueries?: CuratedQuery[] | undefined;
86
+ }
87
+ export interface QueryGenerationConfiguration {
88
+ executionTimeoutSeconds?: number | undefined;
89
+ generationContext?: QueryGenerationContext | undefined;
90
+ }
91
+ export interface RedshiftQueryEngineAwsDataCatalogStorageConfiguration {
92
+ tableNames: string[] | undefined;
93
+ }
94
+ export interface RedshiftQueryEngineRedshiftStorageConfiguration {
95
+ databaseName: string | undefined;
96
+ }
97
+ export interface RedshiftQueryEngineStorageConfiguration {
98
+ type: RedshiftQueryEngineStorageType | undefined;
99
+ awsDataCatalogConfiguration?:
100
+ | RedshiftQueryEngineAwsDataCatalogStorageConfiguration
55
101
  | undefined;
102
+ redshiftConfiguration?:
103
+ | RedshiftQueryEngineRedshiftStorageConfiguration
104
+ | undefined;
105
+ }
106
+ export interface RedshiftConfiguration {
107
+ storageConfigurations: RedshiftQueryEngineStorageConfiguration[] | undefined;
108
+ queryEngineConfiguration: RedshiftQueryEngineConfiguration | undefined;
109
+ queryGenerationConfiguration?: QueryGenerationConfiguration | undefined;
110
+ }
111
+ export interface SqlKnowledgeBaseConfiguration {
112
+ type: QueryEngineType | undefined;
113
+ redshiftConfiguration?: RedshiftConfiguration | undefined;
56
114
  }
57
115
  export interface SupplementalDataStorageLocation {
58
116
  type: SupplementalDataStorageLocationType | undefined;
@@ -73,6 +131,9 @@ export interface KnowledgeBaseConfiguration {
73
131
  vectorKnowledgeBaseConfiguration?:
74
132
  | VectorKnowledgeBaseConfiguration
75
133
  | undefined;
134
+ managedKnowledgeBaseConfiguration?:
135
+ | ManagedKnowledgeBaseConfiguration
136
+ | undefined;
76
137
  kendraKnowledgeBaseConfiguration?:
77
138
  | KendraKnowledgeBaseConfiguration
78
139
  | undefined;
@@ -412,6 +473,15 @@ export interface UpdatePromptResponse {
412
473
  createdAt: Date | undefined;
413
474
  updatedAt: Date | undefined;
414
475
  }
476
+ export interface PutResourcePolicyRequest {
477
+ resourceArn: string | undefined;
478
+ policy: __AutomaticJsonStringConversion | string | undefined;
479
+ expectedRevisionId?: string | undefined;
480
+ }
481
+ export interface PutResourcePolicyResponse {
482
+ resourceArn: string | undefined;
483
+ revisionId: string | undefined;
484
+ }
415
485
  export interface ListTagsForResourceRequest {
416
486
  resourceArn: string | undefined;
417
487
  }