내용으로 건너뛰기

Use StorageClass for uploaded files via AWS Greengrass Stream Manager SDK for Python

0

Hi *,

I want to use the AWS Greengrass Stream Manager SDK for Python to upload files to a S3 bucket.

It works quite fine, but now I'm wondering how I can define the Storage Class for the files that should be uploaded. Is there a way to set the header "x-amz-storage-class" or maybe use the user_metadata of the S3ExportTaskDefinition

Would be happy for any advise :)

1개 답변
0

Hello,

There is no way to define the storage class during the upload with stream manager. One option you do have is to use a lifecycle rule in the bucket to move the storage class for all items in the bucket, or items under a certain prefix. That would be my recommendation. https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html

Cheers,

Michael

AWS
전문가

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.