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

confluentcloud.getFlinkRegion

Explore with Pulumi AI

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

    General Availability

    confluentcloud.getFlinkRegion describes a Flink cluster data source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    export = async () => {
        const example = await confluentcloud.getFlinkRegion({
            cloud: "AWS",
            region: "us-east-1",
        });
        return {
            example: example,
        };
    }
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    example = confluentcloud.get_flink_region(cloud="AWS",
        region="us-east-1")
    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.GetFlinkRegion(ctx, &confluentcloud.GetFlinkRegionArgs{
    			Cloud:  "AWS",
    			Region: "us-east-1",
    		}, 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.GetFlinkRegion.Invoke(new()
        {
            Cloud = "AWS",
            Region = "us-east-1",
        });
    
        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.GetFlinkRegionArgs;
    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.getFlinkRegion(GetFlinkRegionArgs.builder()
                .cloud("AWS")
                .region("us-east-1")
                .build());
    
            ctx.export("example", example.applyValue(getFlinkRegionResult -> getFlinkRegionResult));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: confluentcloud:getFlinkRegion
          Arguments:
            cloud: AWS
            region: us-east-1
    outputs:
      example: ${example}
    

    Using getFlinkRegion

    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 getFlinkRegion(args: GetFlinkRegionArgs, opts?: InvokeOptions): Promise<GetFlinkRegionResult>
    function getFlinkRegionOutput(args: GetFlinkRegionOutputArgs, opts?: InvokeOptions): Output<GetFlinkRegionResult>
    def get_flink_region(cloud: Optional[str] = None,
                         region: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetFlinkRegionResult
    def get_flink_region_output(cloud: Optional[pulumi.Input[str]] = None,
                         region: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetFlinkRegionResult]
    func GetFlinkRegion(ctx *Context, args *GetFlinkRegionArgs, opts ...InvokeOption) (*GetFlinkRegionResult, error)
    func GetFlinkRegionOutput(ctx *Context, args *GetFlinkRegionOutputArgs, opts ...InvokeOption) GetFlinkRegionResultOutput

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

    public static class GetFlinkRegion 
    {
        public static Task<GetFlinkRegionResult> InvokeAsync(GetFlinkRegionArgs args, InvokeOptions? opts = null)
        public static Output<GetFlinkRegionResult> Invoke(GetFlinkRegionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFlinkRegionResult> getFlinkRegion(GetFlinkRegionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: confluentcloud:index/getFlinkRegion:getFlinkRegion
      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.
    Region string
    The cloud service provider region, for example, us-east-1.
    Cloud string
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    Region string
    The cloud service provider region, for example, us-east-1.
    cloud String
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    region String
    The cloud service provider region, for example, us-east-1.
    cloud string
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    region string
    The cloud service provider region, for example, us-east-1.
    cloud str
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    region str
    The cloud service provider region, for example, us-east-1.
    cloud String
    The cloud service provider that hosts the region. Accepted values are: AWS, AZURE, and GCP.
    region String
    The cloud service provider region, for example, us-east-1.

    getFlinkRegion Result

    The following output properties are available:

    ApiVersion string
    (Required String) An API Version of the Flink region, for example, fcpm/v2.
    Cloud string
    Id string
    (Required String) The ID of the Flink region, for example, aws.us-east-1.
    Kind string
    (Required String) A kind of the Flink region, for example, Region.
    Region string
    RestEndpoint string
    (Required String) The HTTP endpoint of the Flink region, for example, https://flink.us-east-1.aws.confluent.cloud.
    ApiVersion string
    (Required String) An API Version of the Flink region, for example, fcpm/v2.
    Cloud string
    Id string
    (Required String) The ID of the Flink region, for example, aws.us-east-1.
    Kind string
    (Required String) A kind of the Flink region, for example, Region.
    Region string
    RestEndpoint string
    (Required String) The HTTP endpoint of the Flink region, for example, https://flink.us-east-1.aws.confluent.cloud.
    apiVersion String
    (Required String) An API Version of the Flink region, for example, fcpm/v2.
    cloud String
    id String
    (Required String) The ID of the Flink region, for example, aws.us-east-1.
    kind String
    (Required String) A kind of the Flink region, for example, Region.
    region String
    restEndpoint String
    (Required String) The HTTP endpoint of the Flink region, for example, https://flink.us-east-1.aws.confluent.cloud.
    apiVersion string
    (Required String) An API Version of the Flink region, for example, fcpm/v2.
    cloud string
    id string
    (Required String) The ID of the Flink region, for example, aws.us-east-1.
    kind string
    (Required String) A kind of the Flink region, for example, Region.
    region string
    restEndpoint string
    (Required String) The HTTP endpoint of the Flink region, for example, https://flink.us-east-1.aws.confluent.cloud.
    api_version str
    (Required String) An API Version of the Flink region, for example, fcpm/v2.
    cloud str
    id str
    (Required String) The ID of the Flink region, for example, aws.us-east-1.
    kind str
    (Required String) A kind of the Flink region, for example, Region.
    region str
    rest_endpoint str
    (Required String) The HTTP endpoint of the Flink region, for example, https://flink.us-east-1.aws.confluent.cloud.
    apiVersion String
    (Required String) An API Version of the Flink region, for example, fcpm/v2.
    cloud String
    id String
    (Required String) The ID of the Flink region, for example, aws.us-east-1.
    kind String
    (Required String) A kind of the Flink region, for example, Region.
    region String
    restEndpoint String
    (Required String) The HTTP endpoint of the Flink region, for example, https://flink.us-east-1.aws.confluent.cloud.

    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