Class S3LogsDeliveryProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.logs.S3LogsDeliveryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3LogsDeliveryProps>
- Enclosing interface:
S3LogsDeliveryProps
@Stability(Experimental)
public static final class S3LogsDeliveryProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3LogsDeliveryProps>
A builder for
S3LogsDeliveryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofS3LogsDeliveryProps.getKmsKey()mandatoryFields(List<String> mandatoryFields) Sets the value ofRecordFieldDeliveryProps.getMandatoryFields()outputFormat(String outputFormat) Sets the value ofDeliveryProps.getOutputFormat()permissionsVersion(S3LogsDeliveryPermissionsVersion permissionsVersion) Sets the value ofS3LogsDeliveryProps.getPermissionsVersion()providedFields(List<String> providedFields) Sets the value ofRecordFieldDeliveryProps.getProvidedFields()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKey
Sets the value ofS3LogsDeliveryProps.getKmsKey()- Parameters:
kmsKey- 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
-
permissionsVersion
@Stability(Experimental) public S3LogsDeliveryProps.Builder permissionsVersion(S3LogsDeliveryPermissionsVersion permissionsVersion) Sets the value ofS3LogsDeliveryProps.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
-
outputFormat
Sets the value ofDeliveryProps.getOutputFormat()- Parameters:
outputFormat- Format of the logs that are sent to the delivery destination specified.- Returns:
this
-
mandatoryFields
@Stability(Experimental) public S3LogsDeliveryProps.Builder mandatoryFields(List<String> mandatoryFields) Sets the value ofRecordFieldDeliveryProps.getMandatoryFields()- Parameters:
mandatoryFields- Any recordFields that a mandatory to be included in a log delivery of a certain log type.- Returns:
this
-
providedFields
@Stability(Experimental) public S3LogsDeliveryProps.Builder providedFields(List<String> providedFields) Sets the value ofRecordFieldDeliveryProps.getProvidedFields()- Parameters:
providedFields- RecordFields the user has defined to be used in log delivery.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3LogsDeliveryProps>- Returns:
- a new instance of
S3LogsDeliveryProps - Throws:
NullPointerException- if any required attribute was not provided
-