From 85661525e5a1c3c7b175663c9130ce1cd15f2abf Mon Sep 17 00:00:00 2001 From: Dylan Ratcliffe Date: Fri, 9 Aug 2024 10:24:50 +0100 Subject: [PATCH] Fixed docs data --- docs-data/kms-key.json | 10 +++++++++- sources/kms/key.go | 10 +++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs-data/kms-key.json b/docs-data/kms-key.json index c9aef9dc..f91eb4a6 100644 --- a/docs-data/kms-key.json +++ b/docs-data/kms-key.json @@ -1,7 +1,15 @@ { "type": "kms-key", "descriptiveType": "KMS Key", - "group": "", + "getDescription": "Get a KMS Key by its ID", + "listDescription": "List all KMS Keys", + "searchDescription": "Search for KMS Keys by ARN", + "group": "AWS", + "terraformQuery": [ + "aws_kms_key.key_id" + ], + "terraformMethod": "GET", + "terraformScope": "*", "links": [ "kms-custom-key-store" ] diff --git a/sources/kms/key.go b/sources/kms/key.go index 22b6d14e..0ffe2bf8 100644 --- a/sources/kms/key.go +++ b/sources/kms/key.go @@ -94,11 +94,11 @@ func getFunc(ctx context.Context, client kmsClient, scope string, input *kms.Des //go:generate docgen ../../docs-data // +overmind:type kms-key // +overmind:descriptiveType KMS Key -// +overmind: get Get a KMS Key by its ID -// +overmind: list List all KMS Keys -// +overmind: search Search for KMS Keys by ARN -// +overmind: group AWS -// +overmind: terraform:queryMap aws_kms_key.key_id +// +overmind:get Get a KMS Key by its ID +// +overmind:list List all KMS Keys +// +overmind:search Search for KMS Keys by ARN +// +overmind:group AWS +// +overmind:terraform:queryMap aws_kms_key.key_id func NewKeySource(client kmsClient, accountID, region string) *sources.AlwaysGetSource[*kms.ListKeysInput, *kms.ListKeysOutput, *kms.DescribeKeyInput, *kms.DescribeKeyOutput, kmsClient, *kms.Options] { return &sources.AlwaysGetSource[*kms.ListKeysInput, *kms.ListKeysOutput, *kms.DescribeKeyInput, *kms.DescribeKeyOutput, kmsClient, *kms.Options]{