Struct aws_sdk_amplify::model::CustomRule [−][src]
#[non_exhaustive]pub struct CustomRule {
pub source: Option<String>,
pub target: Option<String>,
pub status: Option<String>,
pub condition: Option<String>,
}Expand description
Describes a custom rewrite or redirect rule.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: Option<String>The source pattern for a URL rewrite or redirect rule.
target: Option<String>The target pattern for a URL rewrite or redirect rule.
status: Option<String>The status code for a URL rewrite or redirect rule.
- 200
-
Represents a 200 rewrite rule.
- 301
-
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302
-
Represents a 302 temporary redirect rule.
- 404
-
Represents a 404 redirect rule.
- 404-200
-
Represents a 404 rewrite rule.
condition: Option<String>The condition for a URL rewrite or redirect rule, such as a country code.
Implementations
The status code for a URL rewrite or redirect rule.
- 200
-
Represents a 200 rewrite rule.
- 301
-
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302
-
Represents a 302 temporary redirect rule.
- 404
-
Represents a 404 redirect rule.
- 404-200
-
Represents a 404 rewrite rule.
Creates a new builder-style object to manufacture CustomRule
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CustomRule
impl Send for CustomRule
impl Sync for CustomRule
impl Unpin for CustomRule
impl UnwindSafe for CustomRule
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
