Class CfnRealtimeLogConfig.KinesisStreamConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRealtimeLogConfig.KinesisStreamConfigProperty>
- Enclosing interface:
CfnRealtimeLogConfig.KinesisStreamConfigProperty
@Stability(Stable)
public static final class CfnRealtimeLogConfig.KinesisStreamConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRealtimeLogConfig.KinesisStreamConfigProperty>
A builder for
CfnRealtimeLogConfig.KinesisStreamConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRealtimeLogConfig.KinesisStreamConfigProperty.getRoleArn()Sets the value ofCfnRealtimeLogConfig.KinesisStreamConfigProperty.getStreamArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
@Stability(Stable) public CfnRealtimeLogConfig.KinesisStreamConfigProperty.Builder roleArn(String roleArn) Sets the value ofCfnRealtimeLogConfig.KinesisStreamConfigProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream. This parameter is required. For more information the IAM role, see Real-time log configuration IAM role in the Amazon CloudFront Developer Guide .- Returns:
this
-
streamArn
@Stability(Stable) public CfnRealtimeLogConfig.KinesisStreamConfigProperty.Builder streamArn(String streamArn) Sets the value ofCfnRealtimeLogConfig.KinesisStreamConfigProperty.getStreamArn()- Parameters:
streamArn- The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRealtimeLogConfig.KinesisStreamConfigProperty>- Returns:
- a new instance of
CfnRealtimeLogConfig.KinesisStreamConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-