Skip to content

Commit a9584fd

Browse files
authored
feat: Add cq-gen hcl and a new field to sqs queues (#1453)
1 parent b4f335d commit a9584fd

File tree

8 files changed

+244
-170
lines changed

8 files changed

+244
-170
lines changed
Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11

22
# Table: aws_sqs_queues
3-
Simple Queue Service
3+
Amazon Simple Queue Service
44
## Columns
55
| Name | Type | Description |
66
| ------------- | ------------- | ----- |
7-
|account_id|text|The AWS Account ID of the resource.|
8-
|region|text|The AWS Region of the resource.|
9-
|url|text|Queue URL|
10-
|policy|jsonb|The queue's policy. A valid Amazon Web Services policy.|
11-
|visibility_timeout|integer|The visibility timeout for the queue, in seconds.|
12-
|maximum_message_size|integer|The limit of how many bytes a message can contain before Amazon SQS rejects it.|
13-
|message_retention_period|integer|The length of time, in seconds, for which Amazon SQS retains a message.|
14-
|approximate_number_of_messages|integer|The approximate number of messages available for retrieval from the queue.|
15-
|approximate_number_of_messages_not_visible|integer|The approximate number of messages that are in flight.|
16-
|created_timestamp|timestamp without time zone|UNIX time when the queue was created.|
17-
|last_modified_timestamp|timestamp without time zone|UNIX time when the queue was last changed.|
18-
|arn|text|Amazon resource name (ARN) of the queue.|
19-
|approximate_number_of_messages_delayed|integer|The approximate number of messages in the queue that are delayed and not available for reading immediately.|
20-
|delay_seconds|integer|The default delay on the queue in seconds.|
21-
|receive_message_wait_time_seconds|integer|the length of time, in seconds, for which the ReceiveMessage action waits for a message to arrive.|
22-
|redrive_policy|jsonb|The parameters for the dead-letter queue functionality of the source queue as a JSON object.|
23-
|fifo_queue|boolean|True if the queue is FIFO queue.|
24-
|content_based_deduplication|boolean|True if content-based deduplication is enabled for the queue.|
25-
|kms_master_key_id|text|ID of an Amazon Web Services managed customer master key (CMK) for Amazon SQS or a custom CMK.|
26-
|kms_data_key_reuse_period_seconds|integer|The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling KMS again.|
27-
|deduplication_scope|text|Specifies whether message deduplication occurs at the message group or queue level.|
28-
|fifo_throughput_limit|text|Specifies whether message deduplication occurs at the message group or queue level.|
29-
|redrive_allow_policy|jsonb|The parameters for the permissions for the dead-letter queue redrive permission.|
30-
|tags|jsonb|Queue tags.|
31-
|unknown_fields|jsonb|Other queue attributes|
7+
|account_id|text|The AWS Account ID of the resource|
8+
|region|text|The AWS Region of the resource|
9+
|tags|jsonb||
10+
|url|text|The URL of the Amazon SQS queue|
11+
|approximate_number_of_messages|bigint|The approximate number of messages available for retrieval from the queue|
12+
|approximate_number_of_messages_delayed|bigint|The approximate number of messages in the queue that are delayed and not available for reading immediately|
13+
|approximate_number_of_messages_not_visible|bigint|The approximate number of messages that are in flight|
14+
|created_timestamp|bigint|The time when the queue was created in seconds (epoch time)|
15+
|delay_seconds|bigint|The default delay on the queue in seconds|
16+
|last_modified_timestamp|bigint|The time when the queue was last changed in seconds (epoch time)|
17+
|maximum_message_size|bigint|The limit of how many bytes a message can contain before Amazon SQS rejects it|
18+
|message_retention_period|bigint|The length of time, in seconds, for which Amazon SQS retains a message|
19+
|policy|jsonb|The policy of the queue|
20+
|arn|text|The Amazon resource name (ARN) of the queue|
21+
|receive_message_wait_time_seconds|bigint|The length of time, in seconds, for which the ReceiveMessage action waits for a message to arrive|
22+
|redrive_policy|jsonb|The parameters for the dead-letter queue functionality of the source queue as a JSON object|
23+
|visibility_timeout|bigint|The visibility timeout for the queue|
24+
|kms_master_key_id|text|The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SQS or a custom CMK|
25+
|kms_data_key_reuse_period_seconds|bigint|The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling KMS again|
26+
|sqs_managed_sse_enabled|boolean|True if the queue is using SSE-SQS encryption using SQS owned encryption keys|
27+
|fifo_queue|boolean|True if the queue is FIFO queue|
28+
|content_based_deduplication|boolean|True if content-based deduplication is enabled for the queue|
29+
|deduplication_scope|text|Specifies whether message deduplication occurs at the message group or queue level|
30+
|fifo_throughput_limit|text|Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group|
31+
|redrive_allow_policy|jsonb|The parameters for the dead-letter queue functionality of the source queue as a JSON object|
32+
|unknown_fields|jsonb||

plugins/source/aws/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ require (
6565
github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.15.12
6666
github.com/aws/aws-sdk-go-v2/service/sesv2 v1.13.8
6767
github.com/aws/aws-sdk-go-v2/service/sns v1.17.13
68-
github.com/aws/aws-sdk-go-v2/service/sqs v1.18.7
68+
github.com/aws/aws-sdk-go-v2/service/sqs v1.19.4
6969
github.com/aws/aws-sdk-go-v2/service/ssm v1.27.3
7070
github.com/aws/aws-sdk-go-v2/service/sts v1.16.9
7171
github.com/aws/aws-sdk-go-v2/service/waf v1.11.7

plugins/source/aws/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ github.com/aws/aws-sdk-go-v2/service/shield v1.16.7 h1:bfyTNq3U7GXyFAr2fSJ1OaV5Z
225225
github.com/aws/aws-sdk-go-v2/service/shield v1.16.7/go.mod h1:T7HfO9ktODwkrs+RlBFSgvOiVhLjn2eEBN8n2266rLY=
226226
github.com/aws/aws-sdk-go-v2/service/sns v1.17.13 h1:sa8NDFztt68pihEfE31LhX+nJ1wDBJHcFh3T6crluDo=
227227
github.com/aws/aws-sdk-go-v2/service/sns v1.17.13/go.mod h1:yE3hE9v3YRRI9Rsl38kYJ4fyZ6vKSljaZ+28W5xzqgM=
228-
github.com/aws/aws-sdk-go-v2/service/sqs v1.18.7 h1:4inF55jYDETXLUr29ZlAq6Pipq9NTUTxQC5bLQJtjf4=
229-
github.com/aws/aws-sdk-go-v2/service/sqs v1.18.7/go.mod h1:E2OxTDUWA7s1TCdvBm+RDEjyssunta3SuSeqHUdFrCM=
228+
github.com/aws/aws-sdk-go-v2/service/sqs v1.19.4 h1:oh5H2PKbJjscx5qqzzHgRnvVfawnAHvXbveccji9Dto=
229+
github.com/aws/aws-sdk-go-v2/service/sqs v1.19.4/go.mod h1:Dw9c3ot3Ln8ODHq1Xjj9xoRyq4tg1tTX8gbQkpZ0KMQ=
230230
github.com/aws/aws-sdk-go-v2/service/ssm v1.27.3 h1:rujlES62T0e+YDecfhoANcIXCdpLC/+lNNZSlcagf/g=
231231
github.com/aws/aws-sdk-go-v2/service/ssm v1.27.3/go.mod h1:TC7jF1xDm6fw3gIyq76miW12Z3u8zi8Q8kr7OYyAPus=
232232
github.com/aws/aws-sdk-go-v2/service/sso v1.11.12 h1:760bUnTX/+d693FT6T6Oa7PZHfEQT9XMFZeM5IQIB0A=

plugins/source/aws/resources/provider/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func Provider() *provider.Provider {
285285
"shield.subscriptions": shield.Subscriptions(),
286286
"sns.subscriptions": sns.Subscriptions(),
287287
"sns.topics": sns.Topics(),
288-
"sqs.queues": sqs.SQSQueues(),
288+
"sqs.queues": sqs.Queues(),
289289
"ssm.documents": ssm.SsmDocuments(),
290290
"ssm.instances": ssm.SsmInstances(),
291291
"ssm.parameters": ssm.Parameters(),

0 commit comments

Comments
 (0)