Interface CfnRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRuleProps.Jsii$Proxy
For each rule, you can define only one rule condition; you can define one or more asserts within the Assertions property. You define a rule condition and assertions by using rule-specific intrinsic functions.
You can use the following rule-specific intrinsic functions to define rule conditions and assertions:
Fn::And Fn::Contains Fn::EachMemberEquals Fn::EachMemberIn Fn::Equals Fn::If Fn::Not Fn::Or Fn::RefAll Fn::ValueOf Fn::ValueOfAll
https://docs.aws.amazon.com/servicecatalog/latest/adminguide/reference-template_constraint_rules.html
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; ICfnConditionExpression cfnConditionExpression; CfnRuleProps cfnRuleProps = CfnRuleProps.builder() .assertions(List.of(CfnRuleAssertion.builder() .assert(cfnConditionExpression) .assertDescription("assertDescription") .build())) .ruleCondition(cfnConditionExpression) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRuleProps
static final class
An implementation forCfnRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRuleProps.Builder
builder()
default List<CfnRuleAssertion>
Assertions which define the rule.default ICfnConditionExpression
If the rule condition evaluates to false, the rule doesn't take effect.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAssertions
Assertions which define the rule.Default: - No assertions for the rule.
-
getRuleCondition
If the rule condition evaluates to false, the rule doesn't take effect.If the function in the rule condition evaluates to true, expressions in each assert are evaluated and applied.
Default: - Rule's assertions will always take effect.
-
builder
- Returns:
- a
CfnRuleProps.Builder
ofCfnRuleProps
-