From 856f4696307b1aa961f703a6cf6fdfb4ebf2bf92 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 20 Sep 2023 11:26:21 -0700 Subject: [PATCH] Add missing AWS LR entries Autogenerated after the backport from v8 Signed-off-by: Tim Smith --- providers/aws/resources/aws.lr.go | 12 ++++++++++++ providers/aws/resources/aws.lr.manifest.yaml | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/providers/aws/resources/aws.lr.go b/providers/aws/resources/aws.lr.go index a83899cf30..c115b9ef8f 100644 --- a/providers/aws/resources/aws.lr.go +++ b/providers/aws/resources/aws.lr.go @@ -1872,6 +1872,9 @@ var getDataFields = map[string]func(r plugin.Resource) *plugin.DataRes{ "aws.rds.dbinstance.status": func(r plugin.Resource) *plugin.DataRes { return (r.(*mqlAwsRdsDbinstance).GetStatus()).ToDataRes(types.String) }, + "aws.rds.dbinstance.autoMinorVersionUpgrade": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAwsRdsDbinstance).GetAutoMinorVersionUpgrade()).ToDataRes(types.Bool) + }, "aws.elasticache.clusters": func(r plugin.Resource) *plugin.DataRes { return (r.(*mqlAwsElasticache).GetClusters()).ToDataRes(types.Array(types.Dict)) }, @@ -4640,6 +4643,10 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool { r.(*mqlAwsRdsDbinstance).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) return }, + "aws.rds.dbinstance.autoMinorVersionUpgrade": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAwsRdsDbinstance).AutoMinorVersionUpgrade, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, "aws.elasticache.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlAwsElasticache).__id, ok = v.Value.(string) return @@ -12403,6 +12410,7 @@ type mqlAwsRdsDbinstance struct { Engine plugin.TValue[string] SecurityGroups plugin.TValue[[]interface{}] Status plugin.TValue[string] + AutoMinorVersionUpgrade plugin.TValue[bool] } // createAwsRdsDbinstance creates a new instance of this resource @@ -12526,6 +12534,10 @@ func (c *mqlAwsRdsDbinstance) GetStatus() *plugin.TValue[string] { return &c.Status } +func (c *mqlAwsRdsDbinstance) GetAutoMinorVersionUpgrade() *plugin.TValue[bool] { + return &c.AutoMinorVersionUpgrade +} + // mqlAwsElasticache for the aws.elasticache resource type mqlAwsElasticache struct { MqlRuntime *plugin.Runtime diff --git a/providers/aws/resources/aws.lr.manifest.yaml b/providers/aws/resources/aws.lr.manifest.yaml index 7642e82a47..ff837b0f4e 100755 --- a/providers/aws/resources/aws.lr.manifest.yaml +++ b/providers/aws/resources/aws.lr.manifest.yaml @@ -833,7 +833,8 @@ resources: atRestEncryptionEnabled: {} authTokenEnabled: {} authTokenLastModifiedDate: {} - autoMinorVersionUpgrade: {} + autoMinorVersionUpgrade: + min_mondoo_version: 8.22.0 cacheClusterCreateTime: {} cacheClusterId: {} cacheClusterStatus: {} @@ -1151,6 +1152,8 @@ resources: aws.rds.dbinstance: fields: arn: {} + autoMinorVersionUpgrade: + min_mondoo_version: 8.22.0 backupRetentionPeriod: {} dbInstanceClass: {} dbInstanceIdentifier: {}