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:
- Webhook
Name string - The name of the webhook integration.
- Webhook
Type string - The type of the webhook integration.
- Webhook
Url string - The URL of the webhook.
- Webhook
Headers List<AlarmWebhook Integration Webhook Header> - The headers of the webhook.
- Webhook
Method string - The method of the webhook.
- Webhook
Secret string - The secret of the webhook.
- Webhook
Name string - The name of the webhook integration.
- Webhook
Type string - The type of the webhook integration.
- Webhook
Url string - The URL of the webhook.
- Webhook
Headers []AlarmWebhook Integration Webhook Header Args - The headers of the webhook.
- Webhook
Method string - The method of the webhook.
- Webhook
Secret string - The secret of the webhook.
- webhook
Name String - The name of the webhook integration.
- webhook
Type String - The type of the webhook integration.
- webhook
Url String - The URL of the webhook.
- webhook
Headers List<AlarmWebhook Integration Webhook Header> - The headers of the webhook.
- webhook
Method String - The method of the webhook.
- webhook
Secret String - The secret of the webhook.
- webhook
Name string - The name of the webhook integration.
- webhook
Type string - The type of the webhook integration.
- webhook
Url string - The URL of the webhook.
- webhook
Headers AlarmWebhook Integration Webhook Header[] - The headers of the webhook.
- webhook
Method string - The method of the webhook.
- webhook
Secret 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[AlarmWebhook Integration Webhook Header Args] - The headers of the webhook.
- webhook_
method str - The method of the webhook.
- webhook_
secret str - The secret of the webhook.
- webhook
Name String - The name of the webhook integration.
- webhook
Type String - The type of the webhook integration.
- webhook
Url String - The URL of the webhook.
- webhook
Headers List<Property Map> - The headers of the webhook.
- webhook
Method String - The method of the webhook.
- webhook
Secret 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:
- Create
Time string - The creation time of the webhook integration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Time string - The update time of the webhook integration.
- Create
Time string - The creation time of the webhook integration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Time string - The update time of the webhook integration.
- create
Time String - The creation time of the webhook integration.
- id String
- The provider-assigned unique ID for this managed resource.
- modify
Time String - The update time of the webhook integration.
- create
Time string - The creation time of the webhook integration.
- id string
- The provider-assigned unique ID for this managed resource.
- modify
Time 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.
- create
Time String - The creation time of the webhook integration.
- id String
- The provider-assigned unique ID for this managed resource.
- modify
Time 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) -> AlarmWebhookIntegrationfunc 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.
- Create
Time string - The creation time of the webhook integration.
- Modify
Time string - The update time of the webhook integration.
- Webhook
Headers List<AlarmWebhook Integration Webhook Header> - The headers of the webhook.
- Webhook
Method string - The method of the webhook.
- Webhook
Name string - The name of the webhook integration.
- Webhook
Secret string - The secret of the webhook.
- Webhook
Type string - The type of the webhook integration.
- Webhook
Url string - The URL of the webhook.
- Create
Time string - The creation time of the webhook integration.
- Modify
Time string - The update time of the webhook integration.
- Webhook
Headers []AlarmWebhook Integration Webhook Header Args - The headers of the webhook.
- Webhook
Method string - The method of the webhook.
- Webhook
Name string - The name of the webhook integration.
- Webhook
Secret string - The secret of the webhook.
- Webhook
Type string - The type of the webhook integration.
- Webhook
Url string - The URL of the webhook.
- create
Time String - The creation time of the webhook integration.
- modify
Time String - The update time of the webhook integration.
- webhook
Headers List<AlarmWebhook Integration Webhook Header> - The headers of the webhook.
- webhook
Method String - The method of the webhook.
- webhook
Name String - The name of the webhook integration.
- webhook
Secret String - The secret of the webhook.
- webhook
Type String - The type of the webhook integration.
- webhook
Url String - The URL of the webhook.
- create
Time string - The creation time of the webhook integration.
- modify
Time string - The update time of the webhook integration.
- webhook
Headers AlarmWebhook Integration Webhook Header[] - The headers of the webhook.
- webhook
Method string - The method of the webhook.
- webhook
Name string - The name of the webhook integration.
- webhook
Secret string - The secret of the webhook.
- webhook
Type string - The type of the webhook integration.
- webhook
Url 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[AlarmWebhook Integration Webhook Header Args] - 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.
- create
Time String - The creation time of the webhook integration.
- modify
Time String - The update time of the webhook integration.
- webhook
Headers List<Property Map> - The headers of the webhook.
- webhook
Method String - The method of the webhook.
- webhook
Name String - The name of the webhook integration.
- webhook
Secret String - The secret of the webhook.
- webhook
Type String - The type of the webhook integration.
- webhook
Url String - The URL of the webhook.
Supporting Types
AlarmWebhookIntegrationWebhookHeader, AlarmWebhookIntegrationWebhookHeaderArgs
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
volcengineTerraform Provider.
