<reponame>rhysmdnz/pulumi-alicloud-rhys-hacks<filename>sdk/dotnet/Cms/Namespace.cs// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AliCloud.Cms
{
    /// <summary>
    /// Provides a Cloud Monitor Service Namespace resource.
    /// 
    /// For information about Cloud Monitor Service Namespace and how to use it, see [What is Namespace](https://www.alibabacloud.com/help/doc-detail/28608.htm).
    /// 
    /// &gt; **NOTE:** Available in v1.171.0+.
    /// 
    /// ## Example Usage
    /// 
    /// Basic Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using AliCloud = Pulumi.AliCloud;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var example = new AliCloud.Cms.Namespace("example", new()
    ///     {
    ///         NamespaceName = "example-value",
    ///         Specification = "cms.s1.large",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Cloud Monitor Service Namespace can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:cms/namespace:Namespace example &lt;namespace&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:cms/namespace:Namespace")]
    public partial class Namespace : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Description of indicator warehouse.
        /// </summary>
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// Indicator warehouse name. The namespace can contain lowercase letters, digits, and hyphens (-).
        /// </summary>
        [Output("namespace")]
        public Output<string> NamespaceName { get; private set; } = null!;

        /// <summary>
        /// Data storage duration. Valid values: `cms.s1.12xlarge`, `cms.s1.2xlarge`, `cms.s1.3xlarge`, `cms.s1.6xlarge`, `cms.s1.large`, `cms.s1.xlarge`. 
        /// - `cms.s1.large`: Data storage duration is 15 days.
        /// - `cms.s1.xlarge`: Data storage duration is 32 days.
        /// - `cms.s1.2xlarge`: Data storage duration 63 days.
        /// - `cms.s1.3xlarge`: (Default) Data storage duration 93 days.
        /// - `cms.s1.6xlarge`: Data storage duration 185 days.
        /// - `cms.s1.12xlarge`: Data storage duration 376 days.
        /// </summary>
        [Output("specification")]
        public Output<string> Specification { get; private set; } = null!;


        /// <summary>
        /// Create a Namespace resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public Namespace(string name, NamespaceArgs args, CustomResourceOptions? options = null)
            : base("alicloud:cms/namespace:Namespace", name, args ?? new NamespaceArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Namespace(string name, Input<string> id, NamespaceState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:cms/namespace:Namespace", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/rhysmdnz/pulumi-alicloud",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing Namespace resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static Namespace Get(string name, Input<string> id, NamespaceState? state = null, CustomResourceOptions? options = null)
        {
            return new Namespace(name, id, state, options);
        }
    }

    public sealed class NamespaceArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Description of indicator warehouse.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// Indicator warehouse name. The namespace can contain lowercase letters, digits, and hyphens (-).
        /// </summary>
        [Input("namespace", required: true)]
        public Input<string> NamespaceName { get; set; } = null!;

        /// <summary>
        /// Data storage duration. Valid values: `cms.s1.12xlarge`, `cms.s1.2xlarge`, `cms.s1.3xlarge`, `cms.s1.6xlarge`, `cms.s1.large`, `cms.s1.xlarge`. 
        /// - `cms.s1.large`: Data storage duration is 15 days.
        /// - `cms.s1.xlarge`: Data storage duration is 32 days.
        /// - `cms.s1.2xlarge`: Data storage duration 63 days.
        /// - `cms.s1.3xlarge`: (Default) Data storage duration 93 days.
        /// - `cms.s1.6xlarge`: Data storage duration 185 days.
        /// - `cms.s1.12xlarge`: Data storage duration 376 days.
        /// </summary>
        [Input("specification")]
        public Input<string>? Specification { get; set; }

        public NamespaceArgs()
        {
        }
        public static new NamespaceArgs Empty => new NamespaceArgs();
    }

    public sealed class NamespaceState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Description of indicator warehouse.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// Indicator warehouse name. The namespace can contain lowercase letters, digits, and hyphens (-).
        /// </summary>
        [Input("namespace")]
        public Input<string>? NamespaceName { get; set; }

        /// <summary>
        /// Data storage duration. Valid values: `cms.s1.12xlarge`, `cms.s1.2xlarge`, `cms.s1.3xlarge`, `cms.s1.6xlarge`, `cms.s1.large`, `cms.s1.xlarge`. 
        /// - `cms.s1.large`: Data storage duration is 15 days.
        /// - `cms.s1.xlarge`: Data storage duration is 32 days.
        /// - `cms.s1.2xlarge`: Data storage duration 63 days.
        /// - `cms.s1.3xlarge`: (Default) Data storage duration 93 days.
        /// - `cms.s1.6xlarge`: Data storage duration 185 days.
        /// - `cms.s1.12xlarge`: Data storage duration 376 days.
        /// </summary>
        [Input("specification")]
        public Input<string>? Specification { get; set; }

        public NamespaceState()
        {
        }
        public static new NamespaceState Empty => new NamespaceState();
    }
}
