@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.119Z") @Stability(value=Experimental) public interface CustomRuleOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplify.*;
CustomRuleOptions customRuleOptions = CustomRuleOptions.builder()
.source("source")
.target("target")
// the properties below are optional
.condition("condition")
.status(RedirectStatus.REWRITE)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomRuleOptions.Builder
A builder for
CustomRuleOptions |
static class |
CustomRuleOptions.Jsii$Proxy
An implementation for
CustomRuleOptions |
| Modifier and Type | Method and Description |
|---|---|
static CustomRuleOptions.Builder |
builder() |
default String |
getCondition()
(experimental) The condition for a URL rewrite or redirect rule, e.g.
|
String |
getSource()
(experimental) The source pattern for a URL rewrite or redirect rule.
|
default RedirectStatus |
getStatus()
(experimental) The status code for a URL rewrite or redirect rule.
|
String |
getTarget()
(experimental) The target pattern for a URL rewrite or redirect rule.
|
@Stability(value=Experimental) @NotNull String getSource()
@Stability(value=Experimental) @NotNull String getTarget()
@Stability(value=Experimental) @Nullable default String getCondition()
Default: - no condition
@Stability(value=Experimental) @Nullable default RedirectStatus getStatus()
Default: PERMANENT_REDIRECT
@Stability(value=Experimental) static CustomRuleOptions.Builder builder()
CustomRuleOptions.Builder of CustomRuleOptionsCopyright © 2022. All rights reserved.