Viewing docs for Confluent v2.82.0
published on Saturday, Sep 12, 2026 by Pulumi
published on Saturday, Sep 12, 2026 by Pulumi
Viewing docs for Confluent v2.82.0
published on Saturday, Sep 12, 2026 by Pulumi
published on Saturday, Sep 12, 2026 by Pulumi
confluentcloud.DnsForwarder describes a DNS Forwarder data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
export = async () => {
const example = await confluentcloud.getDnsForwarder({
id: "dnsf-abc123",
environment: {
id: "env-xyz456",
},
});
return {
example: example,
};
}
import pulumi
import pulumi_confluentcloud as confluentcloud
example = confluentcloud.get_dns_forwarder(id="dnsf-abc123",
environment={
"id": "env-xyz456",
})
pulumi.export("example", example)
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 {
example, err := confluentcloud.GetDnsForwarder(ctx, &confluentcloud.LookupDnsForwarderArgs{
Id: "dnsf-abc123",
Environment: confluentcloud.GetDnsForwarderEnvironment{
Id: "env-xyz456",
},
}, 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.GetDnsForwarder.Invoke(new()
{
Id = "dnsf-abc123",
Environment = new ConfluentCloud.Inputs.GetDnsForwarderEnvironmentInputArgs
{
Id = "env-xyz456",
},
});
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.GetDnsForwarderArgs;
import com.pulumi.confluentcloud.inputs.GetDnsForwarderEnvironmentArgs;
import java.util.ArrayList;
import java.util.Arrays;
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.getDnsForwarder(GetDnsForwarderArgs.builder()
.id("dnsf-abc123")
.environment(GetDnsForwarderEnvironmentArgs.builder()
.id("env-xyz456")
.build())
.build());
ctx.export("example", example);
}
}
variables:
example:
fn::invoke:
function: confluentcloud:getDnsForwarder
arguments:
id: dnsf-abc123
environment:
id: env-xyz456
outputs:
example: ${example}
pulumi {
required_providers {
confluentcloud = {
source = "pulumi/confluentcloud"
}
}
}
data "confluentcloud_getdnsforwarder" "example" {
id = "dnsf-abc123"
environment = {
id = "env-xyz456"
}
}
output "example" {
value = data.confluentcloud_getdnsforwarder.example
}
Getting Started
The following end-to-end example might help to get started with confluentcloud.DnsForwarder data source:
- dns-forwarder: creates a
confluentcloud.DnsForwarderresource that forwards a domain via GCP DNS zones for a GCP Peering network, using aconfluentcloud.Gatewaydata source to look up the network’s gateway.
Using getDnsForwarder
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 getDnsForwarder(args: GetDnsForwarderArgs, opts?: InvokeOptions): Promise<GetDnsForwarderResult>
function getDnsForwarderOutput(args: GetDnsForwarderOutputArgs, opts?: InvokeOutputOptions): Output<GetDnsForwarderResult>def get_dns_forwarder(environment: Optional[GetDnsForwarderEnvironment] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsForwarderResult
def get_dns_forwarder_output(environment: pulumi.Input[Optional[GetDnsForwarderEnvironmentArgs]] = None,
id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetDnsForwarderResult]func LookupDnsForwarder(ctx *Context, args *LookupDnsForwarderArgs, opts ...InvokeOption) (*LookupDnsForwarderResult, error)
func LookupDnsForwarderOutput(ctx *Context, args *LookupDnsForwarderOutputArgs, opts ...InvokeOption) LookupDnsForwarderResultOutput> Note: This function is named LookupDnsForwarder in the Go SDK.
public static class GetDnsForwarder
{
public static Task<GetDnsForwarderResult> InvokeAsync(GetDnsForwarderArgs args, InvokeOptions? opts = null)
public static Output<GetDnsForwarderResult> Invoke(GetDnsForwarderInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetDnsForwarderResult> Invoke(GetDnsForwarderInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetDnsForwarderResult> getDnsForwarder(GetDnsForwarderArgs args, InvokeOptions options)
public static Output<GetDnsForwarderResult> getDnsForwarder(GetDnsForwarderArgs args, InvokeOptions options)
public static Output<GetDnsForwarderResult> getDnsForwarder(GetDnsForwarderArgs args, InvokeOutputOptions options)
fn::invoke:
function: confluentcloud:index/getDnsForwarder:getDnsForwarder
arguments:
# arguments dictionarydata "confluentcloud_get_dns_forwarder" "name" {
# arguments
}The following arguments are supported:
- Environment
Pulumi.
Confluent Cloud. Inputs. Get Dns Forwarder Environment - Supports the following:
- Id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- Environment
Get
Dns Forwarder Environment - Supports the following:
- Id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- environment object
- Supports the following:
- id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- environment
Get
Dns Forwarder Environment - Supports the following:
- id String
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- environment
Get
Dns Forwarder Environment - Supports the following:
- id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- environment
Get
Dns Forwarder Environment - Supports the following:
- id str
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- environment Property Map
- Supports the following:
- id String
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
getDnsForwarder Result
The following output properties are available:
- Display
Name string - (String) The name of the DNS forwarder
- Domains List<string>
- (Set of Strings) List of domains for the DNS forwarder to use
- Environment
Pulumi.
Confluent Cloud. Outputs. Get Dns Forwarder Environment - Forward
Via List<Pulumi.Gcp Dns Zones Confluent Cloud. Outputs. Get Dns Forwarder Forward Via Gcp Dns Zone> - (Configuration Block) Supports the following:
- Forward
Via List<Pulumi.Ips Confluent Cloud. Outputs. Get Dns Forwarder Forward Via Ip> - (Configuration Block) Supports the following:
- Gateways
List<Pulumi.
Confluent Cloud. Outputs. Get Dns Forwarder Gateway> - (Configuration Block) The gateway to which this belongs. Supports the following:
- Id string
- (String) The ID of the Gateway.
- Display
Name string - (String) The name of the DNS forwarder
- Domains []string
- (Set of Strings) List of domains for the DNS forwarder to use
- Environment
Get
Dns Forwarder Environment - Forward
Via []GetGcp Dns Zones Dns Forwarder Forward Via Gcp Dns Zone - (Configuration Block) Supports the following:
- Forward
Via []GetIps Dns Forwarder Forward Via Ip - (Configuration Block) Supports the following:
- Gateways
[]Get
Dns Forwarder Gateway - (Configuration Block) The gateway to which this belongs. Supports the following:
- Id string
- (String) The ID of the Gateway.
- display_
name string - (String) The name of the DNS forwarder
- domains list(string)
- (Set of Strings) List of domains for the DNS forwarder to use
- environment object
- forward_
via_ list(object)gcp_ dns_ zones - (Configuration Block) Supports the following:
- forward_
via_ list(object)ips - (Configuration Block) Supports the following:
- gateways list(object)
- (Configuration Block) The gateway to which this belongs. Supports the following:
- id string
- (String) The ID of the Gateway.
- display
Name String - (String) The name of the DNS forwarder
- domains List<String>
- (Set of Strings) List of domains for the DNS forwarder to use
- environment
Get
Dns Forwarder Environment - forward
Via List<GetGcp Dns Zones Dns Forwarder Forward Via Gcp Dns Zone> - (Configuration Block) Supports the following:
- forward
Via List<GetIps Dns Forwarder Forward Via Ip> - (Configuration Block) Supports the following:
- gateways
List<Get
Dns Forwarder Gateway> - (Configuration Block) The gateway to which this belongs. Supports the following:
- id String
- (String) The ID of the Gateway.
- display
Name string - (String) The name of the DNS forwarder
- domains string[]
- (Set of Strings) List of domains for the DNS forwarder to use
- environment
Get
Dns Forwarder Environment - forward
Via GetGcp Dns Zones Dns Forwarder Forward Via Gcp Dns Zone[] - (Configuration Block) Supports the following:
- forward
Via GetIps Dns Forwarder Forward Via Ip[] - (Configuration Block) Supports the following:
- gateways
Get
Dns Forwarder Gateway[] - (Configuration Block) The gateway to which this belongs. Supports the following:
- id string
- (String) The ID of the Gateway.
- display_
name str - (String) The name of the DNS forwarder
- domains Sequence[str]
- (Set of Strings) List of domains for the DNS forwarder to use
- environment
Get
Dns Forwarder Environment - forward_
via_ Sequence[Getgcp_ dns_ zones Dns Forwarder Forward Via Gcp Dns Zone] - (Configuration Block) Supports the following:
- forward_
via_ Sequence[Getips Dns Forwarder Forward Via Ip] - (Configuration Block) Supports the following:
- gateways
Sequence[Get
Dns Forwarder Gateway] - (Configuration Block) The gateway to which this belongs. Supports the following:
- id str
- (String) The ID of the Gateway.
- display
Name String - (String) The name of the DNS forwarder
- domains List<String>
- (Set of Strings) List of domains for the DNS forwarder to use
- environment Property Map
- forward
Via List<Property Map>Gcp Dns Zones - (Configuration Block) Supports the following:
- forward
Via List<Property Map>Ips - (Configuration Block) Supports the following:
- gateways List<Property Map>
- (Configuration Block) The gateway to which this belongs. Supports the following:
- id String
- (String) The ID of the Gateway.
Supporting Types
GetDnsForwarderEnvironment
- Id string
- The ID of the Environment that the DNS Forwarder belongs to, for example,
env-xyz456.
- Id string
- The ID of the Environment that the DNS Forwarder belongs to, for example,
env-xyz456.
- id string
- The ID of the Environment that the DNS Forwarder belongs to, for example,
env-xyz456.
- id String
- The ID of the Environment that the DNS Forwarder belongs to, for example,
env-xyz456.
- id string
- The ID of the Environment that the DNS Forwarder belongs to, for example,
env-xyz456.
- id str
- The ID of the Environment that the DNS Forwarder belongs to, for example,
env-xyz456.
- id String
- The ID of the Environment that the DNS Forwarder belongs to, for example,
env-xyz456.
GetDnsForwarderForwardViaGcpDnsZone
- Domain
Mappings Dictionary<string, string> - (Map of String) Mapping of domain names to GCP DNS Zones and Project ID.
- Domain
Mappings map[string]string - (Map of String) Mapping of domain names to GCP DNS Zones and Project ID.
- domain_
mappings map(string) - (Map of String) Mapping of domain names to GCP DNS Zones and Project ID.
- domain
Mappings Map<String,String> - (Map of String) Mapping of domain names to GCP DNS Zones and Project ID.
- domain
Mappings {[key: string]: string} - (Map of String) Mapping of domain names to GCP DNS Zones and Project ID.
- domain_
mappings Mapping[str, str] - (Map of String) Mapping of domain names to GCP DNS Zones and Project ID.
- domain
Mappings Map<String> - (Map of String) Mapping of domain names to GCP DNS Zones and Project ID.
GetDnsForwarderForwardViaIp
- Dns
Server List<string>Ips - (Set of Strings) List of IP addresses of the DNS server
- Dns
Server []stringIps - (Set of Strings) List of IP addresses of the DNS server
- dns_
server_ list(string)ips - (Set of Strings) List of IP addresses of the DNS server
- dns
Server List<String>Ips - (Set of Strings) List of IP addresses of the DNS server
- dns
Server string[]Ips - (Set of Strings) List of IP addresses of the DNS server
- dns_
server_ Sequence[str]ips - (Set of Strings) List of IP addresses of the DNS server
- dns
Server List<String>Ips - (Set of Strings) List of IP addresses of the DNS server
GetDnsForwarderGateway
- Id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- Id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- id String
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- id string
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- id str
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
- id String
- The ID of the DNS Forwarder, for example,
dnsf-abc123.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluentTerraform Provider.
Viewing docs for Confluent v2.82.0
published on Saturday, Sep 12, 2026 by Pulumi
published on Saturday, Sep 12, 2026 by Pulumi