Class Logging
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.customresources.Logging
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:41:02.828Z")
@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
ConstructorsModifierConstructorDescriptionprotectedLogging()protectedLogging(LoggingProps props) protectedLogging(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLogging(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Parameters:
props-
-
Logging
@Stability(Stable) protected Logging()
-
-
Method Details
-
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
Hides logging of data associated with the API call response.This includes hiding the raw API call response and the
Datafield associated with the lambda handler response.
-