Package software.amazon.awscdk
Interface GetContextValueOptions
- All Superinterfaces:
GetContextKeyOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GetContextValueOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:02.201Z")
@Stability(Stable)
public interface GetContextValueOptions
extends software.amazon.jsii.JsiiSerializable, GetContextKeyOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
Object dummyValue;
Object props;
GetContextValueOptions getContextValueOptions = GetContextValueOptions.builder()
.dummyValue(dummyValue)
.provider("provider")
// the properties below are optional
.ignoreErrorOnMissingContext(false)
.includeEnvironment(false)
.props(Map.of(
"propsKey", props))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGetContextValueOptionsstatic final classAn implementation forGetContextValueOptions -
Method Summary
Methods inherited from interface software.amazon.awscdk.GetContextKeyOptions
getIncludeEnvironment, getProps, getProviderMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDummyValue
The value to return if the context value was not found and a missing context is reported. -
getIgnoreErrorOnMissingContext
When True, the context provider will not throw an error if missing context is reported.Default: false
-
builder
- Returns:
- a
GetContextValueOptions.BuilderofGetContextValueOptions
-