Package com.pulumi.cloudamqp
Class Webhook
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.cloudamqp.Webhook
-
public class Webhook extends com.pulumi.resources.CustomResourceThis resource allows you to enable or disable webhooks for a specific vhost and queue. Only available for dedicated subscription plans. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.cloudamqp.Webhook; import com.pulumi.cloudamqp.WebhookArgs; 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 webhookQueue = new Webhook("webhookQueue", WebhookArgs.builder() .instanceId(cloudamqp_instance.instance().id()) .vhost("myvhost") .queue("webhook-queue") .webhookUri("https://example.com/webhook?key=secret") .retryInterval(5) .concurrency(5) .build()); } } ``` ## Dependency This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`. ## Import `cloudamqp_webhook` can be imported using the resource identifier together with CloudAMQP instance identifier. The identifiers are CSV separated, see example below. ```sh $ pulumi import cloudamqp:index/webhook:Webhook webhook_queue <id>,<instance_id>` ```
-
-
Constructor Summary
Constructors Constructor Description Webhook(java.lang.String name)Webhook(java.lang.String name, WebhookArgs args)Webhook(java.lang.String name, WebhookArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Integer>concurrency()static Webhookget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, WebhookState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.Integer>instanceId()com.pulumi.core.Output<java.lang.String>queue()com.pulumi.core.Output<java.lang.Integer>retryInterval()com.pulumi.core.Output<java.lang.String>vhost()com.pulumi.core.Output<java.lang.String>webhookUri()
-
-
-
Constructor Detail
-
Webhook
public Webhook(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Webhook
public Webhook(java.lang.String name, WebhookArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Webhook
public Webhook(java.lang.String name, WebhookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
concurrency
public com.pulumi.core.Output<java.lang.Integer> concurrency()
- Returns:
- Max simultaneous requests to the endpoint.
-
instanceId
public com.pulumi.core.Output<java.lang.Integer> instanceId()
- Returns:
- The CloudAMQP instance ID.
-
queue
public com.pulumi.core.Output<java.lang.String> queue()
- Returns:
- A (durable) queue on your RabbitMQ instance.
-
retryInterval
public com.pulumi.core.Output<java.lang.Integer> retryInterval()
- Returns:
- How often we retry if your endpoint fails (in seconds).
-
vhost
public com.pulumi.core.Output<java.lang.String> vhost()
- Returns:
- The vhost the queue resides in.
-
webhookUri
public com.pulumi.core.Output<java.lang.String> webhookUri()
- Returns:
- A POST request will be made for each message in the queue to this endpoint.
-
get
public static Webhook get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable WebhookState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-