Class Logging
A class used to configure Logging during AwsCustomResource SDK calls.
Inheritance
Namespace: Amazon.CDK.CustomResources
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class Logging : DeputyBase
Syntax (vb)
Public MustInherit Class Logging
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
var getParameter = new AwsCustomResource(this, "GetParameter", new AwsCustomResourceProps {
OnUpdate = new AwsSdkCall {
Service = "SSM",
Action = "GetParameter",
Parameters = new Dictionary<string, object> {
{ "Name", "my-parameter" },
{ "WithDecryption", true }
},
PhysicalResourceId = PhysicalResourceId.Of(Date.Now().ToString()),
Logging = Logging.WithDataHidden()
},
Policy = AwsCustomResourcePolicy.FromSdkCalls(new SdkCallsPolicyOptions {
Resources = AwsCustomResourcePolicy.ANY_RESOURCE
})
});
Synopsis
Constructors
Logging(ILoggingProps) | |
Logging(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Logging(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
All() | Enables logging of all logged data in the lambda handler. |
WithDataHidden() | Hides logging of data associated with the API call response. |
Constructors
Logging(ILoggingProps)
Logging(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Logging(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Logging(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Logging(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
All()
Enables logging of all logged data in the lambda handler.
public static Logging All()
Returns
Remarks
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.
public static Logging WithDataHidden()
Returns
Remarks
This includes hiding the raw API
call response and the Data
field associated with the lambda handler response.