File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ Construct.constructor
55
55
56
56
### dataSource
57
57
58
- • ` Readonly ` ** dataSource** : ` CfnResource `
58
+ • ` Readonly ` ** dataSource** : ` CfnDataSource `
59
59
60
60
The Data Source cfn resource.
61
61
Original file line number Diff line number Diff line change 11
11
* and limitations under the License.
12
12
*/
13
13
14
- import * as cdk from 'aws-cdk-lib' ;
15
14
import { aws_bedrock as bedrock } from 'aws-cdk-lib' ;
16
15
import * as kms from 'aws-cdk-lib/aws-kms' ;
17
16
import * as s3 from 'aws-cdk-lib/aws-s3' ;
@@ -103,7 +102,7 @@ export class S3DataSource extends Construct {
103
102
/**
104
103
* The Data Source cfn resource.
105
104
*/
106
- public readonly dataSource : cdk . CfnResource ;
105
+ public readonly dataSource : bedrock . CfnDataSource ;
107
106
/**
108
107
* The unique identifier of the data source.
109
108
*/
@@ -152,8 +151,7 @@ export class S3DataSource extends Construct {
152
151
153
152
} ) ;
154
153
155
- this . dataSourceId = dataSourceName ;
156
-
154
+ this . dataSourceId = this . dataSource . attrDataSourceId ;
157
155
}
158
156
}
159
157
@@ -208,4 +206,4 @@ function vectorIngestionConfiguration(
208
206
return { } ;
209
207
}
210
208
211
- }
209
+ }
You can’t perform that action at this time.
0 commit comments