Skip to content

Commit f11cb0f

Browse files
committed
feat: add backup types
Add tree types for backup service
1 parent 9c9937f commit f11cb0f

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

pkg/tree/aws/aws.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/infracost/go-proto/pkg/tree/aws/apigatewayv2"
88
"github.com/infracost/go-proto/pkg/tree/aws/appautoscaling"
99
"github.com/infracost/go-proto/pkg/tree/aws/ec2"
10+
"github.com/infracost/go-proto/pkg/tree/backup"
1011
)
1112

1213
type AWS struct {
@@ -16,6 +17,7 @@ type AWS struct {
1617
APIGateway apigateway.APIGateway `tree:"apigateway"`
1718
APIGatewayV2 apigatewayv2.APIGatewayV2 `tree:"apigatewayv2"`
1819
AppAutoScaling appautoscaling.AppAutoScaling `tree:"appautoscaling"`
20+
Backup backup.Backup `tree:"backup"`
1921
}
2022

2123
func (aws *AWS) PostProcess() {

pkg/tree/aws/backup/backup.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package backup
2+
3+
type backup struct {
4+
Vaults []Vault `tree:"vaults"`
5+
}

pkg/tree/aws/backup/vault.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package backup
2+
3+
import "github.com/infracost/go-proto/pkg/tree/resource"
4+
5+
type Vault struct {
6+
resource.Resource `tree:"-"`
7+
}

0 commit comments

Comments
 (0)