Aiven v6.44.0 published on Friday, Oct 10, 2025 by Pulumi
aiven.getKafkaSchemaConfiguration
The Kafka Schema Configuration data source provides information about the existing Aiven Kafka Schema Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const config = new aiven.KafkaSchemaConfiguration("config", {
    project: kafka_schemas_project1.project,
    serviceName: kafka_service1.serviceName,
    compatibilityLevel: "BACKWARD",
});
import pulumi
import pulumi_aiven as aiven
config = aiven.KafkaSchemaConfiguration("config",
    project=kafka_schemas_project1["project"],
    service_name=kafka_service1["serviceName"],
    compatibility_level="BACKWARD")
package main
import (
	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.NewKafkaSchemaConfiguration(ctx, "config", &aiven.KafkaSchemaConfigurationArgs{
			Project:            pulumi.Any(kafka_schemas_project1.Project),
			ServiceName:        pulumi.Any(kafka_service1.ServiceName),
			CompatibilityLevel: pulumi.String("BACKWARD"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() => 
{
    var config = new Aiven.KafkaSchemaConfiguration("config", new()
    {
        Project = kafka_schemas_project1.Project,
        ServiceName = kafka_service1.ServiceName,
        CompatibilityLevel = "BACKWARD",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.KafkaSchemaConfiguration;
import com.pulumi.aiven.KafkaSchemaConfigurationArgs;
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 config = new KafkaSchemaConfiguration("config", KafkaSchemaConfigurationArgs.builder()
            .project(kafka_schemas_project1.project())
            .serviceName(kafka_service1.serviceName())
            .compatibilityLevel("BACKWARD")
            .build());
    }
}
resources:
  config:
    type: aiven:KafkaSchemaConfiguration
    properties:
      project: ${["kafka-schemas-project1"].project}
      serviceName: ${["kafka-service1"].serviceName}
      compatibilityLevel: BACKWARD
Using getKafkaSchemaConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKafkaSchemaConfiguration(args: GetKafkaSchemaConfigurationArgs, opts?: InvokeOptions): Promise<GetKafkaSchemaConfigurationResult>
function getKafkaSchemaConfigurationOutput(args: GetKafkaSchemaConfigurationOutputArgs, opts?: InvokeOptions): Output<GetKafkaSchemaConfigurationResult>def get_kafka_schema_configuration(project: Optional[str] = None,
                                   service_name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetKafkaSchemaConfigurationResult
def get_kafka_schema_configuration_output(project: Optional[pulumi.Input[str]] = None,
                                   service_name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetKafkaSchemaConfigurationResult]func LookupKafkaSchemaConfiguration(ctx *Context, args *LookupKafkaSchemaConfigurationArgs, opts ...InvokeOption) (*LookupKafkaSchemaConfigurationResult, error)
func LookupKafkaSchemaConfigurationOutput(ctx *Context, args *LookupKafkaSchemaConfigurationOutputArgs, opts ...InvokeOption) LookupKafkaSchemaConfigurationResultOutput> Note: This function is named LookupKafkaSchemaConfiguration in the Go SDK.
public static class GetKafkaSchemaConfiguration 
{
    public static Task<GetKafkaSchemaConfigurationResult> InvokeAsync(GetKafkaSchemaConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetKafkaSchemaConfigurationResult> Invoke(GetKafkaSchemaConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaSchemaConfigurationResult> getKafkaSchemaConfiguration(GetKafkaSchemaConfigurationArgs args, InvokeOptions options)
public static Output<GetKafkaSchemaConfigurationResult> getKafkaSchemaConfiguration(GetKafkaSchemaConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: aiven:index/getKafkaSchemaConfiguration:getKafkaSchemaConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- ServiceName string
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- ServiceName string
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- serviceName String
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- serviceName string
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service_name str
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- serviceName String
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
getKafkaSchemaConfiguration Result
The following output properties are available:
- CompatibilityLevel string
- Kafka Schemas compatibility level. The possible values are BACKWARD,BACKWARD_TRANSITIVE,FORWARD,FORWARD_TRANSITIVE,FULL,FULL_TRANSITIVEandNONE.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Schema string
- Kafka Schema configuration. Should be a valid Avro, JSON, or Protobuf schema, depending on the schema type.
- SchemaType string
- Kafka Schema configuration type. Defaults to AVRO. The possible values are AVRO,JSONandPROTOBUF.
- ServiceName string
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- SubjectName string
- The Kafka Schema Subject name. Changing this property forces recreation of the resource.
- Version int
- Kafka Schema configuration version.
- CompatibilityLevel string
- Kafka Schemas compatibility level. The possible values are BACKWARD,BACKWARD_TRANSITIVE,FORWARD,FORWARD_TRANSITIVE,FULL,FULL_TRANSITIVEandNONE.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Schema string
- Kafka Schema configuration. Should be a valid Avro, JSON, or Protobuf schema, depending on the schema type.
- SchemaType string
- Kafka Schema configuration type. Defaults to AVRO. The possible values are AVRO,JSONandPROTOBUF.
- ServiceName string
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- SubjectName string
- The Kafka Schema Subject name. Changing this property forces recreation of the resource.
- Version int
- Kafka Schema configuration version.
- compatibilityLevel String
- Kafka Schemas compatibility level. The possible values are BACKWARD,BACKWARD_TRANSITIVE,FORWARD,FORWARD_TRANSITIVE,FULL,FULL_TRANSITIVEandNONE.
- id String
- The provider-assigned unique ID for this managed resource.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- schema String
- Kafka Schema configuration. Should be a valid Avro, JSON, or Protobuf schema, depending on the schema type.
- schemaType String
- Kafka Schema configuration type. Defaults to AVRO. The possible values are AVRO,JSONandPROTOBUF.
- serviceName String
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- subjectName String
- The Kafka Schema Subject name. Changing this property forces recreation of the resource.
- version Integer
- Kafka Schema configuration version.
- compatibilityLevel string
- Kafka Schemas compatibility level. The possible values are BACKWARD,BACKWARD_TRANSITIVE,FORWARD,FORWARD_TRANSITIVE,FULL,FULL_TRANSITIVEandNONE.
- id string
- The provider-assigned unique ID for this managed resource.
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- schema string
- Kafka Schema configuration. Should be a valid Avro, JSON, or Protobuf schema, depending on the schema type.
- schemaType string
- Kafka Schema configuration type. Defaults to AVRO. The possible values are AVRO,JSONandPROTOBUF.
- serviceName string
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- subjectName string
- The Kafka Schema Subject name. Changing this property forces recreation of the resource.
- version number
- Kafka Schema configuration version.
- compatibility_level str
- Kafka Schemas compatibility level. The possible values are BACKWARD,BACKWARD_TRANSITIVE,FORWARD,FORWARD_TRANSITIVE,FULL,FULL_TRANSITIVEandNONE.
- id str
- The provider-assigned unique ID for this managed resource.
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- schema str
- Kafka Schema configuration. Should be a valid Avro, JSON, or Protobuf schema, depending on the schema type.
- schema_type str
- Kafka Schema configuration type. Defaults to AVRO. The possible values are AVRO,JSONandPROTOBUF.
- service_name str
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- subject_name str
- The Kafka Schema Subject name. Changing this property forces recreation of the resource.
- version int
- Kafka Schema configuration version.
- compatibilityLevel String
- Kafka Schemas compatibility level. The possible values are BACKWARD,BACKWARD_TRANSITIVE,FORWARD,FORWARD_TRANSITIVE,FULL,FULL_TRANSITIVEandNONE.
- id String
- The provider-assigned unique ID for this managed resource.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- schema String
- Kafka Schema configuration. Should be a valid Avro, JSON, or Protobuf schema, depending on the schema type.
- schemaType String
- Kafka Schema configuration type. Defaults to AVRO. The possible values are AVRO,JSONandPROTOBUF.
- serviceName String
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- subjectName String
- The Kafka Schema Subject name. Changing this property forces recreation of the resource.
- version Number
- Kafka Schema configuration version.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the aivenTerraform Provider.
