Class CfnDetector
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.guardduty.CfnDetector
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.154Z")
@Stability(Stable)
public class CfnDetector
extends CfnResource
implements IInspectable
A CloudFormation
AWS::GuardDuty::Detector.
The AWS::GuardDuty::Detector resource specifies a new GuardDuty detector. A detector is an object that represents the GuardDuty service. A detector is required for GuardDuty to become operational.
Make sure you use either DataSources or Features in a one request, and not both.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.guardduty.*;
CfnDetector cfnDetector = CfnDetector.Builder.create(this, "MyCfnDetector")
.enable(false)
// the properties below are optional
.dataSources(CFNDataSourceConfigurationsProperty.builder()
.kubernetes(CFNKubernetesConfigurationProperty.builder()
.auditLogs(CFNKubernetesAuditLogsConfigurationProperty.builder()
.enable(false)
.build())
.build())
.malwareProtection(CFNMalwareProtectionConfigurationProperty.builder()
.scanEc2InstanceWithFindings(CFNScanEc2InstanceWithFindingsConfigurationProperty.builder()
.ebsVolumes(false)
.build())
.build())
.s3Logs(CFNS3LogsConfigurationProperty.builder()
.enable(false)
.build())
.build())
.features(List.of(FeatureConfigurationsProperty.builder()
.additionalConfiguration(List.of(FeatureAdditionalConfigurationProperty.builder()
.name("name")
.status("status")
.build()))
.name("name")
.status("status")
.build()))
.findingPublishingFrequency("findingPublishingFrequency")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDetector.static interfaceDescribes whether S3 data event logs, Kubernetes audit logs, or Malware Protection will be enabled as a data source when the detector is created.static interfaceDescribes which optional data sources are enabled for a detector.static interfaceDescribes which Kubernetes protection data sources are enabled for the detector.static interfaceDescribes whether Malware Protection will be enabled as a data source.static interfaceDescribes whether S3 data event logs will be enabled as a data source when the detector is created.static interfaceDescribes whether Malware Protection for EC2 instances with findings will be enabled as a data source.static interfaceDescribes the additional configuration for a feature.static interfaceDescribes the configuration for a feature.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnDetector(Construct scope, String id, CfnDetectorProps props) Create a newAWS::GuardDuty::Detector.protectedCfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDetector(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionDescribes which data sources will be enabled for the detector.Specifies whether the detector is to be enabled on creation.A list of features that will be configured for the detector.Specifies how frequently updated findings are exported.getTags()Specifies tags added to a new detector resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDataSources(IResolvable value) Describes which data sources will be enabled for the detector.voidDescribes which data sources will be enabled for the detector.voidSpecifies whether the detector is to be enabled on creation.voidsetEnable(IResolvable value) Specifies whether the detector is to be enabled on creation.voidsetFeatures(List<Object> value) A list of features that will be configured for the detector.voidsetFeatures(IResolvable value) A list of features that will be configured for the detector.voidSpecifies how frequently updated findings are exported.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDetector
protected CfnDetector(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDetector
protected CfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDetector
@Stability(Stable) public CfnDetector(@NotNull Construct scope, @NotNull String id, @NotNull CfnDetectorProps props) Create a newAWS::GuardDuty::Detector.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Specifies tags added to a new detector resource.Each tag consists of a key and an optional value, both of which you define.
Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
For more information, see Tag .
-
getEnable
Specifies whether the detector is to be enabled on creation. -
setEnable
Specifies whether the detector is to be enabled on creation. -
setEnable
Specifies whether the detector is to be enabled on creation. -
getDataSources
Describes which data sources will be enabled for the detector. -
setDataSources
Describes which data sources will be enabled for the detector. -
setDataSources
@Stability(Stable) public void setDataSources(@Nullable CfnDetector.CFNDataSourceConfigurationsProperty value) Describes which data sources will be enabled for the detector. -
getFeatures
A list of features that will be configured for the detector. -
setFeatures
A list of features that will be configured for the detector. -
setFeatures
A list of features that will be configured for the detector. -
getFindingPublishingFrequency
Specifies how frequently updated findings are exported. -
setFindingPublishingFrequency
Specifies how frequently updated findings are exported.
-