Package com.pulumi.cloudamqp
Class IntegrationAwsEventbridge
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.cloudamqp.IntegrationAwsEventbridge
-
public class IntegrationAwsEventbridge extends com.pulumi.resources.CustomResourceThis resource allows you to create and manage, an [AWS EventBridge](https://aws.amazon.com/eventbridge/) for a CloudAMQP instance. Once created, continue to map the EventBridge in the [AWS Eventbridge console](https://console.aws.amazon.com/events/home). > Our consumer needs to have exclusive usage to the configured queue and the maximum body size allowed on msgs by AWS is 256kb. The message body has to be valid JSON for AWS Eventbridge to accept it. If messages are too large or are not valid JSON, they will be rejected (tip: setup a dead-letter queue to catch them). Not possible to update this resource. Any changes made to the argument will destroy and recreate the resource. Hence why all arguments use ForceNew. 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.Instance; import com.pulumi.cloudamqp.InstanceArgs; import com.pulumi.cloudamqp.IntegrationAwsEventbridge; import com.pulumi.cloudamqp.IntegrationAwsEventbridgeArgs; 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 instance = new Instance("instance", InstanceArgs.builder() .plan("squirrel-1") .region("amazon-web-services::us-west-1") .rmqVersion("3.11.5") .tags("aws") .build()); var awsEventbridge = new IntegrationAwsEventbridge("awsEventbridge", IntegrationAwsEventbridgeArgs.builder() .instanceId(instance.id()) .vhost(instance.vhost()) .queue("<QUEUE-NAME>") .awsAccountId("<AWS-ACCOUNT-ID>") .awsRegion("us-west-1") .withHeaders(true) .build()); } } ``` ## Argument references The following arguments are supported: * `aws_account_id` - (ForceNew/Required) The 12 digit AWS Account ID where you want the events to be sent to. * `aws_region`- (ForceNew/Required) The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.) * `vhost`- (ForceNew/Required) The VHost the queue resides in. * `queue` - (ForceNew/Required) A (durable) queue on your RabbitMQ instance. * `with_headers` - (ForceNew/Required) Include message headers in the event data. `({ "headers": { }, "body": { "your": "message" } })` ## Dependency This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`. ## Import `cloudamqp_integration_aws_eventbridge` can be imported using CloudAMQP internal identifier of the AWS EventBridge together (CSV separated) with the instance identifier. To retrieve the AWS EventBridge identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-eventbridges) ```sh $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge aws_eventbridge <id>,<instance_id>` ```
-
-
Constructor Summary
Constructors Constructor Description IntegrationAwsEventbridge(java.lang.String name)IntegrationAwsEventbridge(java.lang.String name, IntegrationAwsEventbridgeArgs args)IntegrationAwsEventbridge(java.lang.String name, IntegrationAwsEventbridgeArgs 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.String>awsAccountId()com.pulumi.core.Output<java.lang.String>awsRegion()static IntegrationAwsEventbridgeget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, IntegrationAwsEventbridgeState 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.String>status()com.pulumi.core.Output<java.lang.String>vhost()com.pulumi.core.Output<java.lang.Boolean>withHeaders()
-
-
-
Constructor Detail
-
IntegrationAwsEventbridge
public IntegrationAwsEventbridge(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
IntegrationAwsEventbridge
public IntegrationAwsEventbridge(java.lang.String name, IntegrationAwsEventbridgeArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
IntegrationAwsEventbridge
public IntegrationAwsEventbridge(java.lang.String name, IntegrationAwsEventbridgeArgs 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
-
awsAccountId
public com.pulumi.core.Output<java.lang.String> awsAccountId()
- Returns:
- The 12 digit AWS Account ID where you want the events to be sent to.
-
awsRegion
public com.pulumi.core.Output<java.lang.String> awsRegion()
- Returns:
- The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
-
instanceId
public com.pulumi.core.Output<java.lang.Integer> instanceId()
- Returns:
- Instance identifier
-
queue
public com.pulumi.core.Output<java.lang.String> queue()
- Returns:
- A (durable) queue on your RabbitMQ instance.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- Always set to null, unless there is an error starting the EventBridge.
-
vhost
public com.pulumi.core.Output<java.lang.String> vhost()
- Returns:
- The VHost the queue resides in.
-
withHeaders
public com.pulumi.core.Output<java.lang.Boolean> withHeaders()
- Returns:
- Include message headers in the event data.
-
get
public static IntegrationAwsEventbridge get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable IntegrationAwsEventbridgeState 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.
-
-