File tree Expand file tree Collapse file tree
packages/amplify-cli/src/commands/gen2-migration/assess Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ export interface Support {
2424export const supported = ( ) : Support => ( { level : 'supported' } ) ;
2525
2626/**
27- * Shorthand for an unsupported entry, optionally with an explanatory note.
27+ * Shorthand for an unsupported entry with a note.
2828 */
29- export const unsupported = ( note ? : string ) : Support => ( note !== undefined ? { level : 'unsupported' , note } : { level : 'unsupported' } ) ;
29+ export const unsupported = ( note : string ) : Support => ( { level : 'unsupported' , note } ) ;
3030
3131/**
3232 * Shorthand for a not-applicable entry.
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ export class DynamoDBAssessor implements Assessor {
1616 if ( meta ?. serviceType === 'imported' ) {
1717 assessment . recordResource ( {
1818 resource : this . resource ,
19- generate : unsupported ( ) ,
20- refactor : unsupported ( ) ,
19+ generate : unsupported ( '(imported)' ) ,
20+ refactor : unsupported ( '(imported)' ) ,
2121 } ) ;
2222 return ;
2323 }
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export class S3Assessor implements Assessor {
1717 if ( meta ?. serviceType === 'imported' ) {
1818 assessment . recordResource ( {
1919 resource : this . resource ,
20- generate : unsupported ( ) ,
21- refactor : unsupported ( ) ,
20+ generate : unsupported ( '(imported)' ) ,
21+ refactor : unsupported ( '(imported)' ) ,
2222 } ) ;
2323 return ;
2424 }
You can’t perform that action at this time.
0 commit comments