KinesisDestination

class aws_cdk.aws_logs_destinations.KinesisDestination(stream, *, role=None)

Bases: object

Use a Kinesis stream as the destination for a log subscription.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam
from aws_cdk import aws_kinesis as kinesis
from aws_cdk import aws_logs_destinations as logs_destinations

# role: iam.Role
# stream: kinesis.Stream

kinesis_destination = logs_destinations.KinesisDestination(stream,
    role=role
)
Parameters:
  • stream (IStream) – The Kinesis stream to use as destination.

  • role (Optional[IRole]) – The role to assume to write log events to the destination. Default: - A new Role is created

Methods

bind(scope, _source_log_group)

Return the properties required to send subscription events to this destination.

If necessary, the destination can use the properties of the SubscriptionFilter object itself to configure its permissions to allow the subscription to write to it.

The destination may reconfigure its own permissions in response to this function call.

Parameters:
Return type:

LogSubscriptionDestinationConfig