1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. nlb
  5. HdMonitorRegionConfig
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi

    Provides a Network Load Balancer (NLB) Hd Monitor Region Config resource.

    HD monitor config.

    For information about Network Load Balancer (NLB) Hd Monitor Region Config and how to use it, see What is Hd Monitor Region Config.

    NOTE: Available since v1.273.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.nlb.HdMonitorRegionConfig("default", {
        metricStore: "example",
        logProject: "example",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.nlb.HdMonitorRegionConfig("default",
        metric_store="example",
        log_project="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nlb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := nlb.NewHdMonitorRegionConfig(ctx, "default", &nlb.HdMonitorRegionConfigArgs{
    			MetricStore: pulumi.String("example"),
    			LogProject:  pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Nlb.HdMonitorRegionConfig("default", new()
        {
            MetricStore = "example",
            LogProject = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.nlb.HdMonitorRegionConfig;
    import com.pulumi.alicloud.nlb.HdMonitorRegionConfigArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new HdMonitorRegionConfig("default", HdMonitorRegionConfigArgs.builder()
                .metricStore("example")
                .logProject("example")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:nlb:HdMonitorRegionConfig
        properties:
          metricStore: example
          logProject: example
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create HdMonitorRegionConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new HdMonitorRegionConfig(name: string, args: HdMonitorRegionConfigArgs, opts?: CustomResourceOptions);
    @overload
    def HdMonitorRegionConfig(resource_name: str,
                              args: HdMonitorRegionConfigArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def HdMonitorRegionConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              log_project: Optional[str] = None,
                              metric_store: Optional[str] = None)
    func NewHdMonitorRegionConfig(ctx *Context, name string, args HdMonitorRegionConfigArgs, opts ...ResourceOption) (*HdMonitorRegionConfig, error)
    public HdMonitorRegionConfig(string name, HdMonitorRegionConfigArgs args, CustomResourceOptions? opts = null)
    public HdMonitorRegionConfig(String name, HdMonitorRegionConfigArgs args)
    public HdMonitorRegionConfig(String name, HdMonitorRegionConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:nlb:HdMonitorRegionConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args HdMonitorRegionConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HdMonitorRegionConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HdMonitorRegionConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HdMonitorRegionConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HdMonitorRegionConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var hdMonitorRegionConfigResource = new AliCloud.Nlb.HdMonitorRegionConfig("hdMonitorRegionConfigResource", new()
    {
        LogProject = "string",
        MetricStore = "string",
    });
    
    example, err := nlb.NewHdMonitorRegionConfig(ctx, "hdMonitorRegionConfigResource", &nlb.HdMonitorRegionConfigArgs{
    	LogProject:  pulumi.String("string"),
    	MetricStore: pulumi.String("string"),
    })
    
    var hdMonitorRegionConfigResource = new HdMonitorRegionConfig("hdMonitorRegionConfigResource", HdMonitorRegionConfigArgs.builder()
        .logProject("string")
        .metricStore("string")
        .build());
    
    hd_monitor_region_config_resource = alicloud.nlb.HdMonitorRegionConfig("hdMonitorRegionConfigResource",
        log_project="string",
        metric_store="string")
    
    const hdMonitorRegionConfigResource = new alicloud.nlb.HdMonitorRegionConfig("hdMonitorRegionConfigResource", {
        logProject: "string",
        metricStore: "string",
    });
    
    type: alicloud:nlb:HdMonitorRegionConfig
    properties:
        logProject: string
        metricStore: string
    

    HdMonitorRegionConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The HdMonitorRegionConfig resource accepts the following input properties:

    LogProject string
    The name of the LogProject.
    MetricStore string
    The name of the MetricStore.
    LogProject string
    The name of the LogProject.
    MetricStore string
    The name of the MetricStore.
    logProject String
    The name of the LogProject.
    metricStore String
    The name of the MetricStore.
    logProject string
    The name of the LogProject.
    metricStore string
    The name of the MetricStore.
    log_project str
    The name of the LogProject.
    metric_store str
    The name of the MetricStore.
    logProject String
    The name of the LogProject.
    metricStore String
    The name of the MetricStore.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HdMonitorRegionConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The ID of the region in which the resource resides.
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The ID of the region in which the resource resides.
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The ID of the region in which the resource resides.
    id string
    The provider-assigned unique ID for this managed resource.
    regionId string
    The ID of the region in which the resource resides.
    id str
    The provider-assigned unique ID for this managed resource.
    region_id str
    The ID of the region in which the resource resides.
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The ID of the region in which the resource resides.

    Look up Existing HdMonitorRegionConfig Resource

    Get an existing HdMonitorRegionConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: HdMonitorRegionConfigState, opts?: CustomResourceOptions): HdMonitorRegionConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            log_project: Optional[str] = None,
            metric_store: Optional[str] = None,
            region_id: Optional[str] = None) -> HdMonitorRegionConfig
    func GetHdMonitorRegionConfig(ctx *Context, name string, id IDInput, state *HdMonitorRegionConfigState, opts ...ResourceOption) (*HdMonitorRegionConfig, error)
    public static HdMonitorRegionConfig Get(string name, Input<string> id, HdMonitorRegionConfigState? state, CustomResourceOptions? opts = null)
    public static HdMonitorRegionConfig get(String name, Output<String> id, HdMonitorRegionConfigState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:nlb:HdMonitorRegionConfig    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    LogProject string
    The name of the LogProject.
    MetricStore string
    The name of the MetricStore.
    RegionId string
    The ID of the region in which the resource resides.
    LogProject string
    The name of the LogProject.
    MetricStore string
    The name of the MetricStore.
    RegionId string
    The ID of the region in which the resource resides.
    logProject String
    The name of the LogProject.
    metricStore String
    The name of the MetricStore.
    regionId String
    The ID of the region in which the resource resides.
    logProject string
    The name of the LogProject.
    metricStore string
    The name of the MetricStore.
    regionId string
    The ID of the region in which the resource resides.
    log_project str
    The name of the LogProject.
    metric_store str
    The name of the MetricStore.
    region_id str
    The ID of the region in which the resource resides.
    logProject String
    The name of the LogProject.
    metricStore String
    The name of the MetricStore.
    regionId String
    The ID of the region in which the resource resides.

    Import

    Network Load Balancer (NLB) Hd Monitor Region Config can be imported using the id, e.g.

    $ pulumi import alicloud:nlb/hdMonitorRegionConfig:HdMonitorRegionConfig example <region_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.97.0
    published on Saturday, Mar 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.