Skip to content

Commit

Permalink
Convert OpenSearch and ElastiCache vCPU and Memory to numeric types
Browse files Browse the repository at this point in the history
  • Loading branch information
cristim committed Dec 12, 2023
1 parent c1df15a commit 0ea3170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions elsaticache_instance_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type ElastiCacheInstance struct {
InstanceType string `json:"instanceType"`
CurrentGeneration string `json:"currentGeneration"`
InstanceFamily string `json:"instanceFamily"`
Vcpu string `json:"vcpu"`
Memory string `json:"memory"`
Vcpu int32 `json:"vcpu,string"`
Memory float64 `json:"memory,string"`
NetworkPerformance string `json:"networkPerformance"`
CacheEngine string `json:"cacheEngine"`
RegionCode string `json:"regionCode"`
Expand Down
4 changes: 2 additions & 2 deletions opensearch_instance_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ type OpenSearchInstance struct {
InstanceType string `json:"instanceType"`
CurrentGeneration string `json:"currentGeneration"`
InstanceFamily string `json:"instanceFamily"`
Vcpu string `json:"vcpu"`
MemoryGib string `json:"memoryGib"`
Vcpu int32 `json:"vcpu,string"`
MemoryGib float64 `json:"memoryGib,string"`
RegionCode string `json:"regionCode"`
Servicename string `json:"servicename"`
Family string `json:"family"`
Expand Down

0 comments on commit 0ea3170

Please sign in to comment.