MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / DecodeS3VectorBucket

Function DecodeS3VectorBucket

internal/pulumi/resources/aws/s3.go:173–188  ·  view source on GitHub ↗

DecodeS3VectorBucket maps an S3 Vectors VectorBucket to a Storage pricing query.

(record resources.ResourceRecord, region, inputsJSON string)

Source from the content-addressed store, hash-verified

171
172// DecodeS3VectorBucket maps an S3 Vectors VectorBucket to a Storage pricing query.
173func 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}

Callers

nothing calls this directly

Calls 2

ExtractInputFunction · 0.85
s3EntryFunction · 0.85

Tested by

no test coverage detected