import { MetadataBearer as $MetadataBearer , SmithyException as __SmithyException } from "@aws-sdk/types" ; /**
 * <p>A custom key-value pair associated with a resource such as a CloudTrail trail.</p>
 */ export interface Tag { /**
     * <p>The key in a key-value pair. The key must be must be no longer than 128 Unicode characters.
     *          The key must be unique for the resource to which it applies.</p>
     */ Key : string | undefined ; /**
     * <p>The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.</p>
     */ Value ? : string ; } export namespace Tag { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Specifies the tags to add to a trail.</p>
 */ export interface AddTagsRequest { /**
     * <p>Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ ResourceId : string | undefined ; /**
     * <p>Contains a list of tags, up to a limit of 50</p>
     */ TagsList : Tag [ ] | undefined ; } export namespace AddTagsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data if successful. Otherwise, returns an error.</p>
 */ export interface AddTagsResponse { } export namespace AddTagsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>This exception is thrown when an operation is called with a trail ARN that is not valid. The following is the format of a trail ARN.</p>
 *          <p>
 *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
 *          </p>
 */ export interface CloudTrailARNInvalidException extends __SmithyException , $MetadataBearer { name : "CloudTrailARNInvalidException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the specified resource is not ready for an operation.
 *          This can occur when you try to run an operation on a trail before CloudTrail has time to fully load the trail.
 *          If this exception occurs, wait a few minutes, and then try the operation again.</p>
 */ export interface ConflictException extends __SmithyException , $MetadataBearer { name : "ConflictException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The specified event data store was not found.</p>
 */ export interface EventDataStoreNotFoundException extends __SmithyException , $MetadataBearer { name : "EventDataStoreNotFoundException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The event data store against which you ran your query is inactive.</p>
 */ export interface InactiveEventDataStoreException extends __SmithyException , $MetadataBearer { name : "InactiveEventDataStoreException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the specified tag key or values are not valid.
 *          It can also occur if there are duplicate tags or too many tags on the resource.</p>
 */ export interface InvalidTagParameterException extends __SmithyException , $MetadataBearer { name : "InvalidTagParameterException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:</p>
 *          <ul>
 *             <li>
 *                <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>
 *             </li>
 *             <li>
 *                <p>Start with a letter or number, and end with a letter or number</p>
 *             </li>
 *             <li>
 *                <p>Be between 3 and 128 characters</p>
 *             </li>
 *             <li>
 *                <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>
 *             and <code>my--namespace</code> are not valid.</p>
 *             </li>
 *             <li>
 *                <p>Not be in IP address format (for example, 192.168.5.4)</p>
 *             </li>
 *          </ul>
 */ export interface InvalidTrailNameException extends __SmithyException , $MetadataBearer { name : "InvalidTrailNameException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail is not the management account for an
 *          organization in Organizations. For more information, see
 *          <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
 */ export interface NotOrganizationMasterAccountException extends __SmithyException , $MetadataBearer { name : "NotOrganizationMasterAccountException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the requested operation is not permitted.</p>
 */ export interface OperationNotPermittedException extends __SmithyException , $MetadataBearer { name : "OperationNotPermittedException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the specified resource is not found.</p>
 */ export interface ResourceNotFoundException extends __SmithyException , $MetadataBearer { name : "ResourceNotFoundException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>
 */ export interface ResourceTypeNotSupportedException extends __SmithyException , $MetadataBearer { name : "ResourceTypeNotSupportedException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.</p>
 */ export interface TagsLimitExceededException extends __SmithyException , $MetadataBearer { name : "TagsLimitExceededException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the requested operation is not supported.</p>
 */ export interface UnsupportedOperationException extends __SmithyException , $MetadataBearer { name : "UnsupportedOperationException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>A single selector statement in an advanced event selector.</p>
 */ export interface AdvancedFieldSelector { /**
     * <p>
     *          A field in an event record on which to filter events to be logged. Supported fields include <code>readOnly</code>, <code>eventCategory</code>,
     *          <code>eventSource</code> (for management events), <code>eventName</code>, <code>resources.type</code>, and <code>resources.ARN</code>.
     *       </p>
     *          <ul>
     *             <li>
     *                <p>
     *                   <b>
     *                      <code>readOnly</code>
     *                   </b> - Optional. Can be set to <code>Equals</code> a value of <code>true</code>
     *             or <code>false</code>. A value of <code>false</code> logs both <code>read</code> and
     *             <code>write</code> events.</p>
     *             </li>
     *             <li>
     *                <p>
     *                   <b>
     *                      <code>eventSource</code>
     *                   </b> - For filtering management events only.
     *             This can be set only to <code>NotEquals</code>
     *                   <code>kms.amazonaws.com</code>.</p>
     *             </li>
     *             <li>
     *                <p>
     *                   <b>
     *                      <code>eventName</code>
     *                   </b> - Can use any operator. You can use it to ﬁlter in
     *             or ﬁlter out any data event logged to CloudTrail, such as <code>PutBucket</code> or <code>GetSnapshotBlock</code>. You can have multiple values
     *             for this ﬁeld, separated by commas.</p>
     *             </li>
     *             <li>
     *                <p>
     *                   <b>
     *                      <code>eventCategory</code>
     *                   </b> - This is required. It must be set to <code>Equals</code>, and
     *             the value must be <code>Management</code> or <code>Data</code>.</p>
     *             </li>
     *             <li>
     *                <p>
     *                   <b>
     *                      <code>resources.type</code>
     *                   </b> - This ﬁeld is required.
     *                   <code>resources.type</code> can only use the <code>Equals</code> operator, and the
     *             value can be one of the following:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>AWS::S3::Object</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::Lambda::Function</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::DynamoDB::Table</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::S3Outposts::Object</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::ManagedBlockchain::Node</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::S3ObjectLambda::AccessPoint</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::EC2::Snapshot</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::S3::AccessPoint</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>AWS::DynamoDB::Stream</code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>
     *                You can have only one <code>resources.type</code> ﬁeld per selector. To log data
     *                events on more than one resource type, add another selector.</p>
     *             </li>
     *             <li>
     *                <p>
     *                   <b>
     *                      <code>resources.ARN</code>
     *                   </b> - You can use any operator with
     *                <code>resources.ARN</code>, but if you use <code>Equals</code> or <code>NotEquals</code>, the
     *                value must exactly match the ARN of a valid resource of the type you've speciﬁed in
     *                the template as the value of resources.type. For example, if resources.type equals
     *                   <code>AWS::S3::Object</code>, the ARN must be in one of the following formats. To
     *                log all data events for all objects in a specific S3 bucket, use the
     *                   <code>StartsWith</code> operator, and include only the bucket ARN as the matching value.</p>
     *                <p>The trailing slash is intentional; do not exclude it. Replace the text between
     *                less than and greater than symbols (<>) with resource-specific information. </p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:s3:::<bucket_name>/</code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:s3:::<bucket_name>/<object_path>/</code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When <code>resources.type</code> equals <code>AWS::S3::AccessPoint</code>, and the
     *                operator is set to <code>Equals</code> or <code>NotEquals</code>, the ARN must be in
     *                one of the following formats. To log events on all objects in an S3 access point, we
     *                recommend that you use only the access point ARN, don’t include the object path, and
     *                use the <code>StartsWith</code> or <code>NotStartsWith</code> operators.</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name></code>
     *                      </p>
     *                   </li>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When resources.type equals <code>AWS::Lambda::Function</code>, and the operator is set
     *             to <code>Equals</code> or <code>NotEquals</code>, the ARN must be in the following format:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:lambda:<region>:<account_ID>:function:<function_name></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When resources.type equals <code>AWS::DynamoDB::Table</code>, and the operator is
     *                set to <code>Equals</code> or <code>NotEquals</code>, the ARN must be in the
     *                following format:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When <code>resources.type</code> equals <code>AWS::S3Outposts::Object</code>, and the operator
     *                is set to <code>Equals</code> or <code>NotEquals</code>, the ARN must be in the following format:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When <code>resources.type</code> equals <code>AWS::ManagedBlockchain::Node</code>,
     *                and the operator is set to <code>Equals</code> or <code>NotEquals</code>, the ARN
     *                must be in the following format:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When <code>resources.type</code> equals
     *                   <code>AWS::S3ObjectLambda::AccessPoint</code>, and the operator is set to
     *                   <code>Equals</code> or <code>NotEquals</code>, the ARN must be in the following
     *                format:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When <code>resources.type</code> equals <code>AWS::EC2::Snapshot</code>, and the
     *                operator is set to <code>Equals</code> or <code>NotEquals</code>, the ARN must be in
     *                the following format:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:ec2:<region>::snapshot/<snapshot_ID></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *                <p>When <code>resources.type</code> equals <code>AWS::DynamoDB::Stream</code>, and the operator is set to
     *                <code>Equals</code> or <code>NotEquals</code>, the ARN must be in the following format:</p>
     *                <ul>
     *                   <li>
     *                      <p>
     *                         <code>arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time></code>
     *                      </p>
     *                   </li>
     *                </ul>
     *             </li>
     *          </ul>
     */ Field : string | undefined ; /**
     * <p> An operator that includes events that match the exact value of the event record field
     *          specified as the value of <code>Field</code>. This is the only valid operator that you can
     *          use with the <code>readOnly</code>, <code>eventCategory</code>, and
     *             <code>resources.type</code> fields.</p>
     */ Equals ? : string [ ] ; /**
     * <p>An operator that includes events that match the first few characters of the event record
     *          field specified as the value of <code>Field</code>.</p>
     */ StartsWith ? : string [ ] ; /**
     * <p>An operator that includes events that match the last few characters of the event record
     *          field specified as the value of <code>Field</code>.</p>
     */ EndsWith ? : string [ ] ; /**
     * <p>
     *          An operator that excludes events that match the exact value of the event record field specified as the value of <code>Field</code>.
     *       </p>
     */ NotEquals ? : string [ ] ; /**
     * <p>
     *          An operator that excludes events that match the first few characters of the event record field specified as the value of <code>Field</code>.
     *       </p>
     */ NotStartsWith ? : string [ ] ; /**
     * <p>
     *          An operator that excludes events that match the last few characters of the event record field specified as the value of <code>Field</code>.
     *       </p>
     */ NotEndsWith ? : string [ ] ; } export namespace AdvancedFieldSelector { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Advanced event selectors let you create fine-grained selectors for the following CloudTrail
 *          event record ﬁelds. They help you control costs by logging only those events
 *          that are important to you. 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 for trails</a> in the <i>CloudTrail User Guide</i>.</p>
 *          <ul>
 *             <li>
 *                <p>
 *                   <code>readOnly</code>
 *                </p>
 *             </li>
 *             <li>
 *                <p>
 *                   <code>eventSource</code>
 *                </p>
 *             </li>
 *             <li>
 *                <p>
 *                   <code>eventName</code>
 *                </p>
 *             </li>
 *             <li>
 *                <p>
 *                   <code>eventCategory</code>
 *                </p>
 *             </li>
 *             <li>
 *                <p>
 *                   <code>resources.type</code>
 *                </p>
 *             </li>
 *             <li>
 *                <p>
 *                   <code>resources.ARN</code>
 *                </p>
 *             </li>
 *          </ul>
 *          <p>You cannot apply both event selectors and advanced event selectors to a trail.</p>
 */ export interface AdvancedEventSelector { /**
     * <p>An optional, descriptive name for an advanced event selector, such as "Log data events
     *          for only two S3 buckets".</p>
     */ Name ? : string ; /**
     * <p>Contains all selector statements in an advanced event selector.</p>
     */ FieldSelectors : AdvancedFieldSelector [ ] | undefined ; } export namespace AdvancedEventSelector { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface CancelQueryRequest { /**
     * <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running.</p>
     */ EventDataStore : string | undefined ; /**
     * <p>The ID of the query that you want to cancel. The <code>QueryId</code> comes from the response of a <code>StartQuery</code>
     *       operation.</p>
     */ QueryId : string | undefined ; } export namespace CancelQueryRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export enum QueryStatus { CANCELLED = "CANCELLED" , FAILED = "FAILED" , FINISHED = "FINISHED" , QUEUED = "QUEUED" , RUNNING = "RUNNING" } export interface CancelQueryResponse { /**
     * <p>The ID of the canceled query.</p>
     */ QueryId : string | undefined ; /**
     * <p>Shows the status of a query after a <code>CancelQuery</code> request. Typically, the values shown are either
     *          <code>RUNNING</code> or <code>CANCELLED</code>.</p>
     */ QueryStatus : QueryStatus | string | undefined ; } export namespace CancelQueryResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The specified event data store ARN is not valid or does not map to an event data store in your account.</p>
 */ export interface EventDataStoreARNInvalidException extends __SmithyException , $MetadataBearer { name : "EventDataStoreARNInvalidException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The specified query cannot be canceled because it is in the <code>FINISHED</code>, <code>FAILED</code>, or
 *          <code>CANCELLED</code> state.</p>
 */ export interface InactiveQueryException extends __SmithyException , $MetadataBearer { name : "InactiveQueryException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The request includes a parameter that is not valid.</p>
 */ export interface InvalidParameterException extends __SmithyException , $MetadataBearer { name : "InvalidParameterException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The query ID does not exist or does not map to a query.</p>
 */ export interface QueryIdNotFoundException extends __SmithyException , $MetadataBearer { name : "QueryIdNotFoundException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information,
 *          see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html">Enabling Trusted Access with Other Amazon Web Services Services</a>
 *          and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>. </p>
 */ export interface CloudTrailAccessNotEnabledException extends __SmithyException , $MetadataBearer { name : "CloudTrailAccessNotEnabledException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface CreateEventDataStoreRequest { /**
     * <p>The name of the event data store.</p>
     */ Name : string | undefined ; /**
     * <p>The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event
     *          selectors, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">Log events by using advanced event selectors</a> in the CloudTrail
     *          User Guide.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; /**
     * <p>Specifies whether the event data store includes events from all regions, or only from the region in which the event data store
     *          is created.</p>
     */ MultiRegionEnabled ? : boolean ; /**
     * <p>Specifies whether an event data store collects events logged for an organization in Organizations.</p>
     */ OrganizationEnabled ? : boolean ; /**
     * <p>The retention period of the event data store, in days. You can set a retention period of up to 2555 days,
     *       the equivalent of seven years.</p>
     */ RetentionPeriod ? : number ; /**
     * <p>Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you
     *       cannot delete the event data store until termination protection is disabled.</p>
     */ TerminationProtectionEnabled ? : boolean ; /**
     * <p>A list of tags.</p>
     */ TagsList ? : Tag [ ] ; } export namespace CreateEventDataStoreRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export enum EventDataStoreStatus { CREATED = "CREATED" , ENABLED = "ENABLED" , PENDING_DELETION = "PENDING_DELETION" } export interface CreateEventDataStoreResponse { /**
     * <p>The ARN of the event data store.</p>
     */ EventDataStoreArn ? : string ; /**
     * <p>The name of the event data store.</p>
     */ Name ? : string ; /**
     * <p>The status of event data store creation.</p>
     */ Status ? : EventDataStoreStatus | string ; /**
     * <p>The advanced event selectors that were used to select the events for the data store.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; /**
     * <p>Indicates whether the event data store collects events from all regions, or only from the region in which it was created.</p>
     */ MultiRegionEnabled ? : boolean ; /**
     * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
     */ OrganizationEnabled ? : boolean ; /**
     * <p>The retention period of an event data store, in days.</p>
     */ RetentionPeriod ? : number ; /**
     * <p>Indicates whether termination protection is enabled for the event data store.</p>
     */ TerminationProtectionEnabled ? : boolean ; /**
     * <p>A list of tags.</p>
     */ TagsList ? : Tag [ ] ; /**
     * <p>The timestamp that shows when the event data store was created.</p>
     */ CreatedTimestamp ? : Date ; /**
     * <p>The timestamp that shows when an event data store was updated, if applicable.
     *          <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
     */ UpdatedTimestamp ? : Date ; } export namespace CreateEventDataStoreResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>An event data store with that name already exists.</p>
 */ export interface EventDataStoreAlreadyExistsException extends __SmithyException , $MetadataBearer { name : "EventDataStoreAlreadyExistsException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>Your account has used the maximum number of event data stores.</p>
 */ export interface EventDataStoreMaxLimitExceededException extends __SmithyException , $MetadataBearer { name : "EventDataStoreMaxLimitExceededException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for
 *          creating an organization trail in a required service. For more information, see
 *          <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
 */ export interface InsufficientDependencyServiceAccessPermissionException extends __SmithyException , $MetadataBearer { name : "InsufficientDependencyServiceAccessPermissionException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support
 *          creating an organization trail. For more information, see
 *          <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
 */ export interface OrganizationNotInAllFeaturesModeException extends __SmithyException , $MetadataBearer { name : "OrganizationNotInAllFeaturesModeException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization.
 *          To make this request, sign in using the credentials of an account that belongs to an organization.</p>
 */ export interface OrganizationsNotInUseException extends __SmithyException , $MetadataBearer { name : "OrganizationsNotInUseException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when a call results in the <code>InvalidClientTokenId</code> error code.
 *          This can occur when you are creating or updating a trail to send notifications to an Amazon SNS topic that
 *          is in a suspended Amazon Web Services account.</p>
 */ export interface CloudTrailInvalidClientTokenIdException extends __SmithyException , $MetadataBearer { name : "CloudTrailInvalidClientTokenIdException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>Cannot set a CloudWatch Logs delivery for this region.</p>
 */ export interface CloudWatchLogsDeliveryUnavailableException extends __SmithyException , $MetadataBearer { name : "CloudWatchLogsDeliveryUnavailableException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>Specifies the settings for each trail.</p>
 */ export interface CreateTrailRequest { /**
     * <p>Specifies the name of the trail. The name must meet the following requirements:</p>
     *          <ul>
     *             <li>
     *                <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>
     *             </li>
     *             <li>
     *                <p>Start with a letter or number, and end with a letter or number</p>
     *             </li>
     *             <li>
     *                <p>Be between 3 and 128 characters</p>
     *             </li>
     *             <li>
     *                <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>
     *             and <code>my--namespace</code> are not valid.</p>
     *             </li>
     *             <li>
     *                <p>Not be in IP address format (for example, 192.168.5.4)</p>
     *             </li>
     *          </ul>
     */ Name : string | undefined ; /**
     * <p>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>.</p>
     */ S3BucketName : string | undefined ; /**
     * <p>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.</p>
     */ S3KeyPrefix ? : string ; /**
     * <p>Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.</p>
     */ SnsTopicName ? : string ; /**
     * <p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>
     */ IncludeGlobalServiceEvents ? : boolean ; /**
     * <p>Specifies whether the trail is created in the current region or in all regions. The default is false, which creates a trail only in the region where you are signed in. As a best practice, consider
     *       creating trails that log events in all regions.</p>
     */ IsMultiRegionTrail ? : boolean ; /**
     * <p>Specifies whether log file integrity validation is enabled. The default is false.</p>
     *          <note>
     *             <p>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.</p>
     *          </note>
     */ EnableLogFileValidation ? : boolean ; /**
     * <p>Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group
     *          to which CloudTrail logs will be delivered. Not required unless you specify <code>CloudWatchLogsRoleArn</code>.</p>
     */ CloudWatchLogsLogGroupArn ? : string ; /**
     * <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
     */ CloudWatchLogsRoleArn ? : string ; /**
     * <p>Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The
     *          value can be an alias name prefixed by "alias/", a fully specified ARN to an alias, a fully
     *          specified ARN to a key, or a globally unique identifier.</p>
     *          <p>CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys,
     *          see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
     *          <p>Examples:</p>
     *          <ul>
     *             <li>
     *                <p>alias/MyAliasName</p>
     *             </li>
     *             <li>
     *                <p>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</p>
     *             </li>
     *             <li>
     *                <p>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</p>
     *             </li>
     *             <li>
     *                <p>12345678-1234-1234-1234-123456789012</p>
     *             </li>
     *          </ul>
     */ KmsKeyId ? : string ; /**
     * <p>Specifies whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
     *          The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account for an organization in
     *          Organizations.</p>
     */ IsOrganizationTrail ? : boolean ; /**
     * <p>A list of tags.</p>
     */ TagsList ? : Tag [ ] ; } export namespace CreateTrailRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface CreateTrailResponse { /**
     * <p>Specifies the name of the trail.</p>
     */ Name ? : string ; /**
     * <p>Specifies the name of the Amazon S3 bucket designated for publishing log files.</p>
     */ S3BucketName ? : string ; /**
     * <p>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>.</p>
     */ S3KeyPrefix ? : string ; deprecated SnsTopicName ? : string ; /**
     * <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:</p>
     *          <p>
     *             <code>arn:aws:sns:us-east-2:123456789012:MyTopic</code>
     *          </p>
     */ SnsTopicARN ? : string ; /**
     * <p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>
     */ IncludeGlobalServiceEvents ? : boolean ; /**
     * <p>Specifies whether the trail exists in one region or in all regions.</p>
     */ IsMultiRegionTrail ? : boolean ; /**
     * <p>Specifies the ARN of the trail that was created. The format of a trail ARN
     *          is:</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ TrailARN ? : string ; /**
     * <p>Specifies whether log file integrity validation is enabled.</p>
     */ LogFileValidationEnabled ? : boolean ; /**
     * <p>Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.</p>
     */ CloudWatchLogsLogGroupArn ? : string ; /**
     * <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
     */ CloudWatchLogsRoleArn ? : string ; /**
     * <p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
     *          The value is a fully specified ARN to a KMS key in the following format.</p>
     *          <p>
     *             <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>
     *          </p>
     */ KmsKeyId ? : string ; /**
     * <p>Specifies whether the trail is an organization trail.</p>
     */ IsOrganizationTrail ? : boolean ; } export namespace CreateTrailResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.</p>
 */ export interface InsufficientEncryptionPolicyException extends __SmithyException , $MetadataBearer { name : "InsufficientEncryptionPolicyException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the policy on the S3 bucket is not sufficient.</p>
 */ export interface InsufficientS3BucketPolicyException extends __SmithyException , $MetadataBearer { name : "InsufficientS3BucketPolicyException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the policy on the Amazon SNS topic is not sufficient.</p>
 */ export interface InsufficientSnsTopicPolicyException extends __SmithyException , $MetadataBearer { name : "InsufficientSnsTopicPolicyException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the provided CloudWatch Logs log group is not valid.</p>
 */ export interface InvalidCloudWatchLogsLogGroupArnException extends __SmithyException , $MetadataBearer { name : "InvalidCloudWatchLogsLogGroupArnException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the provided role is not valid.</p>
 */ export interface InvalidCloudWatchLogsRoleArnException extends __SmithyException , $MetadataBearer { name : "InvalidCloudWatchLogsRoleArnException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the KMS key ARN is not valid.</p>
 */ export interface InvalidKmsKeyIdException extends __SmithyException , $MetadataBearer { name : "InvalidKmsKeyIdException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the combination of parameters provided is not valid.</p>
 */ export interface InvalidParameterCombinationException extends __SmithyException , $MetadataBearer { name : "InvalidParameterCombinationException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the provided S3 bucket name is not valid.</p>
 */ export interface InvalidS3BucketNameException extends __SmithyException , $MetadataBearer { name : "InvalidS3BucketNameException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the provided S3 prefix is not valid.</p>
 */ export interface InvalidS3PrefixException extends __SmithyException , $MetadataBearer { name : "InvalidS3PrefixException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the provided SNS topic name is not valid.</p>
 */ export interface InvalidSnsTopicNameException extends __SmithyException , $MetadataBearer { name : "InvalidSnsTopicNameException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.</p>
 */ export interface KmsException extends __SmithyException , $MetadataBearer { name : "KmsException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } deprecated export interface KmsKeyDisabledException extends __SmithyException , $MetadataBearer { name : "KmsKeyDisabledException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the KMS key does not exist, when the S3 bucket and the
 *          KMS key are not in the same region, or when the KMS key associated with the Amazon SNS
 *          topic either does not exist or is not in the same region.</p>
 */ export interface KmsKeyNotFoundException extends __SmithyException , $MetadataBearer { name : "KmsKeyNotFoundException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the maximum number of trails is reached.</p>
 */ export interface MaximumNumberOfTrailsExceededException extends __SmithyException , $MetadataBearer { name : "MaximumNumberOfTrailsExceededException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the specified S3 bucket does not exist.</p>
 */ export interface S3BucketDoesNotExistException extends __SmithyException , $MetadataBearer { name : "S3BucketDoesNotExistException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the specified trail already exists.</p>
 */ export interface TrailAlreadyExistsException extends __SmithyException , $MetadataBearer { name : "TrailAlreadyExistsException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is no longer in use.</p>
 */ export interface TrailNotProvidedException extends __SmithyException , $MetadataBearer { name : "TrailNotProvidedException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface DeleteEventDataStoreRequest { /**
     * <p>The ARN (or the ID suffix of the ARN) of the event data store to delete.</p>
     */ EventDataStore : string | undefined ; } export namespace DeleteEventDataStoreRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface DeleteEventDataStoreResponse { } export namespace DeleteEventDataStoreResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The event data store cannot be deleted because termination protection is enabled for it.</p>
 */ export interface EventDataStoreTerminationProtectedException extends __SmithyException , $MetadataBearer { name : "EventDataStoreTerminationProtectedException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The request that specifies the name of a trail to delete.</p>
 */ export interface DeleteTrailRequest { /**
     * <p>Specifies the name or the CloudTrail ARN of the trail to be deleted. The following is the format of a
     *          trail ARN.
     *          <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ Name : string | undefined ; } export namespace DeleteTrailRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface DeleteTrailResponse { } export namespace DeleteTrailResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>This exception is thrown when an operation is called on a trail from a region other than the region in which the trail was created.</p>
 */ export interface InvalidHomeRegionException extends __SmithyException , $MetadataBearer { name : "InvalidHomeRegionException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>This exception is thrown when the trail with the given name is not found.</p>
 */ export interface TrailNotFoundException extends __SmithyException , $MetadataBearer { name : "TrailNotFoundException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface DescribeQueryRequest { /**
     * <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.</p>
     */ EventDataStore : string | undefined ; /**
     * <p>The query ID.</p>
     */ QueryId : string | undefined ; } export namespace DescribeQueryRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Gets metadata about a query, including the number of events that were matched, the total number of events scanned, the query run time
 *          in milliseconds, and the query's creation time.</p>
 */ export interface QueryStatisticsForDescribeQuery { /**
     * <p>The number of events that matched a query.</p>
     */ EventsMatched ? : number ; /**
     * <p>The number of events that the query scanned in the event data store.</p>
     */ EventsScanned ? : number ; /**
     * <p>The query's run time, in milliseconds.</p>
     */ ExecutionTimeInMillis ? : number ; /**
     * <p>The creation time of the query.</p>
     */ CreationTime ? : Date ; } export namespace QueryStatisticsForDescribeQuery { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface DescribeQueryResponse { /**
     * <p>The ID of the query.</p>
     */ QueryId ? : string ; /**
     * <p>The SQL code of a query.</p>
     */ QueryString ? : string ; /**
     * <p>The status of a query. Values for <code>QueryStatus</code> include <code>QUEUED</code>, <code>RUNNING</code>,
     *          <code>FINISHED</code>, <code>FAILED</code>, or <code>CANCELLED</code>
     *          </p>
     */ QueryStatus ? : QueryStatus | string ; /**
     * <p>Metadata about a query, including the number of events that were matched, the total number of events scanned, the query run time
     *          in milliseconds, and the query's creation time.</p>
     */ QueryStatistics ? : QueryStatisticsForDescribeQuery ; /**
     * <p>The error message returned if a query failed.</p>
     */ ErrorMessage ? : string ; } export namespace DescribeQueryResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns information about the trail.</p>
 */ export interface DescribeTrailsRequest { /**
     * <p>Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     *
     *          <p>If an empty list is specified, information for the trail in the current region is returned.</p>
     *          <ul>
     *             <li>
     *                <p>If an empty list is specified and <code>IncludeShadowTrails</code> is false, then
     *             information for all trails in the current region is returned.</p>
     *             </li>
     *             <li>
     *                <p>If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.</p>
     *             </li>
     *          </ul>
     *          <note>
     *             <p>If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.</p>
     *          </note>
     */ trailNameList ? : string [ ] ; /**
     * <p>Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region,
     *          or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account
     *          and region replication trails will not be returned. The default is true.</p>
     */ includeShadowTrails ? : boolean ; } export namespace DescribeTrailsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The settings for a trail.</p>
 */ export interface Trail { /**
     * <p>Name of the trail set by calling <a>CreateTrail</a>. The maximum length is 128
     *          characters.</p>
     */ Name ? : string ; /**
     * <p>Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html">Amazon S3 Bucket Naming Requirements</a>.</p>
     */ S3BucketName ? : string ; /**
     * <p>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.</p>
     */ S3KeyPrefix ? : string ; deprecated SnsTopicName ? : string ; /**
     * <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications
     *          when log files are delivered. The following is the format of a topic ARN.</p>
     *          <p>
     *             <code>arn:aws:sns:us-east-2:123456789012:MyTopic</code>
     *          </p>
     */ SnsTopicARN ? : string ; /**
     * <p>Set to <b>True</b> to include Amazon Web Services API calls from Amazon Web Services global services such as IAM.
     *          Otherwise, <b>False</b>.</p>
     */ IncludeGlobalServiceEvents ? : boolean ; /**
     * <p>Specifies whether the trail exists only in one region or exists in all regions.</p>
     */ IsMultiRegionTrail ? : boolean ; /**
     * <p>The region in which the trail was created.</p>
     */ HomeRegion ? : string ; /**
     * <p>Specifies the ARN of the trail. The following is the format of a trail ARN.</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ TrailARN ? : string ; /**
     * <p>Specifies whether log file validation is enabled.</p>
     */ LogFileValidationEnabled ? : boolean ; /**
     * <p>Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.</p>
     */ CloudWatchLogsLogGroupArn ? : string ; /**
     * <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
     */ CloudWatchLogsRoleArn ? : string ; /**
     * <p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
     *          The value is a fully specified ARN to a KMS key in the following format.</p>
     *          <p>
     *             <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>
     *          </p>
     */ KmsKeyId ? : string ; /**
     * <p>Specifies if the trail has custom event selectors.</p>
     */ HasCustomEventSelectors ? : boolean ; /**
     * <p>Specifies whether a trail has insight types specified in an <code>InsightSelector</code> list.</p>
     */ HasInsightSelectors ? : boolean ; /**
     * <p>Specifies whether the trail is an organization trail.</p>
     */ IsOrganizationTrail ? : boolean ; } export namespace Trail { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface DescribeTrailsResponse { /**
     * <p>The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration.
     *          For example, <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in results if a trail is configured to send SNS notifications. Similarly,
     *          <code>KMSKeyId</code> only appears in results if a trail's log files are encrypted with KMS customer managed keys.</p>
     */ trailList ? : Trail [ ] ; } export namespace DescribeTrailsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetEventDataStoreRequest { /**
     * <p>The ARN (or ID suffix of the ARN) of the event data store about which you want information.</p>
     */ EventDataStore : string | undefined ; } export namespace GetEventDataStoreRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetEventDataStoreResponse { /**
     * <p>The event data store Amazon Resource Number (ARN).</p>
     */ EventDataStoreArn ? : string ; /**
     * <p>The name of the event data store.</p>
     */ Name ? : string ; /**
     * <p>The status of an event data store. Values can be <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
     */ Status ? : EventDataStoreStatus | string ; /**
     * <p>The advanced event selectors used to select events for the data store.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; /**
     * <p>Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
     */ MultiRegionEnabled ? : boolean ; /**
     * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
     */ OrganizationEnabled ? : boolean ; /**
     * <p>The retention period of the event data store, in days.</p>
     */ RetentionPeriod ? : number ; /**
     * <p>Indicates that termination protection is enabled.</p>
     */ TerminationProtectionEnabled ? : boolean ; /**
     * <p>The timestamp of the event data store's creation.</p>
     */ CreatedTimestamp ? : Date ; /**
     * <p>Shows the time that an event data store was updated, if applicable. <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
     */ UpdatedTimestamp ? : Date ; } export namespace GetEventDataStoreResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetEventSelectorsRequest { /**
     * <p>Specifies the name of the trail or trail ARN. If you specify a trail name, the
     *          string must meet the following requirements:</p>
     *          <ul>
     *             <li>
     *                <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>
     *             </li>
     *             <li>
     *                <p>Start with a letter or number, and end with a letter or number</p>
     *             </li>
     *             <li>
     *                <p>Be between 3 and 128 characters</p>
     *             </li>
     *             <li>
     *                <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>
     *                   and <code>my--namespace</code> are not valid.</p>
     *             </li>
     *             <li>
     *                <p>Not be in IP address format (for example, 192.168.5.4)</p>
     *             </li>
     *          </ul>
     *          <p>If you specify a trail ARN, it must be in the format:</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ TrailName : string | undefined ; } export namespace GetEventSelectorsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The Amazon S3 buckets, Lambda functions, or Amazon DynamoDB tables that you specify
 *          in your event selectors for your trail to log data events. Data events provide information
 *          about the resource operations performed on or within a resource itself. These are also
 *          known as data plane operations. You can specify up to 250 data resources for a
 *          trail.</p>
 *          <note>
 *             <p>The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors,
 *       but the total cannot exceed 250 across all selectors.</p>
 *             <p>If you are using advanced event selectors, the maximum total number of values for
 *             all conditions, across all advanced event selectors for the trail, is 500.</p>
 *          </note>
 *          <p>The following example demonstrates how logging works when you configure logging of all data events
 *          for an S3 bucket named <code>bucket-1</code>. In this example, the CloudTrail user specified an empty prefix,
 *       and the option to log both <code>Read</code> and <code>Write</code> data events.</p>
 *          <ol>
 *             <li>
 *                <p>A user uploads an image file to <code>bucket-1</code>.</p>
 *             </li>
 *             <li>
 *                <p>The <code>PutObject</code> API operation is an Amazon S3 object-level API.
 *             It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket
 *             with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the
 *                event.</p>
 *             </li>
 *             <li>
 *                <p>A user uploads an object to an Amazon S3 bucket named
 *                   <code>arn:aws:s3:::bucket-2</code>.</p>
 *             </li>
 *             <li>
 *                <p>The <code>PutObject</code> API operation occurred for an object in an S3 bucket that the CloudTrail
 *             user didn't specify for the trail. The trail doesn’t log the event.</p>
 *             </li>
 *          </ol>
 *          <p>The following example demonstrates how logging works when you configure logging of Lambda data events for a
 *          Lambda function named <i>MyLambdaFunction</i>, but not for all Lambda functions.</p>
 *          <ol>
 *             <li>
 *                <p>A user runs a script that includes a call to the <i>MyLambdaFunction</i> function and the
 *                <i>MyOtherLambdaFunction</i> function.</p>
 *             </li>
 *             <li>
 *                <p>The <code>Invoke</code> API operation on <i>MyLambdaFunction</i> is an Lambda API.
 *                It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for
 *                <i>MyLambdaFunction</i>, any invocations of that function are logged. The trail processes and logs the event.</p>
 *             </li>
 *             <li>
 *                <p>The <code>Invoke</code> API operation on <i>MyOtherLambdaFunction</i> is an Lambda API.
 *                Because the CloudTrail user did not specify logging data events for all Lambda functions,
 *                the <code>Invoke</code> operation for <i>MyOtherLambdaFunction</i> does not match the function specified for the trail.
 *                The trail doesn’t log the event. </p>
 *             </li>
 *          </ol>
 */ export interface DataResource { /**
     * <p>The resource type in which you want to log data events. You can specify
     *          the following <i>basic</i> event selector resource types:</p>
     *          <ul>
     *             <li>
     *                <p>
     *                   <code>AWS::S3::Object</code>
     *                </p>
     *             </li>
     *             <li>
     *                <p>
     *                   <code>AWS::Lambda::Function</code>
     *                </p>
     *             </li>
     *             <li>
     *                <p>
     *                   <code>AWS::DynamoDB::Table</code>
     *                </p>
     *             </li>
     *          </ul>
     *          <p>The following resource types are also availble through <i>advanced</i> event selectors.
     *          Basic event selector resource types are valid in advanced event selectors, but
     *          advanced event selector resource types are not valid in basic event selectors.
     *          For more information, see <a>AdvancedFieldSelector$Field</a>.</p>
     *          <ul>
     *             <li>
     *                <p>
     *                   <code>AWS::S3Outposts::Object</code>
     *                </p>
     *             </li>
     *             <li>
     *                <p>
     *                   <code>AWS::ManagedBlockchain::Node</code>
     *                </p>
     *             </li>
     *             <li>
     *                <p>
     *                   <code>AWS::S3ObjectLambda::AccessPoint</code>
     *                </p>
     *             </li>
     *             <li>
     *                <p>
     *                   <code>AWS::EC2::Snapshot</code>
     *                </p>
     *             </li>
     *             <li>
     *                <p>
     *                   <code>AWS::S3::AccessPoint</code>
     *                </p>
     *             </li>
     *             <li>
     *                <p>
     *                   <code>AWS::DynamoDB::Stream</code>
     *                </p>
     *             </li>
     *          </ul>
     */ Type ? : string ; /**
     * <p>An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified objects.</p>
     *          <ul>
     *             <li>
     *                <p>To log data events for all objects in all S3 buckets in your Amazon Web Services account, specify the
     *          prefix as <code>arn:aws:s3:::</code>.</p>
     *                <note>
     *                   <p>This also enables logging of data event activity performed by any user or role in your Amazon Web Services account,
     *          even if that activity is performed on a bucket that belongs to another Amazon Web Services account.</p>
     *                </note>
     *             </li>
     *             <li>
     *                <p>To log data events for all objects in an S3 bucket, specify the bucket and an empty
     *          object prefix such as <code>arn:aws:s3:::bucket-1/</code>. The trail logs data events for
     *          all objects in this S3 bucket.</p>
     *             </li>
     *             <li>
     *                <p>To log data events for specific objects, specify the S3 bucket and object prefix such
     *          as <code>arn:aws:s3:::bucket-1/example-images</code>. The trail logs data events for
     *          objects in this S3 bucket that match the prefix.</p>
     *             </li>
     *             <li>
     *                <p>To log data events for all Lambda functions in your Amazon Web Services account, specify the prefix as
     *                   <code>arn:aws:lambda</code>.</p>
     *                <note>
     *                   <p>This also enables logging of <code>Invoke</code> activity performed by any user or role in your Amazon Web Services account,
     *          even if that activity is performed on a function that belongs to another Amazon Web Services account. </p>
     *                </note>
     *             </li>
     *             <li>
     *                <p>To log data events for a specific Lambda function, specify the function ARN.</p>
     *                <note>
     *                   <p>Lambda function ARNs are exact. For example, if you specify a
     *             function ARN <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>, data events will
     *             only be logged for <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>. They will
     *             not be logged for <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld2</i>.</p>
     *                </note>
     *             </li>
     *             <li>
     *                <p>To log data events for all DynamoDB tables in your Amazon Web Services account, specify the prefix
     *                as <code>arn:aws:dynamodb</code>.</p>
     *             </li>
     *          </ul>
     */ Values ? : string [ ] ; } export namespace DataResource { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export enum ReadWriteType { All = "All" , ReadOnly = "ReadOnly" , WriteOnly = "WriteOnly" } /**
 * <p>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.</p>
 *          <p>You can configure up to five event selectors for a trail.</p>
 *          <p>You cannot apply both event selectors and advanced event selectors to a trail.</p>
 */ export interface EventSelector { /**
     * <p>Specify if you want your trail to log read-only events, write-only events, or all. For example,
     *          the EC2 <code>GetConsoleOutput</code> is a read-only API operation and
     *             <code>RunInstances</code> is a write-only API operation.</p>
     *          <p> By default, the value is <code>All</code>.</p>
     */ ReadWriteType ? : ReadWriteType | string ; /**
     * <p>Specify if you want your event selector to include management events for your trail.</p>
     *          <p>
     *          For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events">Management Events</a> in the <i>CloudTrail User Guide</i>.</p>
     *
     *          <p>By default, the value is <code>true</code>.</p>
     *          <p>The first copy of management events is free. You are charged for additional copies of management
     *          events that you are logging on any subsequent trail in the same region. For more information about
     *          CloudTrail pricing, see <a href="http://aws.amazon.com/cloudtrail/pricing/">CloudTrail Pricing</a>.</p>
     */ IncludeManagementEvents ? : boolean ; /**
     * <p>CloudTrail supports data event logging for Amazon S3 objects, Lambda functions,
     *          and Amazon DynamoDB tables
     *          with basic event selectors. You can specify up to 250 resources for an individual event
     *          selector, but the total number of data resources cannot exceed 250 across all event
     *          selectors in a trail. This limit does not apply if you configure resource logging for all
     *          data events.</p>
     *          <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events">Data Events</a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Limits in CloudTrail</a>
     *          in the <i>CloudTrail User Guide</i>.</p>
     */ DataResources ? : DataResource [ ] ; /**
     * <p>An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter),
     *          or it can filter out Key Management Service or Amazon RDS Data API events by
     *          containing <code>kms.amazonaws.com</code> or <code>rdsdata.amazonaws.com</code>. By default, <code>ExcludeManagementEventSources</code> is empty, and KMS and
     *          Amazon RDS Data API events are logged to your trail.</p>
     */ ExcludeManagementEventSources ? : string [ ] ; } export namespace EventSelector { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetEventSelectorsResponse { /**
     * <p>The specified trail ARN that has the event selectors.</p>
     */ TrailARN ? : string ; /**
     * <p>The event selectors that are configured for the trail.</p>
     */ EventSelectors ? : EventSelector [ ] ; /**
     * <p>
     *          The advanced event selectors that are configured for the trail.
     *       </p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; } export namespace GetEventSelectorsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetInsightSelectorsRequest { /**
     * <p>Specifies the name of the trail or trail ARN. If you specify a trail name, the
     *          string must meet the following requirements:</p>
     *          <ul>
     *             <li>
     *                <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>
     *             </li>
     *             <li>
     *                <p>Start with a letter or number, and end with a letter or number</p>
     *             </li>
     *             <li>
     *                <p>Be between 3 and 128 characters</p>
     *             </li>
     *             <li>
     *                <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>
     *                and <code>my--namespace</code> are not valid.</p>
     *             </li>
     *             <li>
     *                <p>Not be in IP address format (for example, 192.168.5.4)</p>
     *             </li>
     *          </ul>
     *          <p>If you specify a trail ARN, it must be in the format:</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ TrailName : string | undefined ; } export namespace GetInsightSelectorsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export enum InsightType { ApiCallRateInsight = "ApiCallRateInsight" , ApiErrorRateInsight = "ApiErrorRateInsight" } /**
 * <p>A JSON string that contains a list of insight types that are logged on a trail.</p>
 */ export interface InsightSelector { /**
     * <p>The type of insights to log on a trail. <code>ApiCallRateInsight</code> and <code>ApiErrorRateInsight</code> are valid insight types.</p>
     */ InsightType ? : InsightType | string ; } export namespace InsightSelector { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetInsightSelectorsResponse { /**
     * <p>The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.</p>
     */ TrailARN ? : string ; /**
     * <p>A JSON string that contains the insight types you want to log on a trail. In this release, <code>ApiErrorRateInsight</code> and
     *          <code>ApiCallRateInsight</code> are supported as insight types.</p>
     */ InsightSelectors ? : InsightSelector [ ] ; } export namespace GetInsightSelectorsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception <code>InsightNotEnabledException</code>.</p>
 */ export interface InsightNotEnabledException extends __SmithyException , $MetadataBearer { name : "InsightNotEnabledException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface GetQueryResultsRequest { /**
     * <p>The ARN (or ID suffix of the ARN) of the event data store against which the query was run.</p>
     */ EventDataStore : string | undefined ; /**
     * <p>The ID of the query for which you want to get results.</p>
     */ QueryId : string | undefined ; /**
     * <p>A token you can use to get the next page of query results.</p>
     */ NextToken ? : string ; /**
     * <p>The maximum number of query results to display on a single page.</p>
     */ MaxQueryResults ? : number ; } export namespace GetQueryResultsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Metadata about a query, such as the number of results.</p>
 */ export interface QueryStatistics { /**
     * <p>The number of results returned.</p>
     */ ResultsCount ? : number ; /**
     * <p>The total number of results returned by a query.</p>
     */ TotalResultsCount ? : number ; } export namespace QueryStatistics { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetQueryResultsResponse { /**
     * <p>The status of the query. Values include <code>QUEUED</code>, <code>RUNNING</code>, <code>FINISHED</code>, <code>FAILED</code>,
     *          or <code>CANCELLED</code>.</p>
     */ QueryStatus ? : QueryStatus | string ; /**
     * <p>Shows the count of query results.</p>
     */ QueryStatistics ? : QueryStatistics ; /**
     * <p>Contains the individual event results of the query.</p>
     */ QueryResultRows ? : { [ key ] : string ; } [ ] [ ] ; /**
     * <p>A token you can use to get the next page of query results.</p>
     */ NextToken ? : string ; /**
     * <p>The error message returned if a query failed.</p>
     */ ErrorMessage ? : string ; } export namespace GetQueryResultsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>This exception is thrown if the limit specified is not valid.</p>
 */ export interface InvalidMaxResultsException extends __SmithyException , $MetadataBearer { name : "InvalidMaxResultsException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid.</p>
 */ export interface InvalidNextTokenException extends __SmithyException , $MetadataBearer { name : "InvalidNextTokenException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface GetTrailRequest { /**
     * <p>The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.</p>
     */ Name : string | undefined ; } export namespace GetTrailRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface GetTrailResponse { /**
     * <p>The settings for a trail.</p>
     */ Trail ? : Trail ; } export namespace GetTrailResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The name of a trail about which you want the current status.</p>
 */ export interface GetTrailStatusRequest { /**
     * <p>Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a
     *          shadow trail (a replication of the trail in another region), you must specify its ARN. The following is the format of a trail ARN.</p>
     *           <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ Name : string | undefined ; } export namespace GetTrailStatusRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface GetTrailStatusResponse { /**
     * <p>Whether the CloudTrail trail is currently logging Amazon Web Services API calls.</p>
     */ IsLogging ? : boolean ; /**
     * <p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files
     *          to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error
     *             Responses</a> in the Amazon S3 API Reference. </p>
     *          <note>
     *             <p>This error occurs only when there is a problem with the destination S3 bucket, and does
     *          not occur for requests that time out. To resolve the issue, create a new bucket, and then call
     *             <code>UpdateTrail</code> to specify the new bucket; or fix the existing objects so that
     *          CloudTrail can again write to the bucket.</p>
     *          </note>
     */ LatestDeliveryError ? : string ; /**
     * <p>Displays any Amazon SNS error that CloudTrail encountered when attempting to send a
     *          notification. For more information about Amazon SNS errors, see the <a href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon SNS Developer Guide</a>.
     *       </p>
     */ LatestNotificationError ? : string ; /**
     * <p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>
     */ LatestDeliveryTime ? : Date ; /**
     * <p>Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.</p>
     */ LatestNotificationTime ? : Date ; /**
     * <p>Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.</p>
     */ StartLoggingTime ? : Date ; /**
     * <p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.</p>
     */ StopLoggingTime ? : Date ; /**
     * <p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>
     */ LatestCloudWatchLogsDeliveryError ? : string ; /**
     * <p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>
     */ LatestCloudWatchLogsDeliveryTime ? : Date ; /**
     * <p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>
     */ LatestDigestDeliveryTime ? : Date ; /**
     * <p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest
     *          file to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error
     *             Responses</a> in the Amazon S3 API Reference. </p>
     *          <note>
     *             <p>This error occurs only when there is a problem with the destination S3 bucket, and does
     *          not occur for requests that time out. To resolve the issue, create a new bucket, and then call
     *             <code>UpdateTrail</code> to specify the new bucket; or fix the existing objects so that
     *             CloudTrail can again write to the bucket.</p>
     *          </note>
     */ LatestDigestDeliveryError ? : string ; /**
     * <p>This field is no longer in use.</p>
     */ LatestDeliveryAttemptTime ? : string ; /**
     * <p>This field is no longer in use.</p>
     */ LatestNotificationAttemptTime ? : string ; /**
     * <p>This field is no longer in use.</p>
     */ LatestNotificationAttemptSucceeded ? : string ; /**
     * <p>This field is no longer in use.</p>
     */ LatestDeliveryAttemptSucceeded ? : string ; /**
     * <p>This field is no longer in use.</p>
     */ TimeLoggingStarted ? : string ; /**
     * <p>This field is no longer in use.</p>
     */ TimeLoggingStopped ? : string ; } export namespace GetTrailStatusResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface ListEventDataStoresRequest { /**
     * <p>A token you can use to get the next page of event data store results.</p>
     */ NextToken ? : string ; /**
     * <p>The maximum number of event data stores to display on a single page.</p>
     */ MaxResults ? : number ; } export namespace ListEventDataStoresRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events
 *          that you have logged on your account from the last 90 to 2555 days
 *          (about three months to up to seven years). To select events for an event data store,
 *          use <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">advanced event selectors</a>.</p>
 */ export interface EventDataStore { /**
     * <p>The ARN of the event data store.</p>
     */ EventDataStoreArn ? : string ; /**
     * <p>The name of the event data store.</p>
     */ Name ? : string ; /**
     * <p>Indicates whether the event data store is protected from termination.</p>
     */ TerminationProtectionEnabled ? : boolean ; /**
     * <p>The status of an event data store. Values are <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
     */ Status ? : EventDataStoreStatus | string ; /**
     * <p>The advanced event selectors that were used to select events for the data store.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; /**
     * <p>Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
     */ MultiRegionEnabled ? : boolean ; /**
     * <p>Indicates that an event data store is collecting logged events for an organization.</p>
     */ OrganizationEnabled ? : boolean ; /**
     * <p>The retention period, in days.</p>
     */ RetentionPeriod ? : number ; /**
     * <p>The timestamp of the event data store's creation.</p>
     */ CreatedTimestamp ? : Date ; /**
     * <p>The timestamp showing when an event data store was updated, if applicable. <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
     */ UpdatedTimestamp ? : Date ; } export namespace EventDataStore { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface ListEventDataStoresResponse { /**
     * <p>Contains information about event data stores in the account, in the current region.</p>
     */ EventDataStores ? : EventDataStore [ ] ; /**
     * <p>A token you can use to get the next page of results.</p>
     */ NextToken ? : string ; } export namespace ListEventDataStoresResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Occurs if the timestamp values are not valid. Either the start time occurs after the end time, or the time range is outside the range of possible values.</p>
 */ export interface InvalidTimeRangeException extends __SmithyException , $MetadataBearer { name : "InvalidTimeRangeException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>Reserved for future use.</p>
 */ export interface InvalidTokenException extends __SmithyException , $MetadataBearer { name : "InvalidTokenException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>Requests the public keys for a specified time range.</p>
 */ export interface ListPublicKeysRequest { /**
     * <p>Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files.
     *          If not specified, the current time is used, and the current public key is returned.</p>
     */ StartTime ? : Date ; /**
     * <p>Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not
     *          specified, the current time is used.</p>
     */ EndTime ? : Date ; /**
     * <p>Reserved for future use.</p>
     */ NextToken ? : string ; } export namespace ListPublicKeysRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Contains information about a returned public key.</p>
 */ export interface PublicKey { /**
     * <p>The DER encoded public key value in PKCS#1 format.</p>
     */ Value ? : Uint8Array ; /**
     * <p>The starting time of validity of the public key.</p>
     */ ValidityStartTime ? : Date ; /**
     * <p>The ending time of validity of the public key.</p>
     */ ValidityEndTime ? : Date ; /**
     * <p>The fingerprint of the public key.</p>
     */ Fingerprint ? : string ; } export namespace PublicKey { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface ListPublicKeysResponse { /**
     * <p>Contains an array of PublicKey objects.</p>
     *          <note>
     *             <p>The returned public keys may have validity time ranges that overlap.</p>
     *          </note>
     */ PublicKeyList ? : PublicKey [ ] ; /**
     * <p>Reserved for future use.</p>
     */ NextToken ? : string ; } export namespace ListPublicKeysResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>A date range for the query was specified that is not valid. For more information
 *          about writing a query, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create
 *             or edit a query</a> in the <i>CloudTrail User Guide</i>.</p>
 */ export interface InvalidDateRangeException extends __SmithyException , $MetadataBearer { name : "InvalidDateRangeException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>The query status is not valid for the operation.</p>
 */ export interface InvalidQueryStatusException extends __SmithyException , $MetadataBearer { name : "InvalidQueryStatusException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface ListQueriesRequest { /**
     * <p>The ARN (or the ID suffix of the ARN) of an event data store on which queries were run.</p>
     */ EventDataStore : string | undefined ; /**
     * <p>A token you can use to get the next page of results.</p>
     */ NextToken ? : string ; /**
     * <p>The maximum number of queries to show on a page.</p>
     */ MaxResults ? : number ; /**
     * <p>Use with <code>EndTime</code> to bound a <code>ListQueries</code> request, and limit its results to only those queries run
     *          within a specified time period.</p>
     */ StartTime ? : Date ; /**
     * <p>Use with <code>StartTime</code> to bound a <code>ListQueries</code> request, and limit its results to only those queries run
     *       within a specified time period.</p>
     */ EndTime ? : Date ; /**
     * <p>The status of queries that you want to return in results. Valid values for <code>QueryStatus</code> include <code>QUEUED</code>, <code>RUNNING</code>,
     *          <code>FINISHED</code>, <code>FAILED</code>, or <code>CANCELLED</code>.</p>
     */ QueryStatus ? : QueryStatus | string ; } export namespace ListQueriesRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>A SQL string of criteria about events that you want to collect in an event data store.</p>
 */ export interface Query { /**
     * <p>The ID of a query.</p>
     */ QueryId ? : string ; /**
     * <p>The status of the query. This can be <code>QUEUED</code>, <code>RUNNING</code>, <code>FINISHED</code>, <code>FAILED</code>,
     *          or <code>CANCELLED</code>.</p>
     */ QueryStatus ? : QueryStatus | string ; /**
     * <p>The creation time of a query.</p>
     */ CreationTime ? : Date ; } export namespace Query { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface ListQueriesResponse { /**
     * <p>Lists matching query results, and shows query ID, status, and creation time of each query.</p>
     */ Queries ? : Query [ ] ; /**
     * <p>A token you can use to get the next page of results.</p>
     */ NextToken ? : string ; } export namespace ListQueriesResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Specifies a list of trail tags to return.</p>
 */ export interface ListTagsRequest { /**
     * <p>Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The following is the format of
     *          a trail ARN.</p>
     *             <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ ResourceIdList : string [ ] | undefined ; /**
     * <p>Reserved for future use.</p>
     */ NextToken ? : string ; } export namespace ListTagsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>A resource tag.</p>
 */ export interface ResourceTag { /**
     * <p>Specifies the ARN of the resource.</p>
     */ ResourceId ? : string ; /**
     * <p>A list of tags.</p>
     */ TagsList ? : Tag [ ] ; } export namespace ResourceTag { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface ListTagsResponse { /**
     * <p>A list of resource tags.</p>
     */ ResourceTagList ? : ResourceTag [ ] ; /**
     * <p>Reserved for future use.</p>
     */ NextToken ? : string ; } export namespace ListTagsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface ListTrailsRequest { /**
     * <p>The token to use to get the next page of results after a previous API call. This token must be passed
     *          in with the same parameters that were specified in the the original call. For example, if the original
     *          call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should
     *          include those same parameters.</p>
     */ NextToken ? : string ; } export namespace ListTrailsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Information about a CloudTrail trail, including the trail's name, home region, and Amazon Resource Name (ARN).</p>
 */ export interface TrailInfo { /**
     * <p>The ARN of a trail.</p>
     */ TrailARN ? : string ; /**
     * <p>The name of a trail.</p>
     */ Name ? : string ; /**
     * <p>The Amazon Web Services Region in which a trail was created.</p>
     */ HomeRegion ? : string ; } export namespace TrailInfo { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface ListTrailsResponse { /**
     * <p>Returns the name, ARN, and home region of trails in the current account.</p>
     */ Trails ? : TrailInfo [ ] ; /**
     * <p>The token to use to get the next page of results after a previous API call. If the token does not appear,
     *          there are no more results to return. The token must be passed in with the same parameters as the previous call.
     *          For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with
     *          NextToken should include those same parameters.</p>
     */ NextToken ? : string ; } export namespace ListTrailsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Occurs if an event category that is not valid is specified as a value of <code>EventCategory</code>.</p>
 */ export interface InvalidEventCategoryException extends __SmithyException , $MetadataBearer { name : "InvalidEventCategoryException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>Occurs when a lookup attribute is specified that is not valid.</p>
 */ export interface InvalidLookupAttributesException extends __SmithyException , $MetadataBearer { name : "InvalidLookupAttributesException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export enum EventCategory { Insight = "insight" } export enum LookupAttributeKey { ACCESS_KEY_ID = "AccessKeyId" , EVENT_ID = "EventId" , EVENT_NAME = "EventName" , EVENT_SOURCE = "EventSource" , READ_ONLY = "ReadOnly" , RESOURCE_NAME = "ResourceName" , RESOURCE_TYPE = "ResourceType" , USERNAME = "Username" } /**
 * <p>Specifies an attribute and value that filter the events returned.</p>
 */ export interface LookupAttribute { /**
     * <p>Specifies an attribute on which to filter the events returned.</p>
     */ AttributeKey : LookupAttributeKey | string | undefined ; /**
     * <p>Specifies a value for the specified AttributeKey.</p>
     */ AttributeValue : string | undefined ; } export namespace LookupAttribute { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Contains a request for LookupEvents.</p>
 */ export interface LookupEventsRequest { /**
     * <p>Contains a list of lookup attributes. Currently the list can contain only one item.</p>
     */ LookupAttributes ? : LookupAttribute [ ] ; /**
     * <p>Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.</p>
     */ StartTime ? : Date ; /**
     * <p>Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.</p>
     */ EndTime ? : Date ; /**
     * <p>Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example,
     *          if you do not specify <code>insight</code> as the value of <code>EventCategory</code>, no Insights events are returned.</p>
     */ EventCategory ? : EventCategory | string ; /**
     * <p>The number of events to return. Possible values are 1 through 50. The default is 50.</p>
     */ MaxResults ? : number ; /**
     * <p>The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call.
     *          For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.</p>
     */ NextToken ? : string ; } export namespace LookupEventsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Specifies the type and name of a resource referenced by an event.</p>
 */ export interface Resource { /**
     * <p>The type of a resource referenced by the event returned. When the resource type cannot be
     *          determined, null is returned. Some examples of resource types are: <b>Instance</b> for EC2,
     *          <b>Trail</b> for CloudTrail, <b>DBInstance</b> for Amazon RDS, and <b>AccessKey</b> for IAM.
     *          To learn more about how to look up and filter events by the resource types supported for a service, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events">Filtering CloudTrail Events</a>.</p>
     */ ResourceType ? : string ; /**
     * <p>The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.</p>
     */ ResourceName ? : string ; } export namespace Resource { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.</p>
 */ export interface Event { /**
     * <p>The CloudTrail ID of the event returned.</p>
     */ EventId ? : string ; /**
     * <p>The name of the event returned.</p>
     */ EventName ? : string ; /**
     * <p>Information about whether the event is a write event or a read event. </p>
     */ ReadOnly ? : string ; /**
     * <p>The Amazon Web Services access key ID that was used to sign the request. If the request was made
     *          with temporary security credentials, this is the access key ID of the temporary credentials.</p>
     */ AccessKeyId ? : string ; /**
     * <p>The date and time of the event returned.</p>
     */ EventTime ? : Date ; /**
     * <p>The Amazon Web Services service to which the request was made.</p>
     */ EventSource ? : string ; /**
     * <p>A user name or role name of the requester that called the API in the event returned.</p>
     */ Username ? : string ; /**
     * <p>A list of resources referenced by the event returned.</p>
     */ Resources ? : Resource [ ] ; /**
     * <p>A JSON string that contains a representation of the event returned.</p>
     */ CloudTrailEvent ? : string ; } export namespace Event { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Contains a response to a LookupEvents action.</p>
 */ export interface LookupEventsResponse { /**
     * <p>A list of events returned based on the lookup attributes specified and the CloudTrail event. The events list is sorted by time. The most recent event is listed first.</p>
     */ Events ? : Event [ ] ; /**
     * <p>The token to use to get the next page of results after a previous API call. If the token does not appear,
     *          there are no more results to return. The token must be passed in with the same parameters as the previous call.
     *          For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with
     *          NextToken should include those same parameters.</p>
     */ NextToken ? : string ; } export namespace LookupEventsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>This exception is thrown when the <code>PutEventSelectors</code> operation is called with a number of event
 *          selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and
 *          data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum
 *          of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.</p>
 *          <p>You can:</p>
 *          <ul>
 *             <li>
 *                <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>
 *             </li>
 *             <li>
 *                <p>Specify a valid number of data resources (1 to 250) for an event selector.
 *                The limit of number of resources on an individual event selector is configurable up to 250.
 *                However, this upper limit is allowed only if the total number of data resources does not
 *                exceed 250 across all event selectors for a trail.</p>
 *             </li>
 *             <li>
 *                <p>Specify up to 500 values for all conditions in all advanced event selectors for a trail.</p>
 *             </li>
 *             <li>
 *                <p>Specify a valid value for a parameter. For example, specifying the <code>ReadWriteType</code>
 *                parameter with a value of <code>read-only</code> is not valid.</p>
 *             </li>
 *          </ul>
 */ export interface InvalidEventSelectorsException extends __SmithyException , $MetadataBearer { name : "InvalidEventSelectorsException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface PutEventSelectorsRequest { /**
     * <p>Specifies the name of the trail or trail ARN. If you specify a trail name, the
     *          string must meet the following requirements:</p>
     *          <ul>
     *             <li>
     *                <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>
     *             </li>
     *             <li>
     *                <p>Start with a letter or number, and end with a letter or number</p>
     *             </li>
     *             <li>
     *                <p>Be between 3 and 128 characters</p>
     *             </li>
     *             <li>
     *                <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>
     *                and <code>my--namespace</code> are not valid.</p>
     *             </li>
     *             <li>
     *                <p>Not be in IP address format (for example, 192.168.5.4)</p>
     *             </li>
     *          </ul>
     *          <p>If you specify a trail ARN, it must be in the following format.</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ TrailName : string | undefined ; /**
     * <p>Specifies the settings for your event selectors. You can configure up to five event selectors for a trail.
     *          You can use either <code>EventSelectors</code> or <code>AdvancedEventSelectors</code> in a <code>PutEventSelectors</code> request, but not both.
     *          If you apply <code>EventSelectors</code> to a trail, any existing <code>AdvancedEventSelectors</code> are overwritten.</p>
     */ EventSelectors ? : EventSelector [ ] ; /**
     * <p>
     *          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 for trails</a> in the <i>CloudTrail User Guide</i>.
     *       </p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; } export namespace PutEventSelectorsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface PutEventSelectorsResponse { /**
     * <p>Specifies the ARN of the trail that was updated with event selectors. The following is the format of a trail ARN.</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ TrailARN ? : string ; /**
     * <p>Specifies the event selectors configured for your trail.</p>
     */ EventSelectors ? : EventSelector [ ] ; /**
     * <p>Specifies the advanced event selectors configured for your trail.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; } export namespace PutEventSelectorsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The formatting or syntax of the <code>InsightSelectors</code> JSON statement in your <code>PutInsightSelectors</code> or <code>GetInsightSelectors</code> request
 *          is not valid, or the specified insight type in the <code>InsightSelectors</code> statement is not a valid insight type.</p>
 */ export interface InvalidInsightSelectorsException extends __SmithyException , $MetadataBearer { name : "InvalidInsightSelectorsException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface PutInsightSelectorsRequest { /**
     * <p>The name of the CloudTrail trail for which you want to change or add Insights selectors.</p>
     */ TrailName : string | undefined ; /**
     * <p>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.</p>
     */ InsightSelectors : InsightSelector [ ] | undefined ; } export namespace PutInsightSelectorsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface PutInsightSelectorsResponse { /**
     * <p>The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.</p>
     */ TrailARN ? : string ; /**
     * <p>A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in this release are
     *          <code>ApiErrorRateInsight</code> and <code>ApiCallRateInsight</code>.</p>
     */ InsightSelectors ? : InsightSelector [ ] ; } export namespace PutInsightSelectorsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Specifies the tags to remove from a trail.</p>
 */ export interface RemoveTagsRequest { /**
     * <p>Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is:</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ ResourceId : string | undefined ; /**
     * <p>Specifies a list of tags to be removed.</p>
     */ TagsList : Tag [ ] | undefined ; } export namespace RemoveTagsRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface RemoveTagsResponse { } export namespace RemoveTagsResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The event data store is not in a status that supports the operation.</p>
 */ export interface InvalidEventDataStoreStatusException extends __SmithyException , $MetadataBearer { name : "InvalidEventDataStoreStatusException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface RestoreEventDataStoreRequest { /**
     * <p>The ARN (or the ID suffix of the ARN) of the event data store that you want to restore.</p>
     */ EventDataStore : string | undefined ; } export namespace RestoreEventDataStoreRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface RestoreEventDataStoreResponse { /**
     * <p>The event data store ARN.</p>
     */ EventDataStoreArn ? : string ; /**
     * <p>The name of the event data store.</p>
     */ Name ? : string ; /**
     * <p>The status of the event data store.</p>
     */ Status ? : EventDataStoreStatus | string ; /**
     * <p>The advanced event selectors that were used to select events.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; /**
     * <p>Indicates whether the event data store is collecting events from all regions, or only from the region in which the event data
     *       store was created.</p>
     */ MultiRegionEnabled ? : boolean ; /**
     * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
     */ OrganizationEnabled ? : boolean ; /**
     * <p>The retention period, in days.</p>
     */ RetentionPeriod ? : number ; /**
     * <p>Indicates that termination protection is enabled and the event data store cannot be automatically deleted.</p>
     */ TerminationProtectionEnabled ? : boolean ; /**
     * <p>The timestamp of an event data store's creation.</p>
     */ CreatedTimestamp ? : Date ; /**
     * <p>The timestamp that shows when an event data store was updated, if applicable.
     *          <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
     */ UpdatedTimestamp ? : Date ; } export namespace RestoreEventDataStoreResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The request to CloudTrail to start logging Amazon Web Services API calls for an account.</p>
 */ export interface StartLoggingRequest { /**
     * <p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs Amazon Web Services API calls.
     *          The following is the format of a trail ARN.</p>
     *             <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ Name : string | undefined ; } export namespace StartLoggingRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface StartLoggingResponse { } export namespace StartLoggingResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>The query that was submitted has validation errors, or uses incorrect syntax or unsupported keywords. For more information
 *          about writing a query, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create
 *             or edit a query</a> in the <i>CloudTrail User Guide</i>.</p>
 */ export interface InvalidQueryStatementException extends __SmithyException , $MetadataBearer { name : "InvalidQueryStatementException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } /**
 * <p>You are already running the maximum number of concurrent queries. Wait a minute for some queries to finish, and then
 *          run the query again.</p>
 */ export interface MaxConcurrentQueriesException extends __SmithyException , $MetadataBearer { name : "MaxConcurrentQueriesException" ; $fault : "client" ; /**
     * <p>Brief description of the exception returned by the request.</p>
     */ Message ? : string ; } export interface StartQueryRequest { /**
     * <p>The SQL code of your query.</p>
     */ QueryStatement : string | undefined ; } export namespace StartQueryRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface StartQueryResponse { /**
     * <p>The ID of the started query.</p>
     */ QueryId ? : string ; } export namespace StartQueryResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Passes the request to CloudTrail to stop logging Amazon Web Services API calls for the specified account.</p>
 */ export interface StopLoggingRequest { /**
     * <p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging Amazon Web Services
     *          API calls. The following is the format of a trail ARN.</p>
     *             <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ Name : string | undefined ; } export namespace StopLoggingRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface StopLoggingResponse { } export namespace StopLoggingResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface UpdateEventDataStoreRequest { /**
     * <p>The ARN (or the ID suffix of the ARN) of the event data store that you want to update.</p>
     */ EventDataStore : string | undefined ; /**
     * <p>The event data store name.</p>
     */ Name ? : string ; /**
     * <p>The advanced event selectors used to select events for the event data store.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; /**
     * <p>Specifies whether an event data store collects events from all regions, or only from the region in which it was created.</p>
     */ MultiRegionEnabled ? : boolean ; /**
     * <p>Specifies whether an event data store collects events logged for an organization in Organizations.</p>
     */ OrganizationEnabled ? : boolean ; /**
     * <p>The retention period, in days.</p>
     */ RetentionPeriod ? : number ; /**
     * <p>Indicates that termination protection is enabled and the event data store cannot be automatically deleted.</p>
     */ TerminationProtectionEnabled ? : boolean ; } export namespace UpdateEventDataStoreRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } export interface UpdateEventDataStoreResponse { /**
     * <p>The ARN of the event data store.</p>
     */ EventDataStoreArn ? : string ; /**
     * <p>The name of the event data store.</p>
     */ Name ? : string ; /**
     * <p>The status of an event data store. Values can be <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
     */ Status ? : EventDataStoreStatus | string ; /**
     * <p>The advanced event selectors that are applied to the event data store.</p>
     */ AdvancedEventSelectors ? : AdvancedEventSelector [ ] ; /**
     * <p>Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
     */ MultiRegionEnabled ? : boolean ; /**
     * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
     */ OrganizationEnabled ? : boolean ; /**
     * <p>The retention period, in days.</p>
     */ RetentionPeriod ? : number ; /**
     * <p>Indicates whether termination protection is enabled for the event data store.</p>
     */ TerminationProtectionEnabled ? : boolean ; /**
     * <p>The timestamp that shows when an event data store was first created.</p>
     */ CreatedTimestamp ? : Date ; /**
     * <p>The timestamp that shows when the event data store was last updated. <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
     */ UpdatedTimestamp ? : Date ; } export namespace UpdateEventDataStoreResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Specifies settings to update for the trail.</p>
 */ export interface UpdateTrailRequest { /**
     * <p>Specifies the name of the trail or trail ARN. If <code>Name</code> is a trail name, the
     *          string must meet the following requirements:</p>
     *          <ul>
     *             <li>
     *                <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>
     *             </li>
     *             <li>
     *                <p>Start with a letter or number, and end with a letter or number</p>
     *             </li>
     *             <li>
     *                <p>Be between 3 and 128 characters</p>
     *             </li>
     *             <li>
     *                <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>
     *             and <code>my--namespace</code> are not valid.</p>
     *             </li>
     *             <li>
     *                <p>Not be in IP address format (for example, 192.168.5.4)</p>
     *             </li>
     *          </ul>
     *          <p>If <code>Name</code> is a trail ARN, it must be in the following format.</p>
     *             <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ Name : string | undefined ; /**
     * <p>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>.</p>
     */ S3BucketName ? : string ; /**
     * <p>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.</p>
     */ S3KeyPrefix ? : string ; /**
     * <p>Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.</p>
     */ SnsTopicName ? : string ; /**
     * <p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>
     */ IncludeGlobalServiceEvents ? : boolean ; /**
     * <p>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.</p>
     */ IsMultiRegionTrail ? : boolean ; /**
     * <p>Specifies whether log file validation is enabled. The default is false.</p>
     *          <note>
     *             <p>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.</p>
     *          </note>
     */ EnableLogFileValidation ? : boolean ; /**
     * <p>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. Not required unless you specify <code>CloudWatchLogsRoleArn</code>.</p>
     */ CloudWatchLogsLogGroupArn ? : string ; /**
     * <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
     */ CloudWatchLogsRoleArn ? : string ; /**
     * <p>Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The
     *          value can be an alias name prefixed by "alias/", a fully specified ARN to an alias, a fully
     *          specified ARN to a key, or a globally unique identifier.</p>
     *          <p>CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys,
     *          see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
     *          <p>Examples:</p>
     *          <ul>
     *             <li>
     *                <p>alias/MyAliasName</p>
     *             </li>
     *             <li>
     *                <p>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</p>
     *             </li>
     *             <li>
     *                <p>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</p>
     *             </li>
     *             <li>
     *                <p>12345678-1234-1234-1234-123456789012</p>
     *             </li>
     *          </ul>
     */ KmsKeyId ? : string ; /**
     * <p>Specifies whether the trail is applied to all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
     *          The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account for an organization in
     *          Organizations. If the trail is not an organization trail and this is set to <code>true</code>, the trail will be created in all Amazon Web Services 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 Amazon Web Services account but be
     *          deleted from all member accounts in the organization.</p>
     */ IsOrganizationTrail ? : boolean ; } export namespace UpdateTrailRequest { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; } /**
 * <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
 */ export interface UpdateTrailResponse { /**
     * <p>Specifies the name of the trail.</p>
     */ Name ? : string ; /**
     * <p>Specifies the name of the Amazon S3 bucket designated for publishing log files.</p>
     */ S3BucketName ? : string ; /**
     * <p>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 IAM Log Files</a>.</p>
     */ S3KeyPrefix ? : string ; deprecated SnsTopicName ? : string ; /**
     * <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications
     *          when log files are delivered. The following is the format of a topic ARN.</p>
     *          <p>
     *             <code>arn:aws:sns:us-east-2:123456789012:MyTopic</code>
     *          </p>
     */ SnsTopicARN ? : string ; /**
     * <p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>
     */ IncludeGlobalServiceEvents ? : boolean ; /**
     * <p>Specifies whether the trail exists in one region or in all regions.</p>
     */ IsMultiRegionTrail ? : boolean ; /**
     * <p>Specifies the ARN of the trail that was updated. The following is the format of a trail ARN.</p>
     *          <p>
     *             <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
     *          </p>
     */ TrailARN ? : string ; /**
     * <p>Specifies whether log file integrity validation is enabled.</p>
     */ LogFileValidationEnabled ? : boolean ; /**
     * <p>Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.</p>
     */ CloudWatchLogsLogGroupArn ? : string ; /**
     * <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
     */ CloudWatchLogsRoleArn ? : string ; /**
     * <p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
     *
     *          <p>
     *             <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>
     *          </p>
     */ KmsKeyId ? : string ; /**
     * <p>Specifies whether the trail is an organization trail.</p>
     */ IsOrganizationTrail ? : boolean ; } export namespace UpdateTrailResponse { internal export const filterSensitiveLog = ( obj ) : any => ( { ... obj , } ) ; }