# TemplateRuleAssertion

An assertion within a template rule, defined by intrinsic functions.

- Source: [`aws-servicecatalog/lib/constraints.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-servicecatalog/lib/constraints.ts#L71)
- Type last changed: v2.23.0 · 4 May 2022

## 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';
import { aws_servicecatalog as servicecatalog } from 'aws-cdk-lib';

declare const cfnRuleConditionExpression: cdk.ICfnRuleConditionExpression;
const templateRuleAssertion: servicecatalog.TemplateRuleAssertion = {
  assert: cfnRuleConditionExpression,

  // the properties below are optional
  description: 'description',
};
```

## Properties

- `assert`: [ICfnRuleConditionExpression](/cdk/api/v2/docs/aws-cdk-lib.ICfnRuleConditionExpression.html) (required) — The assertion condition.

- `description`: string — The description for the asssertion.

  **Default:** no description provided for the assertion.
