Distribution
- class aws_cdk.aws_logs.Distribution(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The method used to distribute log data to the destination.
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_logs_destinations as destinations import aws_cdk.aws_kinesis as kinesis # stream: kinesis.Stream # log_group: logs.LogGroup logs.SubscriptionFilter(self, "Subscription", log_group=log_group, destination=destinations.KinesisDestination(stream), filter_pattern=logs.FilterPattern.all_terms("ERROR", "MainThread"), filter_name="ErrorInMainThread", distribution=logs.Distribution.RANDOM )
Attributes
- 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.