The heat.engine.parameters ModuleΒΆ

class heat.engine.parameters.CommaDelimitedListParam(name, schema, value=None, validate_value=True)[source]

Bases: heat.engine.parameters.Parameter, _abcoll.Sequence

A template parameter of type “CommaDelimitedList”.

CommaDelimitedListParam.parse(value)[source]
CommaDelimitedListParam.validate(val)[source]
CommaDelimitedListParam.value()[source]
class heat.engine.parameters.JsonParam(name, schema, value=None, validate_value=True)[source]

Bases: heat.engine.parameters.Parameter, _abcoll.Mapping

A template parameter who’s value is valid map.

JsonParam.parse(value)[source]
JsonParam.validate(val)[source]
JsonParam.value()[source]
class heat.engine.parameters.NumberParam(name, schema, value=None, validate_value=True)[source]

Bases: heat.engine.parameters.Parameter

A template parameter of type “Number”.

NumberParam.validate(val)[source]
NumberParam.value()[source]
class heat.engine.parameters.Parameter(name, schema, value=None, validate_value=True)[source]

Bases: object

A template parameter.

Parameter.default()[source]

Return the default value of the parameter.

Parameter.description()[source]

Return the description of the parameter.

Parameter.has_default()[source]

Return whether the parameter has a default value.

Parameter.hidden()[source]

Return whether the parameter should be sanitised in any output to the user.

Parameter.label()[source]

Return the label or param name.

Parameter.value()[source]

Get the parameter value, optionally sanitising it for output.

class heat.engine.parameters.Parameters(stack_identifier, tmpl, user_params={}, validate_value=True, context=None)[source]

Bases: _abcoll.Mapping

The parameters of a stack, with type checking, defaults &c. specified by the stack’s template.

Parameters.PARAM_REGION = 'AWS::Region'
Parameters.PARAM_STACK_ID = 'AWS::StackId'
Parameters.PARAM_STACK_NAME = 'AWS::StackName'
Parameters.PSEUDO_PARAMETERS = ('AWS::StackId', 'AWS::StackName', 'AWS::Region')
Parameters.map(func, filter_func=<function <lambda> at 0x4828230>)[source]

Map the supplied filter function onto each Parameter (with an optional filter function) and return the resulting dictionary.

Parameters.set_stack_id(stack_identifier)[source]

Set the StackId pseudo parameter value

class heat.engine.parameters.Schema(data_type, description=None, default=None, schema=None, constraints=[], hidden=False, context=None, label=None)[source]

Bases: heat.engine.constraints.Schema

Parameter schema.

Schema.CONSTRAINTS = 'Constraints'
Schema.DEFAULT = 'Default'
Schema.DESCRIPTION = 'Description'
Schema.HIDDEN = 'NoEcho'
Schema.KEYS = ('Type', 'Description', 'Default', 'Schema', 'Constraints', 'NoEcho', 'Label')
Schema.LABEL = 'Label'
Schema.LIST = 'CommaDelimitedList'
Schema.MAP = 'Json'
Schema.NUMBER = 'Number'
Schema.PARAMETER_KEYS = ('Type', 'Default', 'NoEcho', 'AllowedValues', 'AllowedPattern', 'MaxLength', 'MinLength', 'MaxValue', 'MinValue', 'Description', 'ConstraintDescription', 'Label')
Schema.SCHEMA = 'Schema'
Schema.STRING = 'String'
Schema.TYPE = 'Type'
Schema.TYPES = ('String', 'Number', 'CommaDelimitedList', 'Json')
classmethod Schema.from_dict(param_name, schema_dict)[source]

Return a Parameter Schema object from a legacy schema dictionary.

Parameters:param_name (str) – name of the parameter owning the schema; used for more verbose logging
static Schema.get_num(key, context)[source]
Schema.set_default(default=None)[source]
Schema.validate(name, value)[source]
class heat.engine.parameters.StringParam(name, schema, value=None, validate_value=True)[source]

Bases: heat.engine.parameters.Parameter

A template parameter of type “String”.

StringParam.validate(val)[source]

Previous topic

The heat.engine.watchrule Module

Next topic

The heat.engine Module

This Page