@Stability(value=Stable)
public static interface CfnApp.CustomRuleProperty
extends software.amazon.jsii.JsiiSerializable
Redirects enable a web app to reroute navigation from one URL to another.
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.*;
CustomRuleProperty customRuleProperty = CustomRuleProperty.builder()
.source("source")
.target("target")
// the properties below are optional
.condition("condition")
.status("status")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnApp.CustomRuleProperty.Builder
A builder for
CfnApp.CustomRuleProperty |
static class |
CfnApp.CustomRuleProperty.Jsii$Proxy
An implementation for
CfnApp.CustomRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnApp.CustomRuleProperty.Builder |
builder() |
default String |
getCondition()
The condition for a URL rewrite or redirect rule, such as a country code.
|
String |
getSource()
The source pattern for a URL rewrite or redirect rule.
|
default String |
getStatus()
The status code for a URL rewrite or redirect rule.
|
String |
getTarget()
The target pattern for a URL rewrite or redirect rule.
|
@Stability(value=Stable) @NotNull String getSource()
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern: (?s).+
@Stability(value=Stable) @NotNull String getTarget()
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern: (?s).+
@Stability(value=Stable) @Nullable default String getCondition()
Length Constraints: Minimum length of 0. Maximum length of 2048.
Pattern: (?s).*
@Stability(value=Stable) @Nullable default String getStatus()
Length Constraints: Minimum length of 3. Maximum length of 7.
Pattern: .{3,7}
@Stability(value=Stable) static CfnApp.CustomRuleProperty.Builder builder()
CfnApp.CustomRuleProperty.Builder of CfnApp.CustomRulePropertyCopyright © 2022. All rights reserved.