1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getCustomDnsConfigurationClusterAws
MongoDB Atlas v3.36.0 published on Friday, Aug 22, 2025 by Pulumi

mongodbatlas.getCustomDnsConfigurationClusterAws

Start a Neo task
Explain and create a mongodbatlas.getCustomDnsConfigurationClusterAws resource
mongodbatlas logo
MongoDB Atlas v3.36.0 published on Friday, Aug 22, 2025 by Pulumi

    # Data Source: mongodbatlas.CustomDnsConfigurationClusterAws

    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/v3/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 dictionary

    The following arguments are supported:

    ProjectId string
    Unique identifier for the project.
    ProjectId string
    Unique identifier for the project.
    projectId String
    Unique identifier for the project.
    projectId string
    Unique identifier for the project.
    project_id str
    Unique identifier for the project.
    projectId 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 string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Enabled bool
    Indicates whether the project's clusters deployed to AWS use custom DNS.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    enabled Boolean
    Indicates whether the project's clusters deployed to AWS use custom DNS.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    enabled boolean
    Indicates whether the project's clusters deployed to AWS use custom DNS.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    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
    enabled Boolean
    Indicates whether the project's clusters deployed to AWS use custom DNS.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v3.36.0 published on Friday, Aug 22, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate