java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.customresources.Logging
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:25.117Z") @Stability(Stable) public abstract class Logging extends software.amazon.jsii.JsiiObject
A class used to configure Logging during AwsCustomResource SDK calls.

Example:

 AwsCustomResource getParameter = AwsCustomResource.Builder.create(this, "GetParameter")
         .onUpdate(AwsSdkCall.builder()
                 .service("SSM")
                 .action("GetParameter")
                 .parameters(Map.of(
                         "Name", "my-parameter",
                         "WithDecryption", true))
                 .physicalResourceId(PhysicalResourceId.of(Date.now().toString()))
                 .logging(Logging.withDataHidden())
                 .build())
         .policy(AwsCustomResourcePolicy.fromSdkCalls(SdkCallsPolicyOptions.builder()
                 .resources(AwsCustomResourcePolicy.ANY_RESOURCE)
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
     
    protected
    Logging(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Logging(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Logging
    all()
    Enables logging of all logged data in the lambda handler.
    static Logging
    Hides logging of data associated with the API call response.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Logging

      protected Logging(software.amazon.jsii.JsiiObjectRef objRef)
    • Logging

      protected Logging(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Logging

      @Stability(Stable) protected Logging(@Nullable LoggingProps props)
      Parameters:
      props -
    • Logging

      @Stability(Stable) protected Logging()
  • Method Details

    • all

      @Stability(Stable) @NotNull public static Logging all()
      Enables logging of all logged data in the lambda handler.

      This includes the event object, the API call response, all fields in the response object returned by the lambda, and any errors encountered.

    • withDataHidden

      @Stability(Stable) @NotNull public static Logging withDataHidden()
      Hides logging of data associated with the API call response.

      This includes hiding the raw API call response and the Data field associated with the lambda handler response.