1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. msk
  5. Topic

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi

    Resource Type definition for AWS::MSK::Topic

    Create Topic Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Topic(name: string, args: TopicArgs, opts?: CustomResourceOptions);
    @overload
    def Topic(resource_name: str,
              args: TopicArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Topic(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              cluster_arn: Optional[str] = None,
              partition_count: Optional[int] = None,
              replication_factor: Optional[int] = None,
              configs: Optional[str] = None,
              topic_name: Optional[str] = None)
    func NewTopic(ctx *Context, name string, args TopicArgs, opts ...ResourceOption) (*Topic, error)
    public Topic(string name, TopicArgs args, CustomResourceOptions? opts = null)
    public Topic(String name, TopicArgs args)
    public Topic(String name, TopicArgs args, CustomResourceOptions options)
    
    type: aws-native:msk:Topic
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TopicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TopicArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TopicArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TopicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TopicArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Topic Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Topic resource accepts the following input properties:

    ClusterArn string
    The Amazon Resource Name (ARN) of the MSK cluster
    PartitionCount int
    The number of partitions for the topic
    ReplicationFactor int
    The replication factor for the topic
    Configs string
    Base64 encoded configuration properties of the topic
    TopicName string
    The name of the topic
    ClusterArn string
    The Amazon Resource Name (ARN) of the MSK cluster
    PartitionCount int
    The number of partitions for the topic
    ReplicationFactor int
    The replication factor for the topic
    Configs string
    Base64 encoded configuration properties of the topic
    TopicName string
    The name of the topic
    clusterArn String
    The Amazon Resource Name (ARN) of the MSK cluster
    partitionCount Integer
    The number of partitions for the topic
    replicationFactor Integer
    The replication factor for the topic
    configs String
    Base64 encoded configuration properties of the topic
    topicName String
    The name of the topic
    clusterArn string
    The Amazon Resource Name (ARN) of the MSK cluster
    partitionCount number
    The number of partitions for the topic
    replicationFactor number
    The replication factor for the topic
    configs string
    Base64 encoded configuration properties of the topic
    topicName string
    The name of the topic
    cluster_arn str
    The Amazon Resource Name (ARN) of the MSK cluster
    partition_count int
    The number of partitions for the topic
    replication_factor int
    The replication factor for the topic
    configs str
    Base64 encoded configuration properties of the topic
    topic_name str
    The name of the topic
    clusterArn String
    The Amazon Resource Name (ARN) of the MSK cluster
    partitionCount Number
    The number of partitions for the topic
    replicationFactor Number
    The replication factor for the topic
    configs String
    Base64 encoded configuration properties of the topic
    topicName String
    The name of the topic

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Topic resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    TopicArn string
    The Amazon Resource Name (ARN) of the topic
    Id string
    The provider-assigned unique ID for this managed resource.
    TopicArn string
    The Amazon Resource Name (ARN) of the topic
    id String
    The provider-assigned unique ID for this managed resource.
    topicArn String
    The Amazon Resource Name (ARN) of the topic
    id string
    The provider-assigned unique ID for this managed resource.
    topicArn string
    The Amazon Resource Name (ARN) of the topic
    id str
    The provider-assigned unique ID for this managed resource.
    topic_arn str
    The Amazon Resource Name (ARN) of the topic
    id String
    The provider-assigned unique ID for this managed resource.
    topicArn String
    The Amazon Resource Name (ARN) of the topic

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.57.0
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.