Package software.amazon.awscdk.core
Interface GetContextValueOptions
- All Superinterfaces:
GetContextKeyOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GetContextValueOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.049Z")
@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.core.*;
Object dummyValue;
Object props;
GetContextValueOptions getContextValueOptions = GetContextValueOptions.builder()
.dummyValue(dummyValue)
.provider("provider")
// the properties below are optional
.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
Modifier and TypeMethodDescriptionbuilder()The value to return if the context value was not found and a missing context is reported.Methods inherited from interface software.amazon.awscdk.core.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.This should be a dummy value that should preferably fail during deployment since it represents an invalid state.
-
builder
- Returns:
- a
GetContextValueOptions.BuilderofGetContextValueOptions
-