Skip to content

Commit

Permalink
chore: patch for AWS::Bedrock::DataSource DataSourceConfiguration (#1255
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Aug 22, 2024
1 parent f280228 commit 2926118
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,39 @@ registerServicePatches(
reason,
)(lens);
}),
forResource('AWS::Bedrock::DataSource', (lens) => {
const reason = patching.Reason.sourceIssue(
'DataSourceConfiguration on AWS::Bedrock::DataSource resource is being dropped for unknown reason but suppoted by CloudForamtion',
);
replaceDefinition(
"DataSourceConfiguration",
{
type: 'object',
description: 'Specifies a raw data source location to ingest.',
properties: {
Type : {
"$ref" : "#/definitions/DataSourceType"
},
S3Configuration: {
"$ref" : "#/definitions/S3DataSourceConfiguration"
},
ConfluenceConfiguration: {
"$ref" : "#/definitions/ConfluenceDataSourceConfiguration"
},
SalesforceConfiguration: {
"$ref" : "#/definitions/SalesforceDataSourceConfiguration"
},
SharePointConfiguration: {
"$ref" : "#/definitions/SharePointDataSourceConfiguration"
},
WebConfiguration: {
"$ref" : "#/definitions/WebDataSourceConfiguration"
}
},
required: ['Type'],
additionalProperties: false,
},
reason,
)(lens);
}),
);

0 comments on commit 2926118

Please sign in to comment.