Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
The Kafka Schema data source provides information about the existing Aiven Kafka Schema.
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/v4/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupKafkaSchemaConfiguration(ctx, &GetKafkaSchemaConfigurationArgs{
Project: aiven_project.Kafka - schemas - project1.Project,
ServiceName: aiven_service.Kafka - service1.Service_name,
}, nil)
if err != nil {
return err
}
return nil
})
}
Example coming soon!
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,
});
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"])
Example coming soon!
Using getKafkaSchema
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 getKafkaSchema(args: GetKafkaSchemaArgs, opts?: InvokeOptions): Promise<GetKafkaSchemaResult>
function getKafkaSchemaOutput(args: GetKafkaSchemaOutputArgs, opts?: InvokeOptions): Output<GetKafkaSchemaResult>def get_kafka_schema(project: Optional[str] = None,
service_name: Optional[str] = None,
subject_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaSchemaResult
def get_kafka_schema_output(project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
subject_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKafkaSchemaResult]func LookupKafkaSchema(ctx *Context, args *LookupKafkaSchemaArgs, opts ...InvokeOption) (*LookupKafkaSchemaResult, error)
func LookupKafkaSchemaOutput(ctx *Context, args *LookupKafkaSchemaOutputArgs, opts ...InvokeOption) LookupKafkaSchemaResultOutput> Note: This function is named LookupKafkaSchema in the Go SDK.
public static class GetKafkaSchema
{
public static Task<GetKafkaSchemaResult> InvokeAsync(GetKafkaSchemaArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaSchemaResult> Invoke(GetKafkaSchemaInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaSchemaResult> getKafkaSchema(GetKafkaSchemaArgs args, InvokeOptions options)
public static Output<GetKafkaSchemaResult> getKafkaSchema(GetKafkaSchemaArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getKafkaSchema:getKafkaSchema
arguments:
# arguments dictionaryThe following arguments are supported:
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Subject
Name string - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- Project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Subject
Name string - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject
Name String - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- project string
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject
Name string - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- project str
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject_
name str - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- project String
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject
Name String - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
getKafkaSchema Result
The following output properties are available:
- Compatibility
Level 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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Schema string
- Kafka Schema configuration should be a valid Avro Schema JSON format.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Subject
Name string - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- Version int
- Kafka Schema configuration version.
- Compatibility
Level 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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Schema string
- Kafka Schema configuration should be a valid Avro Schema JSON format.
- Service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Subject
Name string - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- Version int
- Kafka Schema configuration version.
- compatibility
Level 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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- schema String
- Kafka Schema configuration should be a valid Avro Schema JSON format.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject
Name String - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- version Integer
- Kafka Schema configuration version.
- compatibility
Level 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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- schema string
- Kafka Schema configuration should be a valid Avro Schema JSON format.
- service
Name string - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject
Name string - The Kafka Schema Subject name. This property cannot be changed, doing so 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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- schema str
- Kafka Schema configuration should be a valid Avro Schema JSON format.
- service_
name str - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject_
name str - The Kafka Schema Subject name. This property cannot be changed, doing so forces recreation of the resource.
- version int
- Kafka Schema configuration version.
- compatibility
Level 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
- Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- schema String
- Kafka Schema configuration should be a valid Avro Schema JSON format.
- service
Name String - Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- subject
Name String - The Kafka Schema Subject name. This property cannot be changed, doing so 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.
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
