Class InspectorFactory

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
com.cloudforgeci.api.core.annotation.BaseFactory
com.cloudforgeci.api.observability.InspectorFactory
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

public class InspectorFactory extends BaseFactory
Factory for Amazon Inspector v2 account enablement.

Unlike GuardDuty/Security Hub/Macie, Inspector2 has no CloudFormation-native enablement resource -- inspector2:Enable is API-only, so this uses an AwsCustomResource the same way ComplianceFactory's Config Recorder starter does.

Inspector2's continuous rescanning is the default behavior for an enabled resource type, not a separate opt-in -- there's no API parameter for it, so inspectorContinuousScanning doesn't map to anything here and is left unread.

  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
  • Field Summary

    Fields inherited from class BaseFactory

    cfc, config, ctx
  • Constructor Summary

    Constructors
    Constructor
    Description
    InspectorFactory(software.constructs.Construct scope, String id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resolves whether Inspector is required, then enables it via the account-scoped inspector2:Enable SDK call for the currently-selected resource types.

    Methods inherited from class software.constructs.Construct

    getNode, isConstruct, toString

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • InspectorFactory

      public InspectorFactory(software.constructs.Construct scope, String id)
      Parameters:
      scope - parent construct
      id - construct ID
  • Method Details

    • create

      public void create()
      Resolves whether Inspector is required, then enables it via the account-scoped inspector2:Enable SDK call for the currently-selected resource types.
      Specified by:
      create in class BaseFactory