@awboost/cfn-resource-types 0.1.200 → 0.1.202

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.
@@ -20,6 +20,7 @@ export type WisdomKnowledgeBaseProperties = {
20
20
  ServerSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
21
21
  SourceConfiguration?: SourceConfiguration;
22
22
  Tags?: Tag[];
23
+ VectorIngestionConfiguration?: VectorIngestionConfiguration;
23
24
  };
24
25
  /**
25
26
  * Attribute type definition for `AWS::Wisdom::KnowledgeBase`.
@@ -52,11 +53,78 @@ export type AppIntegrationsConfiguration = {
52
53
  */
53
54
  ObjectFields?: string[];
54
55
  };
56
+ /**
57
+ * Type definition for `AWS::Wisdom::KnowledgeBase.BedrockFoundationModelConfiguration`.
58
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-bedrockfoundationmodelconfiguration.html}
59
+ */
60
+ export type BedrockFoundationModelConfiguration = {
61
+ /**
62
+ * @minLength `1`
63
+ * @maxLength `2048`
64
+ * @pattern `^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model\/anthropic.claude-3-haiku-20240307-v1:0$`
65
+ */
66
+ ModelArn: string;
67
+ ParsingPrompt?: {
68
+ /**
69
+ * @minLength `1`
70
+ * @maxLength `10000`
71
+ */
72
+ ParsingPromptText: string;
73
+ };
74
+ };
75
+ /**
76
+ * Type definition for `AWS::Wisdom::KnowledgeBase.FixedSizeChunkingConfiguration`.
77
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-fixedsizechunkingconfiguration.html}
78
+ */
79
+ export type FixedSizeChunkingConfiguration = {
80
+ /**
81
+ * @min `1`
82
+ */
83
+ MaxTokens: number;
84
+ /**
85
+ * @min `1`
86
+ * @max `99`
87
+ */
88
+ OverlapPercentage: number;
89
+ };
90
+ /**
91
+ * Type definition for `AWS::Wisdom::KnowledgeBase.HierarchicalChunkingConfiguration`.
92
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-hierarchicalchunkingconfiguration.html}
93
+ */
94
+ export type HierarchicalChunkingConfiguration = {
95
+ /**
96
+ * @minLength `2`
97
+ * @maxLength `2`
98
+ */
99
+ LevelConfigurations: HierarchicalChunkingLevelConfiguration[];
100
+ /**
101
+ * @min `1`
102
+ */
103
+ OverlapTokens: number;
104
+ };
105
+ /**
106
+ * Type definition for `AWS::Wisdom::KnowledgeBase.HierarchicalChunkingLevelConfiguration`.
107
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-hierarchicalchunkinglevelconfiguration.html}
108
+ */
109
+ export type HierarchicalChunkingLevelConfiguration = {
110
+ /**
111
+ * @min `1`
112
+ * @max `8192`
113
+ */
114
+ MaxTokens: number;
115
+ };
55
116
  /**
56
117
  * Type definition for `AWS::Wisdom::KnowledgeBase.KnowledgeBaseType`.
57
118
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-knowledgebasetype.html}
58
119
  */
59
- export type KnowledgeBaseType = "EXTERNAL" | "CUSTOM" | "MESSAGE_TEMPLATES";
120
+ export type KnowledgeBaseType = "EXTERNAL" | "CUSTOM" | "MESSAGE_TEMPLATES" | "MANAGED";
121
+ /**
122
+ * Type definition for `AWS::Wisdom::KnowledgeBase.ManagedSourceConfiguration`.
123
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-managedsourceconfiguration.html}
124
+ */
125
+ export type ManagedSourceConfiguration = {
126
+ WebCrawlerConfiguration: WebCrawlerConfiguration;
127
+ };
60
128
  /**
61
129
  * Type definition for `AWS::Wisdom::KnowledgeBase.RenderingConfiguration`.
62
130
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-renderingconfiguration.html}
@@ -68,6 +136,36 @@ export type RenderingConfiguration = {
68
136
  */
69
137
  TemplateUri?: string;
70
138
  };
139
+ /**
140
+ * Type definition for `AWS::Wisdom::KnowledgeBase.SeedUrl`.
141
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-seedurl.html}
142
+ */
143
+ export type SeedUrl = {
144
+ /**
145
+ * @pattern `^https?://[A-Za-z0-9][^\s]*$`
146
+ */
147
+ Url?: string;
148
+ };
149
+ /**
150
+ * Type definition for `AWS::Wisdom::KnowledgeBase.SemanticChunkingConfiguration`.
151
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-semanticchunkingconfiguration.html}
152
+ */
153
+ export type SemanticChunkingConfiguration = {
154
+ /**
155
+ * @min `50`
156
+ * @max `99`
157
+ */
158
+ BreakpointPercentileThreshold: number;
159
+ /**
160
+ * @min `0`
161
+ * @max `1`
162
+ */
163
+ BufferSize: number;
164
+ /**
165
+ * @min `1`
166
+ */
167
+ MaxTokens: number;
168
+ };
71
169
  /**
72
170
  * Type definition for `AWS::Wisdom::KnowledgeBase.ServerSideEncryptionConfiguration`.
73
171
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-serversideencryptionconfiguration.html}
@@ -84,7 +182,9 @@ export type ServerSideEncryptionConfiguration = {
84
182
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-sourceconfiguration.html}
85
183
  */
86
184
  export type SourceConfiguration = {
87
- AppIntegrations?: AppIntegrationsConfiguration;
185
+ AppIntegrations: AppIntegrationsConfiguration;
186
+ } | {
187
+ ManagedSourceConfiguration: ManagedSourceConfiguration;
88
188
  };
89
189
  /**
90
190
  * Type definition for `AWS::Wisdom::KnowledgeBase.Tag`.
@@ -103,6 +203,53 @@ export type Tag = {
103
203
  */
104
204
  Value: string;
105
205
  };
206
+ /**
207
+ * Type definition for `AWS::Wisdom::KnowledgeBase.VectorIngestionConfiguration`.
208
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-vectoringestionconfiguration.html}
209
+ */
210
+ export type VectorIngestionConfiguration = {
211
+ ChunkingConfiguration?: {
212
+ ChunkingStrategy: "FIXED_SIZE" | "NONE" | "HIERARCHICAL" | "SEMANTIC";
213
+ FixedSizeChunkingConfiguration?: FixedSizeChunkingConfiguration;
214
+ HierarchicalChunkingConfiguration?: HierarchicalChunkingConfiguration;
215
+ SemanticChunkingConfiguration?: SemanticChunkingConfiguration;
216
+ };
217
+ ParsingConfiguration?: {
218
+ BedrockFoundationModelConfiguration?: BedrockFoundationModelConfiguration;
219
+ ParsingStrategy: "BEDROCK_FOUNDATION_MODEL";
220
+ };
221
+ };
222
+ /**
223
+ * Type definition for `AWS::Wisdom::KnowledgeBase.WebCrawlerConfiguration`.
224
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-webcrawlerconfiguration.html}
225
+ */
226
+ export type WebCrawlerConfiguration = {
227
+ CrawlerLimits?: {
228
+ /**
229
+ * @min `1`
230
+ * @max `3000`
231
+ */
232
+ RateLimit?: number;
233
+ };
234
+ /**
235
+ * @minLength `1`
236
+ * @maxLength `25`
237
+ */
238
+ ExclusionFilters?: string[];
239
+ /**
240
+ * @minLength `1`
241
+ * @maxLength `25`
242
+ */
243
+ InclusionFilters?: string[];
244
+ Scope?: "HOST_ONLY" | "SUBDOMAINS";
245
+ UrlConfiguration: {
246
+ /**
247
+ * @minLength `1`
248
+ * @maxLength `100`
249
+ */
250
+ SeedUrls?: SeedUrl[];
251
+ };
252
+ };
106
253
  /**
107
254
  * Definition of AWS::Wisdom::KnowledgeBase Resource Type
108
255
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awboost/cfn-resource-types",
3
- "version": "0.1.200",
3
+ "version": "0.1.202",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },