PrivateDnsNamespaceArgs

data class PrivateDnsNamespaceArgs(val description: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vpc: Output<String>? = null) : ConvertibleToJava<PrivateDnsNamespaceArgs>

Provides a Service Discovery Private DNS Namespace resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Vpc;
import com.pulumi.aws.ec2.VpcArgs;
import com.pulumi.aws.servicediscovery.PrivateDnsNamespace;
import com.pulumi.aws.servicediscovery.PrivateDnsNamespaceArgs;
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 exampleVpc = new Vpc("exampleVpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var examplePrivateDnsNamespace = new PrivateDnsNamespace("examplePrivateDnsNamespace", PrivateDnsNamespaceArgs.builder()
.description("example")
.vpc(exampleVpc.id())
.build());
}
}

Import

Service Discovery Private DNS Namespace can be imported using the namespace ID and VPC ID, e.g.,

$ pulumi import aws:servicediscovery/privateDnsNamespace:PrivateDnsNamespace example 0123456789:vpc-123345

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null, vpc: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

The description that you specify for the namespace when you create it.

Link copied to clipboard
val name: Output<String>? = null

The name of the namespace.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the namespace. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val vpc: Output<String>? = null

The ID of VPC that you want to associate the namespace with.

Functions

Link copied to clipboard
open override fun toJava(): PrivateDnsNamespaceArgs