@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:53.753Z")
public interface TemplateRule
Example:
import software.amazon.awscdk.core.*; 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());
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() |
java.util.List<TemplateRuleAssertion> |
getAssertions()
A list of assertions that make up the rule.
|
default ICfnRuleConditionExpression |
getCondition()
Specify when to apply rule with a rule-specific intrinsic function.
|
java.lang.String |
getRuleName()
Name of the rule.
|
java.util.List<TemplateRuleAssertion> getAssertions()
java.lang.String getRuleName()
default ICfnRuleConditionExpression getCondition()
Default: - no rule condition provided
static TemplateRule.Builder builder()
TemplateRule.Builder
of TemplateRule