@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.817Z") @Stability(value=Stable) public interface RoutingRule 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.s3.*;
ReplaceKey replaceKey;
RoutingRule routingRule = RoutingRule.builder()
.condition(RoutingRuleCondition.builder()
.httpErrorCodeReturnedEquals("httpErrorCodeReturnedEquals")
.keyPrefixEquals("keyPrefixEquals")
.build())
.hostName("hostName")
.httpRedirectCode("httpRedirectCode")
.protocol(RedirectProtocol.HTTP)
.replaceKey(replaceKey)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RoutingRule.Builder
A builder for
RoutingRule |
static class |
RoutingRule.Jsii$Proxy
An implementation for
RoutingRule |
| Modifier and Type | Method and Description |
|---|---|
static RoutingRule.Builder |
builder() |
default RoutingRuleCondition |
getCondition()
Specifies a condition that must be met for the specified redirect to apply.
|
default String |
getHostName()
The host name to use in the redirect request.
|
default String |
getHttpRedirectCode()
The HTTP redirect code to use on the response.
|
default RedirectProtocol |
getProtocol()
Protocol to use when redirecting requests.
|
default ReplaceKey |
getReplaceKey()
Specifies the object key prefix to use in the redirect request.
|
@Stability(value=Stable) @Nullable default RoutingRuleCondition getCondition()
Default: - No condition
@Stability(value=Stable) @Nullable default String getHostName()
Default: - The host name used in the original request.
@Stability(value=Stable) @Nullable default String getHttpRedirectCode()
Default: "301" - Moved Permanently
@Stability(value=Stable) @Nullable default RedirectProtocol getProtocol()
Default: - The protocol used in the original request.
@Stability(value=Stable) @Nullable default ReplaceKey getReplaceKey()
Default: - The key will not be replaced
@Stability(value=Stable) static RoutingRule.Builder builder()
RoutingRule.Builder of RoutingRuleCopyright © 2022. All rights reserved.