@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:41.711Z")
public interface RoutingRuleCondition
Bucket bucket = Bucket.Builder.create(this, "MyRedirectedBucket") .websiteRoutingRules(List.of(RoutingRule.builder() .hostName("www.example.com") .httpRedirectCode("302") .protocol(RedirectProtocol.HTTPS) .replaceKey(ReplaceKey.prefixWith("test/")) .condition(RoutingRuleCondition.builder() .httpErrorCodeReturnedEquals("200") .keyPrefixEquals("prefix") .build()) .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
RoutingRuleCondition.Builder
A builder for
RoutingRuleCondition |
static class |
RoutingRuleCondition.Jsii$Proxy
An implementation for
RoutingRuleCondition |
Modifier and Type | Method and Description |
---|---|
static RoutingRuleCondition.Builder |
builder() |
default java.lang.String |
getHttpErrorCodeReturnedEquals()
The HTTP error code when the redirect is applied.
|
default java.lang.String |
getKeyPrefixEquals()
The object key name prefix when the redirect is applied.
|
default java.lang.String getHttpErrorCodeReturnedEquals()
In the event of an error, if the error code equals this value, then the specified redirect is applied.
If both condition properties are specified, both must be true for the redirect to be applied.
Default: - The HTTP error code will not be verified
default java.lang.String getKeyPrefixEquals()
If both condition properties are specified, both must be true for the redirect to be applied.
Default: - The object key name will not be verified
static RoutingRuleCondition.Builder builder()
RoutingRuleCondition.Builder
of RoutingRuleCondition