1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. arms
  5. EnvServiceMonitor
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

alicloud.arms.EnvServiceMonitor

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

    Provides a ARMS Env Service Monitor resource. ServiceMonitor for the arms environment.

    For information about ARMS Env Service Monitor and how to use it, see What is Env Service Monitor.

    NOTE: Available since v1.212.0.

    Create EnvServiceMonitor Resource

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

    Constructor syntax

    new EnvServiceMonitor(name: string, args: EnvServiceMonitorArgs, opts?: CustomResourceOptions);
    @overload
    def EnvServiceMonitor(resource_name: str,
                          args: EnvServiceMonitorArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvServiceMonitor(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          config_yaml: Optional[str] = None,
                          environment_id: Optional[str] = None,
                          aliyun_lang: Optional[str] = None)
    func NewEnvServiceMonitor(ctx *Context, name string, args EnvServiceMonitorArgs, opts ...ResourceOption) (*EnvServiceMonitor, error)
    public EnvServiceMonitor(string name, EnvServiceMonitorArgs args, CustomResourceOptions? opts = null)
    public EnvServiceMonitor(String name, EnvServiceMonitorArgs args)
    public EnvServiceMonitor(String name, EnvServiceMonitorArgs args, CustomResourceOptions options)
    
    type: alicloud:arms:EnvServiceMonitor
    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 EnvServiceMonitorArgs
    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 EnvServiceMonitorArgs
    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 EnvServiceMonitorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvServiceMonitorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvServiceMonitorArgs
    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 envServiceMonitorResource = new AliCloud.Arms.EnvServiceMonitor("envServiceMonitorResource", new()
    {
        ConfigYaml = "string",
        EnvironmentId = "string",
        AliyunLang = "string",
    });
    
    example, err := arms.NewEnvServiceMonitor(ctx, "envServiceMonitorResource", &arms.EnvServiceMonitorArgs{
    	ConfigYaml:    pulumi.String("string"),
    	EnvironmentId: pulumi.String("string"),
    	AliyunLang:    pulumi.String("string"),
    })
    
    var envServiceMonitorResource = new EnvServiceMonitor("envServiceMonitorResource", EnvServiceMonitorArgs.builder()
        .configYaml("string")
        .environmentId("string")
        .aliyunLang("string")
        .build());
    
    env_service_monitor_resource = alicloud.arms.EnvServiceMonitor("envServiceMonitorResource",
        config_yaml="string",
        environment_id="string",
        aliyun_lang="string")
    
    const envServiceMonitorResource = new alicloud.arms.EnvServiceMonitor("envServiceMonitorResource", {
        configYaml: "string",
        environmentId: "string",
        aliyunLang: "string",
    });
    
    type: alicloud:arms:EnvServiceMonitor
    properties:
        aliyunLang: string
        configYaml: string
        environmentId: string
    

    EnvServiceMonitor 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 EnvServiceMonitor resource accepts the following input properties:

    ConfigYaml string
    Yaml configuration string.
    EnvironmentId string
    Environment id.
    AliyunLang string
    Language environment, default is Chinese zh | en.
    ConfigYaml string
    Yaml configuration string.
    EnvironmentId string
    Environment id.
    AliyunLang string
    Language environment, default is Chinese zh | en.
    configYaml String
    Yaml configuration string.
    environmentId String
    Environment id.
    aliyunLang String
    Language environment, default is Chinese zh | en.
    configYaml string
    Yaml configuration string.
    environmentId string
    Environment id.
    aliyunLang string
    Language environment, default is Chinese zh | en.
    config_yaml str
    Yaml configuration string.
    environment_id str
    Environment id.
    aliyun_lang str
    Language environment, default is Chinese zh | en.
    configYaml String
    Yaml configuration string.
    environmentId String
    Environment id.
    aliyunLang String
    Language environment, default is Chinese zh | en.

    Outputs

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

    EnvServiceMonitorName string
    The name of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    The namespace where the resource is located.
    Status string
    Status: run, stop.
    EnvServiceMonitorName string
    The name of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    The namespace where the resource is located.
    Status string
    Status: run, stop.
    envServiceMonitorName String
    The name of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    The namespace where the resource is located.
    status String
    Status: run, stop.
    envServiceMonitorName string
    The name of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    namespace string
    The namespace where the resource is located.
    status string
    Status: run, stop.
    env_service_monitor_name str
    The name of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    namespace str
    The namespace where the resource is located.
    status str
    Status: run, stop.
    envServiceMonitorName String
    The name of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    The namespace where the resource is located.
    status String
    Status: run, stop.

    Look up Existing EnvServiceMonitor Resource

    Get an existing EnvServiceMonitor 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?: EnvServiceMonitorState, opts?: CustomResourceOptions): EnvServiceMonitor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aliyun_lang: Optional[str] = None,
            config_yaml: Optional[str] = None,
            env_service_monitor_name: Optional[str] = None,
            environment_id: Optional[str] = None,
            namespace: Optional[str] = None,
            status: Optional[str] = None) -> EnvServiceMonitor
    func GetEnvServiceMonitor(ctx *Context, name string, id IDInput, state *EnvServiceMonitorState, opts ...ResourceOption) (*EnvServiceMonitor, error)
    public static EnvServiceMonitor Get(string name, Input<string> id, EnvServiceMonitorState? state, CustomResourceOptions? opts = null)
    public static EnvServiceMonitor get(String name, Output<String> id, EnvServiceMonitorState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AliyunLang string
    Language environment, default is Chinese zh | en.
    ConfigYaml string
    Yaml configuration string.
    EnvServiceMonitorName string
    The name of the resource.
    EnvironmentId string
    Environment id.
    Namespace string
    The namespace where the resource is located.
    Status string
    Status: run, stop.
    AliyunLang string
    Language environment, default is Chinese zh | en.
    ConfigYaml string
    Yaml configuration string.
    EnvServiceMonitorName string
    The name of the resource.
    EnvironmentId string
    Environment id.
    Namespace string
    The namespace where the resource is located.
    Status string
    Status: run, stop.
    aliyunLang String
    Language environment, default is Chinese zh | en.
    configYaml String
    Yaml configuration string.
    envServiceMonitorName String
    The name of the resource.
    environmentId String
    Environment id.
    namespace String
    The namespace where the resource is located.
    status String
    Status: run, stop.
    aliyunLang string
    Language environment, default is Chinese zh | en.
    configYaml string
    Yaml configuration string.
    envServiceMonitorName string
    The name of the resource.
    environmentId string
    Environment id.
    namespace string
    The namespace where the resource is located.
    status string
    Status: run, stop.
    aliyun_lang str
    Language environment, default is Chinese zh | en.
    config_yaml str
    Yaml configuration string.
    env_service_monitor_name str
    The name of the resource.
    environment_id str
    Environment id.
    namespace str
    The namespace where the resource is located.
    status str
    Status: run, stop.
    aliyunLang String
    Language environment, default is Chinese zh | en.
    configYaml String
    Yaml configuration string.
    envServiceMonitorName String
    The name of the resource.
    environmentId String
    Environment id.
    namespace String
    The namespace where the resource is located.
    status String
    Status: run, stop.

    Import

    ARMS Env Service Monitor can be imported using the id, e.g.

    $ pulumi import alicloud:arms/envServiceMonitor:EnvServiceMonitor example <environment_id>:<namespace>:<env_service_monitor_name>
    

    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
    Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi