We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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)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:
- Cluster
Arn string - 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 string
- Base64 encoded configuration properties of the topic
- Topic
Name string - The name of the topic
- Cluster
Arn string - 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 string
- Base64 encoded configuration properties of the topic
- Topic
Name string - The name of the topic
- cluster
Arn String - The Amazon Resource Name (ARN) of the MSK cluster
- partition
Count Integer - The number of partitions for the topic
- replication
Factor Integer - The replication factor for the topic
- configs String
- Base64 encoded configuration properties of the topic
- topic
Name String - The name of the topic
- cluster
Arn string - The Amazon Resource Name (ARN) of the MSK cluster
- partition
Count number - The number of partitions for the topic
- replication
Factor number - The replication factor for the topic
- configs string
- Base64 encoded configuration properties of the topic
- topic
Name 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
- cluster
Arn String - The Amazon Resource Name (ARN) of the MSK cluster
- partition
Count Number - The number of partitions for the topic
- replication
Factor Number - The replication factor for the topic
- configs String
- Base64 encoded configuration properties of the topic
- topic
Name 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:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
