Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
added changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SanaaYousaf committed Mar 2, 2023
1 parent 2d1a2e7 commit 4dca092
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/adapters/cloud/aws/dynamodb/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,6 @@ func (a *adapter) adaptcluster(cluster daxtype.Cluster) (*dynamodb.DAXCluster, e
return &dynamodb.DAXCluster{
Metadata: metadata,
ServerSideEncryption: encryption,
PointInTimeRecovery: defsecTypes.BoolUnresolvable(metadata),
}, nil
}
3 changes: 2 additions & 1 deletion internal/adapters/cloudformation/aws/dynamodb/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ func getTables(file parser.FileContext) (tables []dynamodb.Table) {
Enabled: defsecTypes.BoolDefault(false, r.Metadata()),
KMSKeyID: defsecTypes.StringDefault("", r.Metadata()),
},
PointInTimeRecovery: r.GetBoolProperty("PointInTimeRecoverySpecification.PointInTimeRecoveryEnabled"),
PointInTimeRecovery: r.GetBoolProperty("PointInTimeRecoverySpecification.PointInTimeRecoveryEnabled"),
ContinuousBackupStatus: defsecTypes.StringDefault("", r.Metadata()),
}

if sseProp := r.GetProperty("SSESpecification"); sseProp.IsNotNil() {
Expand Down
3 changes: 2 additions & 1 deletion internal/adapters/terraform/aws/dynamodb/adapt.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func adaptTable(resource *terraform.Block, module *terraform.Module) dynamodb.Ta
Enabled: defsecTypes.BoolDefault(false, resource.GetMetadata()),
KMSKeyID: defsecTypes.StringDefault("", resource.GetMetadata()),
},
PointInTimeRecovery: defsecTypes.BoolDefault(false, resource.GetMetadata()),
PointInTimeRecovery: defsecTypes.BoolDefault(false, resource.GetMetadata()),
ContinuousBackupStatus: defsecTypes.String("", resource.GetMetadata()),
}

if ssEncryptionBlock := resource.GetBlock("server_side_encryption"); ssEncryptionBlock.IsNotNil() {
Expand Down

0 comments on commit 4dca092

Please sign in to comment.