The deployment criteria narrows the scope of a policy so that it is applied only to the deployments where the criteria is true. For example, you can use the deployment criteria to create a policy that is applied only to a particular catalog item or blueprint.

Deployment criteria user interface focus

As you define the criteria, the apparent values change between the IDs and the human-readable names. When you are actively editing in text box , the ID is displayed. When you click outside the text box, the name replaces the ID, making it easier to understand your criteria expression.

Figure 1. Deployment criteria when the text box is active

Deployment criteria when the text box is active shows IDs.

When you click outside the text box, the name replaces the ID, making it easier to understand your criteria expression.

Figure 2. Deployment criteria when the text box is not the focus

Deployment criteria when the text box is not the focus show the name.

Deployment criteria properties

To create a functional deployment criteria, you must understand the syntax.

The deployment criteria text box has various drop-down menus that provide the available properties and operators. How you construct your expression depends on the available values and on the order of operations.

The drop-down menus include the following properties.

Property Description
Name Deployment name
CreatedBy Name of the user who requested the deployment. The format is username@mycompany.com.
BlueprintId Identifier for the Cloud Assembly blueprint used to create the deployment.
CatalogItemId Identifier for the Service Broker catalog item that was used to request the deployment.
Parenthetical operators Used to group expressions. The appropriate opening or closing parenthesis is provided in the drop-down menu.

What is the difference between blueprintID and catalogItemId?

  • Use blueprintID when your policy is specific to Cloud Assembly blueprints. For example, an Amazon Web Services template does not have a blueprintID.
  • Use catalogItemID when your policy can include Service Broker catalog items based on any blueprint, template, extensibility workflow, or other content type. For example, Cloud Assembly blueprints and Amazon Web Services CloudFormation templates deployed from the catalog have a catalogItemID.

Expression operators

The drop-down menus include the following expression operators:

  • Eq. Equals
  • NotEq. Does not equal.

Boolean operators

You can use one of the following Boolean operators:

  • AND
  • OR

Order of operations for the expression

An expression is processed in the following order:

  1. Expressions in parentheses
  2. AND
  3. OR

Use the following examples to understand the order.

  • X OR Y AND Z. In this example, Y AND Z is evaluated before X OR Y. Next, the X OR is evaluated against the results of Y AND Z.
  • (X OR Y) AND Z. In this example, X OR Y is evaluated before AND because the expression in the parentheses is always evaluated first. Next the AND Z is evaluated against the results of X OR Y.