# CfnJsonProps

Extends: CfnJsonProps
Used as props by: CfnJson

- Source: [`core/lib/cfn-json.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/cfn-json.ts#L9)

## Example

```ts
const tagParam = new CfnParameter(this, 'TagName');

const stringEquals = new CfnJson(this, 'ConditionJson', {
  value: {
    [`aws:PrincipalTag/${tagParam.valueAsString}`]: true,
  },
});

const principal = new iam.AccountRootPrincipal().withConditions({
  StringEquals: stringEquals,
});

new iam.Role(this, 'MyRole', { assumedBy: principal });
```

## Properties

- `value`: any (required) — The value to resolve.

  Can be any JavaScript object, including tokens and
  references in keys or values.
