Interface BucketEvents.AWSAPICallViaCloudTrail.ObjectRetentionInfo
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
BucketEvents.AWSAPICallViaCloudTrail.ObjectRetentionInfo.Jsii$Proxy
- Enclosing class:
BucketEvents.AWSAPICallViaCloudTrail
@Stability(Experimental)
public static interface BucketEvents.AWSAPICallViaCloudTrail.ObjectRetentionInfo
extends software.amazon.jsii.JsiiSerializable
(experimental) Type definition for ObjectRetentionInfo.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.s3.events.*;
ObjectRetentionInfo objectRetentionInfo = ObjectRetentionInfo.builder()
.legalHoldInfo(LegalHoldInfo.builder()
.isUnderLegalHold(List.of("isUnderLegalHold"))
.lastModifiedTime(List.of("lastModifiedTime"))
.build())
.retentionInfo(RetentionInfo.builder()
.lastModifiedTime(List.of("lastModifiedTime"))
.retainUntilMode(List.of("retainUntilMode"))
.retainUntilTime(List.of("retainUntilTime"))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBucketEvents.AWSAPICallViaCloudTrail.ObjectRetentionInfostatic final classAn implementation forBucketEvents.AWSAPICallViaCloudTrail.ObjectRetentionInfo -
Method Summary
Modifier and TypeMethodDescriptionbuilder()(experimental) legalHoldInfo property.(experimental) retentionInfo property.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLegalHoldInfo
@Stability(Experimental) @Nullable default BucketEvents.AWSAPICallViaCloudTrail.LegalHoldInfo getLegalHoldInfo()(experimental) legalHoldInfo property.Specify an array of string values to match this event if the actual value of legalHoldInfo is one of the values in the array. Use one of the constructors on the
aws_events.Matchfor more advanced matching options.Default: - Do not filter on this field
-
getRetentionInfo
@Stability(Experimental) @Nullable default BucketEvents.AWSAPICallViaCloudTrail.RetentionInfo getRetentionInfo()(experimental) retentionInfo property.Specify an array of string values to match this event if the actual value of retentionInfo is one of the values in the array. Use one of the constructors on the
aws_events.Matchfor more advanced matching options.Default: - Do not filter on this field
-
builder
@Stability(Experimental) static BucketEvents.AWSAPICallViaCloudTrail.ObjectRetentionInfo.Builder builder()
-