Class CfnDeliveryProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnDeliveryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryProps>
- Enclosing interface:
CfnDeliveryProps
@Stability(Stable)
public static final class CfnDeliveryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryProps>
A builder for
CfnDeliveryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deliveryDestinationArn(String deliveryDestinationArn) Sets the value ofCfnDeliveryProps.getDeliveryDestinationArn()deliverySourceName(String deliverySourceName) Sets the value ofCfnDeliveryProps.getDeliverySourceName()fieldDelimiter(String fieldDelimiter) Sets the value ofCfnDeliveryProps.getFieldDelimiter()recordFields(List<String> recordFields) Sets the value ofCfnDeliveryProps.getRecordFields()s3EnableHiveCompatiblePath(Boolean s3EnableHiveCompatiblePath) Sets the value ofCfnDeliveryProps.getS3EnableHiveCompatiblePath()s3EnableHiveCompatiblePath(IResolvable s3EnableHiveCompatiblePath) Sets the value ofCfnDeliveryProps.getS3EnableHiveCompatiblePath()s3SuffixPath(String s3SuffixPath) Sets the value ofCfnDeliveryProps.getS3SuffixPath()Sets the value ofCfnDeliveryProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deliveryDestinationArn
@Stability(Stable) public CfnDeliveryProps.Builder deliveryDestinationArn(String deliveryDestinationArn) Sets the value ofCfnDeliveryProps.getDeliveryDestinationArn()- Parameters:
deliveryDestinationArn- The ARN of the delivery destination that is associated with this delivery. This parameter is required.- Returns:
this
-
deliverySourceName
Sets the value ofCfnDeliveryProps.getDeliverySourceName()- Parameters:
deliverySourceName- The name of the delivery source that is associated with this delivery. This parameter is required.- Returns:
this
-
fieldDelimiter
Sets the value ofCfnDeliveryProps.getFieldDelimiter()- Parameters:
fieldDelimiter- The field delimiter that is used between record fields when the final output format of a delivery is inPlain,W3C, orRawformat.- Returns:
this
-
recordFields
Sets the value ofCfnDeliveryProps.getRecordFields()- Parameters:
recordFields- The record fields used in this delivery.- Returns:
this
-
s3EnableHiveCompatiblePath
@Stability(Stable) public CfnDeliveryProps.Builder s3EnableHiveCompatiblePath(Boolean s3EnableHiveCompatiblePath) Sets the value ofCfnDeliveryProps.getS3EnableHiveCompatiblePath()- Parameters:
s3EnableHiveCompatiblePath- This parameter causes the S3 objects that contain delivered logs to use a prefix structure that allows for integration with Apache Hive.- Returns:
this
-
s3EnableHiveCompatiblePath
@Stability(Stable) public CfnDeliveryProps.Builder s3EnableHiveCompatiblePath(IResolvable s3EnableHiveCompatiblePath) Sets the value ofCfnDeliveryProps.getS3EnableHiveCompatiblePath()- Parameters:
s3EnableHiveCompatiblePath- This parameter causes the S3 objects that contain delivered logs to use a prefix structure that allows for integration with Apache Hive.- Returns:
this
-
s3SuffixPath
Sets the value ofCfnDeliveryProps.getS3SuffixPath()- Parameters:
s3SuffixPath- This string allows re-configuring the S3 object prefix to contain either static or variable sections. The valid variables to use in the suffix path will vary by each log source. See ConfigurationTemplate$allowedSuffixPathFields for more info on what values are supported in the suffix path for each log source.- Returns:
this
-
tags
Sets the value ofCfnDeliveryProps.getTags()- Parameters:
tags- The tags that have been assigned to this delivery.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeliveryProps>- Returns:
- a new instance of
CfnDeliveryProps - Throws:
NullPointerException- if any required attribute was not provided
-