aws-cdk-lib.JsonNull

class JsonNull

LanguageType name
.NETAmazon.CDK.JsonNull
Gogithub.com/aws/aws-cdk-go/awscdk/v2#JsonNull
Javasoftware.amazon.awscdk.JsonNull
Pythonaws_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

NameTypeDescription
creationStackstring[]The creation stack of this resolvable which will be appended to errors thrown during resolution.
static INSTANCEJsonNullThe 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: JsonNull

The canonical instance of JsonNull.

Methods

NameDescription
resolve(_ctx)Produce the Token's value at resolution time.
toJSON()Obtains the JSON representation of this object (null).
toString()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').