# CfnCustomDetectionRuleAssociationProps

Properties for defining a `CfnCustomDetectionRuleAssociation`.

Extends: CfnCustomDetectionRuleAssociationProps
Used as props by: CfnCustomDetectionRuleAssociation

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_guardduty as guardduty } from 'aws-cdk-lib';
const cfnCustomDetectionRuleAssociationProps: guardduty.CfnCustomDetectionRuleAssociationProps = {
  mode: 'mode',
  ruleId: 'ruleId',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `mode`: string (required) — Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).

- `ruleId`: string (required) — The catalog identifier of the custom detection rule to associate.

- `tags`: [CfnCustomDetectionRuleAssociation.TagItemProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_guardduty.CfnCustomDetectionRuleAssociation.TagItemProperty.html)[] — The tags applied to the association.
