Record Class CloudForgeSynthesizer.ComplianceCheckResult
java.lang.Object
java.lang.Record
com.cloudforgeci.api.deploy.CloudForgeSynthesizer.ComplianceCheckResult
- Record Components:
error- non-null only whenapp.synth()itself failed to complete (e.g. an "always load" cross-framework validator that hard-blocks regardless ofcomplianceMode— not every validator in this codebase honors ADVISORY the way the framework-specific ones do).frameworkFindingsmay still be partially populated in that case (whatever ran before the failing validator), butnagFindingsis always empty, since cdk-nag's own report files never get written unless synthesis actually finished.
- Enclosing class:
CloudForgeSynthesizer
public static record CloudForgeSynthesizer.ComplianceCheckResult(String stackName, List<NagReportReader.ComplianceFinding> nagFindings, List<NagReportReader.ComplianceFinding> frameworkFindings, String error)
extends Record
CloudForgeSynthesizer.synthesizeAdvisoryDryRun(DeploymentConfig, Path)'s result — every finding cdk-nag and the requested
FrameworkRules implementations produced, with nothing filtered out the way CloudForgeSynthesizer.synthesize(DeploymentConfig, Path)'s own ENFORCE-mode check only reads error-level cdk-nag lines.-
Constructor Summary
ConstructorsConstructorDescriptionComplianceCheckResult(String stackName, List<NagReportReader.ComplianceFinding> nagFindings, List<NagReportReader.ComplianceFinding> frameworkFindings, String error) Creates an instance of aComplianceCheckResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theframeworkFindingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenagFindingsrecord component.Returns the value of thestackNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComplianceCheckResult
public ComplianceCheckResult(String stackName, List<NagReportReader.ComplianceFinding> nagFindings, List<NagReportReader.ComplianceFinding> frameworkFindings, String error) Creates an instance of aComplianceCheckResultrecord class.- Parameters:
stackName- the value for thestackNamerecord componentnagFindings- the value for thenagFindingsrecord componentframeworkFindings- the value for theframeworkFindingsrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
stackName
Returns the value of thestackNamerecord component.- Returns:
- the value of the
stackNamerecord component
-
nagFindings
Returns the value of thenagFindingsrecord component.- Returns:
- the value of the
nagFindingsrecord component
-
frameworkFindings
Returns the value of theframeworkFindingsrecord component.- Returns:
- the value of the
frameworkFindingsrecord component
-
error
-