redpanda.Schema
Schema represents a Schema Registry schema
Creates a schema in the Redpanda Schema Registry.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as redpanda from "@pulumi/redpanda";
const exampleResourceGroup = new redpanda.ResourceGroup("exampleResourceGroup", {});
const exampleNetwork = new redpanda.Network("exampleNetwork", {
resourceGroupId: exampleResourceGroup.id,
cloudProvider: "aws",
region: "us-west-2",
clusterType: "dedicated",
cidrBlock: "10.0.0.0/20",
});
const exampleCluster = new redpanda.Cluster("exampleCluster", {
resourceGroupId: exampleResourceGroup.id,
networkId: exampleNetwork.id,
cloudProvider: "aws",
region: "us-west-2",
clusterType: "dedicated",
connectionType: "public",
throughputTier: "tier-1-aws",
zones: [
"us-west-2a",
"us-west-2b",
"us-west-2c",
],
});
const exampleUser = new redpanda.User("exampleUser", {
password: "secure-password-123",
mechanism: "scram-sha-256",
clusterApiUrl: exampleCluster.clusterApiUrl,
allowDeletion: true,
});
const exampleSchema = new redpanda.Schema("exampleSchema", {
clusterId: exampleCluster.id,
subject: "user-value",
schemaType: "AVRO",
schema: JSON.stringify({
type: "record",
name: "User",
fields: [
{
name: "id",
type: "long",
},
{
name: "username",
type: "string",
},
{
name: "email",
type: "string",
},
],
}),
username: exampleUser.name,
password: "secure-password-123",
});
import pulumi
import json
import pulumi_redpanda as redpanda
example_resource_group = redpanda.ResourceGroup("exampleResourceGroup")
example_network = redpanda.Network("exampleNetwork",
resource_group_id=example_resource_group.id,
cloud_provider="aws",
region="us-west-2",
cluster_type="dedicated",
cidr_block="10.0.0.0/20")
example_cluster = redpanda.Cluster("exampleCluster",
resource_group_id=example_resource_group.id,
network_id=example_network.id,
cloud_provider="aws",
region="us-west-2",
cluster_type="dedicated",
connection_type="public",
throughput_tier="tier-1-aws",
zones=[
"us-west-2a",
"us-west-2b",
"us-west-2c",
])
example_user = redpanda.User("exampleUser",
password="secure-password-123",
mechanism="scram-sha-256",
cluster_api_url=example_cluster.cluster_api_url,
allow_deletion=True)
example_schema = redpanda.Schema("exampleSchema",
cluster_id=example_cluster.id,
subject="user-value",
schema_type="AVRO",
schema=json.dumps({
"type": "record",
"name": "User",
"fields": [
{
"name": "id",
"type": "long",
},
{
"name": "username",
"type": "string",
},
{
"name": "email",
"type": "string",
},
],
}),
username=example_user.name,
password="secure-password-123")
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/redpanda/redpanda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := redpanda.NewResourceGroup(ctx, "exampleResourceGroup", nil)
if err != nil {
return err
}
exampleNetwork, err := redpanda.NewNetwork(ctx, "exampleNetwork", &redpanda.NetworkArgs{
ResourceGroupId: exampleResourceGroup.ID(),
CloudProvider: pulumi.String("aws"),
Region: pulumi.String("us-west-2"),
ClusterType: pulumi.String("dedicated"),
CidrBlock: pulumi.String("10.0.0.0/20"),
})
if err != nil {
return err
}
exampleCluster, err := redpanda.NewCluster(ctx, "exampleCluster", &redpanda.ClusterArgs{
ResourceGroupId: exampleResourceGroup.ID(),
NetworkId: exampleNetwork.ID(),
CloudProvider: pulumi.String("aws"),
Region: pulumi.String("us-west-2"),
ClusterType: pulumi.String("dedicated"),
ConnectionType: pulumi.String("public"),
ThroughputTier: pulumi.String("tier-1-aws"),
Zones: pulumi.StringArray{
pulumi.String("us-west-2a"),
pulumi.String("us-west-2b"),
pulumi.String("us-west-2c"),
},
})
if err != nil {
return err
}
exampleUser, err := redpanda.NewUser(ctx, "exampleUser", &redpanda.UserArgs{
Password: pulumi.String("secure-password-123"),
Mechanism: pulumi.String("scram-sha-256"),
ClusterApiUrl: exampleCluster.ClusterApiUrl,
AllowDeletion: pulumi.Bool(true),
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"type": "record",
"name": "User",
"fields": []map[string]interface{}{
map[string]interface{}{
"name": "id",
"type": "long",
},
map[string]interface{}{
"name": "username",
"type": "string",
},
map[string]interface{}{
"name": "email",
"type": "string",
},
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = redpanda.NewSchema(ctx, "exampleSchema", &redpanda.SchemaArgs{
ClusterId: exampleCluster.ID(),
Subject: pulumi.String("user-value"),
SchemaType: pulumi.String("AVRO"),
Schema: pulumi.String(json0),
Username: exampleUser.Name,
Password: pulumi.String("secure-password-123"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Redpanda = Pulumi.Redpanda;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Redpanda.ResourceGroup("exampleResourceGroup");
var exampleNetwork = new Redpanda.Network("exampleNetwork", new()
{
ResourceGroupId = exampleResourceGroup.Id,
CloudProvider = "aws",
Region = "us-west-2",
ClusterType = "dedicated",
CidrBlock = "10.0.0.0/20",
});
var exampleCluster = new Redpanda.Cluster("exampleCluster", new()
{
ResourceGroupId = exampleResourceGroup.Id,
NetworkId = exampleNetwork.Id,
CloudProvider = "aws",
Region = "us-west-2",
ClusterType = "dedicated",
ConnectionType = "public",
ThroughputTier = "tier-1-aws",
Zones = new[]
{
"us-west-2a",
"us-west-2b",
"us-west-2c",
},
});
var exampleUser = new Redpanda.User("exampleUser", new()
{
Password = "secure-password-123",
Mechanism = "scram-sha-256",
ClusterApiUrl = exampleCluster.ClusterApiUrl,
AllowDeletion = true,
});
var exampleSchema = new Redpanda.Schema("exampleSchema", new()
{
ClusterId = exampleCluster.Id,
Subject = "user-value",
SchemaType = "AVRO",
Schema = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["type"] = "record",
["name"] = "User",
["fields"] = new[]
{
new Dictionary<string, object?>
{
["name"] = "id",
["type"] = "long",
},
new Dictionary<string, object?>
{
["name"] = "username",
["type"] = "string",
},
new Dictionary<string, object?>
{
["name"] = "email",
["type"] = "string",
},
},
}),
Username = exampleUser.Name,
Password = "secure-password-123",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.redpanda.ResourceGroup;
import com.pulumi.redpanda.Network;
import com.pulumi.redpanda.NetworkArgs;
import com.pulumi.redpanda.Cluster;
import com.pulumi.redpanda.ClusterArgs;
import com.pulumi.redpanda.User;
import com.pulumi.redpanda.UserArgs;
import com.pulumi.redpanda.Schema;
import com.pulumi.redpanda.SchemaArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup");
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.resourceGroupId(exampleResourceGroup.id())
.cloudProvider("aws")
.region("us-west-2")
.clusterType("dedicated")
.cidrBlock("10.0.0.0/20")
.build());
var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
.resourceGroupId(exampleResourceGroup.id())
.networkId(exampleNetwork.id())
.cloudProvider("aws")
.region("us-west-2")
.clusterType("dedicated")
.connectionType("public")
.throughputTier("tier-1-aws")
.zones(
"us-west-2a",
"us-west-2b",
"us-west-2c")
.build());
var exampleUser = new User("exampleUser", UserArgs.builder()
.password("secure-password-123")
.mechanism("scram-sha-256")
.clusterApiUrl(exampleCluster.clusterApiUrl())
.allowDeletion(true)
.build());
var exampleSchema = new Schema("exampleSchema", SchemaArgs.builder()
.clusterId(exampleCluster.id())
.subject("user-value")
.schemaType("AVRO")
.schema(serializeJson(
jsonObject(
jsonProperty("type", "record"),
jsonProperty("name", "User"),
jsonProperty("fields", jsonArray(
jsonObject(
jsonProperty("name", "id"),
jsonProperty("type", "long")
),
jsonObject(
jsonProperty("name", "username"),
jsonProperty("type", "string")
),
jsonObject(
jsonProperty("name", "email"),
jsonProperty("type", "string")
)
))
)))
.username(exampleUser.name())
.password("secure-password-123")
.build());
}
}
resources:
exampleResourceGroup:
type: redpanda:ResourceGroup
exampleNetwork:
type: redpanda:Network
properties:
resourceGroupId: ${exampleResourceGroup.id}
cloudProvider: aws
region: us-west-2
clusterType: dedicated
cidrBlock: 10.0.0.0/20
exampleCluster:
type: redpanda:Cluster
properties:
resourceGroupId: ${exampleResourceGroup.id}
networkId: ${exampleNetwork.id}
cloudProvider: aws
region: us-west-2
clusterType: dedicated
connectionType: public
throughputTier: tier-1-aws
zones:
- us-west-2a
- us-west-2b
- us-west-2c
exampleUser:
type: redpanda:User
properties:
password: secure-password-123
mechanism: scram-sha-256
clusterApiUrl: ${exampleCluster.clusterApiUrl}
allowDeletion: true
exampleSchema:
type: redpanda:Schema
properties:
clusterId: ${exampleCluster.id}
subject: user-value
schemaType: AVRO
schema:
fn::toJSON:
type: record
name: User
fields:
- name: id
type: long
- name: username
type: string
- name: email
type: string
username: ${exampleUser.name}
password: secure-password-123
Schema Evolution and Compatibility
Redpanda Schema Registry supports schema evolution with different compatibility levels:
BACKWARD(default): New schema can read data written with the previous schemaFORWARD: Previous schema can read data written with the new schemaFULL: Both backward and forward compatibilityBACKWARD_TRANSITIVE: Backward compatibility with all previous versionsFORWARD_TRANSITIVE: Forward compatibility with all previous versionsFULL_TRANSITIVE: Both backward and forward compatibility with all previous versionsNONE: No compatibility checking
For more details, see the Redpanda Schema Registry API documentation.
Schema References
Schemas can reference other schemas to build complex data models. When using references, ensure the referenced schemas are created first.
Security Considerations
We recommend storing Schema Registry credentials in environment variables or a secret store:
REDPANDA_SR_USERNAMEfor the usernameREDPANDA_SR_PASSWORDfor the password
API Reference
For more information, see the Redpanda Schema Registry API documentation and the Redpanda Cloud Data Plane API documentation.
Create Schema Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Schema(name: string, args: SchemaArgs, opts?: CustomResourceOptions);@overload
def Schema(resource_name: str,
args: SchemaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Schema(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
password: Optional[str] = None,
schema: Optional[str] = None,
subject: Optional[str] = None,
username: Optional[str] = None,
allow_deletion: Optional[bool] = None,
compatibility: Optional[str] = None,
references: Optional[Sequence[SchemaReferenceArgs]] = None,
schema_type: Optional[str] = None)func NewSchema(ctx *Context, name string, args SchemaArgs, opts ...ResourceOption) (*Schema, error)public Schema(string name, SchemaArgs args, CustomResourceOptions? opts = null)
public Schema(String name, SchemaArgs args)
public Schema(String name, SchemaArgs args, CustomResourceOptions options)
type: redpanda:Schema
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var schemaResource = new Redpanda.Schema("schemaResource", new()
{
ClusterId = "string",
Password = "string",
Schema = "string",
Subject = "string",
Username = "string",
AllowDeletion = false,
Compatibility = "string",
References = new[]
{
new Redpanda.Inputs.SchemaReferenceArgs
{
Name = "string",
Subject = "string",
Version = 0,
},
},
SchemaType = "string",
});
example, err := redpanda.NewSchema(ctx, "schemaResource", &redpanda.SchemaArgs{
ClusterId: pulumi.String("string"),
Password: pulumi.String("string"),
Schema: pulumi.String("string"),
Subject: pulumi.String("string"),
Username: pulumi.String("string"),
AllowDeletion: pulumi.Bool(false),
Compatibility: pulumi.String("string"),
References: redpanda.SchemaReferenceArray{
&redpanda.SchemaReferenceArgs{
Name: pulumi.String("string"),
Subject: pulumi.String("string"),
Version: pulumi.Float64(0),
},
},
SchemaType: pulumi.String("string"),
})
var schemaResource = new Schema("schemaResource", SchemaArgs.builder()
.clusterId("string")
.password("string")
.schema("string")
.subject("string")
.username("string")
.allowDeletion(false)
.compatibility("string")
.references(SchemaReferenceArgs.builder()
.name("string")
.subject("string")
.version(0.0)
.build())
.schemaType("string")
.build());
schema_resource = redpanda.Schema("schemaResource",
cluster_id="string",
password="string",
schema="string",
subject="string",
username="string",
allow_deletion=False,
compatibility="string",
references=[{
"name": "string",
"subject": "string",
"version": 0,
}],
schema_type="string")
const schemaResource = new redpanda.Schema("schemaResource", {
clusterId: "string",
password: "string",
schema: "string",
subject: "string",
username: "string",
allowDeletion: false,
compatibility: "string",
references: [{
name: "string",
subject: "string",
version: 0,
}],
schemaType: "string",
});
type: redpanda:Schema
properties:
allowDeletion: false
clusterId: string
compatibility: string
password: string
references:
- name: string
subject: string
version: 0
schema: string
schemaType: string
subject: string
username: string
Schema Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Schema resource accepts the following input properties:
- Cluster
Id string - The ID of the cluster where the schema is stored.
- Password string
- The SASL password for Schema Registry authentication.
- Schema string
- The schema definition in JSON format.
- Subject string
- The subject name for the schema.
- Username string
- The SASL username for Schema Registry authentication.
- Allow
Deletion bool - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- Compatibility string
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- References
List<Schema
Reference> - List of schema references.
- Schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- Cluster
Id string - The ID of the cluster where the schema is stored.
- Password string
- The SASL password for Schema Registry authentication.
- Schema string
- The schema definition in JSON format.
- Subject string
- The subject name for the schema.
- Username string
- The SASL username for Schema Registry authentication.
- Allow
Deletion bool - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- Compatibility string
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- References
[]Schema
Reference Args - List of schema references.
- Schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- cluster
Id String - The ID of the cluster where the schema is stored.
- password String
- The SASL password for Schema Registry authentication.
- schema String
- The schema definition in JSON format.
- subject String
- The subject name for the schema.
- username String
- The SASL username for Schema Registry authentication.
- allow
Deletion Boolean - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- compatibility String
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- references
List<Schema
Reference> - List of schema references.
- schema
Type String - The type of schema (AVRO, JSON, PROTOBUF).
- cluster
Id string - The ID of the cluster where the schema is stored.
- password string
- The SASL password for Schema Registry authentication.
- schema string
- The schema definition in JSON format.
- subject string
- The subject name for the schema.
- username string
- The SASL username for Schema Registry authentication.
- allow
Deletion boolean - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- compatibility string
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- references
Schema
Reference[] - List of schema references.
- schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- cluster_
id str - The ID of the cluster where the schema is stored.
- password str
- The SASL password for Schema Registry authentication.
- schema str
- The schema definition in JSON format.
- subject str
- The subject name for the schema.
- username str
- The SASL username for Schema Registry authentication.
- allow_
deletion bool - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- compatibility str
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- references
Sequence[Schema
Reference Args] - List of schema references.
- schema_
type str - The type of schema (AVRO, JSON, PROTOBUF).
- cluster
Id String - The ID of the cluster where the schema is stored.
- password String
- The SASL password for Schema Registry authentication.
- schema String
- The schema definition in JSON format.
- subject String
- The subject name for the schema.
- username String
- The SASL username for Schema Registry authentication.
- allow
Deletion Boolean - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- compatibility String
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- references List<Property Map>
- List of schema references.
- schema
Type String - The type of schema (AVRO, JSON, PROTOBUF).
Outputs
All input properties are implicitly available as output properties. Additionally, the Schema resource produces the following output properties:
Look up Existing Schema Resource
Get an existing Schema resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SchemaState, opts?: CustomResourceOptions): Schema@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_deletion: Optional[bool] = None,
cluster_id: Optional[str] = None,
compatibility: Optional[str] = None,
password: Optional[str] = None,
references: Optional[Sequence[SchemaReferenceArgs]] = None,
schema: Optional[str] = None,
schema_id: Optional[float] = None,
schema_type: Optional[str] = None,
subject: Optional[str] = None,
username: Optional[str] = None,
version: Optional[float] = None) -> Schemafunc GetSchema(ctx *Context, name string, id IDInput, state *SchemaState, opts ...ResourceOption) (*Schema, error)public static Schema Get(string name, Input<string> id, SchemaState? state, CustomResourceOptions? opts = null)public static Schema get(String name, Output<String> id, SchemaState state, CustomResourceOptions options)resources: _: type: redpanda:Schema get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allow
Deletion bool - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- Cluster
Id string - The ID of the cluster where the schema is stored.
- Compatibility string
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- Password string
- The SASL password for Schema Registry authentication.
- References
List<Schema
Reference> - List of schema references.
- Schema string
- The schema definition in JSON format.
- Schema
Id double - The unique identifier for the schema.
- Schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- Subject string
- The subject name for the schema.
- Username string
- The SASL username for Schema Registry authentication.
- Version double
- The version of the schema.
- Allow
Deletion bool - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- Cluster
Id string - The ID of the cluster where the schema is stored.
- Compatibility string
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- Password string
- The SASL password for Schema Registry authentication.
- References
[]Schema
Reference Args - List of schema references.
- Schema string
- The schema definition in JSON format.
- Schema
Id float64 - The unique identifier for the schema.
- Schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- Subject string
- The subject name for the schema.
- Username string
- The SASL username for Schema Registry authentication.
- Version float64
- The version of the schema.
- allow
Deletion Boolean - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- cluster
Id String - The ID of the cluster where the schema is stored.
- compatibility String
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- password String
- The SASL password for Schema Registry authentication.
- references
List<Schema
Reference> - List of schema references.
- schema String
- The schema definition in JSON format.
- schema
Id Double - The unique identifier for the schema.
- schema
Type String - The type of schema (AVRO, JSON, PROTOBUF).
- subject String
- The subject name for the schema.
- username String
- The SASL username for Schema Registry authentication.
- version Double
- The version of the schema.
- allow
Deletion boolean - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- cluster
Id string - The ID of the cluster where the schema is stored.
- compatibility string
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- password string
- The SASL password for Schema Registry authentication.
- references
Schema
Reference[] - List of schema references.
- schema string
- The schema definition in JSON format.
- schema
Id number - The unique identifier for the schema.
- schema
Type string - The type of schema (AVRO, JSON, PROTOBUF).
- subject string
- The subject name for the schema.
- username string
- The SASL username for Schema Registry authentication.
- version number
- The version of the schema.
- allow_
deletion bool - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- cluster_
id str - The ID of the cluster where the schema is stored.
- compatibility str
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- password str
- The SASL password for Schema Registry authentication.
- references
Sequence[Schema
Reference Args] - List of schema references.
- schema str
- The schema definition in JSON format.
- schema_
id float - The unique identifier for the schema.
- schema_
type str - The type of schema (AVRO, JSON, PROTOBUF).
- subject str
- The subject name for the schema.
- username str
- The SASL username for Schema Registry authentication.
- version float
- The version of the schema.
- allow
Deletion Boolean - When enabled, prevents the resource from being deleted if the cluster is unreachable. When disabled (default), the resource will be removed from state without attempting deletion when the cluster is unreachable.
- cluster
Id String - The ID of the cluster where the schema is stored.
- compatibility String
- The compatibility level for schema evolution (BACKWARD, BACKWARDTRANSITIVE, FORWARD, FORWARDTRANSITIVE, FULL, FULL_TRANSITIVE, NONE). Defaults to BACKWARD.
- password String
- The SASL password for Schema Registry authentication.
- references List<Property Map>
- List of schema references.
- schema String
- The schema definition in JSON format.
- schema
Id Number - The unique identifier for the schema.
- schema
Type String - The type of schema (AVRO, JSON, PROTOBUF).
- subject String
- The subject name for the schema.
- username String
- The SASL username for Schema Registry authentication.
- version Number
- The version of the schema.
Supporting Types
SchemaReference, SchemaReferenceArgs
Import
$ pulumi import redpanda:index/schema:Schema example clusterId,subjectName,version
Where:
clusterIdis the ID of the clustersubjectNameis the subject name of the schemaversionis the version of the schema to import
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- redpanda redpanda-data/terraform-provider-redpanda
- License
- Notes
- This Pulumi package is based on the
redpandaTerraform Provider.
