@Stability(value=Stable) public static final class CfnBucket.RoutingRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnBucket.RoutingRuleProperty>
CfnBucket.RoutingRuleProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucket.RoutingRuleProperty |
build()
Builds the configured instance.
|
CfnBucket.RoutingRuleProperty.Builder |
redirectRule(CfnBucket.RedirectRuleProperty redirectRule)
Sets the value of
CfnBucket.RoutingRuleProperty.getRedirectRule() |
CfnBucket.RoutingRuleProperty.Builder |
redirectRule(IResolvable redirectRule)
Sets the value of
CfnBucket.RoutingRuleProperty.getRedirectRule() |
CfnBucket.RoutingRuleProperty.Builder |
routingRuleCondition(CfnBucket.RoutingRuleConditionProperty routingRuleCondition)
Sets the value of
CfnBucket.RoutingRuleProperty.getRoutingRuleCondition() |
CfnBucket.RoutingRuleProperty.Builder |
routingRuleCondition(IResolvable routingRuleCondition)
Sets the value of
CfnBucket.RoutingRuleProperty.getRoutingRuleCondition() |
@Stability(value=Stable) public CfnBucket.RoutingRuleProperty.Builder redirectRule(CfnBucket.RedirectRuleProperty redirectRule)
CfnBucket.RoutingRuleProperty.getRedirectRule()redirectRule - Container for redirect information. This parameter is required.
You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.this@Stability(value=Stable) public CfnBucket.RoutingRuleProperty.Builder redirectRule(IResolvable redirectRule)
CfnBucket.RoutingRuleProperty.getRedirectRule()redirectRule - Container for redirect information. This parameter is required.
You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.this@Stability(value=Stable) public CfnBucket.RoutingRuleProperty.Builder routingRuleCondition(CfnBucket.RoutingRuleConditionProperty routingRuleCondition)
CfnBucket.RoutingRuleProperty.getRoutingRuleCondition()routingRuleCondition - A container for describing a condition that must be met for the specified redirect to apply.
For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.this@Stability(value=Stable) public CfnBucket.RoutingRuleProperty.Builder routingRuleCondition(IResolvable routingRuleCondition)
CfnBucket.RoutingRuleProperty.getRoutingRuleCondition()routingRuleCondition - A container for describing a condition that must be met for the specified redirect to apply.
For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.this@Stability(value=Stable) public CfnBucket.RoutingRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnBucket.RoutingRuleProperty>CfnBucket.RoutingRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.