

# PutTenantSuppressionAttributes
<a name="API_PutTenantSuppressionAttributes"></a>

Configure the suppression list preferences for a tenant. Use this operation to enable or disable tenant-level suppression, or to change the suppressed reasons for a tenant.

When you set the suppression scope to `TENANT`, Amazon SES maintains a separate suppression list for the tenant. When you set the scope to `ACCOUNT`, the tenant uses the account-level suppression list.

## Request Syntax
<a name="API_PutTenantSuppressionAttributes_RequestSyntax"></a>

```
POST /v2/email/tenant/suppression HTTP/1.1
Content-type: application/json

{
   "SuppressedReasons": [ "{{string}}" ],
   "SuppressionScope": "{{string}}",
   "TenantName": "{{string}}"
}
```

## URI Request Parameters
<a name="API_PutTenantSuppressionAttributes_RequestParameters"></a>

The request does not use any URI parameters.

## Request Body
<a name="API_PutTenantSuppressionAttributes_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [SuppressedReasons](#API_PutTenantSuppressionAttributes_RequestSyntax) **   <a name="SES-PutTenantSuppressionAttributes-request-SuppressedReasons"></a>
A list that contains the reasons that email addresses are automatically added to the suppression list for the tenant. This list can contain any or all of the following:  
+  `COMPLAINT` – Amazon SES adds an email address to the suppression list when a message sent to that address results in a complaint.
+  `BOUNCE` – Amazon SES adds an email address to the suppression list when a message sent to that address results in a hard bounce.
Type: Array of strings  
Valid Values: `BOUNCE | COMPLAINT`   
Required: No

 ** [SuppressionScope](#API_PutTenantSuppressionAttributes_RequestSyntax) **   <a name="SES-PutTenantSuppressionAttributes-request-SuppressionScope"></a>
The suppression scope for the tenant. Specify `TENANT` to use the tenant's own suppression list, or `ACCOUNT` to use the account-level suppression list.  
If you don't specify a suppression scope, the tenant defaults to `ACCOUNT` scope and uses the account-level suppression list.
Type: String  
Valid Values: `ACCOUNT | TENANT`   
Required: No

 ** [TenantName](#API_PutTenantSuppressionAttributes_RequestSyntax) **   <a name="SES-PutTenantSuppressionAttributes-request-TenantName"></a>
The name of the tenant to configure suppression list preferences for.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

## Response Syntax
<a name="API_PutTenantSuppressionAttributes_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_PutTenantSuppressionAttributes_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

## Errors
<a name="API_PutTenantSuppressionAttributes_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** BadRequestException **   
The input you provided is invalid.  
HTTP Status Code: 400

 ** NotFoundException **   
The resource you attempted to access doesn't exist.  
HTTP Status Code: 404

 ** TooManyRequestsException **   
Too many requests have been made to the operation.  
HTTP Status Code: 429

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/sesv2-2019-09-27/PutTenantSuppressionAttributes) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sesv2-2019-09-27/PutTenantSuppressionAttributes) 