Skip to content

Commit

Permalink
Add multi_region and multi_region_configuration columns to aws_kms_ke…
Browse files Browse the repository at this point in the history
…y table (#2338)
  • Loading branch information
pdecat authored Nov 14, 2024
1 parent 4089059 commit 31aec6b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions aws/table_aws_kms_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 31aec6b

Please sign in to comment.