UNPKG

78.1 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.
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.
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. If the query is in progress, partial results of that current execution are returned. Only the fields requested in the query are returned. GetQueryResults does not start a query execution. To run a query, use .
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. If the query is in progress, partial results of that current execution are returned. Only the fields requested in the query are returned. GetQueryResults does not start a query execution. To run a query, use .
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. Currently, the only supported physical resource is a Kinesis stream belonging to the same account as the destination. Through an access policy, a destination controls what is written to its Kinesis stream. 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. Currently, the only supported physical resource is a Kinesis stream belonging to the same account as the destination. Through an access policy, a destination controls what is written to its Kinesis stream. 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 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 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.
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.
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.
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.
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, and Unknown.
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 LogGroups = LogGroup[];
1003 export type LogRecord = {[key: string]: Value};
1004 export type LogRecordPointer = string;
1005 export interface LogStream {
1006 /**
1007 * The name of the log stream.
1008 */
1009 logStreamName?: LogStreamName;
1010 /**
1011 * The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1012 */
1013 creationTime?: Timestamp;
1014 /**
1015 * The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1016 */
1017 firstEventTimestamp?: Timestamp;
1018 /**
1019 * 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.
1020 */
1021 lastEventTimestamp?: Timestamp;
1022 /**
1023 * The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1024 */
1025 lastIngestionTime?: Timestamp;
1026 /**
1027 * The sequence token.
1028 */
1029 uploadSequenceToken?: SequenceToken;
1030 /**
1031 * The Amazon Resource Name (ARN) of the log stream.
1032 */
1033 arn?: Arn;
1034 /**
1035 * The number of bytes stored.
1036 */
1037 storedBytes?: StoredBytes;
1038 }
1039 export type LogStreamName = string;
1040 export type LogStreamSearchedCompletely = boolean;
1041 export type LogStreams = LogStream[];
1042 export interface MetricFilter {
1043 /**
1044 * The name of the metric filter.
1045 */
1046 filterName?: FilterName;
1047 filterPattern?: FilterPattern;
1048 /**
1049 * The metric transformations.
1050 */
1051 metricTransformations?: MetricTransformations;
1052 /**
1053 * The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1054 */
1055 creationTime?: Timestamp;
1056 /**
1057 * The name of the log group.
1058 */
1059 logGroupName?: LogGroupName;
1060 }
1061 export interface MetricFilterMatchRecord {
1062 /**
1063 * The event number.
1064 */
1065 eventNumber?: EventNumber;
1066 /**
1067 * The raw event data.
1068 */
1069 eventMessage?: EventMessage;
1070 /**
1071 * The values extracted from the event data by the filter.
1072 */
1073 extractedValues?: ExtractedValues;
1074 }
1075 export type MetricFilterMatches = MetricFilterMatchRecord[];
1076 export type MetricFilters = MetricFilter[];
1077 export type MetricName = string;
1078 export type MetricNamespace = string;
1079 export interface MetricTransformation {
1080 /**
1081 * The name of the CloudWatch metric.
1082 */
1083 metricName: MetricName;
1084 /**
1085 * The namespace of the CloudWatch metric.
1086 */
1087 metricNamespace: MetricNamespace;
1088 /**
1089 * The value to publish to the CloudWatch metric when a filter pattern matches a log event.
1090 */
1091 metricValue: MetricValue;
1092 /**
1093 * (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
1094 */
1095 defaultValue?: DefaultValue;
1096 }
1097 export type MetricTransformations = MetricTransformation[];
1098 export type MetricValue = string;
1099 export type NextToken = string;
1100 export type OrderBy = "LogStreamName"|"LastEventTime"|string;
1101 export interface OutputLogEvent {
1102 /**
1103 * The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1104 */
1105 timestamp?: Timestamp;
1106 /**
1107 * The data contained in the log event.
1108 */
1109 message?: EventMessage;
1110 /**
1111 * The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1112 */
1113 ingestionTime?: Timestamp;
1114 }
1115 export type OutputLogEvents = OutputLogEvent[];
1116 export type Percentage = number;
1117 export type PolicyDocument = string;
1118 export type PolicyName = string;
1119 export interface PutDestinationPolicyRequest {
1120 /**
1121 * A name for an existing destination.
1122 */
1123 destinationName: DestinationName;
1124 /**
1125 * An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.
1126 */
1127 accessPolicy: AccessPolicy;
1128 }
1129 export interface PutDestinationRequest {
1130 /**
1131 * A name for the destination.
1132 */
1133 destinationName: DestinationName;
1134 /**
1135 * The ARN of an Amazon Kinesis stream to which to deliver matching log events.
1136 */
1137 targetArn: TargetArn;
1138 /**
1139 * The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.
1140 */
1141 roleArn: RoleArn;
1142 }
1143 export interface PutDestinationResponse {
1144 /**
1145 * The destination.
1146 */
1147 destination?: Destination;
1148 }
1149 export interface PutLogEventsRequest {
1150 /**
1151 * The name of the log group.
1152 */
1153 logGroupName: LogGroupName;
1154 /**
1155 * The name of the log stream.
1156 */
1157 logStreamName: LogStreamName;
1158 /**
1159 * The log events.
1160 */
1161 logEvents: InputLogEvents;
1162 /**
1163 * 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.
1164 */
1165 sequenceToken?: SequenceToken;
1166 }
1167 export interface PutLogEventsResponse {
1168 /**
1169 * The next sequence token.
1170 */
1171 nextSequenceToken?: SequenceToken;
1172 /**
1173 * The rejected events.
1174 */
1175 rejectedLogEventsInfo?: RejectedLogEventsInfo;
1176 }
1177 export interface PutMetricFilterRequest {
1178 /**
1179 * The name of the log group.
1180 */
1181 logGroupName: LogGroupName;
1182 /**
1183 * A name for the metric filter.
1184 */
1185 filterName: FilterName;
1186 /**
1187 * A filter pattern for extracting metric data out of ingested log events.
1188 */
1189 filterPattern: FilterPattern;
1190 /**
1191 * A collection of information that defines how metric data gets emitted.
1192 */
1193 metricTransformations: MetricTransformations;
1194 }
1195 export interface PutResourcePolicyRequest {
1196 /**
1197 * Name of the new policy. This parameter is required.
1198 */
1199 policyName?: PolicyName;
1200 /**
1201 * 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. 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" } ] }
1202 */
1203 policyDocument?: PolicyDocument;
1204 }
1205 export interface PutResourcePolicyResponse {
1206 /**
1207 * The new policy.
1208 */
1209 resourcePolicy?: ResourcePolicy;
1210 }
1211 export interface PutRetentionPolicyRequest {
1212 /**
1213 * The name of the log group.
1214 */
1215 logGroupName: LogGroupName;
1216 retentionInDays: Days;
1217 }
1218 export interface PutSubscriptionFilterRequest {
1219 /**
1220 * The name of the log group.
1221 */
1222 logGroupName: LogGroupName;
1223 /**
1224 * 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.
1225 */
1226 filterName: FilterName;
1227 /**
1228 * A filter pattern for subscribing to a filtered stream of log events.
1229 */
1230 filterPattern: FilterPattern;
1231 /**
1232 * 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.
1233 */
1234 destinationArn: DestinationArn;
1235 /**
1236 * 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.
1237 */
1238 roleArn?: RoleArn;
1239 /**
1240 * 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.
1241 */
1242 distribution?: Distribution;
1243 }
1244 export type QueryId = string;
1245 export interface QueryInfo {
1246 /**
1247 * The unique ID number of this query.
1248 */
1249 queryId?: QueryId;
1250 /**
1251 * The query string used in this query.
1252 */
1253 queryString?: QueryString;
1254 /**
1255 * The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.
1256 */
1257 status?: QueryStatus;
1258 /**
1259 * The date and time that this query was created.
1260 */
1261 createTime?: Timestamp;
1262 /**
1263 * The name of the log group scanned by this query.
1264 */
1265 logGroupName?: LogGroupName;
1266 }
1267 export type QueryInfoList = QueryInfo[];
1268 export type QueryResults = ResultRows[];
1269 export interface QueryStatistics {
1270 /**
1271 * The number of log events that matched the query string.
1272 */
1273 recordsMatched?: StatsValue;
1274 /**
1275 * The total number of log events scanned during the query.
1276 */
1277 recordsScanned?: StatsValue;
1278 /**
1279 * The total number of bytes in the log events scanned during the query.
1280 */
1281 bytesScanned?: StatsValue;
1282 }
1283 export type QueryStatus = "Scheduled"|"Running"|"Complete"|"Failed"|"Cancelled"|string;
1284 export type QueryString = string;
1285 export interface RejectedLogEventsInfo {
1286 /**
1287 * The log events that are too new.
1288 */
1289 tooNewLogEventStartIndex?: LogEventIndex;
1290 /**
1291 * The log events that are too old.
1292 */
1293 tooOldLogEventEndIndex?: LogEventIndex;
1294 /**
1295 * The expired log events.
1296 */
1297 expiredLogEventEndIndex?: LogEventIndex;
1298 }
1299 export type ResourcePolicies = ResourcePolicy[];
1300 export interface ResourcePolicy {
1301 /**
1302 * The name of the resource policy.
1303 */
1304 policyName?: PolicyName;
1305 /**
1306 * The details of the policy.
1307 */
1308 policyDocument?: PolicyDocument;
1309 /**
1310 * Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1311 */
1312 lastUpdatedTime?: Timestamp;
1313 }
1314 export interface ResultField {
1315 /**
1316 * The log event field.
1317 */
1318 field?: Field;
1319 /**
1320 * The value of this field.
1321 */
1322 value?: Value;
1323 }
1324 export type ResultRows = ResultField[];
1325 export type RoleArn = string;
1326 export interface SearchedLogStream {
1327 /**
1328 * The name of the log stream.
1329 */
1330 logStreamName?: LogStreamName;
1331 /**
1332 * Indicates whether all the events in this log stream were searched.
1333 */
1334 searchedCompletely?: LogStreamSearchedCompletely;
1335 }
1336 export type SearchedLogStreams = SearchedLogStream[];
1337 export type SequenceToken = string;
1338 export type StartFromHead = boolean;
1339 export interface StartQueryRequest {
1340 /**
1341 * The log group on which to perform the query.
1342 */
1343 logGroupName: LogGroupName;
1344 /**
1345 * 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.
1346 */
1347 startTime: Timestamp;
1348 /**
1349 * 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.
1350 */
1351 endTime: Timestamp;
1352 /**
1353 * The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.
1354 */
1355 queryString: QueryString;
1356 /**
1357 * 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.
1358 */
1359 limit?: EventsLimit;
1360 }
1361 export interface StartQueryResponse {
1362 /**
1363 * The unique ID of the query.
1364 */
1365 queryId?: QueryId;
1366 }
1367 export type StatsValue = number;
1368 export interface StopQueryRequest {
1369 /**
1370 * The ID number of the query to stop. If necessary, you can use DescribeQueries to find this ID number.
1371 */
1372 queryId: QueryId;
1373 }
1374 export interface StopQueryResponse {
1375 /**
1376 * This is true if the query was stopped by the StopQuery operation.
1377 */
1378 success?: Success;
1379 }
1380 export type StoredBytes = number;
1381 export interface SubscriptionFilter {
1382 /**
1383 * The name of the subscription filter.
1384 */
1385 filterName?: FilterName;
1386 /**
1387 * The name of the log group.
1388 */
1389 logGroupName?: LogGroupName;
1390 filterPattern?: FilterPattern;
1391 /**
1392 * The Amazon Resource Name (ARN) of the destination.
1393 */
1394 destinationArn?: DestinationArn;
1395 /**
1396 *
1397 */
1398 roleArn?: RoleArn;
1399 distribution?: Distribution;
1400 /**
1401 * The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1402 */
1403 creationTime?: Timestamp;
1404 }
1405 export type SubscriptionFilters = SubscriptionFilter[];
1406 export type Success = boolean;
1407 export type TagKey = string;
1408 export type TagList = TagKey[];
1409 export interface TagLogGroupRequest {
1410 /**
1411 * The name of the log group.
1412 */
1413 logGroupName: LogGroupName;
1414 /**
1415 * The key-value pairs to use for the tags.
1416 */
1417 tags: Tags;
1418 }
1419 export type TagValue = string;
1420 export type Tags = {[key: string]: TagValue};
1421 export type TargetArn = string;
1422 export type TestEventMessages = EventMessage[];
1423 export interface TestMetricFilterRequest {
1424 filterPattern: FilterPattern;
1425 /**
1426 * The log event messages to test.
1427 */
1428 logEventMessages: TestEventMessages;
1429 }
1430 export interface TestMetricFilterResponse {
1431 /**
1432 * The matched events.
1433 */
1434 matches?: MetricFilterMatches;
1435 }
1436 export type Timestamp = number;
1437 export type Token = string;
1438 export interface UntagLogGroupRequest {
1439 /**
1440 * The name of the log group.
1441 */
1442 logGroupName: LogGroupName;
1443 /**
1444 * The tag keys. The corresponding tags are removed from the log group.
1445 */
1446 tags: TagList;
1447 }
1448 export type Value = string;
1449 /**
1450 * 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.
1451 */
1452 export type apiVersion = "2014-03-28"|"latest"|string;
1453 export interface ClientApiVersions {
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 apiVersion?: apiVersion;
1458 }
1459 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1460 /**
1461 * Contains interfaces for use with the CloudWatchLogs client.
1462 */
1463 export import Types = CloudWatchLogs;
1464}
1465export = CloudWatchLogs;