Class S3DeliveryDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.logs.S3DeliveryDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3DeliveryDestinationProps>
- Enclosing interface:
S3DeliveryDestinationProps
@Stability(Experimental)
public static final class S3DeliveryDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3DeliveryDestinationProps>
A builder for
S3DeliveryDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucket(IBucketRef bucket) Sets the value ofS3DeliveryDestinationProps.getBucket()build()Builds the configured instance.encryptionKey(IKeyRef encryptionKey) Sets the value ofS3DeliveryDestinationProps.getEncryptionKey()outputFormat(String outputFormat) Sets the value ofS3DeliveryDestinationProps.getOutputFormat()permissionsVersion(S3LogsDeliveryPermissionsVersion permissionsVersion) Sets the value ofS3DeliveryDestinationProps.getPermissionsVersion()sourceAccountId(String sourceAccountId) Sets the value ofS3DeliveryDestinationProps.getSourceAccountId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3DeliveryDestinationProps.getBucket()- Parameters:
bucket- The S3 bucket to deliver logs to. This parameter is required.- Returns:
this
-
encryptionKey
@Stability(Experimental) public S3DeliveryDestinationProps.Builder encryptionKey(IKeyRef encryptionKey) Sets the value ofS3DeliveryDestinationProps.getEncryptionKey()- Parameters:
encryptionKey- KMS key to use for encrypting logs in the S3 bucket. When provided, grants the logs delivery service permissions to use the key.- Returns:
this
-
outputFormat
@Stability(Experimental) public S3DeliveryDestinationProps.Builder outputFormat(String outputFormat) Sets the value ofS3DeliveryDestinationProps.getOutputFormat()- Parameters:
outputFormat- Format of the logs that are sent to this delivery destination.- Returns:
this
-
permissionsVersion
@Stability(Experimental) public S3DeliveryDestinationProps.Builder permissionsVersion(S3LogsDeliveryPermissionsVersion permissionsVersion) Sets the value ofS3DeliveryDestinationProps.getPermissionsVersion()- Parameters:
permissionsVersion- The permissions version ('V1' or 'V2') to be used for this delivery. Depending on the source of the logs, different permissions are required.- Returns:
this
-
sourceAccountId
@Stability(Experimental) public S3DeliveryDestinationProps.Builder sourceAccountId(String sourceAccountId) Sets the value ofS3DeliveryDestinationProps.getSourceAccountId()- Parameters:
sourceAccountId- Optional acount id for account the delivery source is in for cross account Vended Logs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3DeliveryDestinationProps>- Returns:
- a new instance of
S3DeliveryDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-