Class S3DeliveryDestination.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.logs.S3DeliveryDestination.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3DeliveryDestination>
- Enclosing class:
S3DeliveryDestination
@Stability(Experimental)
public static final class S3DeliveryDestination.Builder
extends Object
implements software.amazon.jsii.Builder<S3DeliveryDestination>
(experimental) A fluent builder for
S3DeliveryDestination.-
Method Summary
Modifier and TypeMethodDescriptionbucket(IBucketRef bucket) (experimental) The S3 bucket to deliver logs to.build()encryptionKey(IKeyRef encryptionKey) (experimental) KMS key to use for encrypting logs in the S3 bucket.outputFormat(String outputFormat) (experimental) Format of the logs that are sent to this delivery destination.permissionsVersion(S3LogsDeliveryPermissionsVersion permissionsVersion) (experimental) The permissions version ('V1' or 'V2') to be used for this delivery.sourceAccountId(String sourceAccountId) (experimental) Optional acount id for account the delivery source is in for cross account Vended Logs.
-
Method Details
-
create
@Stability(Experimental) public static S3DeliveryDestination.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
S3DeliveryDestination.Builder.
-
bucket
(experimental) The S3 bucket to deliver logs to.- Parameters:
bucket- The S3 bucket to deliver logs to. This parameter is required.- Returns:
this
-
encryptionKey
(experimental) KMS key to use for encrypting logs in the S3 bucket.When provided, grants the logs delivery service permissions to use the key.
Default: - No encryption key is configured
- Parameters:
encryptionKey- KMS key to use for encrypting logs in the S3 bucket. This parameter is required.- Returns:
this
-
outputFormat
(experimental) Format of the logs that are sent to this delivery destination.- Parameters:
outputFormat- Format of the logs that are sent to this delivery destination. This parameter is required.- Returns:
this
-
permissionsVersion
@Stability(Experimental) public S3DeliveryDestination.Builder permissionsVersion(S3LogsDeliveryPermissionsVersion permissionsVersion) (experimental) The permissions version ('V1' or 'V2') to be used for this delivery.Depending on the source of the logs, different permissions are required.
Default: "V2"
- Parameters:
permissionsVersion- The permissions version ('V1' or 'V2') to be used for this delivery. This parameter is required.- Returns:
this
-
sourceAccountId
@Stability(Experimental) public S3DeliveryDestination.Builder sourceAccountId(String sourceAccountId) (experimental) Optional acount id for account the delivery source is in for cross account Vended Logs.- Parameters:
sourceAccountId- Optional acount id for account the delivery source is in for cross account Vended Logs. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3DeliveryDestination>- Returns:
- a newly built instance of
S3DeliveryDestination.
-