Interface GetContextKeyOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
GetContextValueOptions
All Known Implementing Classes:
GetContextKeyOptions.Jsii$Proxy, GetContextValueOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-06-13T09:19:30.865Z") @Stability(Stable) public interface GetContextKeyOptions extends software.amazon.jsii.JsiiSerializable
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 props;
 GetContextKeyOptions getContextKeyOptions = GetContextKeyOptions.builder()
         .provider("provider")
         // the properties below are optional
         .additionalCacheKey("additionalCacheKey")
         .includeEnvironment(false)
         .props(Map.of(
                 "propsKey", props))
         .build();
 
  • Method Details

    • getProvider

      @Stability(Stable) @NotNull String getProvider()
      The context provider to query.
    • getAdditionalCacheKey

      @Stability(Stable) @Nullable default String getAdditionalCacheKey()
      Adds an additional discriminator to the cdk.context.json cache key.

      Default: - no additional cache key

    • getIncludeEnvironment

      @Stability(Stable) @Nullable default Boolean getIncludeEnvironment()
      Whether to include the stack's account and region automatically.

      Default: true

    • getProps

      @Stability(Stable) @Nullable default Map<String,Object> getProps()
      Provider-specific properties.
    • builder

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