Struct: s3.RoutingRule
Overview
Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see Configuring advanced conditional redirects (docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects) in the Amazon S3 User Guide.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Condition *Condition
A container for describing a condition that must be met for the specified redirect to apply.
-
Redirect *Redirect
Container for redirect information.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetCondition(*Condition) *RoutingRule
operation
SetCondition sets the Condition field’s value.
-
SetRedirect(*Redirect) *RoutingRule
operation
SetRedirect sets the Redirect field’s value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
Condition *Condition
`type:"structure"`
A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
Redirect *Redirect
`type:"structure" required:"true"`
Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.
Redirect is a required field
_ struct{}
`type:"structure"`
Method Details
func (s RoutingRule) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
22548 22549 22550 |
// File 'service/s3/api.go', line 22548
|
func (s *RoutingRule) SetCondition(v *Condition) *RoutingRule
SetCondition sets the Condition field’s value.
22566 22567 22568 22569 |
// File 'service/s3/api.go', line 22566
|
func (s *RoutingRule) SetRedirect(v *Redirect) *RoutingRule
SetRedirect sets the Redirect field’s value.
22572 22573 22574 22575 |
// File 'service/s3/api.go', line 22572
|
func (s RoutingRule) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
22539 22540 22541 |
// File 'service/s3/api.go', line 22539
|
func (s *RoutingRule) Validate() error
Validate inspects the fields of the type to determine if they are valid.
22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 |
// File 'service/s3/api.go', line 22553
|