<gh_stars>0// *** 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.ServiceMesh
{
    /// <summary>
    /// Provides a Service Mesh Service Mesh resource.
    /// 
    /// For information about Service Mesh Service Mesh and how to use it, see [What is Service Mesh](https://help.aliyun.com/document_detail/171559.html).
    /// 
    /// &gt; **NOTE:** Available in v1.138.0+.
    /// 
    /// ## Import
    /// 
    /// Service Mesh Service Mesh can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:servicemesh/serviceMesh:ServiceMesh example &lt;id&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:servicemesh/serviceMesh:ServiceMesh")]
    public partial class ServiceMesh : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The array of the cluster ids.
        /// </summary>
        [Output("clusterIds")]
        public Output<ImmutableArray<string>> ClusterIds { get; private set; } = null!;

        /// <summary>
        /// The service mesh instance specification. Valid values: `standard`,`enterprise`,`ultimate`.
        /// </summary>
        [Output("clusterSpec")]
        public Output<string> ClusterSpec { get; private set; } = null!;

        /// <summary>
        /// The type  of the resource. Valid values: `Default` and `Pro`. `Default`:the standard. `Pro`:the Pro version.
        /// </summary>
        [Output("edition")]
        public Output<string> Edition { get; private set; } = null!;

        /// <summary>
        /// The configurations of additional features for the ASM instance. See the following `Block extra_configuration`.
        /// </summary>
        [Output("extraConfiguration")]
        public Output<Outputs.ServiceMeshExtraConfiguration> ExtraConfiguration { get; private set; } = null!;

        /// <summary>
        /// This parameter is used for resource destroy. Default value is `false`.
        /// </summary>
        [Output("force")]
        public Output<bool?> Force { get; private set; } = null!;

        /// <summary>
        /// The configuration of the Load Balancer. See the following `Block load_balancer`.
        /// </summary>
        [Output("loadBalancer")]
        public Output<Outputs.ServiceMeshLoadBalancer> LoadBalancer { get; private set; } = null!;

        /// <summary>
        /// The configuration of the Service grid. See the following `Block mesh_config`.
        /// </summary>
        [Output("meshConfig")]
        public Output<Outputs.ServiceMeshMeshConfig> MeshConfig { get; private set; } = null!;

        /// <summary>
        /// The network configuration of the Service grid. See the following `Block network`.
        /// </summary>
        [Output("network")]
        public Output<Outputs.ServiceMeshNetwork> Network { get; private set; } = null!;

        /// <summary>
        /// The name of the resource.
        /// </summary>
        [Output("serviceMeshName")]
        public Output<string> ServiceMeshName { get; private set; } = null!;

        /// <summary>
        /// The status of the resource. Valid values: `running` or `initial`.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;

        /// <summary>
        /// The version of the resource. you can look up the version using `alicloud.servicemesh.getVersions`. **Note:** The `version` supports updating from v1.170.0, the relevant version can be obtained via `istio_operator_version` in `alicloud.servicemesh.getServiceMeshes`.
        /// </summary>
        [Output("version")]
        public Output<string> Version { get; private set; } = null!;


        /// <summary>
        /// Create a ServiceMesh 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 ServiceMesh(string name, ServiceMeshArgs args, CustomResourceOptions? options = null)
            : base("alicloud:servicemesh/serviceMesh:ServiceMesh", name, args ?? new ServiceMeshArgs(), MakeResourceOptions(options, ""))
        {
        }

        private ServiceMesh(string name, Input<string> id, ServiceMeshState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:servicemesh/serviceMesh:ServiceMesh", 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 ServiceMesh 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 ServiceMesh Get(string name, Input<string> id, ServiceMeshState? state = null, CustomResourceOptions? options = null)
        {
            return new ServiceMesh(name, id, state, options);
        }
    }

    public sealed class ServiceMeshArgs : global::Pulumi.ResourceArgs
    {
        [Input("clusterIds")]
        private InputList<string>? _clusterIds;

        /// <summary>
        /// The array of the cluster ids.
        /// </summary>
        public InputList<string> ClusterIds
        {
            get => _clusterIds ?? (_clusterIds = new InputList<string>());
            set => _clusterIds = value;
        }

        /// <summary>
        /// The service mesh instance specification. Valid values: `standard`,`enterprise`,`ultimate`.
        /// </summary>
        [Input("clusterSpec")]
        public Input<string>? ClusterSpec { get; set; }

        /// <summary>
        /// The type  of the resource. Valid values: `Default` and `Pro`. `Default`:the standard. `Pro`:the Pro version.
        /// </summary>
        [Input("edition")]
        public Input<string>? Edition { get; set; }

        /// <summary>
        /// The configurations of additional features for the ASM instance. See the following `Block extra_configuration`.
        /// </summary>
        [Input("extraConfiguration")]
        public Input<Inputs.ServiceMeshExtraConfigurationArgs>? ExtraConfiguration { get; set; }

        /// <summary>
        /// This parameter is used for resource destroy. Default value is `false`.
        /// </summary>
        [Input("force")]
        public Input<bool>? Force { get; set; }

        /// <summary>
        /// The configuration of the Load Balancer. See the following `Block load_balancer`.
        /// </summary>
        [Input("loadBalancer")]
        public Input<Inputs.ServiceMeshLoadBalancerArgs>? LoadBalancer { get; set; }

        /// <summary>
        /// The configuration of the Service grid. See the following `Block mesh_config`.
        /// </summary>
        [Input("meshConfig")]
        public Input<Inputs.ServiceMeshMeshConfigArgs>? MeshConfig { get; set; }

        /// <summary>
        /// The network configuration of the Service grid. See the following `Block network`.
        /// </summary>
        [Input("network", required: true)]
        public Input<Inputs.ServiceMeshNetworkArgs> Network { get; set; } = null!;

        /// <summary>
        /// The name of the resource.
        /// </summary>
        [Input("serviceMeshName")]
        public Input<string>? ServiceMeshName { get; set; }

        /// <summary>
        /// The version of the resource. you can look up the version using `alicloud.servicemesh.getVersions`. **Note:** The `version` supports updating from v1.170.0, the relevant version can be obtained via `istio_operator_version` in `alicloud.servicemesh.getServiceMeshes`.
        /// </summary>
        [Input("version")]
        public Input<string>? Version { get; set; }

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

    public sealed class ServiceMeshState : global::Pulumi.ResourceArgs
    {
        [Input("clusterIds")]
        private InputList<string>? _clusterIds;

        /// <summary>
        /// The array of the cluster ids.
        /// </summary>
        public InputList<string> ClusterIds
        {
            get => _clusterIds ?? (_clusterIds = new InputList<string>());
            set => _clusterIds = value;
        }

        /// <summary>
        /// The service mesh instance specification. Valid values: `standard`,`enterprise`,`ultimate`.
        /// </summary>
        [Input("clusterSpec")]
        public Input<string>? ClusterSpec { get; set; }

        /// <summary>
        /// The type  of the resource. Valid values: `Default` and `Pro`. `Default`:the standard. `Pro`:the Pro version.
        /// </summary>
        [Input("edition")]
        public Input<string>? Edition { get; set; }

        /// <summary>
        /// The configurations of additional features for the ASM instance. See the following `Block extra_configuration`.
        /// </summary>
        [Input("extraConfiguration")]
        public Input<Inputs.ServiceMeshExtraConfigurationGetArgs>? ExtraConfiguration { get; set; }

        /// <summary>
        /// This parameter is used for resource destroy. Default value is `false`.
        /// </summary>
        [Input("force")]
        public Input<bool>? Force { get; set; }

        /// <summary>
        /// The configuration of the Load Balancer. See the following `Block load_balancer`.
        /// </summary>
        [Input("loadBalancer")]
        public Input<Inputs.ServiceMeshLoadBalancerGetArgs>? LoadBalancer { get; set; }

        /// <summary>
        /// The configuration of the Service grid. See the following `Block mesh_config`.
        /// </summary>
        [Input("meshConfig")]
        public Input<Inputs.ServiceMeshMeshConfigGetArgs>? MeshConfig { get; set; }

        /// <summary>
        /// The network configuration of the Service grid. See the following `Block network`.
        /// </summary>
        [Input("network")]
        public Input<Inputs.ServiceMeshNetworkGetArgs>? Network { get; set; }

        /// <summary>
        /// The name of the resource.
        /// </summary>
        [Input("serviceMeshName")]
        public Input<string>? ServiceMeshName { get; set; }

        /// <summary>
        /// The status of the resource. Valid values: `running` or `initial`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// The version of the resource. you can look up the version using `alicloud.servicemesh.getVersions`. **Note:** The `version` supports updating from v1.170.0, the relevant version can be obtained via `istio_operator_version` in `alicloud.servicemesh.getServiceMeshes`.
        /// </summary>
        [Input("version")]
        public Input<string>? Version { get; set; }

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