Confluent v1.48.0 published on Friday, Jun 21, 2024 by Pulumi
confluentcloud.getGateway
Explore with Pulumi AI
confluentcloud.getGateway describes a Gateway data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const main = confluentcloud.getGateway({
    id: "gw-abc123",
    environment: {
        id: "env-123abc",
    },
});
export const gateway = main;
import pulumi
import pulumi_confluentcloud as confluentcloud
main = confluentcloud.get_gateway(id="gw-abc123",
    environment=confluentcloud.GetGatewayEnvironmentArgs(
        id="env-123abc",
    ))
pulumi.export("gateway", main)
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 {
		main, err := confluentcloud.GetGateway(ctx, &confluentcloud.GetGatewayArgs{
			Id: "gw-abc123",
			Environment: confluentcloud.GetGatewayEnvironment{
				Id: "env-123abc",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gateway", main)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() => 
{
    var main = ConfluentCloud.GetGateway.Invoke(new()
    {
        Id = "gw-abc123",
        Environment = new ConfluentCloud.Inputs.GetGatewayEnvironmentInputArgs
        {
            Id = "env-123abc",
        },
    });
    return new Dictionary<string, object?>
    {
        ["gateway"] = main,
    };
});
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.GetGatewayArgs;
import com.pulumi.confluentcloud.inputs.GetGatewayEnvironmentArgs;
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 main = ConfluentcloudFunctions.getGateway(GetGatewayArgs.builder()
            .id("gw-abc123")
            .environment(GetGatewayEnvironmentArgs.builder()
                .id("env-123abc")
                .build())
            .build());
        ctx.export("gateway", main.applyValue(getGatewayResult -> getGatewayResult));
    }
}
variables:
  main:
    fn::invoke:
      Function: confluentcloud:getGateway
      Arguments:
        id: gw-abc123
        environment:
          id: env-123abc
outputs:
  gateway: ${main}
Using getGateway
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 getGateway(args: GetGatewayArgs, opts?: InvokeOptions): Promise<GetGatewayResult>
function getGatewayOutput(args: GetGatewayOutputArgs, opts?: InvokeOptions): Output<GetGatewayResult>def get_gateway(environment: Optional[GetGatewayEnvironment] = None,
                id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetGatewayResult
def get_gateway_output(environment: Optional[pulumi.Input[GetGatewayEnvironmentArgs]] = None,
                id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetGatewayResult]func GetGateway(ctx *Context, args *GetGatewayArgs, opts ...InvokeOption) (*GetGatewayResult, error)
func GetGatewayOutput(ctx *Context, args *GetGatewayOutputArgs, opts ...InvokeOption) GetGatewayResultOutput> Note: This function is named GetGateway in the Go SDK.
public static class GetGateway 
{
    public static Task<GetGatewayResult> InvokeAsync(GetGatewayArgs args, InvokeOptions? opts = null)
    public static Output<GetGatewayResult> Invoke(GetGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: confluentcloud:index/getGateway:getGateway
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Environment
Pulumi.
Confluent Cloud. Inputs. Get Gateway Environment  - Id string
 - The ID of the Gateway, for example, 
gw-abc123. 
- Environment
Get
Gateway Environment  - Id string
 - The ID of the Gateway, for example, 
gw-abc123. 
- environment
Get
Gateway Environment  - id String
 - The ID of the Gateway, for example, 
gw-abc123. 
- environment
Get
Gateway Environment  - id string
 - The ID of the Gateway, for example, 
gw-abc123. 
- environment
Get
Gateway Environment  - id str
 - The ID of the Gateway, for example, 
gw-abc123. 
- environment Property Map
 - id String
 - The ID of the Gateway, for example, 
gw-abc123. 
getGateway Result
The following output properties are available:
- Aws
Egress List<Pulumi.Private Link Gateways Confluent Cloud. Outputs. Get Gateway Aws Egress Private Link Gateway>  - (Optional Configuration Block) supports the following:
 - Aws
Peering List<Pulumi.Gateways Confluent Cloud. Outputs. Get Gateway Aws Peering Gateway>  - (Optional Configuration Block) supports the following:
 - Azure
Egress List<Pulumi.Private Link Gateways Confluent Cloud. Outputs. Get Gateway Azure Egress Private Link Gateway>  - (Optional Configuration Block) supports the following:
 - Azure
Peering List<Pulumi.Gateways Confluent Cloud. Outputs. Get Gateway Azure Peering Gateway>  - (Optional Configuration Block) supports the following:
 - Display
Name string - (Required String) A human-readable name for the Gateway.
 - Environment
Pulumi.
Confluent Cloud. Outputs. Get Gateway Environment  - Id string
 
- Aws
Egress []GetPrivate Link Gateways Gateway Aws Egress Private Link Gateway  - (Optional Configuration Block) supports the following:
 - Aws
Peering []GetGateways Gateway Aws Peering Gateway  - (Optional Configuration Block) supports the following:
 - Azure
Egress []GetPrivate Link Gateways Gateway Azure Egress Private Link Gateway  - (Optional Configuration Block) supports the following:
 - Azure
Peering []GetGateways Gateway Azure Peering Gateway  - (Optional Configuration Block) supports the following:
 - Display
Name string - (Required String) A human-readable name for the Gateway.
 - Environment
Get
Gateway Environment  - Id string
 
- aws
Egress List<GetPrivate Link Gateways Gateway Aws Egress Private Link Gateway>  - (Optional Configuration Block) supports the following:
 - aws
Peering List<GetGateways Gateway Aws Peering Gateway>  - (Optional Configuration Block) supports the following:
 - azure
Egress List<GetPrivate Link Gateways Gateway Azure Egress Private Link Gateway>  - (Optional Configuration Block) supports the following:
 - azure
Peering List<GetGateways Gateway Azure Peering Gateway>  - (Optional Configuration Block) supports the following:
 - display
Name String - (Required String) A human-readable name for the Gateway.
 - environment
Get
Gateway Environment  - id String
 
- aws
Egress GetPrivate Link Gateways Gateway Aws Egress Private Link Gateway[]  - (Optional Configuration Block) supports the following:
 - aws
Peering GetGateways Gateway Aws Peering Gateway[]  - (Optional Configuration Block) supports the following:
 - azure
Egress GetPrivate Link Gateways Gateway Azure Egress Private Link Gateway[]  - (Optional Configuration Block) supports the following:
 - azure
Peering GetGateways Gateway Azure Peering Gateway[]  - (Optional Configuration Block) supports the following:
 - display
Name string - (Required String) A human-readable name for the Gateway.
 - environment
Get
Gateway Environment  - id string
 
- aws_
egress_ Sequence[Getprivate_ link_ gateways Gateway Aws Egress Private Link Gateway]  - (Optional Configuration Block) supports the following:
 - aws_
peering_ Sequence[Getgateways Gateway Aws Peering Gateway]  - (Optional Configuration Block) supports the following:
 - azure_
egress_ Sequence[Getprivate_ link_ gateways Gateway Azure Egress Private Link Gateway]  - (Optional Configuration Block) supports the following:
 - azure_
peering_ Sequence[Getgateways Gateway Azure Peering Gateway]  - (Optional Configuration Block) supports the following:
 - display_
name str - (Required String) A human-readable name for the Gateway.
 - environment
Get
Gateway Environment  - id str
 
- aws
Egress List<Property Map>Private Link Gateways  - (Optional Configuration Block) supports the following:
 - aws
Peering List<Property Map>Gateways  - (Optional Configuration Block) supports the following:
 - azure
Egress List<Property Map>Private Link Gateways  - (Optional Configuration Block) supports the following:
 - azure
Peering List<Property Map>Gateways  - (Optional Configuration Block) supports the following:
 - display
Name String - (Required String) A human-readable name for the Gateway.
 - environment Property Map
 - id String
 
Supporting Types
GetGatewayAwsEgressPrivateLinkGateway      
- Principal
Arn string - (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
 - Region string
 - (Required String) Azure region of the Peering Gateway.
 
- Principal
Arn string - (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
 - Region string
 - (Required String) Azure region of the Peering Gateway.
 
- principal
Arn String - (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
 - region String
 - (Required String) Azure region of the Peering Gateway.
 
- principal
Arn string - (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
 - region string
 - (Required String) Azure region of the Peering Gateway.
 
- principal_
arn str - (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
 - region str
 - (Required String) Azure region of the Peering Gateway.
 
- principal
Arn String - (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
 - region String
 - (Required String) Azure region of the Peering Gateway.
 
GetGatewayAwsPeeringGateway    
- Region string
 - (Required String) Azure region of the Peering Gateway.
 
- Region string
 - (Required String) Azure region of the Peering Gateway.
 
- region String
 - (Required String) Azure region of the Peering Gateway.
 
- region string
 - (Required String) Azure region of the Peering Gateway.
 
- region str
 - (Required String) Azure region of the Peering Gateway.
 
- region String
 - (Required String) Azure region of the Peering Gateway.
 
GetGatewayAzureEgressPrivateLinkGateway      
- Region string
 - (Required String) Azure region of the Peering Gateway.
 - Subscription string
 - (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
 
- Region string
 - (Required String) Azure region of the Peering Gateway.
 - Subscription string
 - (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
 
- region String
 - (Required String) Azure region of the Peering Gateway.
 - subscription String
 - (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
 
- region string
 - (Required String) Azure region of the Peering Gateway.
 - subscription string
 - (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
 
- region str
 - (Required String) Azure region of the Peering Gateway.
 - subscription str
 - (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
 
- region String
 - (Required String) Azure region of the Peering Gateway.
 - subscription String
 - (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
 
GetGatewayAzurePeeringGateway    
- Region string
 - (Required String) Azure region of the Peering Gateway.
 
- Region string
 - (Required String) Azure region of the Peering Gateway.
 
- region String
 - (Required String) Azure region of the Peering Gateway.
 
- region string
 - (Required String) Azure region of the Peering Gateway.
 
- region str
 - (Required String) Azure region of the Peering Gateway.
 
- region String
 - (Required String) Azure region of the Peering Gateway.
 
GetGatewayEnvironment  
- Id string
 - The ID of the Environment that the Gateway belongs to, for example, 
env-123abc. 
- Id string
 - The ID of the Environment that the Gateway belongs to, for example, 
env-123abc. 
- id String
 - The ID of the Environment that the Gateway belongs to, for example, 
env-123abc. 
- id string
 - The ID of the Environment that the Gateway belongs to, for example, 
env-123abc. 
- id str
 - The ID of the Environment that the Gateway belongs to, for example, 
env-123abc. 
- id String
 - The ID of the Environment that the Gateway belongs to, for example, 
env-123abc. 
Package Details
- Repository
 - Confluent Cloud pulumi/pulumi-confluentcloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
confluentTerraform Provider.