Interface AwsS3ServiceClient
-
- All Known Implementing Classes:
AwsS3ServiceClientImpl
@Deprecated public interface AwsS3ServiceClient
Deprecated.use AwsServiceClient instead.The AWS S3 service client.
-
-
Field Summary
Fields Modifier and Type Field Description static NamedServiceClientFactory<AwsS3ServiceClient>
factory
Deprecated.
-
Method Summary
Modifier and Type Method Description AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, byte[] body)
Deprecated.Puts an object.AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, InputStream body)
Deprecated.Puts an object.AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, String body)
Deprecated.Puts an object.AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, Binary body)
Deprecated.Puts an object.AwsS3SignPolicyResult
signPolicy(String bucket, String key, String acl, String contentType)
Deprecated.Signs an AWS S3 security policy for a future put object request.
-
-
-
Field Detail
-
factory
static final NamedServiceClientFactory<AwsS3ServiceClient> factory
Deprecated.
-
-
Method Detail
-
putObject
AwsS3PutObjectResult putObject(@Nonnull String bucket, @Nonnull String key, @Nonnull String acl, @Nonnull String contentType, @Nonnull String body)
Deprecated.Puts an object.- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object.
-
putObject
AwsS3PutObjectResult putObject(@Nonnull String bucket, @Nonnull String key, @Nonnull String acl, @Nonnull String contentType, @Nonnull Binary body)
Deprecated.Puts an object.- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object.
-
putObject
AwsS3PutObjectResult putObject(@Nonnull String bucket, @Nonnull String key, @Nonnull String acl, @Nonnull String contentType, @Nonnull byte[] body)
Deprecated.Puts an object.- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object.
-
putObject
AwsS3PutObjectResult putObject(@Nonnull String bucket, @Nonnull String key, @Nonnull String acl, @Nonnull String contentType, @Nonnull InputStream body) throws IOException
Deprecated.Puts an object.- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object.
- Throws:
IOException
- if the body fails to be read.
-
signPolicy
AwsS3SignPolicyResult signPolicy(@Nonnull String bucket, @Nonnull String key, @Nonnull String acl, @Nonnull String contentType)
Deprecated.Signs an AWS S3 security policy for a future put object request. This future request would be made outside of the Stitch SDK. This is typically used for large requests that are better sent directly to AWS.- Parameters:
bucket
- the bucket to put the future object in.key
- the key (or name) of the future object.acl
- the ACL to apply to the future object (e.g. private).contentType
- the content type of the object (e.g. application/json).- Returns:
- the signed policy details.
- See Also:
- Uploading a File to Amazon S3 Using HTTP POST
-
-