Interface IResolveOptions
Options to the resolve() operation.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IResolveOptions
Syntax (vb)
Public Interface IResolveOptions
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
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
};
Synopsis
Properties
Preparing | Whether the resolution is being executed during the prepare phase or not. |
RemoveEmpty | Whether to remove undefined elements from arrays and objects when resolving. |
Resolver | The resolver to apply to any resolvable tokens found. |
Scope | The scope from which resolution is performed. |
Properties
Preparing
Whether the resolution is being executed during the prepare phase or not.
virtual Nullable<bool> Preparing { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
RemoveEmpty
Whether to remove undefined elements from arrays and objects when resolving.
virtual Nullable<bool> RemoveEmpty { get; }
Property Value
System.Nullable<System.Boolean>
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
Constructs.IConstruct