Interface ILogGroupProps
Customize the CloudWatch LogGroup Event Target.
Inherited Members
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILogGroupProps : ITargetBaseProps
Syntax (vb)
Public Interface ILogGroupProps
Inherits ITargetBaseProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs;
LogGroup logGroup;
Rule rule;
rule.AddTarget(new CloudWatchLogGroup(logGroup, new LogGroupProps {
LogEvent = LogGroupTargetInput.FromObject(new LogGroupTargetInputOptions {
Message = JSON.Stringify(new Dictionary<string, string> {
{ "CustomField", "CustomValue" }
})
})
}));
Synopsis
Properties
Event | (deprecated) The event to send to the CloudWatch LogGroup. |
Install |
Whether the custom resource created wll default to install latest AWS SDK. |
Log |
The event to send to the CloudWatch LogGroup. |
Properties
Event
(deprecated) The event to send to the CloudWatch LogGroup.
virtual RuleTargetInput Event { get; }
Property Value
Remarks
This will be the event logged into the CloudWatch LogGroup
Default: - the entire EventBridge event
Stability: Deprecated
InstallLatestAwsSdk
Whether the custom resource created wll default to install latest AWS SDK.
virtual Nullable<bool> InstallLatestAwsSdk { get; }
Property Value
System.
Remarks
Default: - install latest AWS SDK
LogEvent
The event to send to the CloudWatch LogGroup.
virtual LogGroupTargetInput LogEvent { get; }
Property Value
Remarks
This will be the event logged into the CloudWatch LogGroup
Default: - the entire EventBridge event