Interface CloudFormationRuleConstraintOptions

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:09.631Z") @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());