Interface CloudFormationRuleConstraintOptions

All Superinterfaces:
CommonConstraintOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CloudFormationRuleConstraintOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-17T05:10:18.040Z") @Stability(Stable) public interface CloudFormationRuleConstraintOptions extends software.amazon.jsii.JsiiSerializable, CommonConstraintOptions
Properties for provisoning rule constraint.

Example:

 import software.amazon.awscdk.*;
 Portfolio portfolio;
 CloudFormationProduct product;
 portfolio.constrainCloudFormationParameters(product, CloudFormationRuleConstraintOptions.builder()
         .rule(TemplateRule.builder()
                 .ruleName("testInstanceType")
                 .condition(Fn.conditionEquals(Fn.ref("Environment"), "test"))
                 .assertions(List.of(TemplateRuleAssertion.builder()
                         .assert(Fn.conditionContains(List.of("t2.micro", "t2.small"), Fn.ref("InstanceType")))
                         .description("For test environment, the instance type should be small")
                         .build()))
                 .build())
         .build());