interface ObjectRetentionInfo
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Events.AWSAPICallViaCloudTrail.ObjectRetentionInfo |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/events#AWSAPICallViaCloudTrail_ObjectRetentionInfo |
Java | software.amazon.awscdk.mixins.preview.services.s3.events.AWSAPICallViaCloudTrail.ObjectRetentionInfo |
Python | aws_cdk.mixins_preview.aws_s3.events.AWSAPICallViaCloudTrail.ObjectRetentionInfo |
TypeScript | @aws-cdk/mixins-preview ยป aws_s3 ยป events ยป AWSAPICallViaCloudTrail ยป ObjectRetentionInfo |
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 { events as s3_events } from '@aws-cdk/mixins-preview/aws-s3';
const objectRetentionInfo: s3_events.AWSAPICallViaCloudTrail.ObjectRetentionInfo = {
legalHoldInfo: {
isUnderLegalHold: ['isUnderLegalHold'],
lastModifiedTime: ['lastModifiedTime'],
},
retentionInfo: {
lastModifiedTime: ['lastModifiedTime'],
retainUntilMode: ['retainUntilMode'],
retainUntilTime: ['retainUntilTime'],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| legal | Legal | legalHoldInfo property. |
| retention | Retention | retentionInfo property. |
legalHoldInfo?
Type:
Legal
(optional, default: Do not filter on this field)
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.Match for more advanced matching options.
retentionInfo?
Type:
Retention
(optional, default: Do not filter on this field)
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.Match for more advanced matching options.

.NET
Go
Java
Python
TypeScript