1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. AlarmWebhookIntegration
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Provides a resource to manage tls alarm webhook integration

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.tls.AlarmWebhookIntegration("foo", {
        webhookHeaders: [{
            key: "Content-Type",
            value: "application/json",
        }],
        webhookMethod: "PUT",
        webhookName: "terraform-tf-webhook",
        webhookSecret: "your secret",
        webhookType: "lark",
        webhookUrl: "http://zijie.com",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.tls.AlarmWebhookIntegration("foo",
        webhook_headers=[volcengine.tls.AlarmWebhookIntegrationWebhookHeaderArgs(
            key="Content-Type",
            value="application/json",
        )],
        webhook_method="PUT",
        webhook_name="terraform-tf-webhook",
        webhook_secret="your secret",
        webhook_type="lark",
        webhook_url="http://zijie.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.NewAlarmWebhookIntegration(ctx, "foo", &tls.AlarmWebhookIntegrationArgs{
    			WebhookHeaders: tls.AlarmWebhookIntegrationWebhookHeaderArray{
    				&tls.AlarmWebhookIntegrationWebhookHeaderArgs{
    					Key:   pulumi.String("Content-Type"),
    					Value: pulumi.String("application/json"),
    				},
    			},
    			WebhookMethod: pulumi.String("PUT"),
    			WebhookName:   pulumi.String("terraform-tf-webhook"),
    			WebhookSecret: pulumi.String("your secret"),
    			WebhookType:   pulumi.String("lark"),
    			WebhookUrl:    pulumi.String("http://zijie.com"),
    		})
    		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.Tls.AlarmWebhookIntegration("foo", new()
        {
            WebhookHeaders = new[]
            {
                new Volcengine.Tls.Inputs.AlarmWebhookIntegrationWebhookHeaderArgs
                {
                    Key = "Content-Type",
                    Value = "application/json",
                },
            },
            WebhookMethod = "PUT",
            WebhookName = "terraform-tf-webhook",
            WebhookSecret = "your secret",
            WebhookType = "lark",
            WebhookUrl = "http://zijie.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.AlarmWebhookIntegration;
    import com.pulumi.volcengine.tls.AlarmWebhookIntegrationArgs;
    import com.pulumi.volcengine.tls.inputs.AlarmWebhookIntegrationWebhookHeaderArgs;
    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 AlarmWebhookIntegration("foo", AlarmWebhookIntegrationArgs.builder()        
                .webhookHeaders(AlarmWebhookIntegrationWebhookHeaderArgs.builder()
                    .key("Content-Type")
                    .value("application/json")
                    .build())
                .webhookMethod("PUT")
                .webhookName("terraform-tf-webhook")
                .webhookSecret("your secret")
                .webhookType("lark")
                .webhookUrl("http://zijie.com")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:tls:AlarmWebhookIntegration
        properties:
          webhookHeaders:
            - key: Content-Type
              value: application/json
          webhookMethod: PUT
          webhookName: terraform-tf-webhook
          webhookSecret: your secret
          webhookType: lark
          webhookUrl: http://zijie.com
    

    Create AlarmWebhookIntegration Resource

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

    Constructor syntax

    new AlarmWebhookIntegration(name: string, args: AlarmWebhookIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def AlarmWebhookIntegration(resource_name: str,
                                args: AlarmWebhookIntegrationArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlarmWebhookIntegration(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                webhook_name: Optional[str] = None,
                                webhook_type: Optional[str] = None,
                                webhook_url: Optional[str] = None,
                                webhook_headers: Optional[Sequence[AlarmWebhookIntegrationWebhookHeaderArgs]] = None,
                                webhook_method: Optional[str] = None,
                                webhook_secret: Optional[str] = None)
    func NewAlarmWebhookIntegration(ctx *Context, name string, args AlarmWebhookIntegrationArgs, opts ...ResourceOption) (*AlarmWebhookIntegration, error)
    public AlarmWebhookIntegration(string name, AlarmWebhookIntegrationArgs args, CustomResourceOptions? opts = null)
    public AlarmWebhookIntegration(String name, AlarmWebhookIntegrationArgs args)
    public AlarmWebhookIntegration(String name, AlarmWebhookIntegrationArgs args, CustomResourceOptions options)
    
    type: volcengine:tls:AlarmWebhookIntegration
    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 AlarmWebhookIntegrationArgs
    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 AlarmWebhookIntegrationArgs
    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 AlarmWebhookIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlarmWebhookIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlarmWebhookIntegrationArgs
    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 alarmWebhookIntegrationResource = new Volcengine.Tls.AlarmWebhookIntegration("alarmWebhookIntegrationResource", new()
    {
        WebhookName = "string",
        WebhookType = "string",
        WebhookUrl = "string",
        WebhookHeaders = new[]
        {
            new Volcengine.Tls.Inputs.AlarmWebhookIntegrationWebhookHeaderArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        WebhookMethod = "string",
        WebhookSecret = "string",
    });
    
    example, err := tls.NewAlarmWebhookIntegration(ctx, "alarmWebhookIntegrationResource", &tls.AlarmWebhookIntegrationArgs{
    	WebhookName: pulumi.String("string"),
    	WebhookType: pulumi.String("string"),
    	WebhookUrl:  pulumi.String("string"),
    	WebhookHeaders: tls.AlarmWebhookIntegrationWebhookHeaderArray{
    		&tls.AlarmWebhookIntegrationWebhookHeaderArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	WebhookMethod: pulumi.String("string"),
    	WebhookSecret: pulumi.String("string"),
    })
    
    var alarmWebhookIntegrationResource = new AlarmWebhookIntegration("alarmWebhookIntegrationResource", AlarmWebhookIntegrationArgs.builder()
        .webhookName("string")
        .webhookType("string")
        .webhookUrl("string")
        .webhookHeaders(AlarmWebhookIntegrationWebhookHeaderArgs.builder()
            .key("string")
            .value("string")
            .build())
        .webhookMethod("string")
        .webhookSecret("string")
        .build());
    
    alarm_webhook_integration_resource = volcengine.tls.AlarmWebhookIntegration("alarmWebhookIntegrationResource",
        webhook_name="string",
        webhook_type="string",
        webhook_url="string",
        webhook_headers=[{
            "key": "string",
            "value": "string",
        }],
        webhook_method="string",
        webhook_secret="string")
    
    const alarmWebhookIntegrationResource = new volcengine.tls.AlarmWebhookIntegration("alarmWebhookIntegrationResource", {
        webhookName: "string",
        webhookType: "string",
        webhookUrl: "string",
        webhookHeaders: [{
            key: "string",
            value: "string",
        }],
        webhookMethod: "string",
        webhookSecret: "string",
    });
    
    type: volcengine:tls:AlarmWebhookIntegration
    properties:
        webhookHeaders:
            - key: string
              value: string
        webhookMethod: string
        webhookName: string
        webhookSecret: string
        webhookType: string
        webhookUrl: string
    

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

    WebhookName string
    The name of the webhook integration.
    WebhookType string
    The type of the webhook integration.
    WebhookUrl string
    The URL of the webhook.
    WebhookHeaders List<AlarmWebhookIntegrationWebhookHeader>
    The headers of the webhook.
    WebhookMethod string
    The method of the webhook.
    WebhookSecret string
    The secret of the webhook.
    WebhookName string
    The name of the webhook integration.
    WebhookType string
    The type of the webhook integration.
    WebhookUrl string
    The URL of the webhook.
    WebhookHeaders []AlarmWebhookIntegrationWebhookHeaderArgs
    The headers of the webhook.
    WebhookMethod string
    The method of the webhook.
    WebhookSecret string
    The secret of the webhook.
    webhookName String
    The name of the webhook integration.
    webhookType String
    The type of the webhook integration.
    webhookUrl String
    The URL of the webhook.
    webhookHeaders List<AlarmWebhookIntegrationWebhookHeader>
    The headers of the webhook.
    webhookMethod String
    The method of the webhook.
    webhookSecret String
    The secret of the webhook.
    webhookName string
    The name of the webhook integration.
    webhookType string
    The type of the webhook integration.
    webhookUrl string
    The URL of the webhook.
    webhookHeaders AlarmWebhookIntegrationWebhookHeader[]
    The headers of the webhook.
    webhookMethod string
    The method of the webhook.
    webhookSecret string
    The secret of the webhook.
    webhook_name str
    The name of the webhook integration.
    webhook_type str
    The type of the webhook integration.
    webhook_url str
    The URL of the webhook.
    webhook_headers Sequence[AlarmWebhookIntegrationWebhookHeaderArgs]
    The headers of the webhook.
    webhook_method str
    The method of the webhook.
    webhook_secret str
    The secret of the webhook.
    webhookName String
    The name of the webhook integration.
    webhookType String
    The type of the webhook integration.
    webhookUrl String
    The URL of the webhook.
    webhookHeaders List<Property Map>
    The headers of the webhook.
    webhookMethod String
    The method of the webhook.
    webhookSecret String
    The secret of the webhook.

    Outputs

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

    CreateTime string
    The creation time of the webhook integration.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    The update time of the webhook integration.
    CreateTime string
    The creation time of the webhook integration.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    The update time of the webhook integration.
    createTime String
    The creation time of the webhook integration.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    The update time of the webhook integration.
    createTime string
    The creation time of the webhook integration.
    id string
    The provider-assigned unique ID for this managed resource.
    modifyTime string
    The update time of the webhook integration.
    create_time str
    The creation time of the webhook integration.
    id str
    The provider-assigned unique ID for this managed resource.
    modify_time str
    The update time of the webhook integration.
    createTime String
    The creation time of the webhook integration.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    The update time of the webhook integration.

    Look up Existing AlarmWebhookIntegration Resource

    Get an existing AlarmWebhookIntegration 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?: AlarmWebhookIntegrationState, opts?: CustomResourceOptions): AlarmWebhookIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            modify_time: Optional[str] = None,
            webhook_headers: Optional[Sequence[AlarmWebhookIntegrationWebhookHeaderArgs]] = None,
            webhook_method: Optional[str] = None,
            webhook_name: Optional[str] = None,
            webhook_secret: Optional[str] = None,
            webhook_type: Optional[str] = None,
            webhook_url: Optional[str] = None) -> AlarmWebhookIntegration
    func GetAlarmWebhookIntegration(ctx *Context, name string, id IDInput, state *AlarmWebhookIntegrationState, opts ...ResourceOption) (*AlarmWebhookIntegration, error)
    public static AlarmWebhookIntegration Get(string name, Input<string> id, AlarmWebhookIntegrationState? state, CustomResourceOptions? opts = null)
    public static AlarmWebhookIntegration get(String name, Output<String> id, AlarmWebhookIntegrationState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:tls:AlarmWebhookIntegration    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:
    CreateTime string
    The creation time of the webhook integration.
    ModifyTime string
    The update time of the webhook integration.
    WebhookHeaders List<AlarmWebhookIntegrationWebhookHeader>
    The headers of the webhook.
    WebhookMethod string
    The method of the webhook.
    WebhookName string
    The name of the webhook integration.
    WebhookSecret string
    The secret of the webhook.
    WebhookType string
    The type of the webhook integration.
    WebhookUrl string
    The URL of the webhook.
    CreateTime string
    The creation time of the webhook integration.
    ModifyTime string
    The update time of the webhook integration.
    WebhookHeaders []AlarmWebhookIntegrationWebhookHeaderArgs
    The headers of the webhook.
    WebhookMethod string
    The method of the webhook.
    WebhookName string
    The name of the webhook integration.
    WebhookSecret string
    The secret of the webhook.
    WebhookType string
    The type of the webhook integration.
    WebhookUrl string
    The URL of the webhook.
    createTime String
    The creation time of the webhook integration.
    modifyTime String
    The update time of the webhook integration.
    webhookHeaders List<AlarmWebhookIntegrationWebhookHeader>
    The headers of the webhook.
    webhookMethod String
    The method of the webhook.
    webhookName String
    The name of the webhook integration.
    webhookSecret String
    The secret of the webhook.
    webhookType String
    The type of the webhook integration.
    webhookUrl String
    The URL of the webhook.
    createTime string
    The creation time of the webhook integration.
    modifyTime string
    The update time of the webhook integration.
    webhookHeaders AlarmWebhookIntegrationWebhookHeader[]
    The headers of the webhook.
    webhookMethod string
    The method of the webhook.
    webhookName string
    The name of the webhook integration.
    webhookSecret string
    The secret of the webhook.
    webhookType string
    The type of the webhook integration.
    webhookUrl string
    The URL of the webhook.
    create_time str
    The creation time of the webhook integration.
    modify_time str
    The update time of the webhook integration.
    webhook_headers Sequence[AlarmWebhookIntegrationWebhookHeaderArgs]
    The headers of the webhook.
    webhook_method str
    The method of the webhook.
    webhook_name str
    The name of the webhook integration.
    webhook_secret str
    The secret of the webhook.
    webhook_type str
    The type of the webhook integration.
    webhook_url str
    The URL of the webhook.
    createTime String
    The creation time of the webhook integration.
    modifyTime String
    The update time of the webhook integration.
    webhookHeaders List<Property Map>
    The headers of the webhook.
    webhookMethod String
    The method of the webhook.
    webhookName String
    The name of the webhook integration.
    webhookSecret String
    The secret of the webhook.
    webhookType String
    The type of the webhook integration.
    webhookUrl String
    The URL of the webhook.

    Supporting Types

    AlarmWebhookIntegrationWebhookHeader, AlarmWebhookIntegrationWebhookHeaderArgs

    Key string
    The key of the header.
    Value string
    The value of the header.
    Key string
    The key of the header.
    Value string
    The value of the header.
    key String
    The key of the header.
    value String
    The value of the header.
    key string
    The key of the header.
    value string
    The value of the header.
    key str
    The key of the header.
    value str
    The value of the header.
    key String
    The key of the header.
    value String
    The value of the header.

    Import

    tls alarm webhook integration can be imported using the alarm_webhook_integration_id, e.g.

    $ pulumi import volcengine:tls/alarmWebhookIntegration:AlarmWebhookIntegration default alarm-webhook-integration-123456
    

    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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate