Interface AddKeyEntryProperty

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

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-24T11:33:17.186Z") @Stability(Stable) public interface AddKeyEntryProperty extends software.amazon.jsii.JsiiSerializable
This object defines one key that will be added with the addKeys processor.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.logs.*;
 AddKeyEntryProperty addKeyEntryProperty = AddKeyEntryProperty.builder()
         .key("key")
         .value("value")
         // the properties below are optional
         .overwriteIfExists(false)
         .build();
 
  • Method Details

    • getKey

      @Stability(Stable) @NotNull String getKey()
      The key of the new entry to be added to the log event.
    • getValue

      @Stability(Stable) @NotNull String getValue()
      The value of the new entry to be added to the log event.
    • getOverwriteIfExists

      @Stability(Stable) @Nullable default Boolean getOverwriteIfExists()
      Specifies whether to overwrite the value if the key already exists.

      Default: false

    • builder

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