

# Rule


Information about a rule.

## Contents


 ** Actions **   <a name="connect-Type-Rule-Actions"></a>
A list of actions to be run when the rule is triggered.  
Type: Array of [RuleAction](API_RuleAction.md) objects  
Required: Yes

 ** CreatedTime **   <a name="connect-Type-Rule-CreatedTime"></a>
The timestamp for when the rule was created.  
Type: Timestamp  
Required: Yes

 ** Function **   <a name="connect-Type-Rule-Function"></a>
The conditions of the rule.  
Type: String  
Required: Yes

 ** LastUpdatedBy **   <a name="connect-Type-Rule-LastUpdatedBy"></a>
The Amazon Resource Name (ARN) of the user who last updated the rule.  
Type: String  
Required: Yes

 ** LastUpdatedTime **   <a name="connect-Type-Rule-LastUpdatedTime"></a>
The timestamp for the when the rule was last updated.  
Type: Timestamp  
Required: Yes

 ** Name **   <a name="connect-Type-Rule-Name"></a>
The name of the rule.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 200.  
Pattern: `^[0-9a-zA-Z._-]+`   
Required: Yes

 ** PublishStatus **   <a name="connect-Type-Rule-PublishStatus"></a>
The publish status of the rule.  
Type: String  
Valid Values: `DRAFT | PUBLISHED`   
Required: Yes

 ** RuleArn **   <a name="connect-Type-Rule-RuleArn"></a>
The Amazon Resource Name (ARN) of the rule.  
Type: String  
Required: Yes

 ** RuleId **   <a name="connect-Type-Rule-RuleId"></a>
A unique identifier for the rule.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: Yes

 ** TriggerEventSource **   <a name="connect-Type-Rule-TriggerEventSource"></a>
The event source to trigger the rule.  
Type: [RuleTriggerEventSource](API_RuleTriggerEventSource.md) object  
Required: Yes

 ** Tags **   <a name="connect-Type-Rule-Tags"></a>
The tags used to organize, track, or control access for this resource. For example, \$1 "Tags": \$1"key1":"value1", "key2":"value2"\$1 \$1.  
Type: String to string map  
Map Entries: Maximum number of 50 items.  
Key Length Constraints: Minimum length of 1. Maximum length of 128.  
Key Pattern: `^(?!aws:)[\p{L}\p{Z}\p{N}_.:/=+\-@]*$`   
Value Length Constraints: Maximum length of 256.  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/connect-2017-08-08/Rule) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/connect-2017-08-08/Rule) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/connect-2017-08-08/Rule) 