Class: Aws::S3::Types::Redirect
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::Redirect
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
When making an API call, you may pass Redirect data as a hash:
{
host_name: "HostName",
http_redirect_code: "HttpRedirectCode",
protocol: "http", # accepts http, https
replace_key_prefix_with: "ReplaceKeyPrefixWith",
replace_key_with: "ReplaceKeyWith",
}
Instance Attribute Summary collapse
-
#host_name ⇒ String
The host name to use in the redirect request.
-
#http_redirect_code ⇒ String
The HTTP redirect code to use on the response.
-
#protocol ⇒ String
Protocol to use (http, https) when redirecting requests.
-
#replace_key_prefix_with ⇒ String
The object key prefix to use in the redirect request.
-
#replace_key_with ⇒ String
The specific object key to use in the redirect request.
Instance Attribute Details
#host_name ⇒ String
The host name to use in the redirect request.
8195 8196 8197 8198 8199 8200 8201 8202 |
# File 'lib/aws-sdk-s3/types.rb', line 8195 class Redirect < Struct.new( :host_name, :http_redirect_code, :protocol, :replace_key_prefix_with, :replace_key_with) include Aws::Structure end |
#http_redirect_code ⇒ String
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
8195 8196 8197 8198 8199 8200 8201 8202 |
# File 'lib/aws-sdk-s3/types.rb', line 8195 class Redirect < Struct.new( :host_name, :http_redirect_code, :protocol, :replace_key_prefix_with, :replace_key_with) include Aws::Structure end |
#protocol ⇒ String
Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in the original request.
8195 8196 8197 8198 8199 8200 8201 8202 |
# File 'lib/aws-sdk-s3/types.rb', line 8195 class Redirect < Struct.new( :host_name, :http_redirect_code, :protocol, :replace_key_prefix_with, :replace_key_with) include Aws::Structure end |
#replace_key_prefix_with ⇒ String
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.
8195 8196 8197 8198 8199 8200 8201 8202 |
# File 'lib/aws-sdk-s3/types.rb', line 8195 class Redirect < Struct.new( :host_name, :http_redirect_code, :protocol, :replace_key_prefix_with, :replace_key_with) include Aws::Structure end |
#replace_key_with ⇒ String
The specific object key to use in the redirect request. For example, redirect request to error.html. Not required if one of the sibling is present. Can be present only if ReplaceKeyPrefixWith is not provided.
8195 8196 8197 8198 8199 8200 8201 8202 |
# File 'lib/aws-sdk-s3/types.rb', line 8195 class Redirect < Struct.new( :host_name, :http_redirect_code, :protocol, :replace_key_prefix_with, :replace_key_with) include Aws::Structure end |