Schema Registry Args
data class SchemaRegistryArgs(val groupProperties: Output<Map<String, String>>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val schemaCompatibility: Output<Either<String, SchemaCompatibility>>? = null, val schemaGroupName: Output<String>? = null, val schemaType: Output<Either<String, SchemaType>>? = null) : ConvertibleToJava<SchemaRegistryArgs>
Single item in List or Get Schema Group operation Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01-preview. Other available API versions: 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventhub [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
SchemaRegistryCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var schemaRegistry = new AzureNative.EventHub.SchemaRegistry("schemaRegistry", new()
{
GroupProperties = null,
NamespaceName = "ali-ua-test-eh-system-1",
ResourceGroupName = "alitest",
SchemaCompatibility = AzureNative.EventHub.SchemaCompatibility.Forward,
SchemaGroupName = "testSchemaGroup1",
SchemaType = AzureNative.EventHub.SchemaType.Avro,
});
});
Content copied to clipboard
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.NewSchemaRegistry(ctx, "schemaRegistry", &eventhub.SchemaRegistryArgs{
GroupProperties: pulumi.StringMap{},
NamespaceName: pulumi.String("ali-ua-test-eh-system-1"),
ResourceGroupName: pulumi.String("alitest"),
SchemaCompatibility: pulumi.String(eventhub.SchemaCompatibilityForward),
SchemaGroupName: pulumi.String("testSchemaGroup1"),
SchemaType: pulumi.String(eventhub.SchemaTypeAvro),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventhub.SchemaRegistry;
import com.pulumi.azurenative.eventhub.SchemaRegistryArgs;
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 schemaRegistry = new SchemaRegistry("schemaRegistry", SchemaRegistryArgs.builder()
.groupProperties()
.namespaceName("ali-ua-test-eh-system-1")
.resourceGroupName("alitest")
.schemaCompatibility("Forward")
.schemaGroupName("testSchemaGroup1")
.schemaType("Avro")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventhub:SchemaRegistry testSchemaGroup1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(groupProperties: Output<Map<String, String>>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null, schemaCompatibility: Output<Either<String, SchemaCompatibility>>? = null, schemaGroupName: Output<String>? = null, schemaType: Output<Either<String, SchemaType>>? = null)