DecodeS3VectorBucket maps an S3 Vectors VectorBucket to a Storage pricing query.
(record resources.ResourceRecord, region, inputsJSON string)
| 171 | |
| 172 | // DecodeS3VectorBucket maps an S3 Vectors VectorBucket to a Storage pricing query. |
| 173 | func DecodeS3VectorBucket(record resources.ResourceRecord, region, inputsJSON string) []resources.DecodedResource { |
| 174 | props := map[string]string{"type": record.Type} |
| 175 | if v := ExtractInput(record.Inputs, "vectorBucketName"); v != "" { |
| 176 | props["vectorBucketName"] = v |
| 177 | } |
| 178 | |
| 179 | return []resources.DecodedResource{ |
| 180 | s3Entry(record, region, inputsJSON, "Storage", |
| 181 | map[string]string{ |
| 182 | "productFamily": "Storage", |
| 183 | "volumeType": "Vectors", |
| 184 | "storageClass": "Analytics", |
| 185 | }, |
| 186 | props), |
| 187 | } |
| 188 | } |
nothing calls this directly
no test coverage detected