Skip to content

Commit d555ed5

Browse files
authored
fix(aws): Add name and vendor_name to aws_wafv2_managed_rule_groups primary key (#6843)
Non breaking as `name` and `vendor_name` are both part of already existing resources.
1 parent 9b8b5b1 commit d555ed5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/source/aws/docs/tables/aws_wafv2_managed_rule_groups.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
https://docs.aws.amazon.com/waf/latest/APIReference/API_ManagedRuleGroupSummary.html
44

5-
The composite primary key for this table is (**account_id**, **region**, **scope**).
5+
The composite primary key for this table is (**account_id**, **region**, **scope**, **name**, **vendor_name**).
66

77
## Columns
88

@@ -17,6 +17,6 @@ The composite primary key for this table is (**account_id**, **region**, **scope
1717
|scope (PK)|String|
1818
|properties|JSON|
1919
|description|String|
20-
|name|String|
21-
|vendor_name|String|
20+
|name (PK)|String|
21+
|vendor_name (PK)|String|
2222
|versioning_supported|Bool|

plugins/source/aws/resources/services/wafv2/managed_rule_groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func ManagedRuleGroups() *schema.Table {
1212
Name: "aws_wafv2_managed_rule_groups",
1313
Description: `https://docs.aws.amazon.com/waf/latest/APIReference/API_ManagedRuleGroupSummary.html`,
1414
Resolver: fetchWafv2ManagedRuleGroups,
15-
Transform: transformers.TransformWithStruct(&types.ManagedRuleGroupSummary{}),
15+
Transform: transformers.TransformWithStruct(&types.ManagedRuleGroupSummary{}, transformers.WithPrimaryKeys("Name", "VendorName")),
1616
Multiplex: client.ServiceAccountRegionScopeMultiplexer("waf-regional"),
1717
Columns: []schema.Column{
1818
{

0 commit comments

Comments
 (0)