Class CfnRealtimeLogConfig.Builder

java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRealtimeLogConfig>
Enclosing class:
CfnRealtimeLogConfig

@Stability(Stable) public static final class CfnRealtimeLogConfig.Builder extends Object implements software.amazon.jsii.Builder<CfnRealtimeLogConfig>
A fluent builder for CfnRealtimeLogConfig.
  • Method Details

    • create

      @Stability(Stable) public static CfnRealtimeLogConfig.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRealtimeLogConfig.Builder.
    • endPoints

      @Stability(Stable) public CfnRealtimeLogConfig.Builder endPoints(IResolvable endPoints)
      Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.

      Parameters:
      endPoints - Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration. This parameter is required.
      Returns:
      this
    • endPoints

      @Stability(Stable) public CfnRealtimeLogConfig.Builder endPoints(List<? extends Object> endPoints)
      Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.

      Parameters:
      endPoints - Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration. This parameter is required.
      Returns:
      this
    • fields

      @Stability(Stable) public CfnRealtimeLogConfig.Builder fields(List<String> fields)
      A list of fields that are included in each real-time log record.

      In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.

      For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide .

      Parameters:
      fields - A list of fields that are included in each real-time log record. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnRealtimeLogConfig.Builder name(String name)
      The unique name of this real-time log configuration.

      Parameters:
      name - The unique name of this real-time log configuration. This parameter is required.
      Returns:
      this
    • samplingRate

      @Stability(Stable) public CfnRealtimeLogConfig.Builder samplingRate(Number samplingRate)
      The sampling rate for this real-time log configuration.

      The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.

      Parameters:
      samplingRate - The sampling rate for this real-time log configuration. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRealtimeLogConfig build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRealtimeLogConfig>
      Returns:
      a newly built instance of CfnRealtimeLogConfig.