UNPKG

80.4 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class CloudWatchLogs extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: CloudWatchLogs.Types.ClientConfiguration)
13 config: Config & CloudWatchLogs.Types.ClientConfiguration;
14 /**
15 * Associates the specified AWS Key Management Service (AWS KMS) customer master key (CMK) with the specified log group. Associating an AWS KMS CMK with a log group overrides any existing associations between the log group and a CMK. After a CMK is associated with a log group, all newly ingested data for the log group is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch Logs to decrypt this data whenever it is requested. Note that it can take up to 5 minutes for this operation to take effect. If you attempt to associate a CMK with a log group but the CMK does not exist or the CMK is disabled, you will receive an InvalidParameterException error.
16 */
17 associateKmsKey(params: CloudWatchLogs.Types.AssociateKmsKeyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
18 /**
19 * Associates the specified AWS Key Management Service (AWS KMS) customer master key (CMK) with the specified log group. Associating an AWS KMS CMK with a log group overrides any existing associations between the log group and a CMK. After a CMK is associated with a log group, all newly ingested data for the log group is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch Logs to decrypt this data whenever it is requested. Note that it can take up to 5 minutes for this operation to take effect. If you attempt to associate a CMK with a log group but the CMK does not exist or the CMK is disabled, you will receive an InvalidParameterException error.
20 */
21 associateKmsKey(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
22 /**
23 * Cancels the specified export task. The task must be in the PENDING or RUNNING state.
24 */
25 cancelExportTask(params: CloudWatchLogs.Types.CancelExportTaskRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
26 /**
27 * Cancels the specified export task. The task must be in the PENDING or RUNNING state.
28 */
29 cancelExportTask(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
30 /**
31 * Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket. This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. Each account can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask. You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix to be used as the Amazon S3 key prefix for all exported objects. Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets encrypted with SSE-KMS is not supported.
32 */
33 createExportTask(params: CloudWatchLogs.Types.CreateExportTaskRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.CreateExportTaskResponse) => void): Request<CloudWatchLogs.Types.CreateExportTaskResponse, AWSError>;
34 /**
35 * Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket. This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. Each account can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask. You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix to be used as the Amazon S3 key prefix for all exported objects. Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets encrypted with SSE-KMS is not supported.
36 */
37 createExportTask(callback?: (err: AWSError, data: CloudWatchLogs.Types.CreateExportTaskResponse) => void): Request<CloudWatchLogs.Types.CreateExportTaskResponse, AWSError>;
38 /**
39 * Creates a log group with the specified name. You can create up to 5000 log groups per account. You must use the following guidelines when naming a log group: Log group names must be unique within a region for an AWS account. Log group names can be between 1 and 512 characters long. Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period). If you associate a AWS Key Management Service (AWS KMS) customer master key (CMK) with the log group, ingested data is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch Logs to decrypt this data whenever it is requested. If you attempt to associate a CMK with the log group but the CMK does not exist or the CMK is disabled, you will receive an InvalidParameterException error.
40 */
41 createLogGroup(params: CloudWatchLogs.Types.CreateLogGroupRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
42 /**
43 * Creates a log group with the specified name. You can create up to 5000 log groups per account. You must use the following guidelines when naming a log group: Log group names must be unique within a region for an AWS account. Log group names can be between 1 and 512 characters long. Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period). If you associate a AWS Key Management Service (AWS KMS) customer master key (CMK) with the log group, ingested data is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch Logs to decrypt this data whenever it is requested. If you attempt to associate a CMK with the log group but the CMK does not exist or the CMK is disabled, you will receive an InvalidParameterException error.
44 */
45 createLogGroup(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
46 /**
47 * Creates a log stream for the specified log group. There is no limit on the number of log streams that you can create for a log group. You must use the following guidelines when naming a log stream: Log stream names must be unique within the log group. Log stream names can be between 1 and 512 characters long. The ':' (colon) and '*' (asterisk) characters are not allowed.
48 */
49 createLogStream(params: CloudWatchLogs.Types.CreateLogStreamRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
50 /**
51 * Creates a log stream for the specified log group. There is no limit on the number of log streams that you can create for a log group. You must use the following guidelines when naming a log stream: Log stream names must be unique within the log group. Log stream names can be between 1 and 512 characters long. The ':' (colon) and '*' (asterisk) characters are not allowed.
52 */
53 createLogStream(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
54 /**
55 * Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.
56 */
57 deleteDestination(params: CloudWatchLogs.Types.DeleteDestinationRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
58 /**
59 * Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.
60 */
61 deleteDestination(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
62 /**
63 * Deletes the specified log group and permanently deletes all the archived log events associated with the log group.
64 */
65 deleteLogGroup(params: CloudWatchLogs.Types.DeleteLogGroupRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
66 /**
67 * Deletes the specified log group and permanently deletes all the archived log events associated with the log group.
68 */
69 deleteLogGroup(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
70 /**
71 * Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.
72 */
73 deleteLogStream(params: CloudWatchLogs.Types.DeleteLogStreamRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
74 /**
75 * Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.
76 */
77 deleteLogStream(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
78 /**
79 * Deletes the specified metric filter.
80 */
81 deleteMetricFilter(params: CloudWatchLogs.Types.DeleteMetricFilterRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
82 /**
83 * Deletes the specified metric filter.
84 */
85 deleteMetricFilter(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
86 /**
87 * Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.
88 */
89 deleteResourcePolicy(params: CloudWatchLogs.Types.DeleteResourcePolicyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
90 /**
91 * Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.
92 */
93 deleteResourcePolicy(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
94 /**
95 * Deletes the specified retention policy. Log events do not expire if they belong to log groups without a retention policy.
96 */
97 deleteRetentionPolicy(params: CloudWatchLogs.Types.DeleteRetentionPolicyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
98 /**
99 * Deletes the specified retention policy. Log events do not expire if they belong to log groups without a retention policy.
100 */
101 deleteRetentionPolicy(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
102 /**
103 * Deletes the specified subscription filter.
104 */
105 deleteSubscriptionFilter(params: CloudWatchLogs.Types.DeleteSubscriptionFilterRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
106 /**
107 * Deletes the specified subscription filter.
108 */
109 deleteSubscriptionFilter(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
110 /**
111 * Lists all your destinations. The results are ASCII-sorted by destination name.
112 */
113 describeDestinations(params: CloudWatchLogs.Types.DescribeDestinationsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeDestinationsResponse) => void): Request<CloudWatchLogs.Types.DescribeDestinationsResponse, AWSError>;
114 /**
115 * Lists all your destinations. The results are ASCII-sorted by destination name.
116 */
117 describeDestinations(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeDestinationsResponse) => void): Request<CloudWatchLogs.Types.DescribeDestinationsResponse, AWSError>;
118 /**
119 * Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status.
120 */
121 describeExportTasks(params: CloudWatchLogs.Types.DescribeExportTasksRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeExportTasksResponse) => void): Request<CloudWatchLogs.Types.DescribeExportTasksResponse, AWSError>;
122 /**
123 * Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status.
124 */
125 describeExportTasks(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeExportTasksResponse) => void): Request<CloudWatchLogs.Types.DescribeExportTasksResponse, AWSError>;
126 /**
127 * Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.
128 */
129 describeLogGroups(params: CloudWatchLogs.Types.DescribeLogGroupsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeLogGroupsResponse) => void): Request<CloudWatchLogs.Types.DescribeLogGroupsResponse, AWSError>;
130 /**
131 * Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.
132 */
133 describeLogGroups(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeLogGroupsResponse) => void): Request<CloudWatchLogs.Types.DescribeLogGroupsResponse, AWSError>;
134 /**
135 * Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered. This operation has a limit of five transactions per second, after which transactions are throttled.
136 */
137 describeLogStreams(params: CloudWatchLogs.Types.DescribeLogStreamsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeLogStreamsResponse) => void): Request<CloudWatchLogs.Types.DescribeLogStreamsResponse, AWSError>;
138 /**
139 * Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered. This operation has a limit of five transactions per second, after which transactions are throttled.
140 */
141 describeLogStreams(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeLogStreamsResponse) => void): Request<CloudWatchLogs.Types.DescribeLogStreamsResponse, AWSError>;
142 /**
143 * Lists the specified metric filters. You can list all the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.
144 */
145 describeMetricFilters(params: CloudWatchLogs.Types.DescribeMetricFiltersRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeMetricFiltersResponse) => void): Request<CloudWatchLogs.Types.DescribeMetricFiltersResponse, AWSError>;
146 /**
147 * Lists the specified metric filters. You can list all the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.
148 */
149 describeMetricFilters(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeMetricFiltersResponse) => void): Request<CloudWatchLogs.Types.DescribeMetricFiltersResponse, AWSError>;
150 /**
151 * Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account. You can request all queries, or limit it to queries of a specific log group or queries with a certain status.
152 */
153 describeQueries(params: CloudWatchLogs.Types.DescribeQueriesRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeQueriesResponse) => void): Request<CloudWatchLogs.Types.DescribeQueriesResponse, AWSError>;
154 /**
155 * Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account. You can request all queries, or limit it to queries of a specific log group or queries with a certain status.
156 */
157 describeQueries(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeQueriesResponse) => void): Request<CloudWatchLogs.Types.DescribeQueriesResponse, AWSError>;
158 /**
159 * Lists the resource policies in this account.
160 */
161 describeResourcePolicies(params: CloudWatchLogs.Types.DescribeResourcePoliciesRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeResourcePoliciesResponse) => void): Request<CloudWatchLogs.Types.DescribeResourcePoliciesResponse, AWSError>;
162 /**
163 * Lists the resource policies in this account.
164 */
165 describeResourcePolicies(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeResourcePoliciesResponse) => void): Request<CloudWatchLogs.Types.DescribeResourcePoliciesResponse, AWSError>;
166 /**
167 * Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix. The results are ASCII-sorted by filter name.
168 */
169 describeSubscriptionFilters(params: CloudWatchLogs.Types.DescribeSubscriptionFiltersRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeSubscriptionFiltersResponse) => void): Request<CloudWatchLogs.Types.DescribeSubscriptionFiltersResponse, AWSError>;
170 /**
171 * Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix. The results are ASCII-sorted by filter name.
172 */
173 describeSubscriptionFilters(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeSubscriptionFiltersResponse) => void): Request<CloudWatchLogs.Types.DescribeSubscriptionFiltersResponse, AWSError>;
174 /**
175 * Disassociates the associated AWS Key Management Service (AWS KMS) customer master key (CMK) from the specified log group. After the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested. Note that it can take up to 5 minutes for this operation to take effect.
176 */
177 disassociateKmsKey(params: CloudWatchLogs.Types.DisassociateKmsKeyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
178 /**
179 * Disassociates the associated AWS Key Management Service (AWS KMS) customer master key (CMK) from the specified log group. After the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested. Note that it can take up to 5 minutes for this operation to take effect.
180 */
181 disassociateKmsKey(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
182 /**
183 * Lists log events from the specified log group. You can list all the log events or filter the results using a filter pattern, a time range, and the name of the log stream. By default, this operation returns as many log events as can fit in 1 MB (up to 10,000 log events), or all the events found within the time range that you specify. If the results include a token, then there are more log events available, and you can get additional results by specifying the token in a subsequent call.
184 */
185 filterLogEvents(params: CloudWatchLogs.Types.FilterLogEventsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.FilterLogEventsResponse) => void): Request<CloudWatchLogs.Types.FilterLogEventsResponse, AWSError>;
186 /**
187 * Lists log events from the specified log group. You can list all the log events or filter the results using a filter pattern, a time range, and the name of the log stream. By default, this operation returns as many log events as can fit in 1 MB (up to 10,000 log events), or all the events found within the time range that you specify. If the results include a token, then there are more log events available, and you can get additional results by specifying the token in a subsequent call.
188 */
189 filterLogEvents(callback?: (err: AWSError, data: CloudWatchLogs.Types.FilterLogEventsResponse) => void): Request<CloudWatchLogs.Types.FilterLogEventsResponse, AWSError>;
190 /**
191 * Lists log events from the specified log stream. You can list all the log events or filter using a time range. By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). You can get additional log events by specifying one of the tokens in a subsequent call.
192 */
193 getLogEvents(params: CloudWatchLogs.Types.GetLogEventsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogEventsResponse) => void): Request<CloudWatchLogs.Types.GetLogEventsResponse, AWSError>;
194 /**
195 * Lists log events from the specified log stream. You can list all the log events or filter using a time range. By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). You can get additional log events by specifying one of the tokens in a subsequent call.
196 */
197 getLogEvents(callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogEventsResponse) => void): Request<CloudWatchLogs.Types.GetLogEventsResponse, AWSError>;
198 /**
199 * Returns a list of the fields that are included in log events in the specified log group, along with the percentage of log events that contain each field. The search is limited to a time period that you specify. In the results, fields that start with @ are fields generated by CloudWatch Logs. For example, @timestamp is the timestamp of each log event. The response results are sorted by the frequency percentage, starting with the highest percentage.
200 */
201 getLogGroupFields(params: CloudWatchLogs.Types.GetLogGroupFieldsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogGroupFieldsResponse) => void): Request<CloudWatchLogs.Types.GetLogGroupFieldsResponse, AWSError>;
202 /**
203 * Returns a list of the fields that are included in log events in the specified log group, along with the percentage of log events that contain each field. The search is limited to a time period that you specify. In the results, fields that start with @ are fields generated by CloudWatch Logs. For example, @timestamp is the timestamp of each log event. The response results are sorted by the frequency percentage, starting with the highest percentage.
204 */
205 getLogGroupFields(callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogGroupFieldsResponse) => void): Request<CloudWatchLogs.Types.GetLogGroupFieldsResponse, AWSError>;
206 /**
207 * Retrieves all the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs. Additionally, the entire unparsed log event is returned within @message.
208 */
209 getLogRecord(params: CloudWatchLogs.Types.GetLogRecordRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogRecordResponse) => void): Request<CloudWatchLogs.Types.GetLogRecordResponse, AWSError>;
210 /**
211 * Retrieves all the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs. Additionally, the entire unparsed log event is returned within @message.
212 */
213 getLogRecord(callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogRecordResponse) => void): Request<CloudWatchLogs.Types.GetLogRecordResponse, AWSError>;
214 /**
215 * Returns the results from the specified query. Only the fields requested in the query are returned, along with a @ptr field which is the identifier for the log record. You can use the value of @ptr in a operation to get the full log record. GetQueryResults does not start a query execution. To run a query, use . If the value of the Status field in the output is Running, this operation returns only partial results. If you see a value of Scheduled or Running for the status, you can retry the operation later to see the final results.
216 */
217 getQueryResults(params: CloudWatchLogs.Types.GetQueryResultsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.GetQueryResultsResponse) => void): Request<CloudWatchLogs.Types.GetQueryResultsResponse, AWSError>;
218 /**
219 * Returns the results from the specified query. Only the fields requested in the query are returned, along with a @ptr field which is the identifier for the log record. You can use the value of @ptr in a operation to get the full log record. GetQueryResults does not start a query execution. To run a query, use . If the value of the Status field in the output is Running, this operation returns only partial results. If you see a value of Scheduled or Running for the status, you can retry the operation later to see the final results.
220 */
221 getQueryResults(callback?: (err: AWSError, data: CloudWatchLogs.Types.GetQueryResultsResponse) => void): Request<CloudWatchLogs.Types.GetQueryResultsResponse, AWSError>;
222 /**
223 * Lists the tags for the specified log group.
224 */
225 listTagsLogGroup(params: CloudWatchLogs.Types.ListTagsLogGroupRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.ListTagsLogGroupResponse) => void): Request<CloudWatchLogs.Types.ListTagsLogGroupResponse, AWSError>;
226 /**
227 * Lists the tags for the specified log group.
228 */
229 listTagsLogGroup(callback?: (err: AWSError, data: CloudWatchLogs.Types.ListTagsLogGroupResponse) => void): Request<CloudWatchLogs.Types.ListTagsLogGroupResponse, AWSError>;
230 /**
231 * Creates or updates a destination. A destination encapsulates a physical resource (such as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents. A destination can be an Amazon Kinesis stream, Amazon Kinesis Data Firehose strea, or an AWS Lambda function. Through an access policy, a destination controls what is written to it. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.
232 */
233 putDestination(params: CloudWatchLogs.Types.PutDestinationRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.PutDestinationResponse) => void): Request<CloudWatchLogs.Types.PutDestinationResponse, AWSError>;
234 /**
235 * Creates or updates a destination. A destination encapsulates a physical resource (such as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents. A destination can be an Amazon Kinesis stream, Amazon Kinesis Data Firehose strea, or an AWS Lambda function. Through an access policy, a destination controls what is written to it. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.
236 */
237 putDestination(callback?: (err: AWSError, data: CloudWatchLogs.Types.PutDestinationResponse) => void): Request<CloudWatchLogs.Types.PutDestinationResponse, AWSError>;
238 /**
239 * Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.
240 */
241 putDestinationPolicy(params: CloudWatchLogs.Types.PutDestinationPolicyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
242 /**
243 * Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.
244 */
245 putDestinationPolicy(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
246 /**
247 * Uploads a batch of log events to the specified log stream. You must include the sequence token obtained from the response of the previous call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using DescribeLogStreams. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls may be successful, or one may be rejected. The batch of events must satisfy the following constraints: The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event. None of the log events in the batch can be more than 2 hours in the future. None of the log events in the batch can be older than 14 days or older than the retention period of the log group. The log events in the batch must be in chronological ordered by their timestamp. The timestamp is the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In AWS Tools for PowerShell and the AWS SDK for .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.) The maximum number of log events in a batch is 10,000. A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails. If a call to PutLogEvents returns "UnrecognizedClientException" the most likely cause is an invalid AWS access key ID or secret key.
248 */
249 putLogEvents(params: CloudWatchLogs.Types.PutLogEventsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.PutLogEventsResponse) => void): Request<CloudWatchLogs.Types.PutLogEventsResponse, AWSError>;
250 /**
251 * Uploads a batch of log events to the specified log stream. You must include the sequence token obtained from the response of the previous call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using DescribeLogStreams. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls may be successful, or one may be rejected. The batch of events must satisfy the following constraints: The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event. None of the log events in the batch can be more than 2 hours in the future. None of the log events in the batch can be older than 14 days or older than the retention period of the log group. The log events in the batch must be in chronological ordered by their timestamp. The timestamp is the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In AWS Tools for PowerShell and the AWS SDK for .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.) The maximum number of log events in a batch is 10,000. A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails. If a call to PutLogEvents returns "UnrecognizedClientException" the most likely cause is an invalid AWS access key ID or secret key.
252 */
253 putLogEvents(callback?: (err: AWSError, data: CloudWatchLogs.Types.PutLogEventsResponse) => void): Request<CloudWatchLogs.Types.PutLogEventsResponse, AWSError>;
254 /**
255 * Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents. The maximum number of metric filters that can be associated with a log group is 100.
256 */
257 putMetricFilter(params: CloudWatchLogs.Types.PutMetricFilterRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
258 /**
259 * Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents. The maximum number of metric filters that can be associated with a log group is 100.
260 */
261 putMetricFilter(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
262 /**
263 * Creates or updates a resource policy allowing other AWS services to put log events to this account, such as Amazon Route 53. An account can have up to 10 resource policies per region.
264 */
265 putResourcePolicy(params: CloudWatchLogs.Types.PutResourcePolicyRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.PutResourcePolicyResponse) => void): Request<CloudWatchLogs.Types.PutResourcePolicyResponse, AWSError>;
266 /**
267 * Creates or updates a resource policy allowing other AWS services to put log events to this account, such as Amazon Route 53. An account can have up to 10 resource policies per region.
268 */
269 putResourcePolicy(callback?: (err: AWSError, data: CloudWatchLogs.Types.PutResourcePolicyResponse) => void): Request<CloudWatchLogs.Types.PutResourcePolicyResponse, AWSError>;
270 /**
271 * Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.
272 */
273 putRetentionPolicy(params: CloudWatchLogs.Types.PutRetentionPolicyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
274 /**
275 * Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.
276 */
277 putRetentionPolicy(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
278 /**
279 * Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. Currently, the supported destinations are: An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery. A logical destination that belongs to a different account, for cross-account delivery. An Amazon Kinesis Firehose delivery stream that belongs to the same account as the subscription filter, for same-account delivery. An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery. There can only be one subscription filter associated with a log group. If you are updating an existing filter, you must specify the correct name in filterName. Otherwise, the call fails because you cannot associate a second filter with a log group.
280 */
281 putSubscriptionFilter(params: CloudWatchLogs.Types.PutSubscriptionFilterRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
282 /**
283 * Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. Currently, the supported destinations are: An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery. A logical destination that belongs to a different account, for cross-account delivery. An Amazon Kinesis Firehose delivery stream that belongs to the same account as the subscription filter, for same-account delivery. An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery. There can only be one subscription filter associated with a log group. If you are updating an existing filter, you must specify the correct name in filterName. Otherwise, the call fails because you cannot associate a second filter with a log group.
284 */
285 putSubscriptionFilter(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
286 /**
287 * Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query, and the query string to use. For more information, see CloudWatch Logs Insights Query Syntax. Queries time out after 15 minutes of execution. If your queries are timing out, reduce the time range being searched, or partition your query into a number of queries.
288 */
289 startQuery(params: CloudWatchLogs.Types.StartQueryRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.StartQueryResponse) => void): Request<CloudWatchLogs.Types.StartQueryResponse, AWSError>;
290 /**
291 * Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query, and the query string to use. For more information, see CloudWatch Logs Insights Query Syntax. Queries time out after 15 minutes of execution. If your queries are timing out, reduce the time range being searched, or partition your query into a number of queries.
292 */
293 startQuery(callback?: (err: AWSError, data: CloudWatchLogs.Types.StartQueryResponse) => void): Request<CloudWatchLogs.Types.StartQueryResponse, AWSError>;
294 /**
295 * Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.
296 */
297 stopQuery(params: CloudWatchLogs.Types.StopQueryRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.StopQueryResponse) => void): Request<CloudWatchLogs.Types.StopQueryResponse, AWSError>;
298 /**
299 * Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.
300 */
301 stopQuery(callback?: (err: AWSError, data: CloudWatchLogs.Types.StopQueryResponse) => void): Request<CloudWatchLogs.Types.StopQueryResponse, AWSError>;
302 /**
303 * Adds or updates the specified tags for the specified log group. To list the tags for a log group, use ListTagsLogGroup. To remove tags, use UntagLogGroup. For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.
304 */
305 tagLogGroup(params: CloudWatchLogs.Types.TagLogGroupRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
306 /**
307 * Adds or updates the specified tags for the specified log group. To list the tags for a log group, use ListTagsLogGroup. To remove tags, use UntagLogGroup. For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.
308 */
309 tagLogGroup(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
310 /**
311 * Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.
312 */
313 testMetricFilter(params: CloudWatchLogs.Types.TestMetricFilterRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.TestMetricFilterResponse) => void): Request<CloudWatchLogs.Types.TestMetricFilterResponse, AWSError>;
314 /**
315 * Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.
316 */
317 testMetricFilter(callback?: (err: AWSError, data: CloudWatchLogs.Types.TestMetricFilterResponse) => void): Request<CloudWatchLogs.Types.TestMetricFilterResponse, AWSError>;
318 /**
319 * Removes the specified tags from the specified log group. To list the tags for a log group, use ListTagsLogGroup. To add tags, use UntagLogGroup.
320 */
321 untagLogGroup(params: CloudWatchLogs.Types.UntagLogGroupRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
322 /**
323 * Removes the specified tags from the specified log group. To list the tags for a log group, use ListTagsLogGroup. To add tags, use UntagLogGroup.
324 */
325 untagLogGroup(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
326}
327declare namespace CloudWatchLogs {
328 export type AccessPolicy = string;
329 export type Arn = string;
330 export interface AssociateKmsKeyRequest {
331 /**
332 * The name of the log group.
333 */
334 logGroupName: LogGroupName;
335 /**
336 * The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - AWS Key Management Service (AWS KMS).
337 */
338 kmsKeyId: KmsKeyId;
339 }
340 export interface CancelExportTaskRequest {
341 /**
342 * The ID of the export task.
343 */
344 taskId: ExportTaskId;
345 }
346 export interface CreateExportTaskRequest {
347 /**
348 * The name of the export task.
349 */
350 taskName?: ExportTaskName;
351 /**
352 * The name of the log group.
353 */
354 logGroupName: LogGroupName;
355 /**
356 * Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.
357 */
358 logStreamNamePrefix?: LogStreamName;
359 /**
360 * The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported.
361 */
362 from: Timestamp;
363 /**
364 * The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.
365 */
366 to: Timestamp;
367 /**
368 * The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.
369 */
370 destination: ExportDestinationBucket;
371 /**
372 * The prefix used as the start of the key for every object exported. If you don't specify a value, the default is exportedlogs.
373 */
374 destinationPrefix?: ExportDestinationPrefix;
375 }
376 export interface CreateExportTaskResponse {
377 /**
378 * The ID of the export task.
379 */
380 taskId?: ExportTaskId;
381 }
382 export interface CreateLogGroupRequest {
383 /**
384 * The name of the log group.
385 */
386 logGroupName: LogGroupName;
387 /**
388 * The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - AWS Key Management Service (AWS KMS).
389 */
390 kmsKeyId?: KmsKeyId;
391 /**
392 * The key-value pairs to use for the tags.
393 */
394 tags?: Tags;
395 }
396 export interface CreateLogStreamRequest {
397 /**
398 * The name of the log group.
399 */
400 logGroupName: LogGroupName;
401 /**
402 * The name of the log stream.
403 */
404 logStreamName: LogStreamName;
405 }
406 export type Days = number;
407 export type DefaultValue = number;
408 export interface DeleteDestinationRequest {
409 /**
410 * The name of the destination.
411 */
412 destinationName: DestinationName;
413 }
414 export interface DeleteLogGroupRequest {
415 /**
416 * The name of the log group.
417 */
418 logGroupName: LogGroupName;
419 }
420 export interface DeleteLogStreamRequest {
421 /**
422 * The name of the log group.
423 */
424 logGroupName: LogGroupName;
425 /**
426 * The name of the log stream.
427 */
428 logStreamName: LogStreamName;
429 }
430 export interface DeleteMetricFilterRequest {
431 /**
432 * The name of the log group.
433 */
434 logGroupName: LogGroupName;
435 /**
436 * The name of the metric filter.
437 */
438 filterName: FilterName;
439 }
440 export interface DeleteResourcePolicyRequest {
441 /**
442 * The name of the policy to be revoked. This parameter is required.
443 */
444 policyName?: PolicyName;
445 }
446 export interface DeleteRetentionPolicyRequest {
447 /**
448 * The name of the log group.
449 */
450 logGroupName: LogGroupName;
451 }
452 export interface DeleteSubscriptionFilterRequest {
453 /**
454 * The name of the log group.
455 */
456 logGroupName: LogGroupName;
457 /**
458 * The name of the subscription filter.
459 */
460 filterName: FilterName;
461 }
462 export type Descending = boolean;
463 export interface DescribeDestinationsRequest {
464 /**
465 * The prefix to match. If you don't specify a value, no prefix filter is applied.
466 */
467 DestinationNamePrefix?: DestinationName;
468 /**
469 * The token for the next set of items to return. (You received this token from a previous call.)
470 */
471 nextToken?: NextToken;
472 /**
473 * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
474 */
475 limit?: DescribeLimit;
476 }
477 export interface DescribeDestinationsResponse {
478 /**
479 * The destinations.
480 */
481 destinations?: Destinations;
482 nextToken?: NextToken;
483 }
484 export interface DescribeExportTasksRequest {
485 /**
486 * The ID of the export task. Specifying a task ID filters the results to zero or one export tasks.
487 */
488 taskId?: ExportTaskId;
489 /**
490 * The status code of the export task. Specifying a status code filters the results to zero or more export tasks.
491 */
492 statusCode?: ExportTaskStatusCode;
493 /**
494 * The token for the next set of items to return. (You received this token from a previous call.)
495 */
496 nextToken?: NextToken;
497 /**
498 * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
499 */
500 limit?: DescribeLimit;
501 }
502 export interface DescribeExportTasksResponse {
503 /**
504 * The export tasks.
505 */
506 exportTasks?: ExportTasks;
507 nextToken?: NextToken;
508 }
509 export type DescribeLimit = number;
510 export interface DescribeLogGroupsRequest {
511 /**
512 * The prefix to match.
513 */
514 logGroupNamePrefix?: LogGroupName;
515 /**
516 * The token for the next set of items to return. (You received this token from a previous call.)
517 */
518 nextToken?: NextToken;
519 /**
520 * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
521 */
522 limit?: DescribeLimit;
523 }
524 export interface DescribeLogGroupsResponse {
525 /**
526 * The log groups.
527 */
528 logGroups?: LogGroups;
529 nextToken?: NextToken;
530 }
531 export interface DescribeLogStreamsRequest {
532 /**
533 * The name of the log group.
534 */
535 logGroupName: LogGroupName;
536 /**
537 * The prefix to match. If orderBy is LastEventTime,you cannot specify this parameter.
538 */
539 logStreamNamePrefix?: LogStreamName;
540 /**
541 * If the value is LogStreamName, the results are ordered by log stream name. If the value is LastEventTime, the results are ordered by the event time. The default value is LogStreamName. If you order the results by event time, you cannot specify the logStreamNamePrefix parameter. lastEventTimestamp represents the time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. lastEventTimeStamp updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
542 */
543 orderBy?: OrderBy;
544 /**
545 * If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false.
546 */
547 descending?: Descending;
548 /**
549 * The token for the next set of items to return. (You received this token from a previous call.)
550 */
551 nextToken?: NextToken;
552 /**
553 * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
554 */
555 limit?: DescribeLimit;
556 }
557 export interface DescribeLogStreamsResponse {
558 /**
559 * The log streams.
560 */
561 logStreams?: LogStreams;
562 nextToken?: NextToken;
563 }
564 export interface DescribeMetricFiltersRequest {
565 /**
566 * The name of the log group.
567 */
568 logGroupName?: LogGroupName;
569 /**
570 * The prefix to match.
571 */
572 filterNamePrefix?: FilterName;
573 /**
574 * The token for the next set of items to return. (You received this token from a previous call.)
575 */
576 nextToken?: NextToken;
577 /**
578 * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
579 */
580 limit?: DescribeLimit;
581 /**
582 * Filters results to include only those with the specified metric name. If you include this parameter in your request, you must also include the metricNamespace parameter.
583 */
584 metricName?: MetricName;
585 /**
586 * Filters results to include only those in the specified namespace. If you include this parameter in your request, you must also include the metricName parameter.
587 */
588 metricNamespace?: MetricNamespace;
589 }
590 export interface DescribeMetricFiltersResponse {
591 /**
592 * The metric filters.
593 */
594 metricFilters?: MetricFilters;
595 nextToken?: NextToken;
596 }
597 export type DescribeQueriesMaxResults = number;
598 export interface DescribeQueriesRequest {
599 /**
600 * Limits the returned queries to only those for the specified log group.
601 */
602 logGroupName?: LogGroupName;
603 /**
604 * Limits the returned queries to only those that have the specified status. Valid values are Cancelled, Complete, Failed, Running, and Scheduled.
605 */
606 status?: QueryStatus;
607 /**
608 * Limits the number of returned queries to the specified number.
609 */
610 maxResults?: DescribeQueriesMaxResults;
611 nextToken?: NextToken;
612 }
613 export interface DescribeQueriesResponse {
614 /**
615 * The list of queries that match the request.
616 */
617 queries?: QueryInfoList;
618 nextToken?: NextToken;
619 }
620 export interface DescribeResourcePoliciesRequest {
621 nextToken?: NextToken;
622 /**
623 * The maximum number of resource policies to be displayed with one call of this API.
624 */
625 limit?: DescribeLimit;
626 }
627 export interface DescribeResourcePoliciesResponse {
628 /**
629 * The resource policies that exist in this account.
630 */
631 resourcePolicies?: ResourcePolicies;
632 nextToken?: NextToken;
633 }
634 export interface DescribeSubscriptionFiltersRequest {
635 /**
636 * The name of the log group.
637 */
638 logGroupName: LogGroupName;
639 /**
640 * The prefix to match. If you don't specify a value, no prefix filter is applied.
641 */
642 filterNamePrefix?: FilterName;
643 /**
644 * The token for the next set of items to return. (You received this token from a previous call.)
645 */
646 nextToken?: NextToken;
647 /**
648 * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
649 */
650 limit?: DescribeLimit;
651 }
652 export interface DescribeSubscriptionFiltersResponse {
653 /**
654 * The subscription filters.
655 */
656 subscriptionFilters?: SubscriptionFilters;
657 nextToken?: NextToken;
658 }
659 export interface Destination {
660 /**
661 * The name of the destination.
662 */
663 destinationName?: DestinationName;
664 /**
665 * The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
666 */
667 targetArn?: TargetArn;
668 /**
669 * A role for impersonation, used when delivering log events to the target.
670 */
671 roleArn?: RoleArn;
672 /**
673 * An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
674 */
675 accessPolicy?: AccessPolicy;
676 /**
677 * The ARN of this destination.
678 */
679 arn?: Arn;
680 /**
681 * The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
682 */
683 creationTime?: Timestamp;
684 }
685 export type DestinationArn = string;
686 export type DestinationName = string;
687 export type Destinations = Destination[];
688 export interface DisassociateKmsKeyRequest {
689 /**
690 * The name of the log group.
691 */
692 logGroupName: LogGroupName;
693 }
694 export type Distribution = "Random"|"ByLogStream"|string;
695 export type EventId = string;
696 export type EventMessage = string;
697 export type EventNumber = number;
698 export type EventsLimit = number;
699 export type ExportDestinationBucket = string;
700 export type ExportDestinationPrefix = string;
701 export interface ExportTask {
702 /**
703 * The ID of the export task.
704 */
705 taskId?: ExportTaskId;
706 /**
707 * The name of the export task.
708 */
709 taskName?: ExportTaskName;
710 /**
711 * The name of the log group from which logs data was exported.
712 */
713 logGroupName?: LogGroupName;
714 /**
715 * The start time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not exported.
716 */
717 from?: Timestamp;
718 /**
719 * The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.
720 */
721 to?: Timestamp;
722 /**
723 * The name of Amazon S3 bucket to which the log data was exported.
724 */
725 destination?: ExportDestinationBucket;
726 /**
727 * The prefix that was used as the start of Amazon S3 key for every object exported.
728 */
729 destinationPrefix?: ExportDestinationPrefix;
730 /**
731 * The status of the export task.
732 */
733 status?: ExportTaskStatus;
734 /**
735 * Execution info about the export task.
736 */
737 executionInfo?: ExportTaskExecutionInfo;
738 }
739 export interface ExportTaskExecutionInfo {
740 /**
741 * The creation time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
742 */
743 creationTime?: Timestamp;
744 /**
745 * The completion time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
746 */
747 completionTime?: Timestamp;
748 }
749 export type ExportTaskId = string;
750 export type ExportTaskName = string;
751 export interface ExportTaskStatus {
752 /**
753 * The status code of the export task.
754 */
755 code?: ExportTaskStatusCode;
756 /**
757 * The status message related to the status code.
758 */
759 message?: ExportTaskStatusMessage;
760 }
761 export type ExportTaskStatusCode = "CANCELLED"|"COMPLETED"|"FAILED"|"PENDING"|"PENDING_CANCEL"|"RUNNING"|string;
762 export type ExportTaskStatusMessage = string;
763 export type ExportTasks = ExportTask[];
764 export type ExtractedValues = {[key: string]: Value};
765 export type Field = string;
766 export type FilterCount = number;
767 export interface FilterLogEventsRequest {
768 /**
769 * The name of the log group to search.
770 */
771 logGroupName: LogGroupName;
772 /**
773 * Filters the results to only logs from the log streams in this list. If you specify a value for both logStreamNamePrefix and logStreamNames, the action returns an InvalidParameterException error.
774 */
775 logStreamNames?: InputLogStreamNames;
776 /**
777 * Filters the results to include only events from log streams that have names starting with this prefix. If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action returns an InvalidParameterException error.
778 */
779 logStreamNamePrefix?: LogStreamName;
780 /**
781 * The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not returned.
782 */
783 startTime?: Timestamp;
784 /**
785 * The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not returned.
786 */
787 endTime?: Timestamp;
788 /**
789 * The filter pattern to use. For more information, see Filter and Pattern Syntax. If not provided, all the events are matched.
790 */
791 filterPattern?: FilterPattern;
792 /**
793 * The token for the next set of events to return. (You received this token from a previous call.)
794 */
795 nextToken?: NextToken;
796 /**
797 * The maximum number of events to return. The default is 10,000 events.
798 */
799 limit?: EventsLimit;
800 /**
801 * If the value is true, the operation makes a best effort to provide responses that contain events from multiple log streams within the log group, interleaved in a single response. If the value is false, all the matched log events in the first log stream are searched first, then those in the next log stream, and so on. The default is false. IMPORTANT: Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.
802 */
803 interleaved?: Interleaved;
804 }
805 export interface FilterLogEventsResponse {
806 /**
807 * The matched events.
808 */
809 events?: FilteredLogEvents;
810 /**
811 * Indicates which log streams have been searched and whether each has been searched completely.
812 */
813 searchedLogStreams?: SearchedLogStreams;
814 /**
815 * The token to use when requesting the next set of items. The token expires after 24 hours.
816 */
817 nextToken?: NextToken;
818 }
819 export type FilterName = string;
820 export type FilterPattern = string;
821 export interface FilteredLogEvent {
822 /**
823 * The name of the log stream to which this event belongs.
824 */
825 logStreamName?: LogStreamName;
826 /**
827 * The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
828 */
829 timestamp?: Timestamp;
830 /**
831 * The data contained in the log event.
832 */
833 message?: EventMessage;
834 /**
835 * The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
836 */
837 ingestionTime?: Timestamp;
838 /**
839 * The ID of the event.
840 */
841 eventId?: EventId;
842 }
843 export type FilteredLogEvents = FilteredLogEvent[];
844 export interface GetLogEventsRequest {
845 /**
846 * The name of the log group.
847 */
848 logGroupName: LogGroupName;
849 /**
850 * The name of the log stream.
851 */
852 logStreamName: LogStreamName;
853 /**
854 * The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to this time or later than this time are included. Events with a timestamp earlier than this time are not included.
855 */
856 startTime?: Timestamp;
857 /**
858 * The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to or later than this time are not included.
859 */
860 endTime?: Timestamp;
861 /**
862 * The token for the next set of items to return. (You received this token from a previous call.)
863 */
864 nextToken?: NextToken;
865 /**
866 * The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1 MB, up to 10,000 log events.
867 */
868 limit?: EventsLimit;
869 /**
870 * If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false. If you are using nextToken in this operation, you must specify true for startFromHead.
871 */
872 startFromHead?: StartFromHead;
873 }
874 export interface GetLogEventsResponse {
875 /**
876 * The events.
877 */
878 events?: OutputLogEvents;
879 /**
880 * The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it will return the same token you passed in.
881 */
882 nextForwardToken?: NextToken;
883 /**
884 * The token for the next set of items in the backward direction. The token expires after 24 hours. This token will never be null. If you have reached the end of the stream, it will return the same token you passed in.
885 */
886 nextBackwardToken?: NextToken;
887 }
888 export interface GetLogGroupFieldsRequest {
889 /**
890 * The name of the log group to search.
891 */
892 logGroupName: LogGroupName;
893 /**
894 * The time to set as the center of the query. If you specify time, the 8 minutes before and 8 minutes after this time are searched. If you omit time, the past 15 minutes are queried. The time value is specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
895 */
896 time?: Timestamp;
897 }
898 export interface GetLogGroupFieldsResponse {
899 /**
900 * The array of fields found in the query. Each object in the array contains the name of the field, along with the percentage of time it appeared in the log events that were queried.
901 */
902 logGroupFields?: LogGroupFieldList;
903 }
904 export interface GetLogRecordRequest {
905 /**
906 * The pointer corresponding to the log event record you want to retrieve. You get this from the response of a GetQueryResults operation. In that response, the value of the @ptr field for a log event is the value to use as logRecordPointer to retrieve that complete log event record.
907 */
908 logRecordPointer: LogRecordPointer;
909 }
910 export interface GetLogRecordResponse {
911 /**
912 * The requested log event, as a JSON string.
913 */
914 logRecord?: LogRecord;
915 }
916 export interface GetQueryResultsRequest {
917 /**
918 * The ID number of the query.
919 */
920 queryId: QueryId;
921 }
922 export interface GetQueryResultsResponse {
923 /**
924 * The log events that matched the query criteria during the most recent time it ran. The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.
925 */
926 results?: QueryResults;
927 /**
928 * Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the log events that were scanned.
929 */
930 statistics?: QueryStatistics;
931 /**
932 * The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown. Queries time out after 15 minutes of execution. To avoid having your queries time out, reduce the time range being searched, or partition your query into a number of queries.
933 */
934 status?: QueryStatus;
935 }
936 export interface InputLogEvent {
937 /**
938 * The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
939 */
940 timestamp: Timestamp;
941 /**
942 * The raw event message.
943 */
944 message: EventMessage;
945 }
946 export type InputLogEvents = InputLogEvent[];
947 export type InputLogStreamNames = LogStreamName[];
948 export type Interleaved = boolean;
949 export type KmsKeyId = string;
950 export interface ListTagsLogGroupRequest {
951 /**
952 * The name of the log group.
953 */
954 logGroupName: LogGroupName;
955 }
956 export interface ListTagsLogGroupResponse {
957 /**
958 * The tags for the log group.
959 */
960 tags?: Tags;
961 }
962 export type LogEventIndex = number;
963 export interface LogGroup {
964 /**
965 * The name of the log group.
966 */
967 logGroupName?: LogGroupName;
968 /**
969 * The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
970 */
971 creationTime?: Timestamp;
972 retentionInDays?: Days;
973 /**
974 * The number of metric filters.
975 */
976 metricFilterCount?: FilterCount;
977 /**
978 * The Amazon Resource Name (ARN) of the log group.
979 */
980 arn?: Arn;
981 /**
982 * The number of bytes stored.
983 */
984 storedBytes?: StoredBytes;
985 /**
986 * The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
987 */
988 kmsKeyId?: KmsKeyId;
989 }
990 export interface LogGroupField {
991 /**
992 * The name of a log field.
993 */
994 name?: Field;
995 /**
996 * The percentage of log events queried that contained the field.
997 */
998 percent?: Percentage;
999 }
1000 export type LogGroupFieldList = LogGroupField[];
1001 export type LogGroupName = string;
1002 export type LogGroupNames = LogGroupName[];
1003 export type LogGroups = LogGroup[];
1004 export type LogRecord = {[key: string]: Value};
1005 export type LogRecordPointer = string;
1006 export interface LogStream {
1007 /**
1008 * The name of the log stream.
1009 */
1010 logStreamName?: LogStreamName;
1011 /**
1012 * The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1013 */
1014 creationTime?: Timestamp;
1015 /**
1016 * The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1017 */
1018 firstEventTimestamp?: Timestamp;
1019 /**
1020 * The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The lastEventTime value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
1021 */
1022 lastEventTimestamp?: Timestamp;
1023 /**
1024 * The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1025 */
1026 lastIngestionTime?: Timestamp;
1027 /**
1028 * The sequence token.
1029 */
1030 uploadSequenceToken?: SequenceToken;
1031 /**
1032 * The Amazon Resource Name (ARN) of the log stream.
1033 */
1034 arn?: Arn;
1035 /**
1036 * The number of bytes stored. IMPORTANT: Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.
1037 */
1038 storedBytes?: StoredBytes;
1039 }
1040 export type LogStreamName = string;
1041 export type LogStreamSearchedCompletely = boolean;
1042 export type LogStreams = LogStream[];
1043 export interface MetricFilter {
1044 /**
1045 * The name of the metric filter.
1046 */
1047 filterName?: FilterName;
1048 filterPattern?: FilterPattern;
1049 /**
1050 * The metric transformations.
1051 */
1052 metricTransformations?: MetricTransformations;
1053 /**
1054 * The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1055 */
1056 creationTime?: Timestamp;
1057 /**
1058 * The name of the log group.
1059 */
1060 logGroupName?: LogGroupName;
1061 }
1062 export interface MetricFilterMatchRecord {
1063 /**
1064 * The event number.
1065 */
1066 eventNumber?: EventNumber;
1067 /**
1068 * The raw event data.
1069 */
1070 eventMessage?: EventMessage;
1071 /**
1072 * The values extracted from the event data by the filter.
1073 */
1074 extractedValues?: ExtractedValues;
1075 }
1076 export type MetricFilterMatches = MetricFilterMatchRecord[];
1077 export type MetricFilters = MetricFilter[];
1078 export type MetricName = string;
1079 export type MetricNamespace = string;
1080 export interface MetricTransformation {
1081 /**
1082 * The name of the CloudWatch metric.
1083 */
1084 metricName: MetricName;
1085 /**
1086 * The namespace of the CloudWatch metric.
1087 */
1088 metricNamespace: MetricNamespace;
1089 /**
1090 * The value to publish to the CloudWatch metric when a filter pattern matches a log event.
1091 */
1092 metricValue: MetricValue;
1093 /**
1094 * (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
1095 */
1096 defaultValue?: DefaultValue;
1097 }
1098 export type MetricTransformations = MetricTransformation[];
1099 export type MetricValue = string;
1100 export type NextToken = string;
1101 export type OrderBy = "LogStreamName"|"LastEventTime"|string;
1102 export interface OutputLogEvent {
1103 /**
1104 * The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1105 */
1106 timestamp?: Timestamp;
1107 /**
1108 * The data contained in the log event.
1109 */
1110 message?: EventMessage;
1111 /**
1112 * The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1113 */
1114 ingestionTime?: Timestamp;
1115 }
1116 export type OutputLogEvents = OutputLogEvent[];
1117 export type Percentage = number;
1118 export type PolicyDocument = string;
1119 export type PolicyName = string;
1120 export interface PutDestinationPolicyRequest {
1121 /**
1122 * A name for an existing destination.
1123 */
1124 destinationName: DestinationName;
1125 /**
1126 * An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.
1127 */
1128 accessPolicy: AccessPolicy;
1129 }
1130 export interface PutDestinationRequest {
1131 /**
1132 * A name for the destination.
1133 */
1134 destinationName: DestinationName;
1135 /**
1136 * The ARN of an Amazon Kinesis stream to which to deliver matching log events.
1137 */
1138 targetArn: TargetArn;
1139 /**
1140 * The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
1141 */
1142 roleArn: RoleArn;
1143 }
1144 export interface PutDestinationResponse {
1145 /**
1146 * The destination.
1147 */
1148 destination?: Destination;
1149 }
1150 export interface PutLogEventsRequest {
1151 /**
1152 * The name of the log group.
1153 */
1154 logGroupName: LogGroupName;
1155 /**
1156 * The name of the log stream.
1157 */
1158 logStreamName: LogStreamName;
1159 /**
1160 * The log events.
1161 */
1162 logEvents: InputLogEvents;
1163 /**
1164 * The sequence token obtained from the response of the previous PutLogEvents call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using DescribeLogStreams. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls may be successful, or one may be rejected.
1165 */
1166 sequenceToken?: SequenceToken;
1167 }
1168 export interface PutLogEventsResponse {
1169 /**
1170 * The next sequence token.
1171 */
1172 nextSequenceToken?: SequenceToken;
1173 /**
1174 * The rejected events.
1175 */
1176 rejectedLogEventsInfo?: RejectedLogEventsInfo;
1177 }
1178 export interface PutMetricFilterRequest {
1179 /**
1180 * The name of the log group.
1181 */
1182 logGroupName: LogGroupName;
1183 /**
1184 * A name for the metric filter.
1185 */
1186 filterName: FilterName;
1187 /**
1188 * A filter pattern for extracting metric data out of ingested log events.
1189 */
1190 filterPattern: FilterPattern;
1191 /**
1192 * A collection of information that defines how metric data gets emitted.
1193 */
1194 metricTransformations: MetricTransformations;
1195 }
1196 export interface PutResourcePolicyRequest {
1197 /**
1198 * Name of the new policy. This parameter is required.
1199 */
1200 policyName?: PolicyName;
1201 /**
1202 * Details of the new policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. This parameter is required. The following example creates a resource policy enabling the Route 53 service to put DNS query logs in to the specified log group. Replace "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream. { "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action":"logs:PutLogEvents", "Resource": "logArn" } ] }
1203 */
1204 policyDocument?: PolicyDocument;
1205 }
1206 export interface PutResourcePolicyResponse {
1207 /**
1208 * The new policy.
1209 */
1210 resourcePolicy?: ResourcePolicy;
1211 }
1212 export interface PutRetentionPolicyRequest {
1213 /**
1214 * The name of the log group.
1215 */
1216 logGroupName: LogGroupName;
1217 retentionInDays: Days;
1218 }
1219 export interface PutSubscriptionFilterRequest {
1220 /**
1221 * The name of the log group.
1222 */
1223 logGroupName: LogGroupName;
1224 /**
1225 * A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in filterName. Otherwise, the call fails because you cannot associate a second filter with a log group. To find the name of the filter currently associated with a log group, use DescribeSubscriptionFilters.
1226 */
1227 filterName: FilterName;
1228 /**
1229 * A filter pattern for subscribing to a filtered stream of log events.
1230 */
1231 filterPattern: FilterPattern;
1232 /**
1233 * The ARN of the destination to deliver matching log events to. Currently, the supported destinations are: An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery. A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery. An Amazon Kinesis Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery. An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
1234 */
1235 destinationArn: DestinationArn;
1236 /**
1237 * The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
1238 */
1239 roleArn?: RoleArn;
1240 /**
1241 * The method used to distribute log data to the destination. By default log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream.
1242 */
1243 distribution?: Distribution;
1244 }
1245 export type QueryId = string;
1246 export interface QueryInfo {
1247 /**
1248 * The unique ID number of this query.
1249 */
1250 queryId?: QueryId;
1251 /**
1252 * The query string used in this query.
1253 */
1254 queryString?: QueryString;
1255 /**
1256 * The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.
1257 */
1258 status?: QueryStatus;
1259 /**
1260 * The date and time that this query was created.
1261 */
1262 createTime?: Timestamp;
1263 /**
1264 * The name of the log group scanned by this query.
1265 */
1266 logGroupName?: LogGroupName;
1267 }
1268 export type QueryInfoList = QueryInfo[];
1269 export type QueryResults = ResultRows[];
1270 export interface QueryStatistics {
1271 /**
1272 * The number of log events that matched the query string.
1273 */
1274 recordsMatched?: StatsValue;
1275 /**
1276 * The total number of log events scanned during the query.
1277 */
1278 recordsScanned?: StatsValue;
1279 /**
1280 * The total number of bytes in the log events scanned during the query.
1281 */
1282 bytesScanned?: StatsValue;
1283 }
1284 export type QueryStatus = "Scheduled"|"Running"|"Complete"|"Failed"|"Cancelled"|string;
1285 export type QueryString = string;
1286 export interface RejectedLogEventsInfo {
1287 /**
1288 * The log events that are too new.
1289 */
1290 tooNewLogEventStartIndex?: LogEventIndex;
1291 /**
1292 * The log events that are too old.
1293 */
1294 tooOldLogEventEndIndex?: LogEventIndex;
1295 /**
1296 * The expired log events.
1297 */
1298 expiredLogEventEndIndex?: LogEventIndex;
1299 }
1300 export type ResourcePolicies = ResourcePolicy[];
1301 export interface ResourcePolicy {
1302 /**
1303 * The name of the resource policy.
1304 */
1305 policyName?: PolicyName;
1306 /**
1307 * The details of the policy.
1308 */
1309 policyDocument?: PolicyDocument;
1310 /**
1311 * Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1312 */
1313 lastUpdatedTime?: Timestamp;
1314 }
1315 export interface ResultField {
1316 /**
1317 * The log event field.
1318 */
1319 field?: Field;
1320 /**
1321 * The value of this field.
1322 */
1323 value?: Value;
1324 }
1325 export type ResultRows = ResultField[];
1326 export type RoleArn = string;
1327 export interface SearchedLogStream {
1328 /**
1329 * The name of the log stream.
1330 */
1331 logStreamName?: LogStreamName;
1332 /**
1333 * Indicates whether all the events in this log stream were searched.
1334 */
1335 searchedCompletely?: LogStreamSearchedCompletely;
1336 }
1337 export type SearchedLogStreams = SearchedLogStream[];
1338 export type SequenceToken = string;
1339 export type StartFromHead = boolean;
1340 export interface StartQueryRequest {
1341 /**
1342 * The log group on which to perform the query. A StartQuery operation must include a logGroupNames or a logGroupName parameter, but not both.
1343 */
1344 logGroupName?: LogGroupName;
1345 /**
1346 * The list of log groups to be queried. You can include up to 20 log groups. A StartQuery operation must include a logGroupNames or a logGroupName parameter, but not both.
1347 */
1348 logGroupNames?: LogGroupNames;
1349 /**
1350 * The beginning of the time range to query. The range is inclusive, so the specified start time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
1351 */
1352 startTime: Timestamp;
1353 /**
1354 * The end of the time range to query. The range is inclusive, so the specified end time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
1355 */
1356 endTime: Timestamp;
1357 /**
1358 * The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.
1359 */
1360 queryString: QueryString;
1361 /**
1362 * The maximum number of log events to return in the query. If the query string uses the fields command, only the specified fields and their values are returned.
1363 */
1364 limit?: EventsLimit;
1365 }
1366 export interface StartQueryResponse {
1367 /**
1368 * The unique ID of the query.
1369 */
1370 queryId?: QueryId;
1371 }
1372 export type StatsValue = number;
1373 export interface StopQueryRequest {
1374 /**
1375 * The ID number of the query to stop. If necessary, you can use DescribeQueries to find this ID number.
1376 */
1377 queryId: QueryId;
1378 }
1379 export interface StopQueryResponse {
1380 /**
1381 * This is true if the query was stopped by the StopQuery operation.
1382 */
1383 success?: Success;
1384 }
1385 export type StoredBytes = number;
1386 export interface SubscriptionFilter {
1387 /**
1388 * The name of the subscription filter.
1389 */
1390 filterName?: FilterName;
1391 /**
1392 * The name of the log group.
1393 */
1394 logGroupName?: LogGroupName;
1395 filterPattern?: FilterPattern;
1396 /**
1397 * The Amazon Resource Name (ARN) of the destination.
1398 */
1399 destinationArn?: DestinationArn;
1400 /**
1401 *
1402 */
1403 roleArn?: RoleArn;
1404 distribution?: Distribution;
1405 /**
1406 * The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1407 */
1408 creationTime?: Timestamp;
1409 }
1410 export type SubscriptionFilters = SubscriptionFilter[];
1411 export type Success = boolean;
1412 export type TagKey = string;
1413 export type TagList = TagKey[];
1414 export interface TagLogGroupRequest {
1415 /**
1416 * The name of the log group.
1417 */
1418 logGroupName: LogGroupName;
1419 /**
1420 * The key-value pairs to use for the tags.
1421 */
1422 tags: Tags;
1423 }
1424 export type TagValue = string;
1425 export type Tags = {[key: string]: TagValue};
1426 export type TargetArn = string;
1427 export type TestEventMessages = EventMessage[];
1428 export interface TestMetricFilterRequest {
1429 filterPattern: FilterPattern;
1430 /**
1431 * The log event messages to test.
1432 */
1433 logEventMessages: TestEventMessages;
1434 }
1435 export interface TestMetricFilterResponse {
1436 /**
1437 * The matched events.
1438 */
1439 matches?: MetricFilterMatches;
1440 }
1441 export type Timestamp = number;
1442 export type Token = string;
1443 export interface UntagLogGroupRequest {
1444 /**
1445 * The name of the log group.
1446 */
1447 logGroupName: LogGroupName;
1448 /**
1449 * The tag keys. The corresponding tags are removed from the log group.
1450 */
1451 tags: TagList;
1452 }
1453 export type Value = string;
1454 /**
1455 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1456 */
1457 export type apiVersion = "2014-03-28"|"latest"|string;
1458 export interface ClientApiVersions {
1459 /**
1460 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1461 */
1462 apiVersion?: apiVersion;
1463 }
1464 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1465 /**
1466 * Contains interfaces for use with the CloudWatchLogs client.
1467 */
1468 export import Types = CloudWatchLogs;
1469}
1470export = CloudWatchLogs;