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.
When you click outside the text box, the name replaces the ID, making it easier to understand your criteria expression.
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.
||Name of the user who requested the deployment. The format is email@example.com.|
||Identifier for the Cloud Assembly blueprint used to create the deployment.|
||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
blueprintIDwhen your policy is specific to Cloud Assembly blueprints. For example, an Amazon Web Services template does not have a
catalogItemIDwhen 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
The drop-down menus include the following expression operators:
NotEq. Does not equal.
You can use one of the following Boolean operators:
Order of operations for the expression
An expression is processed in the following order:
- Expressions in parentheses
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.