Provides a resource to manage vmp silence policy enable disable
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.vmp.SilencePolicyEnableDisable("foo", {ids: [
"4d62547e-a0f4-4bdd-a658-399fc4464ae8",
"ea51e747-0ead-4e09-9187-76beba6400b7",
]});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vmp.SilencePolicyEnableDisable("foo", ids=[
"4d62547e-a0f4-4bdd-a658-399fc4464ae8",
"ea51e747-0ead-4e09-9187-76beba6400b7",
])
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.NewSilencePolicyEnableDisable(ctx, "foo", &vmp.SilencePolicyEnableDisableArgs{
Ids: pulumi.StringArray{
pulumi.String("4d62547e-a0f4-4bdd-a658-399fc4464ae8"),
pulumi.String("ea51e747-0ead-4e09-9187-76beba6400b7"),
},
})
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 foo = new Volcengine.Vmp.SilencePolicyEnableDisable("foo", new()
{
Ids = new[]
{
"4d62547e-a0f4-4bdd-a658-399fc4464ae8",
"ea51e747-0ead-4e09-9187-76beba6400b7",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.SilencePolicyEnableDisable;
import com.pulumi.volcengine.vmp.SilencePolicyEnableDisableArgs;
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 foo = new SilencePolicyEnableDisable("foo", SilencePolicyEnableDisableArgs.builder()
.ids(
"4d62547e-a0f4-4bdd-a658-399fc4464ae8",
"ea51e747-0ead-4e09-9187-76beba6400b7")
.build());
}
}
resources:
foo:
type: volcengine:vmp:SilencePolicyEnableDisable
properties:
ids:
- 4d62547e-a0f4-4bdd-a658-399fc4464ae8
- ea51e747-0ead-4e09-9187-76beba6400b7
Create SilencePolicyEnableDisable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SilencePolicyEnableDisable(name: string, args: SilencePolicyEnableDisableArgs, opts?: CustomResourceOptions);@overload
def SilencePolicyEnableDisable(resource_name: str,
args: SilencePolicyEnableDisableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SilencePolicyEnableDisable(resource_name: str,
opts: Optional[ResourceOptions] = None,
ids: Optional[Sequence[str]] = None)func NewSilencePolicyEnableDisable(ctx *Context, name string, args SilencePolicyEnableDisableArgs, opts ...ResourceOption) (*SilencePolicyEnableDisable, error)public SilencePolicyEnableDisable(string name, SilencePolicyEnableDisableArgs args, CustomResourceOptions? opts = null)
public SilencePolicyEnableDisable(String name, SilencePolicyEnableDisableArgs args)
public SilencePolicyEnableDisable(String name, SilencePolicyEnableDisableArgs args, CustomResourceOptions options)
type: volcengine:vmp:SilencePolicyEnableDisable
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 SilencePolicyEnableDisableArgs
- 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 SilencePolicyEnableDisableArgs
- 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 SilencePolicyEnableDisableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SilencePolicyEnableDisableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SilencePolicyEnableDisableArgs
- 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 silencePolicyEnableDisableResource = new Volcengine.Vmp.SilencePolicyEnableDisable("silencePolicyEnableDisableResource", new()
{
Ids = new[]
{
"string",
},
});
example, err := vmp.NewSilencePolicyEnableDisable(ctx, "silencePolicyEnableDisableResource", &vmp.SilencePolicyEnableDisableArgs{
Ids: pulumi.StringArray{
pulumi.String("string"),
},
})
var silencePolicyEnableDisableResource = new SilencePolicyEnableDisable("silencePolicyEnableDisableResource", SilencePolicyEnableDisableArgs.builder()
.ids("string")
.build());
silence_policy_enable_disable_resource = volcengine.vmp.SilencePolicyEnableDisable("silencePolicyEnableDisableResource", ids=["string"])
const silencePolicyEnableDisableResource = new volcengine.vmp.SilencePolicyEnableDisable("silencePolicyEnableDisableResource", {ids: ["string"]});
type: volcengine:vmp:SilencePolicyEnableDisable
properties:
ids:
- string
SilencePolicyEnableDisable 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 SilencePolicyEnableDisable resource accepts the following input properties:
- Ids List<string>
- The ids of silence policy.
- Ids []string
- The ids of silence policy.
- ids List<String>
- The ids of silence policy.
- ids string[]
- The ids of silence policy.
- ids Sequence[str]
- The ids of silence policy.
- ids List<String>
- The ids of silence policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the SilencePolicyEnableDisable 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 SilencePolicyEnableDisable Resource
Get an existing SilencePolicyEnableDisable 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?: SilencePolicyEnableDisableState, opts?: CustomResourceOptions): SilencePolicyEnableDisable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ids: Optional[Sequence[str]] = None) -> SilencePolicyEnableDisablefunc GetSilencePolicyEnableDisable(ctx *Context, name string, id IDInput, state *SilencePolicyEnableDisableState, opts ...ResourceOption) (*SilencePolicyEnableDisable, error)public static SilencePolicyEnableDisable Get(string name, Input<string> id, SilencePolicyEnableDisableState? state, CustomResourceOptions? opts = null)public static SilencePolicyEnableDisable get(String name, Output<String> id, SilencePolicyEnableDisableState state, CustomResourceOptions options)resources: _: type: volcengine:vmp:SilencePolicyEnableDisable 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 silence policy.
- Ids []string
- The ids of silence policy.
- ids List<String>
- The ids of silence policy.
- ids string[]
- The ids of silence policy.
- ids Sequence[str]
- The ids of silence policy.
- ids List<String>
- The ids of silence policy.
Import
The VmpSilencePolicyEnableDisable 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.
