Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
mongodbatlas.CustomDnsConfigurationClusterAws describes a Custom DNS Configuration for Atlas Clusters on AWS.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testCustomDnsConfigurationClusterAws = new mongodbatlas.CustomDnsConfigurationClusterAws("test", {
projectId: "<project-id>",
enabled: true,
});
const test = mongodbatlas.getCustomDnsConfigurationClusterAwsOutput({
projectId: testCustomDnsConfigurationClusterAws.id,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_custom_dns_configuration_cluster_aws = mongodbatlas.CustomDnsConfigurationClusterAws("test",
project_id="<project-id>",
enabled=True)
test = mongodbatlas.get_custom_dns_configuration_cluster_aws_output(project_id=test_custom_dns_configuration_cluster_aws.id)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testCustomDnsConfigurationClusterAws, err := mongodbatlas.NewCustomDnsConfigurationClusterAws(ctx, "test", &mongodbatlas.CustomDnsConfigurationClusterAwsArgs{
ProjectId: pulumi.String("<project-id>"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
_ = mongodbatlas.LookupCustomDnsConfigurationClusterAwsOutput(ctx, mongodbatlas.GetCustomDnsConfigurationClusterAwsOutputArgs{
ProjectId: testCustomDnsConfigurationClusterAws.ID(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testCustomDnsConfigurationClusterAws = new Mongodbatlas.CustomDnsConfigurationClusterAws("test", new()
{
ProjectId = "<project-id>",
Enabled = true,
});
var test = Mongodbatlas.GetCustomDnsConfigurationClusterAws.Invoke(new()
{
ProjectId = testCustomDnsConfigurationClusterAws.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.CustomDnsConfigurationClusterAws;
import com.pulumi.mongodbatlas.CustomDnsConfigurationClusterAwsArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetCustomDnsConfigurationClusterAwsArgs;
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) {
var testCustomDnsConfigurationClusterAws = new CustomDnsConfigurationClusterAws("testCustomDnsConfigurationClusterAws", CustomDnsConfigurationClusterAwsArgs.builder()
.projectId("<project-id>")
.enabled(true)
.build());
final var test = MongodbatlasFunctions.getCustomDnsConfigurationClusterAws(GetCustomDnsConfigurationClusterAwsArgs.builder()
.projectId(testCustomDnsConfigurationClusterAws.id())
.build());
}
}
resources:
testCustomDnsConfigurationClusterAws:
type: mongodbatlas:CustomDnsConfigurationClusterAws
name: test
properties:
projectId: <project-id>
enabled: true
variables:
test:
fn::invoke:
function: mongodbatlas:getCustomDnsConfigurationClusterAws
arguments:
projectId: ${testCustomDnsConfigurationClusterAws.id}
Using getCustomDnsConfigurationClusterAws
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 getCustomDnsConfigurationClusterAws(args: GetCustomDnsConfigurationClusterAwsArgs, opts?: InvokeOptions): Promise<GetCustomDnsConfigurationClusterAwsResult>
function getCustomDnsConfigurationClusterAwsOutput(args: GetCustomDnsConfigurationClusterAwsOutputArgs, opts?: InvokeOptions): Output<GetCustomDnsConfigurationClusterAwsResult>def get_custom_dns_configuration_cluster_aws(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCustomDnsConfigurationClusterAwsResult
def get_custom_dns_configuration_cluster_aws_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCustomDnsConfigurationClusterAwsResult]func LookupCustomDnsConfigurationClusterAws(ctx *Context, args *LookupCustomDnsConfigurationClusterAwsArgs, opts ...InvokeOption) (*LookupCustomDnsConfigurationClusterAwsResult, error)
func LookupCustomDnsConfigurationClusterAwsOutput(ctx *Context, args *LookupCustomDnsConfigurationClusterAwsOutputArgs, opts ...InvokeOption) LookupCustomDnsConfigurationClusterAwsResultOutput> Note: This function is named LookupCustomDnsConfigurationClusterAws in the Go SDK.
public static class GetCustomDnsConfigurationClusterAws
{
public static Task<GetCustomDnsConfigurationClusterAwsResult> InvokeAsync(GetCustomDnsConfigurationClusterAwsArgs args, InvokeOptions? opts = null)
public static Output<GetCustomDnsConfigurationClusterAwsResult> Invoke(GetCustomDnsConfigurationClusterAwsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomDnsConfigurationClusterAwsResult> getCustomDnsConfigurationClusterAws(GetCustomDnsConfigurationClusterAwsArgs args, InvokeOptions options)
public static Output<GetCustomDnsConfigurationClusterAwsResult> getCustomDnsConfigurationClusterAws(GetCustomDnsConfigurationClusterAwsArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getCustomDnsConfigurationClusterAws:getCustomDnsConfigurationClusterAws
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - Unique identifier for the project.
- Project
Id string - Unique identifier for the project.
- project
Id String - Unique identifier for the project.
- project
Id string - Unique identifier for the project.
- project_
id str - Unique identifier for the project.
- project
Id String - Unique identifier for the project.
getCustomDnsConfigurationClusterAws Result
The following output properties are available:
- enabled bool
- Indicates whether the project's clusters deployed to AWS use custom DNS.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
