

# TrafficPolicy
<a name="API_TrafficPolicy"></a>

The structure of a traffic policy resource which is a container for policy statements.

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

 ** DefaultAction **   <a name="sesmailmanager-Type-TrafficPolicy-DefaultAction"></a>
Default action instructs the traﬃc policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements  
Type: String  
Valid Values: `ALLOW | DENY`   
Required: Yes

 ** TrafficPolicyId **   <a name="sesmailmanager-Type-TrafficPolicy-TrafficPolicyId"></a>
The identifier of the traffic policy resource.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 100.  
Required: Yes

 ** TrafficPolicyName **   <a name="sesmailmanager-Type-TrafficPolicy-TrafficPolicyName"></a>
A user-friendly name of the traffic policy resource.  
Type: String  
Length Constraints: Minimum length of 3. Maximum length of 63.  
Pattern: `[A-Za-z0-9_\-]+`   
Required: Yes

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

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/mailmanager-2023-10-17/TrafficPolicy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/mailmanager-2023-10-17/TrafficPolicy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/mailmanager-2023-10-17/TrafficPolicy) 