# AWS::FraudDetector::Detector A resource schema for a Detector in Amazon Fraud Detector. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::FraudDetector::Detector", "Properties" : { "DetectorId" : String, "DetectorVersionStatus" : String, "RuleExecutionMode" : String, "Tags" : [ Tag, ... ], "Description" : String, "Rules" : [ Rule, ... ], "EventType" : EventType, "AssociatedModels" : [ Model, ... ] } }### YAML
Type: AWS::FraudDetector::Detector Properties: DetectorId: String DetectorVersionStatus: String RuleExecutionMode: String Tags: - Tag Description: String Rules: - Rule EventType: EventType AssociatedModels: - Model## Properties #### DetectorId The ID of the detector _Required_: Yes _Type_: String _Minimum Length_:
1
_Maximum Length_: 64
_Pattern_: ^[0-9a-z_-]+$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### DetectorVersionStatus
The desired detector version status for the detector
_Required_: No
_Type_: String
_Allowed Values_: DRAFT
| ACTIVE
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### RuleExecutionMode
_Required_: No
_Type_: String
_Allowed Values_: FIRST_MATCHED
| ALL_MATCHED
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Tags
Tags associated with this detector.
_Required_: No
_Type_: List of Tag
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Description
The description of the detector.
_Required_: No
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 128
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Rules
_Required_: Yes
_Type_: List of Rule
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### EventType
_Required_: Yes
_Type_: EventType
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### AssociatedModels
The models to associate with this detector.
_Required_: No
_Type_: List of Model
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Arn.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### Arn
The ARN of the detector.
#### DetectorVersionId
The active version ID of the detector
#### CreatedTime
The time when the detector was created.
#### LastUpdatedTime
The time when the detector was last updated.
#### RuleVersion
Returns the RuleVersion
value.
#### Arn
Returns the Arn
value.
#### CreatedTime
Returns the CreatedTime
value.
#### LastUpdatedTime
Returns the LastUpdatedTime
value.
#### Arn
Returns the Arn
value.
#### CreatedTime
Returns the CreatedTime
value.
#### LastUpdatedTime
Returns the LastUpdatedTime
value.
#### Arn
Returns the Arn
value.
#### CreatedTime
Returns the CreatedTime
value.
#### LastUpdatedTime
Returns the LastUpdatedTime
value.
#### Arn
Returns the Arn
value.
#### CreatedTime
Returns the CreatedTime
value.
#### LastUpdatedTime
Returns the LastUpdatedTime
value.
#### Arn
Returns the Arn
value.
#### CreatedTime
Returns the CreatedTime
value.
#### LastUpdatedTime
Returns the LastUpdatedTime
value.
#### Arn
Returns the Arn
value.
#### CreatedTime
Returns the CreatedTime
value.
#### LastUpdatedTime
Returns the LastUpdatedTime
value.
#### Arn
Returns the Arn
value.