import { Value } from '../../cloudformation/Value';
import { EventSelectorProps } from './trail/EventSelectorProps';
import { AdvancedEventSelectorProps } from './trail/AdvancedEventSelectorProps';
import { InsightSelectorProps } from './trail/InsightSelectorProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type TrailAttributes = {
    SnsTopicArn: Attribute<string>;
    Arn: Attribute<string>;
};
export type Trail = AwsResource<'AWS::CloudTrail::Trail', TrailProperties, TrailAttributes>;
/**
  Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html">the AWS Docs</a>
*/
export declare function trail(trailProps: TrailProperties): Trail;
/**
  Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html">the AWS Docs</a>
*/
export interface TrailProperties {
    /** <code>IncludeGlobalServiceEvents</code>  <a name="cfn-cloudtrail-trail-includeglobalserviceevents"></a>
  Specifies whether the trail is publishing events from global services such as IAM to the log files.<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> */
    includeGlobalServiceEvents?: Value<boolean>;
    /** <code>EventSelectors</code>  <a name="cfn-cloudtrail-trail-eventselectors"></a>
  Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn’t match any event selector, the trail doesn’t log the event.<br />
  You can configure up to five event selectors for a trail.<br />
  For more information about how to configure event selectors, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#aws-resource-cloudtrail-trail--examples">Examples</a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-additional-cli-commands.html#configuring-event-selector-examples">Configuring event selectors</a> in the
  AWS CloudTrail User Guide: 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> */
    eventSelectors?: EventSelectorProps[];
    /** <p> */
    kMSKeyId?: Value<string>;
    /** <code>CloudWatchLogsRoleArn</code>  <a name="cfn-cloudtrail-trail-cloudwatchlogsrolearn"></a>
  Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group. You must use a role that exists in your account.<br />
  
  Required: Conditional<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> */
    cloudWatchLogsRoleArn?: Value<string>;
    /** <code>S3KeyPrefix</code>  <a name="cfn-cloudtrail-trail-s3keyprefix"></a>
  Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.<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> */
    s3KeyPrefix?: Value<string>;
    /** <code>AdvancedEventSelectors</code>  <a name="cfn-cloudtrail-trail-advancedeventselectors"></a>
  Specifies the settings for advanced event selectors. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code> to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about advanced event selectors, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging data events</a> in the * AWS CloudTrail User Guide*.<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> */
    advancedEventSelectors?: AdvancedEventSelectorProps[];
    /** <p> */
    trailName?: Value<string>;
    /** <code>IsOrganizationTrail</code>  <a name="cfn-cloudtrail-trail-isorganizationtrail"></a>
  Specifies whether the trail is applied to all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the management account or delegated administrator account for an organization in AWS Organizations. If the trail is not an organization trail and this is set to <code>true</code>, the trail will be created in all AWS accounts that belong to the organization. If the trail is an organization trail and this is set to <code>false</code>, the trail will remain in the current AWS account but be deleted from all member accounts in the organization.<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> */
    isOrganizationTrail?: Value<boolean>;
    /** <code>InsightSelectors</code>  <a name="cfn-cloudtrail-trail-insightselectors"></a>
  A JSON string that contains the insight types you want to log on a trail. <code>ApiCallRateInsight</code> and <code>ApiErrorRateInsight</code> are valid Insight types.<br />
  The <code>ApiCallRateInsight</code> Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.<br />
  The <code>ApiErrorRateInsight</code> Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.<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> */
    insightSelectors?: InsightSelectorProps[];
    /** <code>CloudWatchLogsLogGroupArn</code>  <a name="cfn-cloudtrail-trail-cloudwatchlogsloggrouparn"></a>
  Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account.<br />
  Not required unless you specify <code>CloudWatchLogsRoleArn</code>.<br />
  
  Required: Conditional<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> */
    cloudWatchLogsLogGroupArn?: Value<string>;
    /** <code>SnsTopicName</code>  <a name="cfn-cloudtrail-trail-snstopicname"></a>
  Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.<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> */
    snsTopicName?: Value<string>;
    /** <code>IsMultiRegionTrail</code>  <a name="cfn-cloudtrail-trail-ismultiregiontrail"></a>
  Specifies whether the trail applies only to the current Region or to all Regions. The default is false. If the trail exists only in the current Region and this value is set to true, shadow trails (replications of the trail) will be created in the other Regions. If the trail exists in all Regions and this value is set to false, the trail will remain in the Region where it was created, and its shadow trails in other Regions will be deleted. As a best practice, consider using trails that log events in all Regions.<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> */
    isMultiRegionTrail?: Value<boolean>;
    /** <code>S3BucketName</code>  <a name="cfn-cloudtrail-trail-s3bucketname"></a>
  Specifies the name of the Amazon S3 bucket designated for publishing log files. See <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html">Amazon S3 Bucket Naming Requirements</a>.<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> */
    s3BucketName: Value<string>;
    /** <code>EnableLogFileValidation</code>  <a name="cfn-cloudtrail-trail-enablelogfilevalidation"></a>
  Specifies whether log file validation is enabled. The default is false.<br />
  When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.
  
  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> */
    enableLogFileValidation?: Value<boolean>;
    /** <code>Tags</code>  <a name="cfn-cloudtrail-trail-tags"></a>
  A custom set of tags (key-value pairs) for this trail.<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> */
    tags?: Tag[];
    /** <code>IsLogging</code>  <a name="cfn-cloudtrail-trail-islogging"></a>
  Whether the CloudTrail trail is currently logging AWS API calls.<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> */
    isLogging: Value<boolean>;
}
