Class CfnDetector
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.frauddetector.CfnDetector
- All Implemented Interfaces:
IInspectable,ITaggable,IDetectorRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:39.110Z")
@Stability(Stable)
public class CfnDetector
extends CfnResource
implements IInspectable, IDetectorRef, ITaggable
Manages a detector and associated detector versions.
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.frauddetector.*;
CfnDetector cfnDetector = CfnDetector.Builder.create(this, "MyCfnDetector")
.detectorId("detectorId")
.eventType(EventTypeProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.entityTypes(List.of(EntityTypeProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.eventVariables(List.of(EventVariableProperty.builder()
.arn("arn")
.createdTime("createdTime")
.dataSource("dataSource")
.dataType("dataType")
.defaultValue("defaultValue")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.variableType("variableType")
.build()))
.inline(false)
.labels(List.of(LabelProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.rules(List.of(RuleProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.detectorId("detectorId")
.expression("expression")
.language("language")
.lastUpdatedTime("lastUpdatedTime")
.outcomes(List.of(OutcomeProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.ruleId("ruleId")
.ruleVersion("ruleVersion")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
// the properties below are optional
.associatedModels(List.of(ModelProperty.builder()
.arn("arn")
.build()))
.description("description")
.detectorVersionStatus("detectorVersionStatus")
.ruleExecutionMode("ruleExecutionMode")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDetector.static interfaceThe entity type details.static interfaceThe event type details.static interfaceThe event type variable for the detector.static interfaceThe label details.static interfaceThe model.static interfaceThe outcome.static interfaceA rule.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$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.frauddetector.IDetectorRef
IDetectorRef.Jsii$Default, IDetectorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDetector(software.amazon.jsii.JsiiObjectRef objRef) CfnDetector(software.constructs.Construct scope, String id, CfnDetectorProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe models to associate with this detector.The detector ARN.Timestamp of when detector was created.The name of the detector.The detector ARN.Timestamp of when the detector was created.Timestamp of when the detector was last updated.Timestamp of when detector was last updated.The detector description.The name of the detector.A reference to a Detector resource.The status of the detector version.The event type associated with this detector.The rule execution mode for the rules included in the detector version.getRules()The rules to include in the detector version.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAssociatedModels(List<Object> value) The models to associate with this detector.voidsetAssociatedModels(IResolvable value) The models to associate with this detector.voidsetDescription(String value) The detector description.voidsetDetectorId(String value) The name of the detector.voidsetDetectorVersionStatus(String value) The status of the detector version.voidsetEventType(IResolvable value) The event type associated with this detector.voidThe event type associated with this detector.voidsetRuleExecutionMode(String value) The rule execution mode for the rules included in the detector version.voidThe rules to include in the detector version.voidsetRules(IResolvable value) The rules to include in the detector version.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnDetectorProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The detector ARN. -
getAttrCreatedTime
Timestamp of when detector was created. -
getAttrDetectorVersionId
The name of the detector. -
getAttrEventTypeArn
The detector ARN. -
getAttrEventTypeCreatedTime
Timestamp of when the detector was created. -
getAttrEventTypeLastUpdatedTime
Timestamp of when the detector was last updated. -
getAttrLastUpdatedTime
Timestamp of when detector was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDetectorRef
A reference to a Detector resource.- Specified by:
getDetectorRefin interfaceIDetectorRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDetectorId
The name of the detector. -
setDetectorId
The name of the detector. -
getEventType
The event type associated with this detector.Returns union: either
IResolvableorCfnDetector.EventTypeProperty -
setEventType
The event type associated with this detector. -
setEventType
The event type associated with this detector. -
getRules
The rules to include in the detector version.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDetector.RuleProperty> -
setRules
The rules to include in the detector version. -
setRules
The rules to include in the detector version. -
getAssociatedModels
The models to associate with this detector.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDetector.ModelProperty> -
setAssociatedModels
The models to associate with this detector. -
setAssociatedModels
The models to associate with this detector. -
getDescription
The detector description. -
setDescription
The detector description. -
getDetectorVersionStatus
The status of the detector version. -
setDetectorVersionStatus
The status of the detector version. -
getRuleExecutionMode
The rule execution mode for the rules included in the detector version. -
setRuleExecutionMode
The rule execution mode for the rules included in the detector version. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-