企业🤖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}" /> ```