Class S3LogDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.alpha.S3LogDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3LogDestinationProps>
- Enclosing interface:
S3LogDestinationProps
@Stability(Experimental)
public static final class S3LogDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3LogDestinationProps>
A builder for
S3LogDestinationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofS3LogDestinationProps.getBucket()
bucketOwner
(String bucketOwner) Sets the value ofS3LogDestinationProps.getBucketOwner()
build()
Builds the configured instance.outputFormat
(S3OutputFormat outputFormat) Sets the value ofS3LogDestinationProps.getOutputFormat()
Sets the value ofS3LogDestinationProps.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3LogDestinationProps.getBucket()
- Parameters:
bucket
- The S3 bucket to deliver the log records for the pipe. This parameter is required. The bucket can be in the same or a different AWS Account. If the bucket is in a different acccount, specifybucketOwner
. You must also allow access to the Pipes role in the bucket policy of the cross-account bucket.- Returns:
this
-
bucketOwner
Sets the value ofS3LogDestinationProps.getBucketOwner()
- Parameters:
bucketOwner
- The AWS Account that owns the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.- Returns:
this
-
outputFormat
@Stability(Experimental) public S3LogDestinationProps.Builder outputFormat(S3OutputFormat outputFormat) Sets the value ofS3LogDestinationProps.getOutputFormat()
- Parameters:
outputFormat
- The format for the log records.- Returns:
this
-
prefix
Sets the value ofS3LogDestinationProps.getPrefix()
- Parameters:
prefix
- The prefix text with which to begin Amazon S3 log object names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3LogDestinationProps>
- Returns:
- a new instance of
S3LogDestinationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-