Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getKafkaSchemaConfiguration

# Kafka Schema Configuration Data Source

The Kafka Schema Configuration data source provides information about the existing Aiven Kafka Schema Configuration.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var config = Output.Create(Aiven.GetKafkaSchemaConfiguration.InvokeAsync(new Aiven.GetKafkaSchemaConfigurationArgs
        {
            Project = aiven_project.Kafka_schemas_project1.Project,
            ServiceName = aiven_service.Kafka_service1.Service_name,
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupKafkaSchemaConfiguration(ctx, &aiven.LookupKafkaSchemaConfigurationArgs{
            Project:     aiven_project.Kafka - schemas - project1.Project,
            ServiceName: aiven_service.Kafka - service1.Service_name,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

config = aiven.get_kafka_schema_configuration(project=aiven_project["kafka-schemas-project1"]["project"],
    service_name=aiven_service["kafka-service1"]["service_name"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const config = aiven.getKafkaSchemaConfiguration({
    project: aiven_project["kafka-schemas-project1"].project,
    serviceName: aiven_service["kafka-service1"].service_name,
});

Using getKafkaSchemaConfiguration

function getKafkaSchemaConfiguration(args: GetKafkaSchemaConfigurationArgs, opts?: InvokeOptions): Promise<GetKafkaSchemaConfigurationResult>
def get_kafka_schema_configuration(compatibility_level: Optional[str] = None, project: Optional[str] = None, schema: Optional[str] = None, service_name: Optional[str] = None, subject_name: Optional[str] = None, version: Optional[int] = None, opts: Optional[InvokeOptions] = None) -> GetKafkaSchemaConfigurationResult
func LookupKafkaSchemaConfiguration(ctx *Context, args *LookupKafkaSchemaConfigurationArgs, opts ...InvokeOption) (*LookupKafkaSchemaConfigurationResult, error)

Note: This function is named LookupKafkaSchemaConfiguration in the Go SDK.

public static class GetKafkaSchemaConfiguration {
    public static Task<GetKafkaSchemaConfigurationResult> InvokeAsync(GetKafkaSchemaConfigurationArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string

and service_name - (Required) define the project and service the Kafka Schemas belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string
CompatibilityLevel string

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

Schema string
SubjectName string
Version int
Project string

and service_name - (Required) define the project and service the Kafka Schemas belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string
CompatibilityLevel string

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

Schema string
SubjectName string
Version int
project string

and service_name - (Required) define the project and service the Kafka Schemas belongs to. They should be defined using reference as shown above to set up dependencies correctly.

serviceName string
compatibilityLevel string

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

schema string
subjectName string
version number
project str

and service_name - (Required) define the project and service the Kafka Schemas belongs to. They should be defined using reference as shown above to set up dependencies correctly.

service_name str
compatibility_level str

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

schema str
subject_name str
version int

getKafkaSchemaConfiguration Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Project string
ServiceName string
Version int
CompatibilityLevel string

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

Schema string
SubjectName string
Id string

The provider-assigned unique ID for this managed resource.

Project string
ServiceName string
Version int
CompatibilityLevel string

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

Schema string
SubjectName string
id string

The provider-assigned unique ID for this managed resource.

project string
serviceName string
version number
compatibilityLevel string

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

schema string
subjectName string
id str

The provider-assigned unique ID for this managed resource.

project str
service_name str
version int
compatibility_level str

is the Global Kafka Schema configuration compatibility level when defined for aiven.KafkaSchemaConfiguration resource. Also, Kafka Schema configuration compatibility level can be overridden for a specific subject when used in aiven.KafkaSchema resource. If the compatibility level not specified for the individual subject by default, it takes a global value. Allowed values: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE.

schema str
subject_name str

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.