java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.Endpoint
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-01T20:58:20.885Z") @Stability(Stable) public abstract class Endpoint extends software.amazon.jsii.JsiiObject
Represents the endpoints available for targetting within a realtime log config resource.

Example:

 // Adding realtime logs config to a Cloudfront Distribution on default behavior.
 import software.amazon.awscdk.services.kinesis.*;
 Stream stream;
 RealtimeLogConfig realTimeConfig = RealtimeLogConfig.Builder.create(this, "realtimeLog")
         .endPoints(List.of(Endpoint.fromKinesisStream(stream)))
         .fields(List.of("timestamp", "c-ip", "time-to-first-byte", "sc-status"))
         .realtimeLogConfigName("my-delivery-stream")
         .samplingRate(100)
         .build();
 Distribution.Builder.create(this, "myCdn")
         .defaultBehavior(BehaviorOptions.builder()
                 .origin(new HttpOrigin("www.example.com"))
                 .realtimeLogConfig(realTimeConfig)
                 .build())
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Endpoint(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Endpoint
    Configure a Kinesis Stream Endpoint for Realtime Log Config.
    static Endpoint
    Configure a Kinesis Stream Endpoint for Realtime Log Config.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Endpoint

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

      protected Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • fromKinesisStream

      @Stability(Stable) @NotNull public static Endpoint fromKinesisStream(@NotNull IStream stream, @Nullable IRole role)
      Configure a Kinesis Stream Endpoint for Realtime Log Config.

      Default: - a role will be created and used across your endpoints

      Parameters:
      stream - This parameter is required.
      role -
    • fromKinesisStream

      @Stability(Stable) @NotNull public static Endpoint fromKinesisStream(@NotNull IStream stream)
      Configure a Kinesis Stream Endpoint for Realtime Log Config.

      Default: - a role will be created and used across your endpoints

      Parameters:
      stream - This parameter is required.