Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBS proposal refinements #394

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docs/resources/dbs_sqs_subscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,26 @@ resource "hsdp_dbs_sqs_subscriber" {
The following arguments are supported:

* `name_infix` - (Required) The name infix of the subscriber
* `description` - (Optional) A short description of the subscriber
* `description` - (Required) A short description of the subscriber
* `queue_type` - (Required) The type of queue to create [`Standard` | `FIFO`]
* `delivery_delay_seconds` - (Optional) The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default is 0 (zero).
* `message_retention_period_seconds` - (Optional) The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default is 345600 (4 days).
* `receive_wait_time_seconds` - (Optional) The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default is 0 (zero).
* `server_side_encryption` - (Optional) Boolean designating whether to enable server-side encryption. Default is `false`
* `server_side_encryption` - (Optional) Boolean designating whether to enable server-side encryption. Default is `true`

## Attributes reference

In addition to all arguments above, the following attributes are exported:

* `id` - The ID reference of the subscriber (format: `Subscriber/${GUID}`)
* `id` - The ID reference of the subscriber (format: `${GUID}`)
* `name` - The name of the subscriber
* `status` - The status of the subscriber
* `queue_name` - The name of the queue

* `queue_name` - The name of the SQS queue

## Import

DBS SQS Subscribers cannot be imported into this resource.
An existing SQS Subscriber using `terraform import hsdp_dbs_sqs_subscriber`, e.g.

```bash
terraform import hsdp_dbs_sqs_subscriber.target guid-of-the-subscriber-to-import
```
48 changes: 0 additions & 48 deletions docs/resources/dbs_subscription_topic.md

This file was deleted.

53 changes: 53 additions & 0 deletions docs/resources/dbs_topic_subscription.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
subcategory: "Data Broker Service (DBS)"
page_title: "HSDP: hsdp_dbs_subscription_topic"
description: |-
Manages Connect DBS SQS Subscription topics
---

# hsdp_dbs_topic_subscription

Manages Connect DBS Topic Subscriptions

## Example Usage

```hcl
resources "hsdp_dbs_topic_subscription" "my-topic" {
name_infix = "my-topic"
description = "My topic"

data_type = "some-type"
subscriber_id = hsdp_dbs_sqs_subscriber.my-subscriber.id

deliver_data_only = true

}
```

## Argument Reference

The following arguments are supported:

* `name_infix` - (Required) The name infix of the subscription
* `description` - (Required) A short description of the subscription
* `subscriber_id` - (Required) The ID of the subscriber to associate with this topic subscription
* `data_type` - (Required) The data type of the topic
* `deliver_data_only` - (Optional) Boolean designating whether to deliver only data (true) or data and metadata (false). Default is `false`
* `kinesis_stream_partition_key` - (Optional) When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:= `${newuuid()}`

## Attributes reference

In addition to all arguments above, the following attributes are exported:

* `id` - The ID reference of the subscription (format: `${GUID}`)
* `name` - The name of the subscription
* `status` - The status of the subscription
* `rule_name` - The rule name of the subscription

## Import

An existing Topic subscription using `terraform import hsdp_dbs_topic_subscription`, e.g.

```bash
terraform import hsdp_dbs_topic_subscription.target guid-of-the-subscription-to-import
```
Loading