Interface ResolveOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ResolveOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.102Z") @Stability(Stable) public interface ResolveOptions extends software.amazon.jsii.JsiiSerializable
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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.core.*;
 import software.constructs.*;
 Construct construct;
 ITokenResolver tokenResolver;
 ResolveOptions resolveOptions = ResolveOptions.builder()
         .resolver(tokenResolver)
         .scope(construct)
         // the properties below are optional
         .preparing(false)
         .removeEmpty(false)
         .build();
 
  • Method Details

    • getResolver

      @Stability(Stable) @NotNull ITokenResolver getResolver()
      The resolver to apply to any resolvable tokens found.
    • getScope

      @Stability(Stable) @NotNull software.constructs.IConstruct getScope()
      The scope from which resolution is performed.
    • getPreparing

      @Stability(Stable) @Nullable default Boolean getPreparing()
      Whether the resolution is being executed during the prepare phase or not.

      Default: false

    • getRemoveEmpty

      @Stability(Stable) @Nullable default Boolean getRemoveEmpty()
      Whether to remove undefined elements from arrays and objects when resolving.

      Default: true

    • builder

      @Stability(Stable) static ResolveOptions.Builder builder()
      Returns:
      a ResolveOptions.Builder of ResolveOptions