alicloud.arms.EnvServiceMonitor
Explore with Pulumi AI
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
The EnvServiceMonitor resource accepts the following input properties:
- Config
Yaml string - Yaml configuration string.
- Environment
Id string - Environment id.
- Aliyun
Lang string - Language environment, default is Chinese zh | en.
- Config
Yaml string - Yaml configuration string.
- Environment
Id string - Environment id.
- Aliyun
Lang string - Language environment, default is Chinese zh | en.
- config
Yaml String - Yaml configuration string.
- environment
Id String - Environment id.
- aliyun
Lang String - Language environment, default is Chinese zh | en.
- config
Yaml string - Yaml configuration string.
- environment
Id string - Environment id.
- aliyun
Lang 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.
- config
Yaml String - Yaml configuration string.
- environment
Id String - Environment id.
- aliyun
Lang 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:
- Env
Service stringMonitor Name - 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 stringMonitor Name - 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 StringMonitor Name - 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 stringMonitor Name - 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_ strmonitor_ name - 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.
- env
Service StringMonitor Name - 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.
- Aliyun
Lang string - Language environment, default is Chinese zh | en.
- Config
Yaml string - Yaml configuration string.
- Env
Service stringMonitor Name - The name of the resource.
- Environment
Id string - Environment id.
- Namespace string
- The namespace where the resource is located.
- Status string
- Status: run, stop.
- Aliyun
Lang string - Language environment, default is Chinese zh | en.
- Config
Yaml string - Yaml configuration string.
- Env
Service stringMonitor Name - The name of the resource.
- Environment
Id string - Environment id.
- Namespace string
- The namespace where the resource is located.
- Status string
- Status: run, stop.
- aliyun
Lang String - Language environment, default is Chinese zh | en.
- config
Yaml String - Yaml configuration string.
- env
Service StringMonitor Name - The name of the resource.
- environment
Id String - Environment id.
- namespace String
- The namespace where the resource is located.
- status String
- Status: run, stop.
- aliyun
Lang string - Language environment, default is Chinese zh | en.
- config
Yaml string - Yaml configuration string.
- env
Service stringMonitor Name - The name of the resource.
- environment
Id 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_ strmonitor_ name - The name of the resource.
- environment_
id str - Environment id.
- namespace str
- The namespace where the resource is located.
- status str
- Status: run, stop.
- aliyun
Lang String - Language environment, default is Chinese zh | en.
- config
Yaml String - Yaml configuration string.
- env
Service StringMonitor Name - The name of the resource.
- environment
Id 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.