Skip to content

Commit

Permalink
feat(sources): patch b2bi partnership property
Browse files Browse the repository at this point in the history
  • Loading branch information
shikha372 committed Oct 3, 2024
1 parent 2b05fa3 commit 2c0947e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { patching } from '@aws-cdk/service-spec-importers';
import { forResource, registerServicePatches, replaceDefinition } from './core';

registerServicePatches(
forResource('AWS::B2BI::Partnership', (lens) => {
const reason = patching.Reason.sourceIssue(
'Capabilities property is marked as required by service team. Revert it to prevent regression',
);
replaceDefinition(
'B2BIPartnernshipProperties',
{
required:[ "Email", "Name", "ProfileId" ]
},
reason,
)(lens);
})
);
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ import './sagemaker';
import './wafv2';
import './securitylake';
import './iotfleetwise';
import './b2bi-partnership';

0 comments on commit 2c0947e

Please sign in to comment.