# TopicProperty

Struct · External

An interest group, theme, or label within a list.

Lists can have multiple topics.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const topicProperty: ses.CfnContactList.TopicProperty = {
  defaultSubscriptionStatus: 'defaultSubscriptionStatus',
  displayName: 'displayName',
  topicName: 'topicName',

  // the properties below are optional
  description: 'description',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses

topic_property = ses.CfnContactList.TopicProperty(
    default_subscription_status="defaultSubscriptionStatus",
    display_name="displayName",
    topic_name="topicName",

    # the properties below are optional
    description="description"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;

TopicProperty topicProperty = TopicProperty.builder()
        .defaultSubscriptionStatus("defaultSubscriptionStatus")
        .displayName("displayName")
        .topicName("topicName")

        // the properties below are optional
        .description("description")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;

var topicProperty = new TopicProperty {
    DefaultSubscriptionStatus = "defaultSubscriptionStatus",
    DisplayName = "displayName",
    TopicName = "topicName",

    // the properties below are optional
    Description = "description"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

topicProperty := &TopicProperty{
	DefaultSubscriptionStatus: jsii.String("defaultSubscriptionStatus"),
	DisplayName: jsii.String("displayName"),
	TopicName: jsii.String("topicName"),

	// the properties below are optional
	Description: jsii.String("description"),
}
```

## Properties

- `defaultSubscriptionStatus`: string (required) — The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.

- `description`: string — A description of what the topic is about, which the contact will see.

- `displayName`: string (required) — The name of the topic the contact will see.

- `topicName`: string (required) — The name of the topic.
