DecodeS3DirectoryBucket maps an S3 Express DirectoryBucket to a Storage pricing query using the "High Performance" storageClass.
(record resources.ResourceRecord, region, inputsJSON string)
| 133 | // DecodeS3DirectoryBucket maps an S3 Express DirectoryBucket to a Storage |
| 134 | // pricing query using the "High Performance" storageClass. |
| 135 | func DecodeS3DirectoryBucket(record resources.ResourceRecord, region, inputsJSON string) []resources.DecodedResource { |
| 136 | props := map[string]string{"type": record.Type} |
| 137 | if v := ExtractInput(record.Inputs, "bucket"); v != "" { |
| 138 | props["bucket"] = v |
| 139 | } |
| 140 | if v := ExtractInput(record.Inputs, "location.name"); v != "" { |
| 141 | props["location"] = v |
| 142 | } |
| 143 | |
| 144 | return []resources.DecodedResource{ |
| 145 | s3Entry(record, region, inputsJSON, "Storage", |
| 146 | map[string]string{ |
| 147 | "productFamily": "Storage", |
| 148 | "storageClass": "High Performance", |
| 149 | }, |
| 150 | props), |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | // DecodeS3TableBucket maps an S3 Tables TableBucket to a Storage pricing query. |
| 155 | func DecodeS3TableBucket(record resources.ResourceRecord, region, inputsJSON string) []resources.DecodedResource { |
nothing calls this directly
no test coverage detected