ResolveOptions

class aws_cdk.core.ResolveOptions(*, resolver, scope, preparing=None, remove_empty=None)

Bases: object

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.

Parameters
  • resolver (ITokenResolver) – The resolver to apply to any resolvable tokens found.

  • scope (IConstruct) – The scope from which resolution is performed.

  • preparing (Optional[bool]) – Whether the resolution is being executed during the prepare phase or not. Default: false

  • remove_empty (Optional[bool]) – Whether to remove undefined elements from arrays and objects when resolving. Default: true

Attributes

preparing

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

Default

false

Return type

Optional[bool]

remove_empty

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

Default

true

Return type

Optional[bool]

resolver

The resolver to apply to any resolvable tokens found.

Return type

ITokenResolver

scope

The scope from which resolution is performed.

Return type

IConstruct