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.- Service
Name string - Compatibility
Level 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 inaiven.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
- Subject
Name 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.- Service
Name string - Compatibility
Level 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 inaiven.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
- Subject
Name 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.- service
Name string - compatibility
Level 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 inaiven.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
- subject
Name 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 inaiven.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
- Service
Name string - Version int
- Compatibility
Level 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 inaiven.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
- Subject
Name string
- Id string
The provider-assigned unique ID for this managed resource.
- Project string
- Service
Name string - Version int
- Compatibility
Level 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 inaiven.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
- Subject
Name string
- id string
The provider-assigned unique ID for this managed resource.
- project string
- service
Name string - version number
- compatibility
Level 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 inaiven.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
- subject
Name 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 inaiven.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.