Class AbstractCdkResourceCheck

java.lang.Object
org.sonar.plugins.python.api.PythonSubscriptionCheck
org.sonar.python.checks.cdk.AbstractCdkResourceCheck
All Implemented Interfaces:
PythonCheck, SubscriptionCheck
Direct Known Subclasses:
AbstractIamPolicyStatementCheck, AbstractS3BucketCheck, ClearTextProtocolsCheckPart, DisabledEFSEncryptionCheck, DisabledESDomainEncryptionCheck, DisabledRDSEncryptionCheck, DisabledSNSTopicEncryptionCheck, PublicApiIsSecuritySensitiveCheck, PublicNetworkAccessToCloudResourcesCheck, UnencryptedEbsVolumeCheck, UnencryptedSageMakerNotebookCheck, UnencryptedSqsQueueCheck, UnrestrictedAdministrationCheckPartCfnSecurity, UnrestrictedAdministrationCheckPartConnections, UnrestrictedOutboundCommunicationsCheck, WeakSSLProtocolCheckPart

public abstract class AbstractCdkResourceCheck extends PythonSubscriptionCheck
Since most CDK related checks check arguments of method calls or object initializations, this abstract class can be used to register CallExpression consumers for various fully qualified names. For this purpose the method checkFqn(String, BiConsumer) or checkFqns(Collection, BiConsumer) must be called in the registerFqnConsumer() method which has to be implemented.