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

Function tableClass

internal/pulumi/resources/aws/dynamodb.go:37–43  ·  view source on GitHub ↗

tableClass returns "STANDARD" or "STANDARD_IA" from inputs, defaulting to STANDARD.

(record resources.ResourceRecord)

Source from the content-addressed store, hash-verified

35
36// tableClass returns "STANDARD" or "STANDARD_IA" from inputs, defaulting to STANDARD.
37func tableClass(record resources.ResourceRecord) string {
38 tc := strings.ToUpper(ExtractInput(record.Inputs, "tableClass"))
39 if tc == "STANDARD_IA" {
40 return "STANDARD_IA"
41 }
42 return "STANDARD"
43}
44
45// provisionedReadCapacity returns the readCapacity value from inputs, defaulting to 1.
46func provisionedReadCapacity(record resources.ResourceRecord) decimal.Decimal {

Callers 2

DecodeTableFunction · 0.85
DecodeGlobalTableFunction · 0.85

Calls 1

ExtractInputFunction · 0.85

Tested by

no test coverage detected