AWSS3Redirect
Objective-C
@interface AWSS3Redirect
Swift
class AWSS3Redirect
Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.
-
The host name to use in the redirect request.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable hostName;Swift
var hostName: String? { get set } -
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable httpRedirectCode;Swift
var httpRedirectCode: String? { get set } -
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
Declaration
Objective-C
@property (nonatomic) AWSS3Protocols protocols;Swift
var protocols: AWSS3Protocols { get set } -
The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix
docs/(objects in thedocs/folder) todocuments/, you can set a condition block withKeyPrefixEqualsset todocs/and in the Redirect setReplaceKeyPrefixWithto/documents. Not required if one of the siblings is present. Can be present only ifReplaceKeyWithis not provided.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable replaceKeyPrefixWith;Swift
var replaceKeyPrefixWith: String? { get set } -
The specific object key to use in the redirect request. For example, redirect request to
error.html. Not required if one of the siblings is present. Can be present only ifReplaceKeyPrefixWithis not provided.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable replaceKeyWith;Swift
var replaceKeyWith: String? { get set }
View on GitHub
Install in Dash
AWSS3Redirect Class Reference