Example usage for Java com.amazonaws.services.s3 AmazonS3 fields, constructors, methods, implement or subclass
The text is from its open source code.
void | abortMultipartUpload(AbortMultipartUploadRequest request) Aborts a multipart upload. |
void | changeObjectStorageClass(String bucketName, String key, StorageClass newStorageClass) Changes the Amazon S3 storage class for a specified object. |
CompleteMultipartUploadResult | completeMultipartUpload(CompleteMultipartUploadRequest request) Completes a multipart upload by assembling previously uploaded parts. |
CopyObjectResult | copyObject(String sourceBucketName, String sourceKey, String destinationBucketName, String destinationKey) Copies a source object to a new destination in Amazon S3. |
CopyObjectResult | copyObject(CopyObjectRequest copyObjectRequest) Copies a source object to a new destination in Amazon S3. |
CopyPartResult | copyPart(CopyPartRequest copyPartRequest) Copies a source object to a part of a multipart upload. |
Bucket | createBucket(CreateBucketRequest createBucketRequest) Creates a new Amazon S3 bucket in the region that the client was created in. |
Bucket | createBucket(String bucketName) Creates a new Amazon S3 bucket with the specified name in the region that the client was created in. |
Bucket | createBucket(String bucketName, Region region) Creates a new Amazon S3 bucket with the specified name in the specified Amazon S3 region. |
Bucket | createBucket(String bucketName, String region) Creates a new Amazon S3 bucket with the specified name in the specified Amazon S3 region. |
void | deleteBucket(DeleteBucketRequest deleteBucketRequest) Deletes the specified bucket. |
void | deleteBucket(String bucketName) Deletes the specified bucket. |
void | deleteBucketLifecycleConfiguration(String bucketName) Removes the lifecycle configuration for the bucket specified. |
void | deleteBucketLifecycleConfiguration( DeleteBucketLifecycleConfigurationRequest deleteBucketLifecycleConfigurationRequest) Removes the lifecycle configuration for the bucket specified. |
void | deleteBucketPolicy(String bucketName) Deletes the policy associated with the specified bucket. |
void | deleteBucketPolicy(DeleteBucketPolicyRequest deleteBucketPolicyRequest) Deletes the policy associated with the specified bucket. |
void | deleteBucketWebsiteConfiguration(String bucketName) This operation removes the website configuration for a bucket. |
void | deleteBucketWebsiteConfiguration( DeleteBucketWebsiteConfigurationRequest deleteBucketWebsiteConfigurationRequest) This operation removes the website configuration for a bucket. |
void | deleteObject(String bucketName, String key) Deletes the specified object in the specified bucket. |
void | deleteObject(DeleteObjectRequest deleteObjectRequest) Deletes the specified object in the specified bucket. |
DeleteObjectsResult | deleteObjects(DeleteObjectsRequest deleteObjectsRequest) Deletes multiple objects in a single bucket from S3. |
void | deleteVersion(String bucketName, String key, String versionId) Deletes a specific version of the specified object in the specified bucket. |
void | deleteVersion(DeleteVersionRequest deleteVersionRequest) Deletes a specific version of an object in the specified bucket. |
void | disableRequesterPays(String bucketName) Allows Amazon S3 bucket owner to disable the Requester Pays for the given bucket name. |
boolean | doesBucketExist(String bucketName) Checks if the specified bucket exists. |
boolean | doesBucketExistV2(String bucketName) Checks if the specified bucket exists. |
boolean | doesObjectExist(String bucketName, String objectName) |
void | enableRequesterPays(String bucketName) Allows Amazon S3 bucket owner to enable the Requester Pays for the given bucket name. |
URL | generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest) Returns a pre-signed URL for accessing an Amazon S3 resource. |
URL | generatePresignedUrl(String bucketName, String key, Date expiration) Returns a pre-signed URL for accessing an Amazon S3 resource. |
AccessControlList | getBucketAcl(String bucketName) Gets the AccessControlList (ACL) for the specified Amazon S3 bucket. |
AccessControlList | getBucketAcl(GetBucketAclRequest getBucketAclRequest) Gets the AccessControlList (ACL) for the specified Amazon S3 bucket. |
BucketLifecycleConfiguration | getBucketLifecycleConfiguration(String bucketName) Gets the lifecycle configuration for the specified bucket, or null if the specified bucket does not exist or if no configuration has been established. |
BucketLifecycleConfiguration | getBucketLifecycleConfiguration( GetBucketLifecycleConfigurationRequest getBucketLifecycleConfigurationRequest) Gets the lifecycle configuration for the specified bucket, or null if the specified bucket does not exist or if no configuration has been established. |
String | getBucketLocation(String bucketName) Gets the geographical region where Amazon S3 stores the specified bucket. |
String | getBucketLocation(GetBucketLocationRequest getBucketLocationRequest) Gets the geographical region where Amazon S3 stores the specified bucket. |
BucketPolicy | getBucketPolicy(String bucketName) Gets the policy for the specified bucket. |
BucketPolicy | getBucketPolicy(GetBucketPolicyRequest getBucketPolicyRequest) Gets the policy for the specified bucket. |
BucketVersioningConfiguration | getBucketVersioningConfiguration(String bucketName) Returns the versioning configuration for the specified bucket. |
BucketVersioningConfiguration | getBucketVersioningConfiguration( GetBucketVersioningConfigurationRequest getBucketVersioningConfigurationRequest) Returns the versioning configuration for the specified bucket. |
BucketWebsiteConfiguration | getBucketWebsiteConfiguration(String bucketName) Returns the website configuration for the specified bucket. |
BucketWebsiteConfiguration | getBucketWebsiteConfiguration( GetBucketWebsiteConfigurationRequest getBucketWebsiteConfigurationRequest) Returns the website configuration for the specified bucket. |
S3ResponseMetadata | getCachedResponseMetadata(AmazonWebServiceRequest request) Gets additional metadata for a previously executed successful request. |
S3Object | getObject(GetObjectRequest getObjectRequest) Gets the object stored in Amazon S3 under the specified bucket and key. |
S3Object | getObject(String bucketName, String key) Gets the object stored in Amazon S3 under the specified bucket and key. |
ObjectMetadata | getObject(GetObjectRequest getObjectRequest, File destinationFile) Gets the object metadata for the object stored in Amazon S3 under the specified bucket and key, and saves the object contents to the specified file. |
AccessControlList | getObjectAcl(String bucketName, String key) Gets the AccessControlList (ACL) for the specified object in Amazon S3. |
String | getObjectAsString(String bucketName, String key) Retrieves and decodes the contents of an S3 object to a String. |
ObjectMetadata | getObjectMetadata(String bucketName, String key) Gets the metadata for the specified Amazon S3 object without actually fetching the object itself. |
ObjectMetadata | getObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest) Gets the metadata for the specified Amazon S3 object without actually fetching the object itself. |
GetObjectTaggingResult | getObjectTagging(GetObjectTaggingRequest getObjectTaggingRequest) Returns the tags for the specified object. |
Region | getRegion() Returns the region with which the client is configured. |
Owner | getS3AccountOwner() Gets the current owner of the AWS account that the authenticated sender of the request is using. |
URL | getUrl(String bucketName, String key) Returns an URL for the object stored in the specified bucket and key. |
InitiateMultipartUploadResult | initiateMultipartUpload(InitiateMultipartUploadRequest request) Initiates a multipart upload and returns an InitiateMultipartUploadResult which contains an upload ID. |
List | listBuckets() Returns a list of all Amazon S3 buckets that the authenticated sender of the request owns. |
MultipartUploadListing | listMultipartUploads(ListMultipartUploadsRequest request) Lists in-progress multipart uploads. |
ObjectListing | listNextBatchOfObjects(ObjectListing previousObjectListing) Provides an easy way to continue a truncated object listing and retrieve the next page of results. |
ObjectListing | listNextBatchOfObjects(ListNextBatchOfObjectsRequest listNextBatchOfObjectsRequest) Provides an easy way to continue a truncated object listing and retrieve the next page of results. |
VersionListing | listNextBatchOfVersions(VersionListing previousVersionListing) Provides an easy way to continue a truncated VersionListing and retrieve the next page of results. |
VersionListing | listNextBatchOfVersions(ListNextBatchOfVersionsRequest listNextBatchOfVersionsRequest) Provides an easy way to continue a truncated VersionListing and retrieve the next page of results. |
ObjectListing | listObjects(String bucketName) Returns a list of summary information about the objects in the specified buckets. |
ObjectListing | listObjects(ListObjectsRequest listObjectsRequest) Returns a list of summary information about the objects in the specified bucket. |
ObjectListing | listObjects(String bucketName, String prefix) Returns a list of summary information about the objects in the specified bucket. |
ListObjectsV2Result | listObjectsV2(String bucketName) |
ListObjectsV2Result | listObjectsV2(ListObjectsV2Request listObjectsV2Request) |
VersionListing | listVersions(ListVersionsRequest listVersionsRequest) Returns a list of summary information about the versions in the specified bucket. |
VersionListing | listVersions(String bucketName, String prefix) Returns a list of summary information about the versions in the specified bucket. |
VersionListing | listVersions(String bucketName, String prefix, String keyMarker, String versionIdMarker, String delimiter, Integer maxResults) Returns a list of summary information about the versions in the specified bucket. |
PutObjectResult | putObject(PutObjectRequest putObjectRequest) Uploads a new object to the specified Amazon S3 bucket. |
PutObjectResult | putObject(String bucketName, String key, File file) Uploads the specified file to Amazon S3 under the specified bucket and key name. |
PutObjectResult | putObject(String bucketName, String key, String content) Encodes a String into the contents of an S3 object. |
PutObjectResult | putObject(String bucketName, String key, InputStream input, ObjectMetadata metadata) Uploads the specified input stream and object metadata to Amazon S3 under the specified bucket and key name. |
void | restoreObject(RestoreObjectRequest request) Restore an object, which was transitioned to Amazon Glacier from Amazon S3 when it was expired, into Amazon S3 again. |
SelectObjectContentResult | selectObjectContent(SelectObjectContentRequest selectRequest) This operation filters the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. |
void | setBucketAcl(String bucketName, AccessControlList acl) Sets the AccessControlList for the specified Amazon S3 bucket. |
void | setBucketAcl(String bucketName, CannedAccessControlList acl) Sets the CannedAccessControlList for the specified Amazon S3 bucket using one of the pre-configured |
void | setBucketCrossOriginConfiguration(String bucketName, BucketCrossOriginConfiguration bucketCrossOriginConfiguration) Sets the cross origin configuration for the specified bucket. |
void | setBucketLifecycleConfiguration(String bucketName, BucketLifecycleConfiguration bucketLifecycleConfiguration) Sets the lifecycle configuration for the specified bucket. |
void | setBucketNotificationConfiguration(String bucketName, BucketNotificationConfiguration bucketNotificationConfiguration) Sets the notification configuration for the specified bucket. |
void | setBucketPolicy(String bucketName, String policyText) Sets the policy associated with the specified bucket. |
void | setBucketVersioningConfiguration( SetBucketVersioningConfigurationRequest setBucketVersioningConfigurationRequest) Sets the versioning configuration for the specified bucket. |
void | setBucketWebsiteConfiguration(String bucketName, BucketWebsiteConfiguration configuration) Sets the website configuration for the specified bucket. |
void | setEndpoint(String endpoint) Overrides the default endpoint for this client. |
void | setObjectAcl(String bucketName, String key, AccessControlList acl) Sets the AccessControlList for the specified object in Amazon S3. |
void | setObjectAcl(String bucketName, String key, CannedAccessControlList acl) Sets the CannedAccessControlList for the specified object in Amazon S3 using one of the pre-configured |
SetObjectTaggingResult | setObjectTagging(SetObjectTaggingRequest setObjectTaggingRequest) Set the tags for the specified object. |
void | setRegion(com.amazonaws.regions.Region region) An alternative to AmazonS3#setEndpoint(String) , sets the regional endpoint for this client's service calls. |
void | setS3ClientOptions(S3ClientOptions clientOptions) Override the default S3 client options for this client. |
void | shutdown() Shuts down this client object, releasing any resources that might be held open. |
UploadPartResult | uploadPart(UploadPartRequest request) Uploads a part in a multipart upload. |