RedirectActionConfig
public struct RedirectActionConfig : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
The hostname. This component is not percent-encoded. The hostname can contain #{host}.
Declaration
Swift
public let host: String?
-
The absolute path, starting with the leading “/”. This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.
Declaration
Swift
public let path: String?
-
The port. You can specify a value from 1 to 65535 or #{port}.
Declaration
Swift
public let port: String?
-
The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.
Declaration
Swift
public let `protocol`: String?
-
The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading “?”, as it is automatically added. You can specify any of the reserved keywords.
Declaration
Swift
public let query: String?
-
The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary (HTTP 302).
Declaration
Swift
public let statusCode: RedirectActionStatusCodeEnum
-
Undocumented
Declaration
Swift
public init(host: String? = nil, path: String? = nil, port: String? = nil, protocol: String? = nil, query: String? = nil, statusCode: RedirectActionStatusCodeEnum)
-
Declaration
Swift
public func validate(name: String) throws