

# AssociatedRule
<a name="API_AssociatedRule"></a>

An association between a template and a rule, as returned in outputs. The corresponding request structure is `RuleReference`.

## Contents
<a name="API_AssociatedRule_Contents"></a>

 ** ruleArn **   <a name="networksecuritymanager-Type-AssociatedRule-ruleArn"></a>
The ARN of the associated rule.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 1010.  
Pattern: `arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:(.+)`   
Required: Yes

## See Also
<a name="API_AssociatedRule_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/network-security-manager-2025-10-30/AssociatedRule) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/network-security-manager-2025-10-30/AssociatedRule) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/network-security-manager-2025-10-30/AssociatedRule) 