# CfnRuleAssertion

A rule assertion.

- Source: [`core/lib/cfn-rule.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/cfn-rule.ts#L109)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `assert`: [ICfnConditionExpression](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ICfnConditionExpression.html) (required) — The assertion.

- `assertDescription`: string (required) — The assertion description.
