Skip to content

Commit 7d4a657

Browse files
authored
feat(aws)!: Define primary key for dynamodb_table_continuous_backups (#12409)
#### Summary This PR is aimed to address #12395 by creating a primary key (`table_arn`) on `aws_dynamodb_table_continuous_backups` table.
1 parent cce0cac commit 7d4a657

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

plugins/source/aws/resources/services/dynamodb/table_continuous_backups.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ func tableContinuousBackups() *schema.Table {
1919
client.DefaultAccountIDColumn(false),
2020
client.DefaultRegionColumn(false),
2121
{
22-
Name: "table_arn",
23-
Type: arrow.BinaryTypes.String,
24-
Resolver: schema.ParentColumnResolver("arn"),
22+
Name: "table_arn",
23+
Type: arrow.BinaryTypes.String,
24+
Resolver: schema.ParentColumnResolver("arn"),
25+
PrimaryKey: true,
2526
},
2627
},
2728
}

website/tables/aws/aws_dynamodb_table_continuous_backups.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This table shows data for Amazon DynamoDB Table Continuous Backups.
44

55
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ContinuousBackupsDescription.html
66

7-
The primary key for this table is **_cq_id**.
7+
The primary key for this table is **table_arn**.
88

99
## Relations
1010

@@ -14,11 +14,11 @@ This table depends on [aws_dynamodb_tables](aws_dynamodb_tables).
1414

1515
| Name | Type |
1616
| ------------- | ------------- |
17-
|_cq_id (PK)|`uuid`|
17+
|_cq_id|`uuid`|
1818
|_cq_parent_id|`uuid`|
1919
|account_id|`utf8`|
2020
|region|`utf8`|
21-
|table_arn|`utf8`|
21+
|table_arn (PK)|`utf8`|
2222
|continuous_backups_status|`utf8`|
2323
|point_in_time_recovery_description|`json`|
2424

0 commit comments

Comments
 (0)