Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pkg/tree/aws/apigateway/apigateway.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package apigateway

type APIGateway struct {
RestAPIs []RestAPI `tree:"rest_apis"`
Stages []Stage `tree:"stages"`
}
14 changes: 14 additions & 0 deletions pkg/tree/aws/apigateway/rest_api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package apigateway

import (
"github.com/infracost/go-proto/pkg/tree/resource"
"github.com/infracost/go-proto/pkg/tree/value"
)

type RestAPI struct {
resource.Resource `tree:"-"`
ResourceID value.String `tree:"resource_id"`
ScalableDimension value.String `tree:"scalable_dimension"`
MinCapacity value.Int `tree:"min_capacity"`
MaxCamacity value.Int `tree:"max_capacity"`
}
12 changes: 12 additions & 0 deletions pkg/tree/aws/apigateway/stage.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package apigateway

import (
"github.com/infracost/go-proto/pkg/tree/resource"
"github.com/infracost/go-proto/pkg/tree/value"
)

type Stage struct {
resource.Resource `tree:"-"`
CacheClusterSize value.String `tree:"cache_cluster_size"`
CacheEnabled value.Bool `tree:"cache_enabled"`
}
11 changes: 11 additions & 0 deletions pkg/tree/aws/apigatewayv2/api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package apigatewayv2

import (
"github.com/infracost/go-proto/pkg/tree/resource"
"github.com/infracost/go-proto/pkg/tree/value"
)

type API struct {
resource.Resource `tree:"-"`
ProtocolType value.String `tree:"protocol_type"`
}
5 changes: 5 additions & 0 deletions pkg/tree/aws/apigatewayv2/apigateway.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package apigatewayv2

type APIGatewayV2 struct {
APIs []API `tree:"apis"`
}
4 changes: 4 additions & 0 deletions pkg/tree/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ package aws
import (
"github.com/infracost/go-proto/pkg/tree/aws/acm"
"github.com/infracost/go-proto/pkg/tree/aws/acmpca"
"github.com/infracost/go-proto/pkg/tree/aws/apigateway"
"github.com/infracost/go-proto/pkg/tree/aws/apigatewayv2"
"github.com/infracost/go-proto/pkg/tree/aws/ec2"
)

type AWS struct {
EC2 ec2.EC2 `tree:"ec2"`
CertificateManager acm.CertificateManager `tree:"acm"`
PCACertificateAuthority acmpca.PCACertificateAuthority `tree:"acmpca"`
APIGateway apigateway.APIGateway `tree:"apigateway"`
APIGatewayV2 apigatewayv2.APIGatewayV2 `tree:"apigatewayv2"`
}

func (aws *AWS) PostProcess() {
Expand Down
Loading