Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kejyun/3235345 to your computer and use it in GitHub Desktop.
Save kejyun/3235345 to your computer and use it in GitHub Desktop.
變更AWS S3檔案儲存類型
<?php
/*
* 變更檔案儲存類型
*/
$bucket = "kejyun-test"; //容器名稱
$s3 = new AmazonS3();
$response = $s3->change_storage_redundancy($bucket, 'test1.txt', AmazonS3::STORAGE_REDUCED);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment