Common
Common
Overview
Template Reference is a companion to the Infrastructure Builder user guide. It provides reference information on the resource types and property types you can use in Infrastructure Builder templates.
If you are writing a template for the first time, start with Writing a template in the user guide. It covers the basic structure of a template, how to write one, and examples.
Resource types and property types
A resource type is a kind of resource that you can create and manage with Infrastructure Builder. For each resource, you specify the resource type in Type and define the resource’s settings in Properties.
In Template Reference, select a service group, a service, and then a resource type to see the following information.
| Item | Description |
|---|---|
| Syntax | The JSON and YAML syntax for declaring the resource in a template |
| Properties | For each property in Properties: description, whether it is required, type, constraints, and update behavior |
| Return values | The value that Ref returns for the resource, and the attributes you can retrieve with Fn::GetAtt |
If a property takes a nested object, see the property type page linked from that property for the object’s properties and rules. Some resources also include sample templates.
Writing templates
Features common to all templates, such as template format, structure, and intrinsic functions, are described in the Infrastructure Builder user guide. Refer to the following topics as needed.
| Topic | Description | User guide |
|---|---|---|
| Template format | How to write templates in JSON and YAML, and notation for intrinsic functions | Template format |
| Template anatomy | The role of each template section, such as Parameters, Resources, and Outputs, and how to write it | Template anatomy |
| Common resource attributes | Settings such as DependsOn, Condition, DeletionPolicy, and UpdateReplacePolicy that control when a resource is created, its dependencies, and what happens when it is deleted or replaced | Resources |
| Intrinsic functions | Functions for referencing values, combining strings, and evaluating conditions | Intrinsic functions |
| Pseudo parameters | Parameters predefined by Infrastructure Builder, such as SCP::Region and SCP::AccountId | Pseudo parameters |
| Template examples | JSON and YAML examples that include parameters, resources, and outputs | Template examples |
| Template limits | Limits to check when writing a template, such as template size and number of resources | Template limits |