From 0a640f7f963898dfdff8319becc8e7dedec6ea83 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Fri, 8 Nov 2024 17:54:38 +0100 Subject: [PATCH] feat: add multi_region and multi_region_configuration columns to aws_kms_key table --- aws/table_aws_kms_key.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/aws/table_aws_kms_key.go b/aws/table_aws_kms_key.go index cecb21ea9..6a4743c32 100644 --- a/aws/table_aws_kms_key.go +++ b/aws/table_aws_kms_key.go @@ -183,6 +183,20 @@ func tableAwsKmsKey(ctx context.Context) *plugin.Table { Type: proto.ColumnType_JSON, Hydrate: getAwsKmsKeyTagging, }, + { + Name: "multi_region", + Description: "Specifies whether the CMK is KMS key is a multi-Region (true) or regional (false) key.", + Type: proto.ColumnType_BOOL, + Hydrate: getAwsKmsKeyData, + Transform: transform.FromField("KeyMetadata.MultiRegion"), + }, + { + Name: "multi_region_configuration", + Description: "Lists the primary and replica keys in same multi-Region key.", + Type: proto.ColumnType_JSON, + Hydrate: getAwsKmsKeyData, + Transform: transform.FromField("KeyMetadata.MultiRegionConfiguration"), + }, /// Standard columns for all tables {