{% autoescape false %} # {{ type_name }} {{ subproperty_name }} {% if schema.description %} {{ schema.description }} {% endif %} ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
{% if schema.properties %}
{% for propname, prop in schema.properties.items() %}
{% if not prop.readonly %}
"{{ propname }}" : {{ prop.jsontype }}{% if not loop.last %},{% endif %}
{% endif %}
{% endfor %}
{% endif %}
}
### YAML
{% if schema.properties %}
{% for propname, prop in schema.properties.items() %}
{% if not prop.readonly %}
{{ propname }}: {{ prop.yamltype }}
{% endif %}
{% endfor %}
{% endif %}
{% if schema.properties %}
## Properties
{% for propname, prop in schema.properties.items() %}
{% if not prop.readonly %}
#### {{ propname | escape_markdown }}
{% if prop.description %}
{{ prop.description }}
{% endif %}
{% if schema.required is defined and propname in schema.required %}
_Required_: Yes
{% else %}
_Required_: No
{% endif %}
_Type_: {{ prop.longformtype }}
{% if prop.allowedvalues %}
_Allowed Values_: {% for allowedvalue in prop.allowedvalues %}{{ allowedvalue }}{% if not loop.last %} | {% endif %}{% endfor %}
{% endif %}
{% if prop.minLength %}
_Minimum Length_: {{ prop.minLength }}
{% endif %}
{% if prop.maxLength %}
_Maximum Length_: {{ prop.maxLength }}
{% endif %}
{% if prop.pattern %}
_Pattern_: {{ prop.pattern }}
{% endif %}
{% if prop.createonly %}
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
{% elif prop.conditionalCreateOnly %}
_Update requires_: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt)
{% else %}
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endautoescape %}