Confluent v2.21.0 published on Wednesday, Mar 19, 2025 by Pulumi
confluentcloud.getGateway
Explore with Pulumi AI
confluentcloud.Gateway 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={
        "id": "env-123abc",
    })
pulumi.export("gateway", main)
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 {
		main, err := confluentcloud.LookupGateway(ctx, &confluentcloud.LookupGatewayArgs{
			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 LookupGateway(ctx *Context, args *LookupGatewayArgs, opts ...InvokeOption) (*LookupGatewayResult, error)
func LookupGatewayOutput(ctx *Context, args *LookupGatewayOutputArgs, opts ...InvokeOption) LookupGatewayResultOutput> Note: This function is named LookupGateway 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)
public static Output<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
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
GetGateway Environment 
- Id string
- The ID of the Gateway, for example, gw-abc123.
- environment
GetGateway Environment 
- id String
- The ID of the Gateway, for example, gw-abc123.
- environment
GetGateway Environment 
- id string
- The ID of the Gateway, for example, gw-abc123.
- environment
GetGateway 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:
- AwsEgress List<Pulumi.Private Link Gateways Confluent Cloud. Outputs. Get Gateway Aws Egress Private Link Gateway> 
- (Optional Configuration Block) supports the following:
- AwsPeering List<Pulumi.Gateways Confluent Cloud. Outputs. Get Gateway Aws Peering Gateway> 
- (Optional Configuration Block) supports the following:
- AwsPrivate List<Pulumi.Network Interface Gateways Confluent Cloud. Outputs. Get Gateway Aws Private Network Interface Gateway> 
- (Optional Configuration Block) supports the following:
- AzureEgress List<Pulumi.Private Link Gateways Confluent Cloud. Outputs. Get Gateway Azure Egress Private Link Gateway> 
- (Optional Configuration Block) supports the following:
- AzurePeering List<Pulumi.Gateways Confluent Cloud. Outputs. Get Gateway Azure Peering Gateway> 
- (Optional Configuration Block) supports the following:
- DisplayName string
- (Required String) A human-readable name for the Gateway.
- Environment
Pulumi.Confluent Cloud. Outputs. Get Gateway Environment 
- GcpEgress List<Pulumi.Private Service Connect Gateways Confluent Cloud. Outputs. Get Gateway Gcp Egress Private Service Connect Gateway> 
- (Optional Configuration Block) supports the following:
- GcpPeering List<Pulumi.Gateways Confluent Cloud. Outputs. Get Gateway Gcp Peering Gateway> 
- (Optional Configuration Block) supports the following:
- Id string
- AwsEgress []GetPrivate Link Gateways Gateway Aws Egress Private Link Gateway 
- (Optional Configuration Block) supports the following:
- AwsPeering []GetGateways Gateway Aws Peering Gateway 
- (Optional Configuration Block) supports the following:
- AwsPrivate []GetNetwork Interface Gateways Gateway Aws Private Network Interface Gateway 
- (Optional Configuration Block) supports the following:
- AzureEgress []GetPrivate Link Gateways Gateway Azure Egress Private Link Gateway 
- (Optional Configuration Block) supports the following:
- AzurePeering []GetGateways Gateway Azure Peering Gateway 
- (Optional Configuration Block) supports the following:
- DisplayName string
- (Required String) A human-readable name for the Gateway.
- Environment
GetGateway Environment 
- GcpEgress []GetPrivate Service Connect Gateways Gateway Gcp Egress Private Service Connect Gateway 
- (Optional Configuration Block) supports the following:
- GcpPeering []GetGateways Gateway Gcp Peering Gateway 
- (Optional Configuration Block) supports the following:
- Id string
- awsEgress List<GetPrivate Link Gateways Gateway Aws Egress Private Link Gateway> 
- (Optional Configuration Block) supports the following:
- awsPeering List<GetGateways Gateway Aws Peering Gateway> 
- (Optional Configuration Block) supports the following:
- awsPrivate List<GetNetwork Interface Gateways Gateway Aws Private Network Interface Gateway> 
- (Optional Configuration Block) supports the following:
- azureEgress List<GetPrivate Link Gateways Gateway Azure Egress Private Link Gateway> 
- (Optional Configuration Block) supports the following:
- azurePeering List<GetGateways Gateway Azure Peering Gateway> 
- (Optional Configuration Block) supports the following:
- displayName String
- (Required String) A human-readable name for the Gateway.
- environment
GetGateway Environment 
- gcpEgress List<GetPrivate Service Connect Gateways Gateway Gcp Egress Private Service Connect Gateway> 
- (Optional Configuration Block) supports the following:
- gcpPeering List<GetGateways Gateway Gcp Peering Gateway> 
- (Optional Configuration Block) supports the following:
- id String
- awsEgress GetPrivate Link Gateways Gateway Aws Egress Private Link Gateway[] 
- (Optional Configuration Block) supports the following:
- awsPeering GetGateways Gateway Aws Peering Gateway[] 
- (Optional Configuration Block) supports the following:
- awsPrivate GetNetwork Interface Gateways Gateway Aws Private Network Interface Gateway[] 
- (Optional Configuration Block) supports the following:
- azureEgress GetPrivate Link Gateways Gateway Azure Egress Private Link Gateway[] 
- (Optional Configuration Block) supports the following:
- azurePeering GetGateways Gateway Azure Peering Gateway[] 
- (Optional Configuration Block) supports the following:
- displayName string
- (Required String) A human-readable name for the Gateway.
- environment
GetGateway Environment 
- gcpEgress GetPrivate Service Connect Gateways Gateway Gcp Egress Private Service Connect Gateway[] 
- (Optional Configuration Block) supports the following:
- gcpPeering GetGateways Gateway Gcp Peering Gateway[] 
- (Optional Configuration Block) supports the following:
- 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:
- aws_private_ Sequence[Getnetwork_ interface_ gateways Gateway Aws Private Network Interface 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
GetGateway Environment 
- gcp_egress_ Sequence[Getprivate_ service_ connect_ gateways Gateway Gcp Egress Private Service Connect Gateway] 
- (Optional Configuration Block) supports the following:
- gcp_peering_ Sequence[Getgateways Gateway Gcp Peering Gateway] 
- (Optional Configuration Block) supports the following:
- id str
- awsEgress List<Property Map>Private Link Gateways 
- (Optional Configuration Block) supports the following:
- awsPeering List<Property Map>Gateways 
- (Optional Configuration Block) supports the following:
- awsPrivate List<Property Map>Network Interface Gateways 
- (Optional Configuration Block) supports the following:
- azureEgress List<Property Map>Private Link Gateways 
- (Optional Configuration Block) supports the following:
- azurePeering List<Property Map>Gateways 
- (Optional Configuration Block) supports the following:
- displayName String
- (Required String) A human-readable name for the Gateway.
- environment Property Map
- gcpEgress List<Property Map>Private Service Connect Gateways 
- (Optional Configuration Block) supports the following:
- gcpPeering List<Property Map>Gateways 
- (Optional Configuration Block) supports the following:
- id String
Supporting Types
GetGatewayAwsEgressPrivateLinkGateway      
- PrincipalArn string
- (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
- Region string
- (Required String) GCP region of the Peering Gateway.
- PrincipalArn string
- (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
- Region string
- (Required String) GCP region of the Peering Gateway.
- principalArn String
- (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
- region String
- (Required String) GCP region of the Peering Gateway.
- principalArn string
- (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
- region string
- (Required String) GCP 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) GCP region of the Peering Gateway.
- principalArn String
- (Required String) The principal ARN used by the AWS Egress Private Link Gateway.
- region String
- (Required String) GCP region of the Peering Gateway.
GetGatewayAwsPeeringGateway    
- Region string
- (Required String) GCP region of the Peering Gateway.
- Region string
- (Required String) GCP region of the Peering Gateway.
- region String
- (Required String) GCP region of the Peering Gateway.
- region string
- (Required String) GCP region of the Peering Gateway.
- region str
- (Required String) GCP region of the Peering Gateway.
- region String
- (Required String) GCP region of the Peering Gateway.
GetGatewayAwsPrivateNetworkInterfaceGateway      
GetGatewayAzureEgressPrivateLinkGateway      
- Region string
- (Required String) GCP region of the Peering Gateway.
- Subscription string
- (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
- Region string
- (Required String) GCP region of the Peering Gateway.
- Subscription string
- (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
- region String
- (Required String) GCP region of the Peering Gateway.
- subscription String
- (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
- region string
- (Required String) GCP region of the Peering Gateway.
- subscription string
- (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
- region str
- (Required String) GCP region of the Peering Gateway.
- subscription str
- (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
- region String
- (Required String) GCP region of the Peering Gateway.
- subscription String
- (Required String) The Azure Subscription ID associated with the Confluent Cloud VPC.
GetGatewayAzurePeeringGateway    
- Region string
- (Required String) GCP region of the Peering Gateway.
- Region string
- (Required String) GCP region of the Peering Gateway.
- region String
- (Required String) GCP region of the Peering Gateway.
- region string
- (Required String) GCP region of the Peering Gateway.
- region str
- (Required String) GCP region of the Peering Gateway.
- region String
- (Required String) GCP 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.
GetGatewayGcpEgressPrivateServiceConnectGateway       
GetGatewayGcpPeeringGateway    
- IamPrincipal string
- (Required String) The IAM principal used by the GCP Peering Gateway.
- Region string
- (Required String) GCP region of the Peering Gateway.
- IamPrincipal string
- (Required String) The IAM principal used by the GCP Peering Gateway.
- Region string
- (Required String) GCP region of the Peering Gateway.
- iamPrincipal String
- (Required String) The IAM principal used by the GCP Peering Gateway.
- region String
- (Required String) GCP region of the Peering Gateway.
- iamPrincipal string
- (Required String) The IAM principal used by the GCP Peering Gateway.
- region string
- (Required String) GCP region of the Peering Gateway.
- iam_principal str
- (Required String) The IAM principal used by the GCP Peering Gateway.
- region str
- (Required String) GCP region of the Peering Gateway.
- iamPrincipal String
- (Required String) The IAM principal used by the GCP Peering Gateway.
- region String
- (Required String) GCP region of the Peering Gateway.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the confluentTerraform Provider.