# AssociatedTemplateAndRuleProperty

Associates either a template or a rule with a policy.

- Source: Generated code
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networksecuritymanager as networksecuritymanager } from 'aws-cdk-lib';
const associatedTemplateAndRuleProperty: networksecuritymanager.CfnPolicy.AssociatedTemplateAndRuleProperty = {
  ruleArn: 'ruleArn',
  templateArn: 'templateArn',
};
```

## Properties

- `ruleArn`: string — ARN of the associated rule.

- `templateArn`: string — ARN of the associated template.
