Interface IResolveOptions
Options to the resolve() operation.
public interface IResolveOptions
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Constructs;
Construct construct;
ITokenResolver tokenResolver;
var resolveOptions = new ResolveOptions {
Resolver = tokenResolver,
Scope = construct,
// the properties below are optional
Preparing = false,
RemoveEmpty = false
};
Remarks
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.
ExampleMetadata: fixture=_generated
Properties
Preparing
Whether the resolution is being executed during the prepare phase or not.
bool? Preparing { get; }
Property Value
- bool?
Remarks
Default: false
RemoveEmpty
Whether to remove undefined elements from arrays and objects when resolving.
bool? RemoveEmpty { get; }
Property Value
- bool?
Remarks
Default: true
Resolver
The resolver to apply to any resolvable tokens found.
ITokenResolver Resolver { get; }
Property Value
Scope
The scope from which resolution is performed.
IConstruct Scope { get; }
Property Value
- IConstruct