1. Packages
  2. Confluent Cloud
  3. API Docs
  4. getSchemaRegistryRegion
Confluent v1.48.0 published on Friday, Jun 21, 2024 by Pulumi

confluentcloud.getSchemaRegistryRegion

Explore with Pulumi AI

confluentcloud logo
Confluent v1.48.0 published on Friday, Jun 21, 2024 by Pulumi

    Deprecated

    confluentcloud.getSchemaRegistryRegion describes a Schema Registry cluster data source.

    !> Warning: The confluentcloud.getSchemaRegistryRegion data source has been deprecated and will be removed in the next major version of the provider (2.0.0). Refer to the Upgrade Guide for more details. The guide will be published once version 2.0.0 is released.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    export = async () => {
        const example = await confluentcloud.getSchemaRegistryRegion({
            cloud: "AWS",
            region: "us-east-2",
            "package": "ESSENTIALS",
        });
        return {
            example: example,
        };
    }
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    example = confluentcloud.get_schema_registry_region(cloud="AWS",
        region="us-east-2",
        package="ESSENTIALS")
    pulumi.export("example", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-confluentcloud/sdk/go/confluentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := confluentcloud.GetSchemaRegistryRegion(ctx, &confluentcloud.GetSchemaRegistryRegionArgs{
    			Cloud:   "AWS",
    			Region:  "us-east-2",
    			Package: "ESSENTIALS",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("example", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ConfluentCloud = Pulumi.ConfluentCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = ConfluentCloud.GetSchemaRegistryRegion.Invoke(new()
        {
            Cloud = "AWS",
            Region = "us-east-2",
            Package = "ESSENTIALS",
        });
    
        return new Dictionary<string, object?>
        {
            ["example"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.confluentcloud.ConfluentcloudFunctions;
    import com.pulumi.confluentcloud.inputs.GetSchemaRegistryRegionArgs;
    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) {
            final var example = ConfluentcloudFunctions.getSchemaRegistryRegion(GetSchemaRegistryRegionArgs.builder()
                .cloud("AWS")
                .region("us-east-2")
                .package_("ESSENTIALS")
                .build());
    
            ctx.export("example", example.applyValue(getSchemaRegistryRegionResult -> getSchemaRegistryRegionResult));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: confluentcloud:getSchemaRegistryRegion
          Arguments:
            cloud: AWS
            region: us-east-2
            package: ESSENTIALS
    outputs:
      example: ${example}
    

    Using getSchemaRegistryRegion

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSchemaRegistryRegion(args: GetSchemaRegistryRegionArgs, opts?: InvokeOptions): Promise<GetSchemaRegistryRegionResult>
    function getSchemaRegistryRegionOutput(args: GetSchemaRegistryRegionOutputArgs, opts?: InvokeOptions): Output<GetSchemaRegistryRegionResult>
    def get_schema_registry_region(cloud: Optional[str] = None,
                                   package: Optional[str] = None,
                                   region: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetSchemaRegistryRegionResult
    def get_schema_registry_region_output(cloud: Optional[pulumi.Input[str]] = None,
                                   package: Optional[pulumi.Input[str]] = None,
                                   region: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetSchemaRegistryRegionResult]
    func GetSchemaRegistryRegion(ctx *Context, args *GetSchemaRegistryRegionArgs, opts ...InvokeOption) (*GetSchemaRegistryRegionResult, error)
    func GetSchemaRegistryRegionOutput(ctx *Context, args *GetSchemaRegistryRegionOutputArgs, opts ...InvokeOption) GetSchemaRegistryRegionResultOutput

    > Note: This function is named GetSchemaRegistryRegion in the Go SDK.

    public static class GetSchemaRegistryRegion 
    {
        public static Task<GetSchemaRegistryRegionResult> InvokeAsync(GetSchemaRegistryRegionArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaRegistryRegionResult> Invoke(GetSchemaRegistryRegionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaRegistryRegionResult> getSchemaRegistryRegion(GetSchemaRegistryRegionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: confluentcloud:index/getSchemaRegistryRegion:getSchemaRegistryRegion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Cloud string
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    Package string

    The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Note: See Schema Registry Regions to manually find a corresponding region ID based on desired cloud provider region and types of the billing package.

    Region string
    The cloud service provider region, for example, us-east-2. See Cloud Providers and Regions for a full list of options for AWS, Azure, and GCP.
    Cloud string
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    Package string

    The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Note: See Schema Registry Regions to manually find a corresponding region ID based on desired cloud provider region and types of the billing package.

    Region string
    The cloud service provider region, for example, us-east-2. See Cloud Providers and Regions for a full list of options for AWS, Azure, and GCP.
    cloud String
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    package_ String

    The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Note: See Schema Registry Regions to manually find a corresponding region ID based on desired cloud provider region and types of the billing package.

    region String
    The cloud service provider region, for example, us-east-2. See Cloud Providers and Regions for a full list of options for AWS, Azure, and GCP.
    cloud string
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    package string

    The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Note: See Schema Registry Regions to manually find a corresponding region ID based on desired cloud provider region and types of the billing package.

    region string
    The cloud service provider region, for example, us-east-2. See Cloud Providers and Regions for a full list of options for AWS, Azure, and GCP.
    cloud str
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    package str

    The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Note: See Schema Registry Regions to manually find a corresponding region ID based on desired cloud provider region and types of the billing package.

    region str
    The cloud service provider region, for example, us-east-2. See Cloud Providers and Regions for a full list of options for AWS, Azure, and GCP.
    cloud String
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    package String

    The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Note: See Schema Registry Regions to manually find a corresponding region ID based on desired cloud provider region and types of the billing package.

    region String
    The cloud service provider region, for example, us-east-2. See Cloud Providers and Regions for a full list of options for AWS, Azure, and GCP.

    getSchemaRegistryRegion Result

    The following output properties are available:

    Cloud string
    Id string
    (Required String) The ID of the Schema Registry region, for example, sgreg-1.
    Package string
    Region string
    Cloud string
    Id string
    (Required String) The ID of the Schema Registry region, for example, sgreg-1.
    Package string
    Region string
    cloud String
    id String
    (Required String) The ID of the Schema Registry region, for example, sgreg-1.
    package_ String
    region String
    cloud string
    id string
    (Required String) The ID of the Schema Registry region, for example, sgreg-1.
    package string
    region string
    cloud str
    id str
    (Required String) The ID of the Schema Registry region, for example, sgreg-1.
    package str
    region str
    cloud String
    id String
    (Required String) The ID of the Schema Registry region, for example, sgreg-1.
    package String
    region String

    Package Details

    Repository
    Confluent Cloud pulumi/pulumi-confluentcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the confluent Terraform Provider.
    confluentcloud logo
    Confluent v1.48.0 published on Friday, Jun 21, 2024 by Pulumi