CfnRuleAssertion Struct
A rule assertion.
| Source | core/lib/cfn-rule.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
declare const cfnConditionExpression: cdk.ICfnConditionExpression;
const cfnRuleAssertion: cdk.CfnRuleAssertion = {
assert: cfnConditionExpression,
assertDescription: 'assertDescription',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
# cfn_condition_expression: cdk.ICfnConditionExpression
cfn_rule_assertion = cdk.CfnRuleAssertion(
assert=cfn_condition_expression,
assert_description="assertDescription"
)
java
// 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;
CfnRuleAssertion cfnRuleAssertion = CfnRuleAssertion.builder()
.assert(cfnConditionExpression)
.assertDescription("assertDescription")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
ICfnConditionExpression cfnConditionExpression;
var cfnRuleAssertion = new CfnRuleAssertion {
Assert = cfnConditionExpression,
AssertDescription = "assertDescription"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
var cfnConditionExpression ICfnConditionExpression
cfnRuleAssertion := &CfnRuleAssertion{
Assert: cfnConditionExpression,
AssertDescription: jsii.String("assertDescription"),
}
Properties
assertICfnConditionExpressionassertICfnConditionExpressionassertICfnConditionExpressionAssertICfnConditionExpressionAssertICfnConditionExpression required #The assertion.
assertDescriptionstringassert_descriptionstrassertDescriptionStringAssertDescriptionstringAssertDescription*string required #The assertion description.