Provides a resource to manage vmp alerting rule enable disable
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const example = new volcengine.vmp.AlertingRuleEnableDisable("example", {ids: [
"b9b6407d-f602-4f2e-b2e8-3b21286b7efa",
"1cb9a731-d182-4ccc-b374-d4a06ae84714",
]});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.vmp.AlertingRuleEnableDisable("example", ids=[
"b9b6407d-f602-4f2e-b2e8-3b21286b7efa",
"1cb9a731-d182-4ccc-b374-d4a06ae84714",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmp.NewAlertingRuleEnableDisable(ctx, "example", &vmp.AlertingRuleEnableDisableArgs{
Ids: pulumi.StringArray{
pulumi.String("b9b6407d-f602-4f2e-b2e8-3b21286b7efa"),
pulumi.String("1cb9a731-d182-4ccc-b374-d4a06ae84714"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = new Volcengine.Vmp.AlertingRuleEnableDisable("example", new()
{
Ids = new[]
{
"b9b6407d-f602-4f2e-b2e8-3b21286b7efa",
"1cb9a731-d182-4ccc-b374-d4a06ae84714",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.AlertingRuleEnableDisable;
import com.pulumi.volcengine.vmp.AlertingRuleEnableDisableArgs;
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) {
var example = new AlertingRuleEnableDisable("example", AlertingRuleEnableDisableArgs.builder()
.ids(
"b9b6407d-f602-4f2e-b2e8-3b21286b7efa",
"1cb9a731-d182-4ccc-b374-d4a06ae84714")
.build());
}
}
resources:
example:
type: volcengine:vmp:AlertingRuleEnableDisable
properties:
ids:
- b9b6407d-f602-4f2e-b2e8-3b21286b7efa
- 1cb9a731-d182-4ccc-b374-d4a06ae84714
Create AlertingRuleEnableDisable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertingRuleEnableDisable(name: string, args: AlertingRuleEnableDisableArgs, opts?: CustomResourceOptions);@overload
def AlertingRuleEnableDisable(resource_name: str,
args: AlertingRuleEnableDisableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlertingRuleEnableDisable(resource_name: str,
opts: Optional[ResourceOptions] = None,
ids: Optional[Sequence[str]] = None)func NewAlertingRuleEnableDisable(ctx *Context, name string, args AlertingRuleEnableDisableArgs, opts ...ResourceOption) (*AlertingRuleEnableDisable, error)public AlertingRuleEnableDisable(string name, AlertingRuleEnableDisableArgs args, CustomResourceOptions? opts = null)
public AlertingRuleEnableDisable(String name, AlertingRuleEnableDisableArgs args)
public AlertingRuleEnableDisable(String name, AlertingRuleEnableDisableArgs args, CustomResourceOptions options)
type: volcengine:vmp:AlertingRuleEnableDisable
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 AlertingRuleEnableDisableArgs
- 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 AlertingRuleEnableDisableArgs
- 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 AlertingRuleEnableDisableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertingRuleEnableDisableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertingRuleEnableDisableArgs
- 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 alertingRuleEnableDisableResource = new Volcengine.Vmp.AlertingRuleEnableDisable("alertingRuleEnableDisableResource", new()
{
Ids = new[]
{
"string",
},
});
example, err := vmp.NewAlertingRuleEnableDisable(ctx, "alertingRuleEnableDisableResource", &vmp.AlertingRuleEnableDisableArgs{
Ids: pulumi.StringArray{
pulumi.String("string"),
},
})
var alertingRuleEnableDisableResource = new AlertingRuleEnableDisable("alertingRuleEnableDisableResource", AlertingRuleEnableDisableArgs.builder()
.ids("string")
.build());
alerting_rule_enable_disable_resource = volcengine.vmp.AlertingRuleEnableDisable("alertingRuleEnableDisableResource", ids=["string"])
const alertingRuleEnableDisableResource = new volcengine.vmp.AlertingRuleEnableDisable("alertingRuleEnableDisableResource", {ids: ["string"]});
type: volcengine:vmp:AlertingRuleEnableDisable
properties:
ids:
- string
AlertingRuleEnableDisable 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 AlertingRuleEnableDisable resource accepts the following input properties:
- Ids List<string>
- The ids of alerting rule.
- Ids []string
- The ids of alerting rule.
- ids List<String>
- The ids of alerting rule.
- ids string[]
- The ids of alerting rule.
- ids Sequence[str]
- The ids of alerting rule.
- ids List<String>
- The ids of alerting rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertingRuleEnableDisable resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlertingRuleEnableDisable Resource
Get an existing AlertingRuleEnableDisable 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?: AlertingRuleEnableDisableState, opts?: CustomResourceOptions): AlertingRuleEnableDisable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ids: Optional[Sequence[str]] = None) -> AlertingRuleEnableDisablefunc GetAlertingRuleEnableDisable(ctx *Context, name string, id IDInput, state *AlertingRuleEnableDisableState, opts ...ResourceOption) (*AlertingRuleEnableDisable, error)public static AlertingRuleEnableDisable Get(string name, Input<string> id, AlertingRuleEnableDisableState? state, CustomResourceOptions? opts = null)public static AlertingRuleEnableDisable get(String name, Output<String> id, AlertingRuleEnableDisableState state, CustomResourceOptions options)resources: _: type: volcengine:vmp:AlertingRuleEnableDisable 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.
- Ids List<string>
- The ids of alerting rule.
- Ids []string
- The ids of alerting rule.
- ids List<String>
- The ids of alerting rule.
- ids string[]
- The ids of alerting rule.
- ids Sequence[str]
- The ids of alerting rule.
- ids List<String>
- The ids of alerting rule.
Import
The VmpAlertingRuleEnableDisable is not support import.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
