@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-15T10:03:45.296Z") @Stability(value=Experimental) public interface TemplateRule extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.core.*;
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
TemplateRule.Builder
A builder for
TemplateRule |
static class |
TemplateRule.Jsii$Proxy
An implementation for
TemplateRule |
| Modifier and Type | Method and Description |
|---|---|
static TemplateRule.Builder |
builder() |
List<TemplateRuleAssertion> |
getAssertions()
(experimental) A list of assertions that make up the rule.
|
default ICfnRuleConditionExpression |
getCondition()
(experimental) Specify when to apply rule with a rule-specific intrinsic function.
|
String |
getRuleName()
(experimental) Name of the rule.
|
@Stability(value=Experimental) @NotNull List<TemplateRuleAssertion> getAssertions()
@Stability(value=Experimental) @NotNull String getRuleName()
@Stability(value=Experimental) @Nullable default ICfnRuleConditionExpression getCondition()
Default: - no rule condition provided
@Stability(value=Experimental) static TemplateRule.Builder builder()
TemplateRule.Builder of TemplateRuleCopyright © 2021. All rights reserved.