-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: patch quicksight dataset property (#1256)
RefreshConfiguration is marked as optional incorrectly by QuickSight team. Updating it back by a temporary patch until their team fixed it.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/@aws-cdk/aws-service-spec/build/patches/service-patches/quicksight.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { patching } from '@aws-cdk/service-spec-importers'; | ||
import { forResource, registerServicePatches, replaceDefinition } from './core'; | ||
|
||
registerServicePatches( | ||
forResource('AWS::QuickSight::DataSet', (lens) => { | ||
const reason = patching.Reason.sourceIssue( | ||
'RefreshConfiguration property is marked as optional unintentionally.', | ||
); | ||
replaceDefinition( | ||
'DataSetRefreshProperties', | ||
{ | ||
type: "object", | ||
description: "<p>The refresh properties of a dataset.</p>", | ||
properties: { | ||
RefreshConfiguration: { | ||
"$ref": "#/definitions/RefreshConfiguration" | ||
} | ||
}, | ||
required: [ "RefreshConfiguration" ], | ||
additionalProperties: false | ||
}, | ||
reason, | ||
)(lens); | ||
}) | ||
); |