수명 주기 이벤트 알림 구성 - Amazon Simple Storage Service

수명 주기 이벤트 알림 구성

Amazon S3가 S3 수명 주기 규칙에 따라 객체를 삭제하거나 다른 Amazon S3 스토리지 클래스로 전환할 때 알림을 받도록 Amazon S3 이벤트 알림을 설정할 수 있습니다.

LifecycleExpiration 이벤트 유형을 사용하면 Amazon S3가 S3 수명 주기 구성에 따라 객체를 삭제할 때마다 알림을 받을 수 있습니다. s3:LifecycleExpiration:Delete 이벤트 유형은 버전이 지정되지 않은 버킷의 객체가 삭제될 때 알려줍니다. S3 수명 주기 구성에 의해 객체 버전이 영구적으로 삭제될 때도 알려줍니다. s3:LifecycleExpiration:DeleteMarkerCreated 이벤트 유형은 버전이 지정된 버킷에 있는 객체의 현재 버전이 삭제되는 경우 S3 수명 주기가 삭제 마커를 생성할 때 알려줍니다. 자세한 내용은 객체 버전 삭제를 참조하세요.

s3:LifecycleTransition 이벤트 유형을 사용하면 S3 수명 주기 구성에 의해 객체가 Amazon S3 스토리지 클래스 간에 전환될 때 알림을 받을 수 있습니다.

Amazon S3는 Amazon Simple Notification Service(Amazon SNS) 주제, Amazon Simple Queue Service(Amazon SQS) 대기열 또는 AWS Lambda 함수에 이벤트 알림을 게시할 수 있습니다. 자세한 내용은 Amazon S3 이벤트 알림 섹션을 참조하세요.

Amazon S3 이벤트 알림을 구성하는 방법에 대한 지침은 이벤트 알림 사용 설정를 참조하세요.

다음은 Amazon S3에서 s3:LifecycleExpiration:Delete 이벤트를 게시하기 위해 전송하는 메시지의 예입니다. 자세한 내용은 이벤트 메시지 구조를 참조하세요.

{ "Records":[ { "eventVersion":"2.3", "eventSource":"aws:s3", "awsRegion":"us-west-2", "eventTime":"1970-01-01T00:00:00.000Z", "eventName":"LifecycleExpiration:Delete", "userIdentity":{ "principalId":"s3.amazonaws.com" }, "requestParameters":{ "sourceIPAddress":"s3.amazonaws.com" }, "responseElements":{ "x-amz-request-id":"C3D13FE58DE4C810", "x-amz-id-2":"FMyUVURIY8/IgAtTv8xRjskZQpcIZ9KG4V5Wp6S7S/JRWeUWerMUE5JgHvANOjpD" }, "s3":{ "s3SchemaVersion":"1.0", "configurationId":"testConfigRule", "bucket":{ "name":"mybucket", "ownerIdentity":{ "principalId":"A3NL1KOZZKExample" }, "arn":"arn:aws:s3:::mybucket" }, "object":{ "key":"expiration/delete", "sequencer":"0055AED6DCD90281E5", } } } ] }

Amazon S3가 s3:LifecycleTransition 이벤트를 게시하기 위해 전송하는 메시지에는 다음 정보도 포함됩니다.

"lifecycleEventData":{ "transitionEventData": { "destinationStorageClass": the destination storage class for the object } }