class JsonNull
| Language | Type name |
|---|---|
.NET | Amazon.CDK.JsonNull |
Go | github.com/aws/aws-cdk-go/awscdk/v2#JsonNull |
Java | software.amazon.awscdk.JsonNull |
Python | aws_cdk.JsonNull |
TypeScript (source) | aws-cdk-lib » JsonNull |
Implements
IResolvable
An object which serializes to the JSON null literal, and which can safely be passed across languages where undefined and null are not different.
Example
// 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';
const jsonNull = cdk.JsonNull.INSTANCE;
Properties
| Name | Type | Description |
|---|---|---|
| creation | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
| static INSTANCE | Json | The canonical instance of JsonNull. |
creationStack
Type:
string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.
static INSTANCE
Type:
Json
The canonical instance of JsonNull.
Methods
| Name | Description |
|---|---|
| resolve(_ctx) | Produce the Token's value at resolution time. |
| to | Obtains the JSON representation of this object (null). |
| to | Obtains the string representation of this object ('null'). |
resolve(_ctx)
public resolve(_ctx: IResolveContext): any
Parameters
- _ctx
IResolveContext
Returns
any
Produce the Token's value at resolution time.
toJSON()
public toJSON(): any
Returns
any
Obtains the JSON representation of this object (null).
toString()
public toString(): string
Returns
string
Obtains the string representation of this object ('null').

.NET
Go
Java
Python
TypeScript (