Check constructor

const Check({
  1. Input<bool>? alwaysDeny,
  2. Input<String>? displayName,
  3. Input<ImageAllowlist>? imageAllowlist,
  4. Input<ImageFreshnessCheck>? imageFreshnessCheck,
  5. Input<SimpleSigningAttestationCheck>? simpleSigningAttestationCheck,
  6. Input<SlsaCheck>? slsaCheck,
  7. Input<TrustedDirectoryCheck>? trustedDirectoryCheck,
  8. Input<VulnerabilityCheck>? vulnerabilityCheck,
})

Creates a new Check. alwaysDeny Optional. A special-case check that always denies. Note that this still only applies when the scope of the CheckSet applies and the image isn't exempted by an image allowlist. This check is primarily useful for testing, or to set the default behavior for all unmatched scopes to "deny". displayName Optional. A user-provided name for this check. This field has no effect on the policy evaluation behavior except to improve readability of messages in evaluation results. imageAllowlist Optional. Images exempted from this check. If any of the patterns match the image url, the check will not be evaluated. imageFreshnessCheck Optional. Require that an image is no older than a configured expiration time. Image age is determined by its upload time. simpleSigningAttestationCheck Optional. Require a SimpleSigning-type attestation for every image in the deployment. slsaCheck Optional. Require that an image was built by a trusted builder (such as Google Cloud Build), meets requirements for Supply chain Levels for Software Artifacts (SLSA), and was built from a trusted source code repostitory. trustedDirectoryCheck Optional. Require that an image lives in a trusted directory. vulnerabilityCheck Optional. Require that an image does not contain vulnerabilities that violate the configured rules, such as based on severity levels.

Implementation

const Check({
  this.alwaysDeny,
  this.displayName,
  this.imageAllowlist,
  this.imageFreshnessCheck,
  this.simpleSigningAttestationCheck,
  this.slsaCheck,
  this.trustedDirectoryCheck,
  this.vulnerabilityCheck,
});