import { Value } from '../../../cloudformation/Value';
import { ScheduleProps } from './ScheduleProps';
import { EventSourceProps } from './EventSourceProps';
import { ParametersProps } from './ParametersProps';
import { ActionProps } from './ActionProps';
import { Tag } from '../../Tag';
/**
  <strong>[All policy types]</strong> Specifies the configuration of a lifecycle policy.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html">the AWS Docs</a>
*/
export interface PolicyDetailsProps {
    /** <code>ResourceTypes</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-resourcetypes"></a>
  <strong>[Snapshot policies only]</strong> The target resource type for snapshot and AMI lifecycle policies. Use <code>VOLUME </code>to create snapshots of individual volumes or use <code>INSTANCE</code> to create multi-volume snapshots from the volumes for an instance.<br />
  
  Required: No<br />
  
  Maximum: <code>1</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> */
    resourceTypes?: Value<Value<string>[]>;
    /** <code>Schedules</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-schedules"></a>
  <strong>[Snapshot and AMI policies only]</strong> The schedules of policy-defined actions for snapshot and AMI lifecycle policies. A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.<br />
  
  Required: No<br />
  
  Maximum: <code>4</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> */
    schedules?: ScheduleProps[];
    /** <code>PolicyType</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-policytype"></a>
  <strong>[All policy types]</strong> The valid target resource types and actions a policy can manage. Specify <code>EBS_SNAPSHOT_MANAGEMENT</code> to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify <code>IMAGE_MANAGEMENT</code> to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify <code>EVENT_BASED_POLICY </code> to create an event-based policy that performs specific actions when a defined event occurs in your AWS account.<br />
  The default is <code>EBS_SNAPSHOT_MANAGEMENT</code>.<br />
  
  Required: No<br />
  
  Allowed values: <code>EBS_SNAPSHOT_MANAGEMENT | EVENT_BASED_POLICY | IMAGE_MANAGEMENT</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> */
    policyType?: Value<'EBS_SNAPSHOT_MANAGEMENT' | 'EVENT_BASED_POLICY' | 'IMAGE_MANAGEMENT'>;
    /** <code>EventSource</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-eventsource"></a>
  <strong>[Event-based policies only]</strong> The event that activates the event-based policy.<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> */
    eventSource?: EventSourceProps;
    /** <code>Parameters</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-parameters"></a>
  <strong>[Snapshot and AMI policies only]</strong> A set of optional parameters for snapshot and AMI lifecycle policies.<br />
  If you are modifying a policy that was created or previously modified using the Amazon Data Lifecycle Manager console, then you must include this parameter and specify either the default values or the new values that you require. You can’t omit this parameter or set its values to null.
  
  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> */
    parameters?: ParametersProps;
    /** <code>Actions</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-actions"></a>
  <strong>[Event-based policies only]</strong> The actions to be performed when the event-based policy is activated. You can specify only one action per policy.<br />
  
  Required: No<br />
  
  Maximum: <code>1</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> */
    actions?: ActionProps[];
    /** <code>TargetTags</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-targettags"></a>
  <strong>[Snapshot and AMI policies only]</strong> The single tag that identifies targeted resources for this policy.<br />
  
  Required: No<br />
  
  Maximum: <code>50</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> */
    targetTags?: Tag[];
    /** <code>ResourceLocations</code>  <a name="cfn-dlm-lifecyclepolicy-policydetails-resourcelocations"></a>
  <strong>[Snapshot and AMI policies only]</strong> The location of the resources to backup. If the source resources are located in an AWS Region, specify <code>CLOUD</code>. If the source resources are located on an Outpost in your account, specify <code>OUTPOST</code>.<br />
  If you specify <code>OUTPOST</code>, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.<br />
  
  Required: No<br />
  
  Maximum: <code>1</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> */
    resourceLocations?: Value<Value<string>[]>;
}
