azure-native.confluent.Topic
Details of topic record
Uses Azure REST API version 2024-07-01. In version 2.x of the Azure Native provider, it used API version 2024-07-01.
Other available API versions: 2025-07-17-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native confluent [ApiVersion]. See the version guide for details.
Example Usage
Topics_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var topic = new AzureNative.Confluent.Topic("topic", new()
    {
        ClusterId = "dlz-f3a90de",
        EnvironmentId = "env-12132",
        InputConfigs = new[]
        {
            new AzureNative.Confluent.Inputs.TopicsInputConfigArgs
            {
                Name = "cleanup.policy",
                Value = "compact",
            },
            new AzureNative.Confluent.Inputs.TopicsInputConfigArgs
            {
                Name = "retention.ms",
                Value = "86400000",
            },
        },
        OrganizationName = "myOrganization",
        PartitionsCount = "1",
        ReplicationFactor = "3",
        ResourceGroupName = "myResourceGroup",
        TopicName = "topic-1",
    });
});
package main
import (
	confluent "github.com/pulumi/pulumi-azure-native-sdk/confluent/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := confluent.NewTopic(ctx, "topic", &confluent.TopicArgs{
			ClusterId:     pulumi.String("dlz-f3a90de"),
			EnvironmentId: pulumi.String("env-12132"),
			InputConfigs: confluent.TopicsInputConfigArray{
				&confluent.TopicsInputConfigArgs{
					Name:  pulumi.String("cleanup.policy"),
					Value: pulumi.String("compact"),
				},
				&confluent.TopicsInputConfigArgs{
					Name:  pulumi.String("retention.ms"),
					Value: pulumi.String("86400000"),
				},
			},
			OrganizationName:  pulumi.String("myOrganization"),
			PartitionsCount:   pulumi.String("1"),
			ReplicationFactor: pulumi.String("3"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
			TopicName:         pulumi.String("topic-1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.confluent.Topic;
import com.pulumi.azurenative.confluent.TopicArgs;
import com.pulumi.azurenative.confluent.inputs.TopicsInputConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var topic = new Topic("topic", TopicArgs.builder()
            .clusterId("dlz-f3a90de")
            .environmentId("env-12132")
            .inputConfigs(            
                TopicsInputConfigArgs.builder()
                    .name("cleanup.policy")
                    .value("compact")
                    .build(),
                TopicsInputConfigArgs.builder()
                    .name("retention.ms")
                    .value("86400000")
                    .build())
            .organizationName("myOrganization")
            .partitionsCount("1")
            .replicationFactor("3")
            .resourceGroupName("myResourceGroup")
            .topicName("topic-1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const topic = new azure_native.confluent.Topic("topic", {
    clusterId: "dlz-f3a90de",
    environmentId: "env-12132",
    inputConfigs: [
        {
            name: "cleanup.policy",
            value: "compact",
        },
        {
            name: "retention.ms",
            value: "86400000",
        },
    ],
    organizationName: "myOrganization",
    partitionsCount: "1",
    replicationFactor: "3",
    resourceGroupName: "myResourceGroup",
    topicName: "topic-1",
});
import pulumi
import pulumi_azure_native as azure_native
topic = azure_native.confluent.Topic("topic",
    cluster_id="dlz-f3a90de",
    environment_id="env-12132",
    input_configs=[
        {
            "name": "cleanup.policy",
            "value": "compact",
        },
        {
            "name": "retention.ms",
            "value": "86400000",
        },
    ],
    organization_name="myOrganization",
    partitions_count="1",
    replication_factor="3",
    resource_group_name="myResourceGroup",
    topic_name="topic-1")
resources:
  topic:
    type: azure-native:confluent:Topic
    properties:
      clusterId: dlz-f3a90de
      environmentId: env-12132
      inputConfigs:
        - name: cleanup.policy
          value: compact
        - name: retention.ms
          value: '86400000'
      organizationName: myOrganization
      partitionsCount: '1'
      replicationFactor: '3'
      resourceGroupName: myResourceGroup
      topicName: topic-1
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,
          organization_name: Optional[str] = None,
          resource_group_name: Optional[str] = None,
          environment_id: Optional[str] = None,
          cluster_id: Optional[str] = None,
          input_configs: Optional[Sequence[TopicsInputConfigArgs]] = None,
          metadata: Optional[TopicMetadataEntityArgs] = None,
          kind: Optional[str] = None,
          partitions: Optional[TopicsRelatedLinkArgs] = None,
          partitions_count: Optional[str] = None,
          partitions_reassignments: Optional[TopicsRelatedLinkArgs] = None,
          replication_factor: Optional[str] = None,
          configs: Optional[TopicsRelatedLinkArgs] = None,
          topic_id: 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: azure-native:confluent: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.
Constructor example
The following reference example uses placeholder values for all input properties.
var topicResource = new AzureNative.Confluent.Topic("topicResource", new()
{
    OrganizationName = "string",
    ResourceGroupName = "string",
    EnvironmentId = "string",
    ClusterId = "string",
    InputConfigs = new[]
    {
        new AzureNative.Confluent.Inputs.TopicsInputConfigArgs
        {
            Name = "string",
            Value = "string",
        },
    },
    Metadata = new AzureNative.Confluent.Inputs.TopicMetadataEntityArgs
    {
        ResourceName = "string",
        Self = "string",
    },
    Kind = "string",
    Partitions = new AzureNative.Confluent.Inputs.TopicsRelatedLinkArgs
    {
        Related = "string",
    },
    PartitionsCount = "string",
    PartitionsReassignments = new AzureNative.Confluent.Inputs.TopicsRelatedLinkArgs
    {
        Related = "string",
    },
    ReplicationFactor = "string",
    Configs = new AzureNative.Confluent.Inputs.TopicsRelatedLinkArgs
    {
        Related = "string",
    },
    TopicId = "string",
    TopicName = "string",
});
example, err := confluent.NewTopic(ctx, "topicResource", &confluent.TopicArgs{
	OrganizationName:  pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	EnvironmentId:     pulumi.String("string"),
	ClusterId:         pulumi.String("string"),
	InputConfigs: confluent.TopicsInputConfigArray{
		&confluent.TopicsInputConfigArgs{
			Name:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	Metadata: &confluent.TopicMetadataEntityArgs{
		ResourceName: pulumi.String("string"),
		Self:         pulumi.String("string"),
	},
	Kind: pulumi.String("string"),
	Partitions: &confluent.TopicsRelatedLinkArgs{
		Related: pulumi.String("string"),
	},
	PartitionsCount: pulumi.String("string"),
	PartitionsReassignments: &confluent.TopicsRelatedLinkArgs{
		Related: pulumi.String("string"),
	},
	ReplicationFactor: pulumi.String("string"),
	Configs: &confluent.TopicsRelatedLinkArgs{
		Related: pulumi.String("string"),
	},
	TopicId:   pulumi.String("string"),
	TopicName: pulumi.String("string"),
})
var topicResource = new com.pulumi.azurenative.confluent.Topic("topicResource", com.pulumi.azurenative.confluent.TopicArgs.builder()
    .organizationName("string")
    .resourceGroupName("string")
    .environmentId("string")
    .clusterId("string")
    .inputConfigs(TopicsInputConfigArgs.builder()
        .name("string")
        .value("string")
        .build())
    .metadata(TopicMetadataEntityArgs.builder()
        .resourceName("string")
        .self("string")
        .build())
    .kind("string")
    .partitions(TopicsRelatedLinkArgs.builder()
        .related("string")
        .build())
    .partitionsCount("string")
    .partitionsReassignments(TopicsRelatedLinkArgs.builder()
        .related("string")
        .build())
    .replicationFactor("string")
    .configs(TopicsRelatedLinkArgs.builder()
        .related("string")
        .build())
    .topicId("string")
    .topicName("string")
    .build());
topic_resource = azure_native.confluent.Topic("topicResource",
    organization_name="string",
    resource_group_name="string",
    environment_id="string",
    cluster_id="string",
    input_configs=[{
        "name": "string",
        "value": "string",
    }],
    metadata={
        "resource_name": "string",
        "self": "string",
    },
    kind="string",
    partitions={
        "related": "string",
    },
    partitions_count="string",
    partitions_reassignments={
        "related": "string",
    },
    replication_factor="string",
    configs={
        "related": "string",
    },
    topic_id="string",
    topic_name="string")
const topicResource = new azure_native.confluent.Topic("topicResource", {
    organizationName: "string",
    resourceGroupName: "string",
    environmentId: "string",
    clusterId: "string",
    inputConfigs: [{
        name: "string",
        value: "string",
    }],
    metadata: {
        resourceName: "string",
        self: "string",
    },
    kind: "string",
    partitions: {
        related: "string",
    },
    partitionsCount: "string",
    partitionsReassignments: {
        related: "string",
    },
    replicationFactor: "string",
    configs: {
        related: "string",
    },
    topicId: "string",
    topicName: "string",
});
type: azure-native:confluent:Topic
properties:
    clusterId: string
    configs:
        related: string
    environmentId: string
    inputConfigs:
        - name: string
          value: string
    kind: string
    metadata:
        resourceName: string
        self: string
    organizationName: string
    partitions:
        related: string
    partitionsCount: string
    partitionsReassignments:
        related: string
    replicationFactor: string
    resourceGroupName: string
    topicId: string
    topicName: string
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:
- ClusterId string
- Confluent kafka or schema registry cluster id
- EnvironmentId string
- Confluent environment id
- OrganizationName string
- Organization resource name
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Configs
Pulumi.Azure Native. Confluent. Inputs. Topics Related Link 
- Config Specification of the topic
- InputConfigs List<Pulumi.Azure Native. Confluent. Inputs. Topics Input Config> 
- Input Config Specification of the topic
- Kind string
- Type of topic
- Metadata
Pulumi.Azure Native. Confluent. Inputs. Topic Metadata Entity 
- Metadata of the record
- Partitions
Pulumi.Azure Native. Confluent. Inputs. Topics Related Link 
- Partition Specification of the topic
- PartitionsCount string
- Partition count of the topic
- PartitionsReassignments Pulumi.Azure Native. Confluent. Inputs. Topics Related Link 
- Partition Reassignment Specification of the topic
- ReplicationFactor string
- Replication factor of the topic
- TopicId string
- Topic Id returned by Confluent
- TopicName string
- Confluent kafka or schema registry topic name
- ClusterId string
- Confluent kafka or schema registry cluster id
- EnvironmentId string
- Confluent environment id
- OrganizationName string
- Organization resource name
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Configs
TopicsRelated Link Args 
- Config Specification of the topic
- InputConfigs []TopicsInput Config Args 
- Input Config Specification of the topic
- Kind string
- Type of topic
- Metadata
TopicMetadata Entity Args 
- Metadata of the record
- Partitions
TopicsRelated Link Args 
- Partition Specification of the topic
- PartitionsCount string
- Partition count of the topic
- PartitionsReassignments TopicsRelated Link Args 
- Partition Reassignment Specification of the topic
- ReplicationFactor string
- Replication factor of the topic
- TopicId string
- Topic Id returned by Confluent
- TopicName string
- Confluent kafka or schema registry topic name
- clusterId String
- Confluent kafka or schema registry cluster id
- environmentId String
- Confluent environment id
- organizationName String
- Organization resource name
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- configs
TopicsRelated Link 
- Config Specification of the topic
- inputConfigs List<TopicsInput Config> 
- Input Config Specification of the topic
- kind String
- Type of topic
- metadata
TopicMetadata Entity 
- Metadata of the record
- partitions
TopicsRelated Link 
- Partition Specification of the topic
- partitionsCount String
- Partition count of the topic
- partitionsReassignments TopicsRelated Link 
- Partition Reassignment Specification of the topic
- replicationFactor String
- Replication factor of the topic
- topicId String
- Topic Id returned by Confluent
- topicName String
- Confluent kafka or schema registry topic name
- clusterId string
- Confluent kafka or schema registry cluster id
- environmentId string
- Confluent environment id
- organizationName string
- Organization resource name
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- configs
TopicsRelated Link 
- Config Specification of the topic
- inputConfigs TopicsInput Config[] 
- Input Config Specification of the topic
- kind string
- Type of topic
- metadata
TopicMetadata Entity 
- Metadata of the record
- partitions
TopicsRelated Link 
- Partition Specification of the topic
- partitionsCount string
- Partition count of the topic
- partitionsReassignments TopicsRelated Link 
- Partition Reassignment Specification of the topic
- replicationFactor string
- Replication factor of the topic
- topicId string
- Topic Id returned by Confluent
- topicName string
- Confluent kafka or schema registry topic name
- cluster_id str
- Confluent kafka or schema registry cluster id
- environment_id str
- Confluent environment id
- organization_name str
- Organization resource name
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- configs
TopicsRelated Link Args 
- Config Specification of the topic
- input_configs Sequence[TopicsInput Config Args] 
- Input Config Specification of the topic
- kind str
- Type of topic
- metadata
TopicMetadata Entity Args 
- Metadata of the record
- partitions
TopicsRelated Link Args 
- Partition Specification of the topic
- partitions_count str
- Partition count of the topic
- partitions_reassignments TopicsRelated Link Args 
- Partition Reassignment Specification of the topic
- replication_factor str
- Replication factor of the topic
- topic_id str
- Topic Id returned by Confluent
- topic_name str
- Confluent kafka or schema registry topic name
- clusterId String
- Confluent kafka or schema registry cluster id
- environmentId String
- Confluent environment id
- organizationName String
- Organization resource name
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- configs Property Map
- Config Specification of the topic
- inputConfigs List<Property Map>
- Input Config Specification of the topic
- kind String
- Type of topic
- metadata Property Map
- Metadata of the record
- partitions Property Map
- Partition Specification of the topic
- partitionsCount String
- Partition count of the topic
- partitionsReassignments Property Map
- Partition Reassignment Specification of the topic
- replicationFactor String
- Replication factor of the topic
- topicId String
- Topic Id returned by Confluent
- topicName String
- Confluent kafka or schema registry topic name
Outputs
All input properties are implicitly available as output properties. Additionally, the Topic resource produces the following output properties:
- AzureApi stringVersion 
- The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Confluent. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- AzureApi stringVersion 
- The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApi StringVersion 
- The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApi stringVersion 
- The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_ strversion 
- The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApi StringVersion 
- The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs      
Metadata pertaining to creation and last modification of the resource.- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
TopicMetadataEntity, TopicMetadataEntityArgs      
Metadata of the data record- ResourceName string
- Resource name of the record
- Self string
- Self lookup url
- ResourceName string
- Resource name of the record
- Self string
- Self lookup url
- resourceName String
- Resource name of the record
- self String
- Self lookup url
- resourceName string
- Resource name of the record
- self string
- Self lookup url
- resource_name str
- Resource name of the record
- self str
- Self lookup url
- resourceName String
- Resource name of the record
- self String
- Self lookup url
TopicMetadataEntityResponse, TopicMetadataEntityResponseArgs        
Metadata of the data record- ResourceName string
- Resource name of the record
- Self string
- Self lookup url
- ResourceName string
- Resource name of the record
- Self string
- Self lookup url
- resourceName String
- Resource name of the record
- self String
- Self lookup url
- resourceName string
- Resource name of the record
- self string
- Self lookup url
- resource_name str
- Resource name of the record
- self str
- Self lookup url
- resourceName String
- Resource name of the record
- self String
- Self lookup url
TopicsInputConfig, TopicsInputConfigArgs      
Topics input configTopicsInputConfigResponse, TopicsInputConfigResponseArgs        
Topics input configTopicsRelatedLink, TopicsRelatedLinkArgs      
Partition Config spec of the topic record- string
- Relationship of the topic
- string
- Relationship of the topic
- String
- Relationship of the topic
- string
- Relationship of the topic
- str
- Relationship of the topic
- String
- Relationship of the topic
TopicsRelatedLinkResponse, TopicsRelatedLinkResponseArgs        
Partition Config spec of the topic record- string
- Relationship of the topic
- string
- Relationship of the topic
- String
- Relationship of the topic
- string
- Relationship of the topic
- str
- Relationship of the topic
- String
- Relationship of the topic
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:confluent:Topic topic-1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/topics/{topicName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
