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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCloudFormationRuleConstraintOptions
static final class
An implementation forCloudFormationRuleConstraintOptions
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.servicecatalog.CommonConstraintOptions
getDescription, getMessageLanguage
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRule
The rule with condition and assertions to apply to template. -
builder
-