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. |
resolver
Required
public readonly resolver: ITokenResolver;
- Type: ITokenResolver
The resolver to apply to any resolvable tokens found.
scope
Required
public readonly scope: IConstruct;
- Type: IConstruct
The scope from which resolution is performed.
preparing
Optional
public readonly preparing: boolean;
- Type: boolean
- Default: false
Whether the resolution is being executed during the prepare phase or not.