Redirect
public struct Redirect : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
The host name to use in the redirect request.
Declaration
Swift
public let hostName: String?
-
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
Declaration
Swift
public let httpRedirectCode: String?
-
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
Declaration
Swift
public let `protocol`: Protocol?
-
The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents. Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.
Declaration
Swift
public let replaceKeyPrefixWith: String?
-
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 if ReplaceKeyPrefixWith is not provided.
Declaration
Swift
public let replaceKeyWith: String?
-
Undocumented
Declaration
Swift
public init(hostName: String? = nil, httpRedirectCode: String? = nil, protocol: Protocol? = nil, replaceKeyPrefixWith: String? = nil, replaceKeyWith: String? = nil)