diff --git a/packages/awslint/lib/rules/core-types.ts b/packages/awslint/lib/rules/core-types.ts index 42a8af9dcb23a..1c86ba2a60eab 100644 --- a/packages/awslint/lib/rules/core-types.ts +++ b/packages/awslint/lib/rules/core-types.ts @@ -89,7 +89,10 @@ export class CoreTypes { * Return true if the given interface type is a CFN class or prop type */ public static isCfnType(interfaceType: reflect.Type) { - return interfaceType.name.startsWith('Cfn') || (interfaceType.namespace && interfaceType.namespace.startsWith('Cfn')); + return interfaceType.name.startsWith('Cfn') + || (interfaceType.namespace && interfaceType.namespace.startsWith('Cfn')) + // aws_service.CfnTheResource.SubType + || (interfaceType.namespace && interfaceType.namespace.split('.', 2).at(1)?.startsWith('Cfn')); } /**