Interface AwsS3ServiceClient

  • All Known Implementing Classes:
    AwsS3ServiceClientImpl

    @Deprecated
    public interface AwsS3ServiceClient
    Deprecated.
    use AwsServiceClient instead.
    The AWS S3 service client.
    • 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