PublicDnsNamespace

class PublicDnsNamespace : KotlinCustomResource

Provides a Service Discovery Public DNS Namespace resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.servicediscovery.PublicDnsNamespace("example", {
name: "hoge.example.com",
description: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.servicediscovery.PublicDnsNamespace("example",
name="hoge.example.com",
description="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ServiceDiscovery.PublicDnsNamespace("example", new()
{
Name = "hoge.example.com",
Description = "example",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/servicediscovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicediscovery.NewPublicDnsNamespace(ctx, "example", &servicediscovery.PublicDnsNamespaceArgs{
Name: pulumi.String("hoge.example.com"),
Description: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicediscovery.PublicDnsNamespace;
import com.pulumi.aws.servicediscovery.PublicDnsNamespaceArgs;
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 example = new PublicDnsNamespace("example", PublicDnsNamespaceArgs.builder()
.name("hoge.example.com")
.description("example")
.build());
}
}
resources:
example:
type: aws:servicediscovery:PublicDnsNamespace
properties:
name: hoge.example.com
description: example

Import

Using pulumi import, import Service Discovery Public DNS Namespace using the namespace ID. For example:

$ pulumi import aws:servicediscovery/publicDnsNamespace:PublicDnsNamespace example 0123456789

Properties

Link copied to clipboard
val arn: Output<String>

The ARN that Amazon Route 53 assigns to the namespace when you create it.

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

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

Link copied to clipboard
val hostedZone: Output<String>

The ID for the hosted zone that Amazon Route 53 creates when you create a namespace.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the namespace.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>