Class KinesisDestination

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.destinations.KinesisDestination
All Implemented Interfaces:
ILogSubscriptionDestination, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.185Z") @Stability(Stable) public class KinesisDestination extends software.amazon.jsii.JsiiObject implements ILogSubscriptionDestination
Use a Kinesis stream as the destination for a log subscription.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.iam.*;
 import software.amazon.awscdk.services.kinesis.*;
 import software.amazon.awscdk.services.logs.destinations.*;
 Role role;
 Stream stream;
 KinesisDestination kinesisDestination = KinesisDestination.Builder.create(stream)
         .role(role)
         .build();
 
  • Constructor Details

    • KinesisDestination

      protected KinesisDestination(software.amazon.jsii.JsiiObjectRef objRef)
    • KinesisDestination

      protected KinesisDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • KinesisDestination

      @Stability(Stable) public KinesisDestination(@NotNull IStream stream, @Nullable KinesisDestinationProps props)
      Parameters:
      stream - The Kinesis stream to use as destination. This parameter is required.
      props - The Kinesis Destination properties.
    • KinesisDestination

      @Stability(Stable) public KinesisDestination(@NotNull IStream stream)
      Parameters:
      stream - The Kinesis stream to use as destination. This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public LogSubscriptionDestinationConfig bind(@NotNull Construct scope, @NotNull ILogGroup _sourceLogGroup)
      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.

      Specified by:
      bind in interface ILogSubscriptionDestination
      Parameters:
      scope - This parameter is required.
      _sourceLogGroup - This parameter is required.