import { RedirectRuleProps } from './RedirectRuleProps';
import { RoutingRuleConditionProps } from './RoutingRuleConditionProps';
/**
  Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects">Configuring advanced conditional redirects</a> in the <em>Amazon S3 User Guide</em>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html">the AWS Docs</a>
*/
export interface RoutingRuleProps {
    /** <code>RedirectRule</code>  <a name="cfn-s3-websiteconfiguration-routingrules-redirectrule"></a>
  Container for redirect information. 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.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    redirectRule: RedirectRuleProps;
    /** <code>RoutingRuleCondition</code>  <a name="cfn-s3-websiteconfiguration-routingrules-routingrulecondition"></a>
  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 <code>/docs</code> folder, redirect to the <code>/documents</code> folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    routingRuleCondition?: RoutingRuleConditionProps;
}
