

# TopicPreference
<a name="API_TopicPreference"></a>

The contact's preference for being opted-in to or opted-out of a topic.

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

 ** SubscriptionStatus **   <a name="SES-Type-TopicPreference-SubscriptionStatus"></a>
The contact's subscription status to a topic which is either `OPT_IN` or `OPT_OUT`.  
Type: String  
Valid Values: `OPT_IN | OPT_OUT`   
Required: Yes

 ** TopicName **   <a name="SES-Type-TopicPreference-TopicName"></a>
The name of the topic.  
Type: String  
Required: Yes

## See Also
<a name="API_TopicPreference_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/sesv2-2019-09-27/TopicPreference) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sesv2-2019-09-27/TopicPreference) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sesv2-2019-09-27/TopicPreference) 