AWSS3TransferUtilityExpression
Objective-C
@interface AWSS3TransferUtilityExpression : NSObject
Swift
class AWSS3TransferUtilityExpression
The expression object for configuring a upload or download task.
-
This NSDictionary can contains additional request headers to be included in the pre-signed URL. Default is emtpy.
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary<NSString *, NSString *> *_Nonnull requestHeaders;
-
This NSDictionary can contains additional request parameters to be included in the pre-signed URL. Adding additional request parameters enables more advanced pre-signed URLs, such as accessing Amazon S3’s torrent resource for an object, or for specifying a version ID when accessing an object. Default is emtpy.
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary<NSString *, NSString *> *_Nonnull requestParameters;
-
The progress feedback block.
Declaration
Objective-C
@property (nonatomic, copy, nullable) AWSS3TransferUtilityProgressBlock progressBlock;
Swift
var progressBlock: AWSS3TransferUtilityProgressBlock? { get set }
-
Set an additional request header to be included in the pre-signed URL.
Declaration
Objective-C
- (void)setValue:(nullable NSString *)value forRequestHeader:(nonnull NSString *)requestHeader;
Swift
func setValue(_ value: Any!, forRequestHeader requestHeader: Any!)
Parameters
value
The value of the request parameter being added. Set to nil if parameter doesn’t contains value.
requestHeader
The name of the request header.
-
Set an additional request parameter to be included in the pre-signed URL. Adding additional request parameters enables more advanced pre-signed URLs, such as accessing Amazon S3’s torrent resource for an object, or for specifying a version ID when accessing an object.
Declaration
Objective-C
- (void)setValue:(nullable NSString *)value forRequestParameter:(nonnull NSString *)requestParameter;
Swift
func setValue(_ value: Any!, forRequestParameter requestParameter: Any!)
Parameters
value
The value of the request parameter being added. Set to nil if parameter doesn’t contains value.
requestParameter
The name of the request parameter, as it appears in the URL’s query string (e.g. AWSS3PresignedURLVersionID).