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
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.InitializationModeNested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Resolves whether Inspector is required, then enables it via the account-scopedinspector2:EnableSDK call for the currently-selected resource types.Methods inherited from class BaseFactory
getDeploymentContext, getSecurityProfileConfiguration, getSystemContextMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
InspectorFactory
- Parameters:
scope- parent constructid- construct ID
-
-
Method Details
-
create
public void create()Resolves whether Inspector is required, then enables it via the account-scopedinspector2:EnableSDK call for the currently-selected resource types.- Specified by:
createin classBaseFactory
-