Many of the types we use in this profile are built-in types from the YAML 1.2 specification (i.e., those identified by the ‘tag:yaml.org,2002’ version tag).
The following table declares the valid YAML type URIs and aliases that SHALL be used when defining parameters or properties within an OpenWhisk package manifest:
In addition to the YAML built-in types, OpenWhisk supports the types listed in the table below. A complete description of each of these types is provided below.
Scalar-unit types can be used to define scalar values along with a unit from the list of recognized units (a subset of GNU units) provided below.
<scalar> <unit>
inputs: max_storage_size: type: scalar-unit.size default: 10 GB archive_period: type: scalar-unit.time default: 30 d
inputs: memory_size: type: scalar-unit.size value: 256 MB
inputs: max_execution_time: type: scalar-unit.time value: 600 s
The Object type allows for complex objects to be declared as parameters with an optional validatable schema.
inputs: person: type: object parameters: <schema>