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

Function DecodeS3DirectoryBucket

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

DecodeS3DirectoryBucket maps an S3 Express DirectoryBucket to a Storage pricing query using the "High Performance" storageClass.

(record resources.ResourceRecord, region, inputsJSON string)

Source from the content-addressed store, hash-verified

133// DecodeS3DirectoryBucket maps an S3 Express DirectoryBucket to a Storage
134// pricing query using the "High Performance" storageClass.
135func 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.
155func DecodeS3TableBucket(record resources.ResourceRecord, region, inputsJSON string) []resources.DecodedResource {

Callers

nothing calls this directly

Calls 2

ExtractInputFunction · 0.85
s3EntryFunction · 0.85

Tested by

no test coverage detected