Skip to content

ResolveOptions

Options to the resolve() operation.

NOT the same as the ResolveContext; ResolveContext is exposed to Token implementors and resolution hooks, whereas this struct is just to bundle a number of things that would otherwise be arguments to resolve() in a readable way.

Initializer

import { ResolveOptions } from '@alicloud/ros-cdk-core'
const resolveOptions: ResolveOptions = { ... }

Properties

Name Type Description
resolver ITokenResolver The resolver to apply to any resolvable tokens found.
scope IConstruct The scope from which resolution is performed.
preparing boolean Whether the resolution is being executed during the prepare phase or not.

resolverRequired

public readonly resolver: ITokenResolver;

The resolver to apply to any resolvable tokens found.


scopeRequired

public readonly scope: IConstruct;

The scope from which resolution is performed.


preparingOptional

public readonly preparing: boolean;
  • Type: boolean
  • Default: false

Whether the resolution is being executed during the prepare phase or not.