diff --git a/packages/@aws-cdk/aws-location-alpha/lib/map.ts b/packages/@aws-cdk/aws-location-alpha/lib/map.ts index 79133aa8bcbee..6e4ea2fe3c517 100644 --- a/packages/@aws-cdk/aws-location-alpha/lib/map.ts +++ b/packages/@aws-cdk/aws-location-alpha/lib/map.ts @@ -299,7 +299,7 @@ export class Map extends MapBase { public readonly mapUpdateTime: string; constructor(scope: Construct, id: string, props: MapProps) { - if (props.description !== undefined && !Token.isUnresolved(props.description) && props.description.length > 1000) { + if (props.description && !Token.isUnresolved(props.description) && props.description.length > 1000) { throw new Error(`\`description\` must be between 0 and 1000 characters. Received: ${props.description.length} characters`); }