@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:27.097Z") @Stability(value=Stable) public class Lazy extends software.amazon.jsii.JsiiObject
Can be used to return a string, list or numeric value whose actual value will only be calculated later, during synthesis.
Modifier | Constructor and Description |
---|---|
protected |
Lazy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Lazy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static IResolvable |
any(IStableAnyProducer producer)
Defer the one-time calculation of an arbitrarily typed value to synthesis time.
|
static IResolvable |
any(IStableAnyProducer producer,
LazyAnyValueOptions options)
Defer the one-time calculation of an arbitrarily typed value to synthesis time.
|
static IResolvable |
anyValue(IAnyProducer producer)
Deprecated.
Use `Lazy.any()` or `Lazy.uncachedAny()` instead.
|
static IResolvable |
anyValue(IAnyProducer producer,
LazyAnyValueOptions options)
Deprecated.
Use `Lazy.any()` or `Lazy.uncachedAny()` instead.
|
static List<String> |
list(IStableListProducer producer)
Defer the one-time calculation of a list value to synthesis time.
|
static List<String> |
list(IStableListProducer producer,
LazyListValueOptions options)
Defer the one-time calculation of a list value to synthesis time.
|
static List<String> |
listValue(IListProducer producer)
Deprecated.
Use `Lazy.list()` or `Lazy.uncachedList()` instead.
|
static List<String> |
listValue(IListProducer producer,
LazyListValueOptions options)
Deprecated.
Use `Lazy.list()` or `Lazy.uncachedList()` instead.
|
static Number |
number(IStableNumberProducer producer)
Defer the one-time calculation of a number value to synthesis time.
|
static Number |
numberValue(INumberProducer producer)
Deprecated.
Use `Lazy.number()` or `Lazy.uncachedNumber()` instead.
|
static String |
string(IStableStringProducer producer)
Defer the one-time calculation of a string value to synthesis time.
|
static String |
string(IStableStringProducer producer,
LazyStringValueOptions options)
Defer the one-time calculation of a string value to synthesis time.
|
static String |
stringValue(IStringProducer producer)
Deprecated.
Use `Lazy.string()` or `Lazy.uncachedString()` instead.
|
static String |
stringValue(IStringProducer producer,
LazyStringValueOptions options)
Deprecated.
Use `Lazy.string()` or `Lazy.uncachedString()` instead.
|
static IResolvable |
uncachedAny(IAnyProducer producer)
Defer the calculation of an untyped value to synthesis time.
|
static IResolvable |
uncachedAny(IAnyProducer producer,
LazyAnyValueOptions options)
Defer the calculation of an untyped value to synthesis time.
|
static List<String> |
uncachedList(IListProducer producer)
Defer the calculation of a list value to synthesis time.
|
static List<String> |
uncachedList(IListProducer producer,
LazyListValueOptions options)
Defer the calculation of a list value to synthesis time.
|
static Number |
uncachedNumber(INumberProducer producer)
Defer the calculation of a number value to synthesis time.
|
static String |
uncachedString(IStringProducer producer)
Defer the calculation of a string value to synthesis time.
|
static String |
uncachedString(IStringProducer producer,
LazyStringValueOptions options)
Defer the calculation of a string value to synthesis time.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected Lazy(software.amazon.jsii.JsiiObjectRef objRef)
protected Lazy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static IResolvable any(@NotNull IStableAnyProducer producer, @Nullable LazyAnyValueOptions options)
Use this if you want to render an object to a template whose actual value depends on some state mutation that may happen after the construct has been created.
The inner function will only be invoked one time and cannot depend on resolution context.
producer
- This parameter is required.options
- @Stability(value=Stable) @NotNull public static IResolvable any(@NotNull IStableAnyProducer producer)
Use this if you want to render an object to a template whose actual value depends on some state mutation that may happen after the construct has been created.
The inner function will only be invoked one time and cannot depend on resolution context.
producer
- This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public static IResolvable anyValue(@NotNull IAnyProducer producer, @Nullable LazyAnyValueOptions options)
Use this if you want to render an object to a template whose actual value depends on some state mutation that may happen after the construct has been created.
producer
- This parameter is required.options
- @Stability(value=Deprecated) @Deprecated @NotNull public static IResolvable anyValue(@NotNull IAnyProducer producer)
Use this if you want to render an object to a template whose actual value depends on some state mutation that may happen after the construct has been created.
producer
- This parameter is required.@Stability(value=Stable) @NotNull public static List<String> list(@NotNull IStableListProducer producer, @Nullable LazyListValueOptions options)
Use this if you want to render a list to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string[]
type and don't need
the calculation to be deferred, use Token.asList()
instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
producer
- This parameter is required.options
- @Stability(value=Stable) @NotNull public static List<String> list(@NotNull IStableListProducer producer)
Use this if you want to render a list to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string[]
type and don't need
the calculation to be deferred, use Token.asList()
instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
producer
- This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public static List<String> listValue(@NotNull IListProducer producer, @Nullable LazyListValueOptions options)
Use this if you want to render a list to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string[]
type and don't need
the calculation to be deferred, use Token.asList()
instead.
producer
- This parameter is required.options
- @Stability(value=Deprecated) @Deprecated @NotNull public static List<String> listValue(@NotNull IListProducer producer)
Use this if you want to render a list to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string[]
type and don't need
the calculation to be deferred, use Token.asList()
instead.
producer
- This parameter is required.@Stability(value=Stable) @NotNull public static Number number(@NotNull IStableNumberProducer producer)
Use this if you want to render a number to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a number
type and don't need
the calculation to be deferred, use Token.asNumber()
instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
producer
- This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public static Number numberValue(@NotNull INumberProducer producer)
Use this if you want to render a number to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a number
type and don't need
the calculation to be deferred, use Token.asNumber()
instead.
producer
- This parameter is required.@Stability(value=Stable) @NotNull public static String string(@NotNull IStableStringProducer producer, @Nullable LazyStringValueOptions options)
Use this if you want to render a string to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string
type and don't need
the calculation to be deferred, use Token.asString()
instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
producer
- This parameter is required.options
- @Stability(value=Stable) @NotNull public static String string(@NotNull IStableStringProducer producer)
Use this if you want to render a string to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string
type and don't need
the calculation to be deferred, use Token.asString()
instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
producer
- This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public static String stringValue(@NotNull IStringProducer producer, @Nullable LazyStringValueOptions options)
Use this if you want to render a string to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string
type and don't need
the calculation to be deferred, use Token.asString()
instead.
producer
- This parameter is required.options
- @Stability(value=Deprecated) @Deprecated @NotNull public static String stringValue(@NotNull IStringProducer producer)
Use this if you want to render a string to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a string
type and don't need
the calculation to be deferred, use Token.asString()
instead.
producer
- This parameter is required.@Stability(value=Stable) @NotNull public static IResolvable uncachedAny(@NotNull IAnyProducer producer, @Nullable LazyAnyValueOptions options)
Use of this function is not recommended; unless you know you need it for sure, you
probably don't. Use Lazy.any()
instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
producer
- This parameter is required.options
- @Stability(value=Stable) @NotNull public static IResolvable uncachedAny(@NotNull IAnyProducer producer)
Use of this function is not recommended; unless you know you need it for sure, you
probably don't. Use Lazy.any()
instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
producer
- This parameter is required.@Stability(value=Stable) @NotNull public static List<String> uncachedList(@NotNull IListProducer producer, @Nullable LazyListValueOptions options)
Use of this function is not recommended; unless you know you need it for sure, you
probably don't. Use Lazy.list()
instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
producer
- This parameter is required.options
- @Stability(value=Stable) @NotNull public static List<String> uncachedList(@NotNull IListProducer producer)
Use of this function is not recommended; unless you know you need it for sure, you
probably don't. Use Lazy.list()
instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
producer
- This parameter is required.@Stability(value=Stable) @NotNull public static Number uncachedNumber(@NotNull INumberProducer producer)
Use of this function is not recommended; unless you know you need it for sure, you
probably don't. Use Lazy.number()
instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
producer
- This parameter is required.@Stability(value=Stable) @NotNull public static String uncachedString(@NotNull IStringProducer producer, @Nullable LazyStringValueOptions options)
Use of this function is not recommended; unless you know you need it for sure, you
probably don't. Use Lazy.string()
instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
producer
- This parameter is required.options
- @Stability(value=Stable) @NotNull public static String uncachedString(@NotNull IStringProducer producer)
Use of this function is not recommended; unless you know you need it for sure, you
probably don't. Use Lazy.string()
instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
producer
- This parameter is required.Copyright © 2022. All rights reserved.