Confluent v1.48.0 published on Friday, Jun 21, 2024 by Pulumi
confluentcloud.getDnsRecord
Explore with Pulumi AI
confluentcloud.DnsRecord
describes a DNS Record data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const main = confluentcloud.getDnsRecord({
id: "dnsrec-abc123",
environment: {
id: "env-123abc",
},
});
export const dnsRecord = main;
import pulumi
import pulumi_confluentcloud as confluentcloud
main = confluentcloud.get_dns_record(id="dnsrec-abc123",
environment=confluentcloud.GetDnsRecordEnvironmentArgs(
id="env-123abc",
))
pulumi.export("dnsRecord", 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.LookupDnsRecord(ctx, &confluentcloud.LookupDnsRecordArgs{
Id: "dnsrec-abc123",
Environment: confluentcloud.GetDnsRecordEnvironment{
Id: "env-123abc",
},
}, nil)
if err != nil {
return err
}
ctx.Export("dnsRecord", main)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var main = ConfluentCloud.GetDnsRecord.Invoke(new()
{
Id = "dnsrec-abc123",
Environment = new ConfluentCloud.Inputs.GetDnsRecordEnvironmentInputArgs
{
Id = "env-123abc",
},
});
return new Dictionary<string, object?>
{
["dnsRecord"] = 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.GetDnsRecordArgs;
import com.pulumi.confluentcloud.inputs.GetDnsRecordEnvironmentArgs;
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.getDnsRecord(GetDnsRecordArgs.builder()
.id("dnsrec-abc123")
.environment(GetDnsRecordEnvironmentArgs.builder()
.id("env-123abc")
.build())
.build());
ctx.export("dnsRecord", main.applyValue(getDnsRecordResult -> getDnsRecordResult));
}
}
variables:
main:
fn::invoke:
Function: confluentcloud:getDnsRecord
Arguments:
id: dnsrec-abc123
environment:
id: env-123abc
outputs:
dnsRecord: ${main}
Using getDnsRecord
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 getDnsRecord(args: GetDnsRecordArgs, opts?: InvokeOptions): Promise<GetDnsRecordResult>
function getDnsRecordOutput(args: GetDnsRecordOutputArgs, opts?: InvokeOptions): Output<GetDnsRecordResult>
def get_dns_record(environment: Optional[GetDnsRecordEnvironment] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsRecordResult
def get_dns_record_output(environment: Optional[pulumi.Input[GetDnsRecordEnvironmentArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnsRecordResult]
func LookupDnsRecord(ctx *Context, args *LookupDnsRecordArgs, opts ...InvokeOption) (*LookupDnsRecordResult, error)
func LookupDnsRecordOutput(ctx *Context, args *LookupDnsRecordOutputArgs, opts ...InvokeOption) LookupDnsRecordResultOutput
> Note: This function is named LookupDnsRecord
in the Go SDK.
public static class GetDnsRecord
{
public static Task<GetDnsRecordResult> InvokeAsync(GetDnsRecordArgs args, InvokeOptions? opts = null)
public static Output<GetDnsRecordResult> Invoke(GetDnsRecordInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDnsRecordResult> getDnsRecord(GetDnsRecordArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: confluentcloud:index/getDnsRecord:getDnsRecord
arguments:
# arguments dictionary
The following arguments are supported:
- Environment
Pulumi.
Confluent Cloud. Inputs. Get Dns Record Environment - Id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- Environment
Get
Dns Record Environment - Id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- environment
Get
Dns Record Environment - id String
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- environment
Get
Dns Record Environment - id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- environment
Get
Dns Record Environment - id str
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- environment Property Map
- id String
- The ID of the DNS Record, for example,
dnsrec-abc123
.
getDnsRecord Result
The following output properties are available:
- Display
Name string - (Required String) A human-readable name for the DNS Record.
- Domain string
- (Required String) The fully qualified domain name of the DNS Record.
- Environment
Pulumi.
Confluent Cloud. Outputs. Get Dns Record Environment - Gateways
List<Pulumi.
Confluent Cloud. Outputs. Get Dns Record Gateway> - (Required Configuration Block) supports the following:
- Id string
- (Required String) The ID of the Private Link access point to which the DNS Record is associated, for example
ap-123abc
. - Private
Link List<Pulumi.Access Points Confluent Cloud. Outputs. Get Dns Record Private Link Access Point> - (Required Configuration Block) supports the following:
- Display
Name string - (Required String) A human-readable name for the DNS Record.
- Domain string
- (Required String) The fully qualified domain name of the DNS Record.
- Environment
Get
Dns Record Environment - Gateways
[]Get
Dns Record Gateway - (Required Configuration Block) supports the following:
- Id string
- (Required String) The ID of the Private Link access point to which the DNS Record is associated, for example
ap-123abc
. - Private
Link []GetAccess Points Dns Record Private Link Access Point - (Required Configuration Block) supports the following:
- display
Name String - (Required String) A human-readable name for the DNS Record.
- domain String
- (Required String) The fully qualified domain name of the DNS Record.
- environment
Get
Dns Record Environment - gateways
List<Get
Dns Record Gateway> - (Required Configuration Block) supports the following:
- id String
- (Required String) The ID of the Private Link access point to which the DNS Record is associated, for example
ap-123abc
. - private
Link List<GetAccess Points Dns Record Private Link Access Point> - (Required Configuration Block) supports the following:
- display
Name string - (Required String) A human-readable name for the DNS Record.
- domain string
- (Required String) The fully qualified domain name of the DNS Record.
- environment
Get
Dns Record Environment - gateways
Get
Dns Record Gateway[] - (Required Configuration Block) supports the following:
- id string
- (Required String) The ID of the Private Link access point to which the DNS Record is associated, for example
ap-123abc
. - private
Link GetAccess Points Dns Record Private Link Access Point[] - (Required Configuration Block) supports the following:
- display_
name str - (Required String) A human-readable name for the DNS Record.
- domain str
- (Required String) The fully qualified domain name of the DNS Record.
- environment
Get
Dns Record Environment - gateways
Sequence[Get
Dns Record Gateway] - (Required Configuration Block) supports the following:
- id str
- (Required String) The ID of the Private Link access point to which the DNS Record is associated, for example
ap-123abc
. - private_
link_ Sequence[Getaccess_ points Dns Record Private Link Access Point] - (Required Configuration Block) supports the following:
- display
Name String - (Required String) A human-readable name for the DNS Record.
- domain String
- (Required String) The fully qualified domain name of the DNS Record.
- environment Property Map
- gateways List<Property Map>
- (Required Configuration Block) supports the following:
- id String
- (Required String) The ID of the Private Link access point to which the DNS Record is associated, for example
ap-123abc
. - private
Link List<Property Map>Access Points - (Required Configuration Block) supports the following:
Supporting Types
GetDnsRecordEnvironment
- Id string
- The ID of the Environment that the DNS Record belongs to, for example,
env-123abc
.
- Id string
- The ID of the Environment that the DNS Record belongs to, for example,
env-123abc
.
- id String
- The ID of the Environment that the DNS Record belongs to, for example,
env-123abc
.
- id string
- The ID of the Environment that the DNS Record belongs to, for example,
env-123abc
.
- id str
- The ID of the Environment that the DNS Record belongs to, for example,
env-123abc
.
- id String
- The ID of the Environment that the DNS Record belongs to, for example,
env-123abc
.
GetDnsRecordGateway
- Id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- Id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id String
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id str
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id String
- The ID of the DNS Record, for example,
dnsrec-abc123
.
GetDnsRecordPrivateLinkAccessPoint
- Id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- Id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id String
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id string
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id str
- The ID of the DNS Record, for example,
dnsrec-abc123
.
- id String
- The ID of the DNS Record, for example,
dnsrec-abc123
.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.