import { Value } from '../../../cloudformation/Value';
/**
  The policy that specifies update and delete behaviors for the crawler. The policy tells the crawler what to do in the event that it detects a change in a table that already exists in the customer’s database at the time of the crawl. The <code>SchemaChangePolicy</code> does not affect whether or how new tables and partitions are added. New tables and partitions are always created regardless of the <code>SchemaChangePolicy</code> on a crawler.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schemachangepolicy.html">the AWS Docs</a>
*/
export interface SchemaChangePolicyProps {
    /** <code>UpdateBehavior</code>  <a name="cfn-glue-crawler-schemachangepolicy-updatebehavior"></a>
  The update behavior when the crawler finds a changed schema.<br />
  A value of <code>LOG</code> specifies that if a table or a partition already exists, and a change is detected, do not update it, only log that a change was detected. Add new tables and new partitions (including on existing tables).<br />
  A value of <code>UPDATE_IN_DATABASE</code> specifies that if a table or partition already exists, and a change is detected, update it. Add new tables and partitions.<br />
  
  Required: No<br />
  
  Allowed values: <code>LOG | UPDATE_IN_DATABASE</code><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> */
    updateBehavior?: Value<'LOG' | 'UPDATE_IN_DATABASE'>;
    /** <code>DeleteBehavior</code>  <a name="cfn-glue-crawler-schemachangepolicy-deletebehavior"></a>
  The deletion behavior when the crawler finds a deleted object.<br />
  A value of <code>LOG</code> specifies that if a table or partition is found to no longer exist, do not delete it, only log that it was found to no longer exist.<br />
  A value of <code>DELETE_FROM_DATABASE</code> specifies that if a table or partition is found to have been removed, delete it from the database.<br />
  A value of <code>DEPRECATE_IN_DATABASE</code> specifies that if a table has been found to no longer exist, to add a property to the table that says “DEPRECATED” and includes a timestamp with the time of deprecation.<br />
  
  Required: No<br />
  
  Allowed values: <code>DELETE_FROM_DATABASE | DEPRECATE_IN_DATABASE | LOG</code><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> */
    deleteBehavior?: Value<'DELETE_FROM_DATABASE' | 'DEPRECATE_IN_DATABASE' | 'LOG'>;
}
