NamespaceArgs

data class NamespaceArgs(val description: Output<String>? = null, val namespace: Output<String>? = null, val specification: Output<String>? = null) : ConvertibleToJava<NamespaceArgs>

Provides a Cloud Monitor Service Namespace resource. For information about Cloud Monitor Service Namespace and how to use it, see What is Namespace.

NOTE: Available since v1.171.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.cms.Namespace("example", {
namespace: "tf-example",
specification: "cms.s1.large",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cms.Namespace("example",
namespace="tf-example",
specification="cms.s1.large")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Cms.Namespace("example", new()
{
NamespaceName = "tf-example",
Specification = "cms.s1.large",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cms.NewNamespace(ctx, "example", &cms.NamespaceArgs{
Namespace: pulumi.String("tf-example"),
Specification: pulumi.String("cms.s1.large"),
})
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.alicloud.cms.Namespace;
import com.pulumi.alicloud.cms.NamespaceArgs;
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 Namespace("example", NamespaceArgs.builder()
.namespace("tf-example")
.specification("cms.s1.large")
.build());
}
}
resources:
example:
type: alicloud:cms:Namespace
properties:
namespace: tf-example
specification: cms.s1.large

Import

Cloud Monitor Service Namespace can be imported using the id, e.g.

$ pulumi import alicloud:cms/namespace:Namespace example <id>

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, namespace: Output<String>? = null, specification: Output<String>? = null)

Properties

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

The description of the namespace.

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

The name of the namespace. The name can contain lowercase letters, digits, and hyphens (-).

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

The data retention period. Default value: cms.s1.3xlarge. Valid values:

Functions

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