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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnRealtimeLogConfig.Builder
Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.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.A list of fields that are included in each real-time log record.The unique name of this real-time log configuration.samplingRate
(Number samplingRate) The sampling rate for this real-time log configuration.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnRealtimeLogConfig.Builder
.
-
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
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
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRealtimeLogConfig>
- Returns:
- a newly built instance of
CfnRealtimeLogConfig
.
-