Schema Registry
Single item in List or Get Schema Group operation Uses Azure REST API version 2022-10-01-preview. In version 1.x of the Azure Native provider, it used API version 2022-01-01-preview. Other available API versions: 2023-01-01-preview, 2024-01-01, 2024-05-01-preview.
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
Properties
Link copied to clipboard
Exact time the Schema Group was created.
Link copied to clipboard
dictionary object for SchemaGroup group properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The system meta data relating to this resource.
Link copied to clipboard
Exact time the Schema Group was updated