diff --git a/plugins/source/aws/docs/tables/aws_backup_global_settings.md b/plugins/source/aws/docs/tables/aws_backup_global_settings.md index 99a655d1702a80..7c75c740e0ea67 100644 --- a/plugins/source/aws/docs/tables/aws_backup_global_settings.md +++ b/plugins/source/aws/docs/tables/aws_backup_global_settings.md @@ -2,7 +2,7 @@ https://docs.aws.amazon.com/aws-backup/latest/devguide/API_DescribeGlobalSettings.html -The primary key for this table is **account_id**. +The composite primary key for this table is (**account_id**, **region**). ## Columns @@ -13,6 +13,7 @@ The primary key for this table is **account_id**. |_cq_id|UUID| |_cq_parent_id|UUID| |account_id (PK)|String| +|region (PK)|String| |global_settings|JSON| |last_update_time|Timestamp| |result_metadata|JSON| \ No newline at end of file diff --git a/plugins/source/aws/resources/services/backup/global_settings.go b/plugins/source/aws/resources/services/backup/global_settings.go index d95561b6fca1b0..c51a26840e87ef 100644 --- a/plugins/source/aws/resources/services/backup/global_settings.go +++ b/plugins/source/aws/resources/services/backup/global_settings.go @@ -23,6 +23,14 @@ func GlobalSettings() *schema.Table { PrimaryKey: true, }, }, + { + Name: "region", + Type: schema.TypeString, + Resolver: client.ResolveAWSRegion, + CreationOptions: schema.ColumnCreationOptions{ + PrimaryKey: true, + }, + }, }, } }