Show / Hide Table of Contents

Class ResolveOptions

Options to the resolve() operation.

Inheritance
System.Object
ResolveOptions
Implements
IResolveOptions
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class ResolveOptions : Object, IResolveOptions
Syntax (vb)
Public Class ResolveOptions
    Inherits Object
    Implements 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

Constructors

ResolveOptions()

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.

Constructors

ResolveOptions()

public ResolveOptions()

Properties

Preparing

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

public Nullable<bool> Preparing { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

Default: false

RemoveEmpty

Whether to remove undefined elements from arrays and objects when resolving.

public Nullable<bool> RemoveEmpty { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

Default: true

Resolver

The resolver to apply to any resolvable tokens found.

public ITokenResolver Resolver { get; set; }
Property Value

ITokenResolver

Scope

The scope from which resolution is performed.

public IConstruct Scope { get; set; }
Property Value

Constructs.IConstruct

Implements

IResolveOptions
Back to top Generated by DocFX