Enum Distribution
The method used to distribute log data to the destination.
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum Distribution
Syntax (vb)
Public Enum Distribution
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs.Destinations;
using Amazon.CDK.AWS.Kinesis;
Stream stream;
LogGroup logGroup;
new SubscriptionFilter(this, "Subscription", new SubscriptionFilterProps {
LogGroup = logGroup,
Destination = new KinesisDestination(stream),
FilterPattern = FilterPattern.AllTerms("ERROR", "MainThread"),
FilterName = "ErrorInMainThread",
Distribution = Distribution.RANDOM
});
Synopsis
Fields
BY_LOG_STREAM | Log events from the same log stream are kept together and sent to the same destination. |
RANDOM | Log events are distributed across the log destinations randomly. |
Fields
Name | Description |
---|---|
BY_LOG_STREAM | Log events from the same log stream are kept together and sent to the same destination. |
RANDOM | Log events are distributed across the log destinations randomly. |