confluentcloud.SchemaExporter
Explore with Pulumi AI
confluentcloud.SchemaExporter
provides a Schema Exporter resource that enables creating, editing, and deleting Schema Exporters on Confluent Cloud.
Example Usage
Option #1: Manage multiple Schema Registry clusters in the same Pulumi Stack
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const main = new confluentcloud.SchemaExporter("main", {
schemaRegistryCluster: {
id: essentials.id,
},
restEndpoint: essentials.restEndpoint,
credentials: {
key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
name: "test-exporter",
subjects: ["foo"],
destinationSchemaRegistryCluster: {
restEndpoint: destination.restEndpoint,
credentials: {
key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
},
},
});
import pulumi
import pulumi_confluentcloud as confluentcloud
main = confluentcloud.SchemaExporter("main",
schema_registry_cluster={
"id": essentials["id"],
},
rest_endpoint=essentials["restEndpoint"],
credentials={
"key": "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
"secret": "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
name="test-exporter",
subjects=["foo"],
destination_schema_registry_cluster={
"rest_endpoint": destination["restEndpoint"],
"credentials": {
"key": "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
"secret": "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
},
})
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := confluentcloud.NewSchemaExporter(ctx, "main", &confluentcloud.SchemaExporterArgs{
SchemaRegistryCluster: &confluentcloud.SchemaExporterSchemaRegistryClusterArgs{
Id: pulumi.Any(essentials.Id),
},
RestEndpoint: pulumi.Any(essentials.RestEndpoint),
Credentials: &confluentcloud.SchemaExporterCredentialsArgs{
Key: pulumi.String("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>"),
Secret: pulumi.String("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>"),
},
Name: pulumi.String("test-exporter"),
Subjects: pulumi.StringArray{
pulumi.String("foo"),
},
DestinationSchemaRegistryCluster: &confluentcloud.SchemaExporterDestinationSchemaRegistryClusterArgs{
RestEndpoint: pulumi.Any(destination.RestEndpoint),
Credentials: &confluentcloud.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs{
Key: pulumi.String("<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>"),
Secret: pulumi.String("<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var main = new ConfluentCloud.SchemaExporter("main", new()
{
SchemaRegistryCluster = new ConfluentCloud.Inputs.SchemaExporterSchemaRegistryClusterArgs
{
Id = essentials.Id,
},
RestEndpoint = essentials.RestEndpoint,
Credentials = new ConfluentCloud.Inputs.SchemaExporterCredentialsArgs
{
Key = "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
Secret = "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
Name = "test-exporter",
Subjects = new[]
{
"foo",
},
DestinationSchemaRegistryCluster = new ConfluentCloud.Inputs.SchemaExporterDestinationSchemaRegistryClusterArgs
{
RestEndpoint = destination.RestEndpoint,
Credentials = new ConfluentCloud.Inputs.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs
{
Key = "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
Secret = "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.SchemaExporter;
import com.pulumi.confluentcloud.SchemaExporterArgs;
import com.pulumi.confluentcloud.inputs.SchemaExporterSchemaRegistryClusterArgs;
import com.pulumi.confluentcloud.inputs.SchemaExporterCredentialsArgs;
import com.pulumi.confluentcloud.inputs.SchemaExporterDestinationSchemaRegistryClusterArgs;
import com.pulumi.confluentcloud.inputs.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs;
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 main = new SchemaExporter("main", SchemaExporterArgs.builder()
.schemaRegistryCluster(SchemaExporterSchemaRegistryClusterArgs.builder()
.id(essentials.id())
.build())
.restEndpoint(essentials.restEndpoint())
.credentials(SchemaExporterCredentialsArgs.builder()
.key("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>")
.secret("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>")
.build())
.name("test-exporter")
.subjects("foo")
.destinationSchemaRegistryCluster(SchemaExporterDestinationSchemaRegistryClusterArgs.builder()
.restEndpoint(destination.restEndpoint())
.credentials(SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs.builder()
.key("<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>")
.secret("<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>")
.build())
.build())
.build());
}
}
resources:
main:
type: confluentcloud:SchemaExporter
properties:
schemaRegistryCluster:
id: ${essentials.id}
restEndpoint: ${essentials.restEndpoint}
credentials:
key: <Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>
secret: <Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>
name: test-exporter
subjects:
- foo
destinationSchemaRegistryCluster:
restEndpoint: ${destination.restEndpoint}
credentials:
key: <Schema Registry API Key for data.confluent_schema_registry_cluster.destination>
secret: <Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>
Option #2: Manage a single Schema Registry cluster in the same Pulumi Stack
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const main = new confluentcloud.SchemaExporter("main", {
name: "test-exporter",
subjects: ["foo"],
destinationSchemaRegistryCluster: {
restEndpoint: destination.restEndpoint,
credentials: {
key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
},
},
});
import pulumi
import pulumi_confluentcloud as confluentcloud
main = confluentcloud.SchemaExporter("main",
name="test-exporter",
subjects=["foo"],
destination_schema_registry_cluster={
"rest_endpoint": destination["restEndpoint"],
"credentials": {
"key": "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
"secret": "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
},
})
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := confluentcloud.NewSchemaExporter(ctx, "main", &confluentcloud.SchemaExporterArgs{
Name: pulumi.String("test-exporter"),
Subjects: pulumi.StringArray{
pulumi.String("foo"),
},
DestinationSchemaRegistryCluster: &confluentcloud.SchemaExporterDestinationSchemaRegistryClusterArgs{
RestEndpoint: pulumi.Any(destination.RestEndpoint),
Credentials: &confluentcloud.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs{
Key: pulumi.String("<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>"),
Secret: pulumi.String("<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var main = new ConfluentCloud.SchemaExporter("main", new()
{
Name = "test-exporter",
Subjects = new[]
{
"foo",
},
DestinationSchemaRegistryCluster = new ConfluentCloud.Inputs.SchemaExporterDestinationSchemaRegistryClusterArgs
{
RestEndpoint = destination.RestEndpoint,
Credentials = new ConfluentCloud.Inputs.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs
{
Key = "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
Secret = "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.SchemaExporter;
import com.pulumi.confluentcloud.SchemaExporterArgs;
import com.pulumi.confluentcloud.inputs.SchemaExporterDestinationSchemaRegistryClusterArgs;
import com.pulumi.confluentcloud.inputs.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs;
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 main = new SchemaExporter("main", SchemaExporterArgs.builder()
.name("test-exporter")
.subjects("foo")
.destinationSchemaRegistryCluster(SchemaExporterDestinationSchemaRegistryClusterArgs.builder()
.restEndpoint(destination.restEndpoint())
.credentials(SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs.builder()
.key("<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>")
.secret("<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>")
.build())
.build())
.build());
}
}
resources:
main:
type: confluentcloud:SchemaExporter
properties:
name: test-exporter
subjects:
- foo
destinationSchemaRegistryCluster:
restEndpoint: ${destination.restEndpoint}
credentials:
key: <Schema Registry API Key for data.confluent_schema_registry_cluster.destination>
secret: <Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>
Create SchemaExporter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SchemaExporter(name: string, args: SchemaExporterArgs, opts?: CustomResourceOptions);
@overload
def SchemaExporter(resource_name: str,
args: SchemaExporterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SchemaExporter(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_schema_registry_cluster: Optional[SchemaExporterDestinationSchemaRegistryClusterArgs] = None,
config: Optional[Mapping[str, str]] = None,
context: Optional[str] = None,
context_type: Optional[str] = None,
credentials: Optional[SchemaExporterCredentialsArgs] = None,
name: Optional[str] = None,
reset_on_update: Optional[bool] = None,
rest_endpoint: Optional[str] = None,
schema_registry_cluster: Optional[SchemaExporterSchemaRegistryClusterArgs] = None,
status: Optional[str] = None,
subject_rename_format: Optional[str] = None,
subjects: Optional[Sequence[str]] = None)
func NewSchemaExporter(ctx *Context, name string, args SchemaExporterArgs, opts ...ResourceOption) (*SchemaExporter, error)
public SchemaExporter(string name, SchemaExporterArgs args, CustomResourceOptions? opts = null)
public SchemaExporter(String name, SchemaExporterArgs args)
public SchemaExporter(String name, SchemaExporterArgs args, CustomResourceOptions options)
type: confluentcloud:SchemaExporter
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 SchemaExporterArgs
- 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 SchemaExporterArgs
- 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 SchemaExporterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaExporterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaExporterArgs
- 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 schemaExporterResource = new ConfluentCloud.SchemaExporter("schemaExporterResource", new()
{
DestinationSchemaRegistryCluster = new ConfluentCloud.Inputs.SchemaExporterDestinationSchemaRegistryClusterArgs
{
Credentials = new ConfluentCloud.Inputs.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs
{
Key = "string",
Secret = "string",
},
RestEndpoint = "string",
},
Config =
{
{ "string", "string" },
},
Context = "string",
ContextType = "string",
Credentials = new ConfluentCloud.Inputs.SchemaExporterCredentialsArgs
{
Key = "string",
Secret = "string",
},
Name = "string",
ResetOnUpdate = false,
RestEndpoint = "string",
SchemaRegistryCluster = new ConfluentCloud.Inputs.SchemaExporterSchemaRegistryClusterArgs
{
Id = "string",
},
Status = "string",
SubjectRenameFormat = "string",
Subjects = new[]
{
"string",
},
});
example, err := confluentcloud.NewSchemaExporter(ctx, "schemaExporterResource", &confluentcloud.SchemaExporterArgs{
DestinationSchemaRegistryCluster: &confluentcloud.SchemaExporterDestinationSchemaRegistryClusterArgs{
Credentials: &confluentcloud.SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs{
Key: pulumi.String("string"),
Secret: pulumi.String("string"),
},
RestEndpoint: pulumi.String("string"),
},
Config: pulumi.StringMap{
"string": pulumi.String("string"),
},
Context: pulumi.String("string"),
ContextType: pulumi.String("string"),
Credentials: &confluentcloud.SchemaExporterCredentialsArgs{
Key: pulumi.String("string"),
Secret: pulumi.String("string"),
},
Name: pulumi.String("string"),
ResetOnUpdate: pulumi.Bool(false),
RestEndpoint: pulumi.String("string"),
SchemaRegistryCluster: &confluentcloud.SchemaExporterSchemaRegistryClusterArgs{
Id: pulumi.String("string"),
},
Status: pulumi.String("string"),
SubjectRenameFormat: pulumi.String("string"),
Subjects: pulumi.StringArray{
pulumi.String("string"),
},
})
var schemaExporterResource = new SchemaExporter("schemaExporterResource", SchemaExporterArgs.builder()
.destinationSchemaRegistryCluster(SchemaExporterDestinationSchemaRegistryClusterArgs.builder()
.credentials(SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs.builder()
.key("string")
.secret("string")
.build())
.restEndpoint("string")
.build())
.config(Map.of("string", "string"))
.context("string")
.contextType("string")
.credentials(SchemaExporterCredentialsArgs.builder()
.key("string")
.secret("string")
.build())
.name("string")
.resetOnUpdate(false)
.restEndpoint("string")
.schemaRegistryCluster(SchemaExporterSchemaRegistryClusterArgs.builder()
.id("string")
.build())
.status("string")
.subjectRenameFormat("string")
.subjects("string")
.build());
schema_exporter_resource = confluentcloud.SchemaExporter("schemaExporterResource",
destination_schema_registry_cluster={
"credentials": {
"key": "string",
"secret": "string",
},
"rest_endpoint": "string",
},
config={
"string": "string",
},
context="string",
context_type="string",
credentials={
"key": "string",
"secret": "string",
},
name="string",
reset_on_update=False,
rest_endpoint="string",
schema_registry_cluster={
"id": "string",
},
status="string",
subject_rename_format="string",
subjects=["string"])
const schemaExporterResource = new confluentcloud.SchemaExporter("schemaExporterResource", {
destinationSchemaRegistryCluster: {
credentials: {
key: "string",
secret: "string",
},
restEndpoint: "string",
},
config: {
string: "string",
},
context: "string",
contextType: "string",
credentials: {
key: "string",
secret: "string",
},
name: "string",
resetOnUpdate: false,
restEndpoint: "string",
schemaRegistryCluster: {
id: "string",
},
status: "string",
subjectRenameFormat: "string",
subjects: ["string"],
});
type: confluentcloud:SchemaExporter
properties:
config:
string: string
context: string
contextType: string
credentials:
key: string
secret: string
destinationSchemaRegistryCluster:
credentials:
key: string
secret: string
restEndpoint: string
name: string
resetOnUpdate: false
restEndpoint: string
schemaRegistryCluster:
id: string
status: string
subjectRenameFormat: string
subjects:
- string
SchemaExporter 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 SchemaExporter resource accepts the following input properties:
- Destination
Schema Pulumi.Registry Cluster Confluent Cloud. Inputs. Schema Exporter Destination Schema Registry Cluster - Config Dictionary<string, string>
- Block for custom nonsensitive configuration properties:
- Context string
- Customized context of the exporter if
context_type
is set toCUSTOM
. - Context
Type string - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - Credentials
Pulumi.
Confluent Cloud. Inputs. Schema Exporter Credentials - The Cluster API Credentials.
- Name string
- Name of the Schema Exporter.
- Reset
On boolUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Schema Exporter Schema Registry Cluster - Status string
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - Subject
Rename stringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - Subjects List<string>
- Name of each exporter subject.
- Destination
Schema SchemaRegistry Cluster Exporter Destination Schema Registry Cluster Args - Config map[string]string
- Block for custom nonsensitive configuration properties:
- Context string
- Customized context of the exporter if
context_type
is set toCUSTOM
. - Context
Type string - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - Credentials
Schema
Exporter Credentials Args - The Cluster API Credentials.
- Name string
- Name of the Schema Exporter.
- Reset
On boolUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry SchemaCluster Exporter Schema Registry Cluster Args - Status string
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - Subject
Rename stringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - Subjects []string
- Name of each exporter subject.
- destination
Schema SchemaRegistry Cluster Exporter Destination Schema Registry Cluster - config Map<String,String>
- Block for custom nonsensitive configuration properties:
- context String
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context
Type String - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials
Schema
Exporter Credentials - The Cluster API Credentials.
- name String
- Name of the Schema Exporter.
- reset
On BooleanUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Exporter Schema Registry Cluster - status String
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject
Rename StringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects List<String>
- Name of each exporter subject.
- destination
Schema SchemaRegistry Cluster Exporter Destination Schema Registry Cluster - config {[key: string]: string}
- Block for custom nonsensitive configuration properties:
- context string
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context
Type string - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials
Schema
Exporter Credentials - The Cluster API Credentials.
- name string
- Name of the Schema Exporter.
- reset
On booleanUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Exporter Schema Registry Cluster - status string
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject
Rename stringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects string[]
- Name of each exporter subject.
- destination_
schema_ Schemaregistry_ cluster Exporter Destination Schema Registry Cluster Args - config Mapping[str, str]
- Block for custom nonsensitive configuration properties:
- context str
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context_
type str - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials
Schema
Exporter Credentials Args - The Cluster API Credentials.
- name str
- Name of the Schema Exporter.
- reset_
on_ boolupdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest_
endpoint str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Schemacluster Exporter Schema Registry Cluster Args - status str
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject_
rename_ strformat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects Sequence[str]
- Name of each exporter subject.
- destination
Schema Property MapRegistry Cluster - config Map<String>
- Block for custom nonsensitive configuration properties:
- context String
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context
Type String - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials Property Map
- The Cluster API Credentials.
- name String
- Name of the Schema Exporter.
- reset
On BooleanUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster - status String
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject
Rename StringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects List<String>
- Name of each exporter subject.
Outputs
All input properties are implicitly available as output properties. Additionally, the SchemaExporter resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SchemaExporter Resource
Get an existing SchemaExporter 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?: SchemaExporterState, opts?: CustomResourceOptions): SchemaExporter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[Mapping[str, str]] = None,
context: Optional[str] = None,
context_type: Optional[str] = None,
credentials: Optional[SchemaExporterCredentialsArgs] = None,
destination_schema_registry_cluster: Optional[SchemaExporterDestinationSchemaRegistryClusterArgs] = None,
name: Optional[str] = None,
reset_on_update: Optional[bool] = None,
rest_endpoint: Optional[str] = None,
schema_registry_cluster: Optional[SchemaExporterSchemaRegistryClusterArgs] = None,
status: Optional[str] = None,
subject_rename_format: Optional[str] = None,
subjects: Optional[Sequence[str]] = None) -> SchemaExporter
func GetSchemaExporter(ctx *Context, name string, id IDInput, state *SchemaExporterState, opts ...ResourceOption) (*SchemaExporter, error)
public static SchemaExporter Get(string name, Input<string> id, SchemaExporterState? state, CustomResourceOptions? opts = null)
public static SchemaExporter get(String name, Output<String> id, SchemaExporterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Config Dictionary<string, string>
- Block for custom nonsensitive configuration properties:
- Context string
- Customized context of the exporter if
context_type
is set toCUSTOM
. - Context
Type string - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - Credentials
Pulumi.
Confluent Cloud. Inputs. Schema Exporter Credentials - The Cluster API Credentials.
- Destination
Schema Pulumi.Registry Cluster Confluent Cloud. Inputs. Schema Exporter Destination Schema Registry Cluster - Name string
- Name of the Schema Exporter.
- Reset
On boolUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Schema Exporter Schema Registry Cluster - Status string
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - Subject
Rename stringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - Subjects List<string>
- Name of each exporter subject.
- Config map[string]string
- Block for custom nonsensitive configuration properties:
- Context string
- Customized context of the exporter if
context_type
is set toCUSTOM
. - Context
Type string - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - Credentials
Schema
Exporter Credentials Args - The Cluster API Credentials.
- Destination
Schema SchemaRegistry Cluster Exporter Destination Schema Registry Cluster Args - Name string
- Name of the Schema Exporter.
- Reset
On boolUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry SchemaCluster Exporter Schema Registry Cluster Args - Status string
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - Subject
Rename stringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - Subjects []string
- Name of each exporter subject.
- config Map<String,String>
- Block for custom nonsensitive configuration properties:
- context String
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context
Type String - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials
Schema
Exporter Credentials - The Cluster API Credentials.
- destination
Schema SchemaRegistry Cluster Exporter Destination Schema Registry Cluster - name String
- Name of the Schema Exporter.
- reset
On BooleanUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Exporter Schema Registry Cluster - status String
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject
Rename StringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects List<String>
- Name of each exporter subject.
- config {[key: string]: string}
- Block for custom nonsensitive configuration properties:
- context string
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context
Type string - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials
Schema
Exporter Credentials - The Cluster API Credentials.
- destination
Schema SchemaRegistry Cluster Exporter Destination Schema Registry Cluster - name string
- Name of the Schema Exporter.
- reset
On booleanUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Exporter Schema Registry Cluster - status string
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject
Rename stringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects string[]
- Name of each exporter subject.
- config Mapping[str, str]
- Block for custom nonsensitive configuration properties:
- context str
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context_
type str - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials
Schema
Exporter Credentials Args - The Cluster API Credentials.
- destination_
schema_ Schemaregistry_ cluster Exporter Destination Schema Registry Cluster Args - name str
- Name of the Schema Exporter.
- reset_
on_ boolupdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest_
endpoint str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Schemacluster Exporter Schema Registry Cluster Args - status str
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject_
rename_ strformat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects Sequence[str]
- Name of each exporter subject.
- config Map<String>
- Block for custom nonsensitive configuration properties:
- context String
- Customized context of the exporter if
context_type
is set toCUSTOM
. - context
Type String - Context type of the exporter. Accepted values are:
CUSTOM
,NONE
orAUTO
. Defaults toAUTO
. - credentials Property Map
- The Cluster API Credentials.
- destination
Schema Property MapRegistry Cluster - name String
- Name of the Schema Exporter.
- reset
On BooleanUpdate - The flag to control whether to reset the exporter when updating configs. Defaults to
false
. - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster - status String
- The status of the schema exporter. Accepted values are:
RUNNING
andPAUSED
. - subject
Rename StringFormat - Format string for the subject name in the destination cluster, which may contain
${subject}
as a placeholder for the originating subject name. For example,dc_${subject}
for the subject orders will map to the destination subject namedc_orders
. - subjects List<String>
- Name of each exporter subject.
Supporting Types
SchemaExporterCredentials, SchemaExporterCredentialsArgs
SchemaExporterDestinationSchemaRegistryCluster, SchemaExporterDestinationSchemaRegistryClusterArgs
- Credentials
Pulumi.
Confluent Cloud. Inputs. Schema Exporter Destination Schema Registry Cluster Credentials - Rest
Endpoint string - The REST endpoint of the destination Schema Registry cluster, for example,
https://pkc-00000.us-central1.gcp.confluent.cloud:443
).
- Credentials
Schema
Exporter Destination Schema Registry Cluster Credentials - Rest
Endpoint string - The REST endpoint of the destination Schema Registry cluster, for example,
https://pkc-00000.us-central1.gcp.confluent.cloud:443
).
- credentials
Schema
Exporter Destination Schema Registry Cluster Credentials - rest
Endpoint String - The REST endpoint of the destination Schema Registry cluster, for example,
https://pkc-00000.us-central1.gcp.confluent.cloud:443
).
- credentials
Schema
Exporter Destination Schema Registry Cluster Credentials - rest
Endpoint string - The REST endpoint of the destination Schema Registry cluster, for example,
https://pkc-00000.us-central1.gcp.confluent.cloud:443
).
- credentials
Schema
Exporter Destination Schema Registry Cluster Credentials - rest_
endpoint str - The REST endpoint of the destination Schema Registry cluster, for example,
https://pkc-00000.us-central1.gcp.confluent.cloud:443
).
- credentials Property Map
- rest
Endpoint String - The REST endpoint of the destination Schema Registry cluster, for example,
https://pkc-00000.us-central1.gcp.confluent.cloud:443
).
SchemaExporterDestinationSchemaRegistryClusterCredentials, SchemaExporterDestinationSchemaRegistryClusterCredentialsArgs
SchemaExporterSchemaRegistryCluster, SchemaExporterSchemaRegistryClusterArgs
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id str
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
Import
You can import a Schema Exporter by using the Schema Registry cluster ID, Schema Exporter name in the format <Schema Registry cluster ID>/<Schema Exporter name>
, for example:
$ export IMPORT_SCHEMA_REGISTRY_ID="<schema_registry_cluster_id>"
$ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>"
$ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>"
$ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"
$ pulumi import confluentcloud:index/schemaExporter:SchemaExporter main lsrc-8wrx70/test-exporter
!> Warning: Do not forget to delete terminal command history afterwards for security purposes.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.