ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# C.84 S3GetTask Downloads an object from Amazon S3. This task requires the PEAR package [Services\_Amazon\_S3](http://pear.php.net/package/Services_Amazon_S3) Table C.114:聽Attributes NameTypeDescriptionDefaultRequired`key``String`Amazon S3 keyn/aYes (or defined before task call as: amazon.key)`secret``String`Amazon S3 secretn/aYes (or defined before task call as: amazon.secret)`bucket``String`Bucket containing the objectn/aYes (or defined before task call as: amazon.bucket)`object``String`Object namen/aYes`target``String`Where to store the object after downloadn/aYes C.84.1 Example Downloading an object ``` <s3get object="file.txt" target="${project.basedir}" bucket="mybucket" key="AmazonKey" secret="AmazonSecret" /> ``` You can also define "bucket, key, secret" outside of the task call: ``` <property name="amazon.key" value="my_key" /> <property name="amazon.secret" value="my_secret" /> <property name="amazon.bucket" value="mybucket" /> <s3get object="file.txt" target="${project.basedir}" /> ```