@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.684Z") @Stability(value=Stable) public class CfnDetector extends CfnResource implements IInspectable
The AWS::GuardDuty::Detector resource specifies a new detector. A detector is an object that represents the service. A detector is required for to become operational.
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())
.findingPublishingFrequency("findingPublishingFrequency")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDetector.Builder
A fluent builder for
CfnDetector. |
static interface |
CfnDetector.CFNDataSourceConfigurationsProperty
Describes whether S3 data event logs or Kubernetes audit logs will be enabled as a data source when the detector is created.
|
static interface |
CfnDetector.CFNKubernetesAuditLogsConfigurationProperty
Describes which optional data sources are enabled for a detector.
|
static interface |
CfnDetector.CFNKubernetesConfigurationProperty
Describes which Kubernetes protection data sources are enabled for the detector.
|
static interface |
CfnDetector.CFNMalwareProtectionConfigurationProperty
Example:
|
static interface |
CfnDetector.CFNS3LogsConfigurationProperty
Describes whether S3 data event logs will be enabled as a data source when the detector is created.
|
static interface |
CfnDetector.CFNScanEc2InstanceWithFindingsConfigurationProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDetector(software.constructs.Construct scope,
String id,
CfnDetectorProps props)
Create a new `AWS::GuardDuty::Detector`.
|
protected |
CfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDetector(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getDataSources()
Describes which data sources will be enabled for the detector.
|
Object |
getEnable()
Specifies whether the detector is to be enabled on creation.
|
String |
getFindingPublishingFrequency()
Specifies how frequently updated findings are exported.
|
TagManager |
getTags()
`AWS::GuardDuty::Detector.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDataSources(CfnDetector.CFNDataSourceConfigurationsProperty value)
Describes which data sources will be enabled for the detector.
|
void |
setDataSources(IResolvable value)
Describes which data sources will be enabled for the detector.
|
void |
setEnable(Boolean value)
Specifies whether the detector is to be enabled on creation.
|
void |
setEnable(IResolvable value)
Specifies whether the detector is to be enabled on creation.
|
void |
setFindingPublishingFrequency(String value)
Specifies how frequently updated findings are exported.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDetector(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDetector(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDetectorProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getEnable()
@Stability(value=Stable)
public void setEnable(@NotNull
Boolean value)
@Stability(value=Stable)
public void setEnable(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDataSources()
@Stability(value=Stable)
public void setDataSources(@Nullable
CfnDetector.CFNDataSourceConfigurationsProperty value)
@Stability(value=Stable)
public void setDataSources(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getFindingPublishingFrequency()
@Stability(value=Stable)
public void setFindingPublishingFrequency(@Nullable
String value)
Copyright © 2022. All rights reserved.