1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2014-03-28", 5 "endpointPrefix":"logs", 6 "jsonVersion":"1.1", 7 "protocol":"json", 8 "serviceFullName":"Amazon CloudWatch Logs", 9 "serviceId":"CloudWatch Logs", 10 "signatureVersion":"v4", 11 "targetPrefix":"Logs_20140328", 12 "uid":"logs-2014-03-28" 13 }, 14 "operations":{ 15 "AssociateKmsKey":{ 16 "name":"AssociateKmsKey", 17 "http":{ 18 "method":"POST", 19 "requestUri":"/" 20 }, 21 "input":{"shape":"AssociateKmsKeyRequest"}, 22 "errors":[ 23 {"shape":"InvalidParameterException"}, 24 {"shape":"ResourceNotFoundException"}, 25 {"shape":"OperationAbortedException"}, 26 {"shape":"ServiceUnavailableException"} 27 ], 28 "documentation":"<p>Associates the specified KMS key with either one log group in the account, or with all stored CloudWatch Logs query insights results in the account.</p> <p>When you use <code>AssociateKmsKey</code>, you specify either the <code>logGroupName</code> parameter or the <code>resourceIdentifier</code> parameter. You can't specify both of those parameters in the same operation.</p> <ul> <li> <p>Specify the <code>logGroupName</code> parameter to cause all log events stored in the log group to be encrypted with that key. Only the log events ingested after the key is associated are encrypted with that key.</p> <p>Associating a KMS key with a log group overrides any existing associations between the log group and a KMS key. After a KMS key is associated with a log group, all newly ingested data for the log group is encrypted using the KMS key. This association is stored as long as the data encrypted with the KMS key is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt this data whenever it is requested.</p> <p>Associating a key with a log group does not cause the results of queries of that log group to be encrypted with that key. To have query results encrypted with a KMS key, you must use an <code>AssociateKmsKey</code> operation with the <code>resourceIdentifier</code> parameter that specifies a <code>query-result</code> resource. </p> </li> <li> <p>Specify the <code>resourceIdentifier</code> parameter with a <code>query-result</code> resource, to use that key to encrypt the stored results of all future <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html\">StartQuery</a> operations in the account. The response from a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html\">GetQueryResults</a> operation will still return the query results in plain text.</p> <p>Even if you have not associated a key with your query results, the query results are encrypted when stored, using the default CloudWatch Logs method.</p> <p>If you run a query from a monitoring account that queries logs in a source account, the query results key from the monitoring account, if any, is used.</p> </li> </ul> <important> <p>If you delete the key that is used to encrypt log events or log group query results, then all the associated stored log events or query results that were encrypted with that key will be unencryptable and unusable.</p> </important> <note> <p>CloudWatch Logs supports only symmetric KMS keys. Do not use an associate an asymmetric KMS key with your log group or query results. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html\">Using Symmetric and Asymmetric Keys</a>.</p> </note> <p>It can take up to 5 minutes for this operation to take effect.</p> <p>If you attempt to associate a KMS key with a log group but the KMS key does not exist or the KMS key is disabled, you receive an <code>InvalidParameterException</code> error. </p>" 29 }, 30 "CancelExportTask":{ 31 "name":"CancelExportTask", 32 "http":{ 33 "method":"POST", 34 "requestUri":"/" 35 }, 36 "input":{"shape":"CancelExportTaskRequest"}, 37 "errors":[ 38 {"shape":"InvalidParameterException"}, 39 {"shape":"ResourceNotFoundException"}, 40 {"shape":"InvalidOperationException"}, 41 {"shape":"ServiceUnavailableException"} 42 ], 43 "documentation":"<p>Cancels the specified export task.</p> <p>The task must be in the <code>PENDING</code> or <code>RUNNING</code> state.</p>" 44 }, 45 "CreateDelivery":{ 46 "name":"CreateDelivery", 47 "http":{ 48 "method":"POST", 49 "requestUri":"/" 50 }, 51 "input":{"shape":"CreateDeliveryRequest"}, 52 "output":{"shape":"CreateDeliveryResponse"}, 53 "errors":[ 54 {"shape":"ServiceUnavailableException"}, 55 {"shape":"ConflictException"}, 56 {"shape":"ResourceNotFoundException"}, 57 {"shape":"ValidationException"}, 58 {"shape":"AccessDeniedException"}, 59 {"shape":"ServiceQuotaExceededException"}, 60 {"shape":"ThrottlingException"} 61 ], 62 "documentation":"<p>Creates a <i>delivery</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical <i>delivery destination</i> that you have already created.</p> <p>Only some Amazon Web Services services support being configured as a delivery source using this operation. These services are listed as <b>Supported [V2 Permissions]</b> in the table at <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enabling logging from Amazon Web Services services.</a> </p> <p>A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.</p> <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p> <ul> <li> <p>Create a delivery source, which is a logical object that represents the resource that is actually sending the logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html\">PutDeliverySource</a>.</p> </li> <li> <p>Create a <i>delivery destination</i>, which is a logical object that represents the actual delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html\">PutDeliveryDestination</a>.</p> </li> <li> <p>If you are delivering logs cross-account, you must use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html\">PutDeliveryDestinationPolicy</a> in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination. </p> </li> <li> <p>Use <code>CreateDelivery</code> to create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination. </p> </li> </ul> <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p> <p>You can't update an existing delivery. You can only create and delete deliveries.</p>" 63 }, 64 "CreateExportTask":{ 65 "name":"CreateExportTask", 66 "http":{ 67 "method":"POST", 68 "requestUri":"/" 69 }, 70 "input":{"shape":"CreateExportTaskRequest"}, 71 "output":{"shape":"CreateExportTaskResponse"}, 72 "errors":[ 73 {"shape":"InvalidParameterException"}, 74 {"shape":"LimitExceededException"}, 75 {"shape":"OperationAbortedException"}, 76 {"shape":"ServiceUnavailableException"}, 77 {"shape":"ResourceNotFoundException"}, 78 {"shape":"ResourceAlreadyExistsException"} 79 ], 80 "documentation":"<p>Creates an export task so that you can efficiently export data from a log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code> operation, you must use credentials that have permission to write to the S3 bucket that you specify as the destination.</p> <p>Exporting log data to S3 buckets that are encrypted by KMS is supported. Exporting log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is also supported.</p> <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. </p> <p>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 <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html\">DescribeExportTasks</a> to get the status of the export task. Each account can only have one active (<code>RUNNING</code> or <code>PENDING</code>) export task at a time. To cancel an export task, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CancelExportTask.html\">CancelExportTask</a>.</p> <p>You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate log data for each export task, specify a prefix to be used as the Amazon S3 key prefix for all exported objects.</p> <note> <p>Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the exported log field data by using Linux utilities.</p> </note>" 81 }, 82 "CreateLogAnomalyDetector":{ 83 "name":"CreateLogAnomalyDetector", 84 "http":{ 85 "method":"POST", 86 "requestUri":"/" 87 }, 88 "input":{"shape":"CreateLogAnomalyDetectorRequest"}, 89 "output":{"shape":"CreateLogAnomalyDetectorResponse"}, 90 "errors":[ 91 {"shape":"InvalidParameterException"}, 92 {"shape":"ResourceNotFoundException"}, 93 {"shape":"ServiceUnavailableException"}, 94 {"shape":"OperationAbortedException"}, 95 {"shape":"LimitExceededException"} 96 ], 97 "documentation":"<p>Creates an <i>anomaly detector</i> that regularly scans one or more log groups and look for patterns and anomalies in the logs.</p> <p>An anomaly detector can help surface issues by automatically discovering anomalies in your log event traffic. An anomaly detector uses machine learning algorithms to scan log events and find <i>patterns</i>. A pattern is a shared text structure that recurs among your log fields. Patterns provide a useful tool for analyzing large sets of logs because a large number of log events can often be compressed into a few patterns.</p> <p>The anomaly detector uses pattern recognition to find <code>anomalies</code>, which are unusual log events. It uses the <code>evaluationFrequency</code> to compare current log events and patterns with trained baselines. </p> <p>Fields within a pattern are called <i>tokens</i>. Fields that vary within a pattern, such as a request ID or timestamp, are referred to as <i>dynamic tokens</i> and represented by <code><*></code>. </p> <p>The following is an example of a pattern:</p> <p> <code>[INFO] Request time: <*> ms</code> </p> <p>This pattern represents log events like <code>[INFO] Request time: 327 ms</code> and other similar log events that differ only by the number, in this csse 327. When the pattern is displayed, the different numbers are replaced by <code><*></code> </p> <note> <p>Any parts of log events that are masked as sensitive data are not scanned for anomalies. For more information about masking sensitive data, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html\">Help protect sensitive log data with masking</a>. </p> </note>" 98 }, 99 "CreateLogGroup":{ 100 "name":"CreateLogGroup", 101 "http":{ 102 "method":"POST", 103 "requestUri":"/" 104 }, 105 "input":{"shape":"CreateLogGroupRequest"}, 106 "errors":[ 107 {"shape":"InvalidParameterException"}, 108 {"shape":"ResourceAlreadyExistsException"}, 109 {"shape":"LimitExceededException"}, 110 {"shape":"OperationAbortedException"}, 111 {"shape":"ServiceUnavailableException"} 112 ], 113 "documentation":"<p>Creates a log group with the specified name. You can create up to 1,000,000 log groups per Region per account.</p> <p>You must use the following guidelines when naming a log group:</p> <ul> <li> <p>Log group names must be unique within a Region for an Amazon Web Services account.</p> </li> <li> <p>Log group names can be between 1 and 512 characters long.</p> </li> <li> <p>Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), '.' (period), and '#' (number sign)</p> </li> <li> <p>Log group names can't start with the string <code>aws/</code> </p> </li> </ul> <p>When you create a log group, by default the log events in the log group do not expire. To set a retention policy so that events expire and are deleted after a specified time, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html\">PutRetentionPolicy</a>.</p> <p>If you associate an KMS key with the log group, ingested data is encrypted using the KMS key. This association is stored as long as the data encrypted with the KMS key is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt this data whenever it is requested.</p> <p>If you attempt to associate a KMS key with the log group but the KMS key does not exist or the KMS key is disabled, you receive an <code>InvalidParameterException</code> error. </p> <important> <p>CloudWatch Logs supports only symmetric KMS keys. Do not associate an asymmetric KMS key with your log group. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html\">Using Symmetric and Asymmetric Keys</a>.</p> </important>" 114 }, 115 "CreateLogStream":{ 116 "name":"CreateLogStream", 117 "http":{ 118 "method":"POST", 119 "requestUri":"/" 120 }, 121 "input":{"shape":"CreateLogStreamRequest"}, 122 "errors":[ 123 {"shape":"InvalidParameterException"}, 124 {"shape":"ResourceAlreadyExistsException"}, 125 {"shape":"ResourceNotFoundException"}, 126 {"shape":"ServiceUnavailableException"} 127 ], 128 "documentation":"<p>Creates a log stream for the specified log group. A log stream is a sequence of log events that originate from a single source, such as an application instance or a resource that is being monitored.</p> <p>There is no limit on the number of log streams that you can create for a log group. There is a limit of 50 TPS on <code>CreateLogStream</code> operations, after which transactions are throttled.</p> <p>You must use the following guidelines when naming a log stream:</p> <ul> <li> <p>Log stream names must be unique within the log group.</p> </li> <li> <p>Log stream names can be between 1 and 512 characters long.</p> </li> <li> <p>Don't use ':' (colon) or '*' (asterisk) characters.</p> </li> </ul>" 129 }, 130 "DeleteAccountPolicy":{ 131 "name":"DeleteAccountPolicy", 132 "http":{ 133 "method":"POST", 134 "requestUri":"/" 135 }, 136 "input":{"shape":"DeleteAccountPolicyRequest"}, 137 "errors":[ 138 {"shape":"InvalidParameterException"}, 139 {"shape":"ResourceNotFoundException"}, 140 {"shape":"ServiceUnavailableException"}, 141 {"shape":"OperationAbortedException"} 142 ], 143 "documentation":"<p>Deletes a CloudWatch Logs account policy. This stops the policy from applying to all log groups or a subset of log groups in the account. Log-group level policies will still be in effect.</p> <p>To use this operation, you must be signed on with the correct permissions depending on the type of policy that you are deleting.</p> <ul> <li> <p>To delete a data protection policy, you must have the <code>logs:DeleteDataProtectionPolicy</code> and <code>logs:DeleteAccountPolicy</code> permissions.</p> </li> <li> <p>To delete a subscription filter policy, you must have the <code>logs:DeleteSubscriptionFilter</code> and <code>logs:DeleteAccountPolicy</code> permissions.</p> </li> </ul>" 144 }, 145 "DeleteDataProtectionPolicy":{ 146 "name":"DeleteDataProtectionPolicy", 147 "http":{ 148 "method":"POST", 149 "requestUri":"/" 150 }, 151 "input":{"shape":"DeleteDataProtectionPolicyRequest"}, 152 "errors":[ 153 {"shape":"InvalidParameterException"}, 154 {"shape":"OperationAbortedException"}, 155 {"shape":"ResourceNotFoundException"}, 156 {"shape":"ServiceUnavailableException"} 157 ], 158 "documentation":"<p>Deletes the data protection policy from the specified log group. </p> <p>For more information about data protection policies, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html\">PutDataProtectionPolicy</a>.</p>" 159 }, 160 "DeleteDelivery":{ 161 "name":"DeleteDelivery", 162 "http":{ 163 "method":"POST", 164 "requestUri":"/" 165 }, 166 "input":{"shape":"DeleteDeliveryRequest"}, 167 "errors":[ 168 {"shape":"ResourceNotFoundException"}, 169 {"shape":"ServiceUnavailableException"}, 170 {"shape":"ConflictException"}, 171 {"shape":"ValidationException"}, 172 {"shape":"ServiceQuotaExceededException"}, 173 {"shape":"ThrottlingException"} 174 ], 175 "documentation":"<p>Deletes s <i>delivery</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical <i>delivery destination</i>. Deleting a delivery only deletes the connection between the delivery source and delivery destination. It does not delete the delivery destination or the delivery source.</p>" 176 }, 177 "DeleteDeliveryDestination":{ 178 "name":"DeleteDeliveryDestination", 179 "http":{ 180 "method":"POST", 181 "requestUri":"/" 182 }, 183 "input":{"shape":"DeleteDeliveryDestinationRequest"}, 184 "errors":[ 185 {"shape":"ResourceNotFoundException"}, 186 {"shape":"ServiceUnavailableException"}, 187 {"shape":"ConflictException"}, 188 {"shape":"ValidationException"}, 189 {"shape":"ServiceQuotaExceededException"}, 190 {"shape":"ThrottlingException"} 191 ], 192 "documentation":"<p>Deletes a <i>delivery destination</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical <i>delivery destination</i>.</p> <p>You can't delete a delivery destination if any current deliveries are associated with it. To find whether any deliveries are associated with this delivery destination, use the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html\">DescribeDeliveries</a> operation and check the <code>deliveryDestinationArn</code> field in the results.</p>" 193 }, 194 "DeleteDeliveryDestinationPolicy":{ 195 "name":"DeleteDeliveryDestinationPolicy", 196 "http":{ 197 "method":"POST", 198 "requestUri":"/" 199 }, 200 "input":{"shape":"DeleteDeliveryDestinationPolicyRequest"}, 201 "errors":[ 202 {"shape":"ServiceUnavailableException"}, 203 {"shape":"ValidationException"}, 204 {"shape":"ResourceNotFoundException"}, 205 {"shape":"ConflictException"} 206 ], 207 "documentation":"<p>Deletes a delivery destination policy. For more information about these policies, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html\">PutDeliveryDestinationPolicy</a>.</p>" 208 }, 209 "DeleteDeliverySource":{ 210 "name":"DeleteDeliverySource", 211 "http":{ 212 "method":"POST", 213 "requestUri":"/" 214 }, 215 "input":{"shape":"DeleteDeliverySourceRequest"}, 216 "errors":[ 217 {"shape":"ResourceNotFoundException"}, 218 {"shape":"ServiceUnavailableException"}, 219 {"shape":"ConflictException"}, 220 {"shape":"ValidationException"}, 221 {"shape":"ServiceQuotaExceededException"}, 222 {"shape":"ThrottlingException"} 223 ], 224 "documentation":"<p>Deletes a <i>delivery source</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical <i>delivery destination</i>.</p> <p>You can't delete a delivery source if any current deliveries are associated with it. To find whether any deliveries are associated with this delivery source, use the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html\">DescribeDeliveries</a> operation and check the <code>deliverySourceName</code> field in the results.</p>" 225 }, 226 "DeleteDestination":{ 227 "name":"DeleteDestination", 228 "http":{ 229 "method":"POST", 230 "requestUri":"/" 231 }, 232 "input":{"shape":"DeleteDestinationRequest"}, 233 "errors":[ 234 {"shape":"InvalidParameterException"}, 235 {"shape":"ResourceNotFoundException"}, 236 {"shape":"OperationAbortedException"}, 237 {"shape":"ServiceUnavailableException"} 238 ], 239 "documentation":"<p>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.</p>" 240 }, 241 "DeleteLogAnomalyDetector":{ 242 "name":"DeleteLogAnomalyDetector", 243 "http":{ 244 "method":"POST", 245 "requestUri":"/" 246 }, 247 "input":{"shape":"DeleteLogAnomalyDetectorRequest"}, 248 "errors":[ 249 {"shape":"InvalidParameterException"}, 250 {"shape":"ResourceNotFoundException"}, 251 {"shape":"ServiceUnavailableException"}, 252 {"shape":"OperationAbortedException"} 253 ], 254 "documentation":"<p>Deletes the specified CloudWatch Logs anomaly detector.</p>" 255 }, 256 "DeleteLogGroup":{ 257 "name":"DeleteLogGroup", 258 "http":{ 259 "method":"POST", 260 "requestUri":"/" 261 }, 262 "input":{"shape":"DeleteLogGroupRequest"}, 263 "errors":[ 264 {"shape":"InvalidParameterException"}, 265 {"shape":"ResourceNotFoundException"}, 266 {"shape":"OperationAbortedException"}, 267 {"shape":"ServiceUnavailableException"} 268 ], 269 "documentation":"<p>Deletes the specified log group and permanently deletes all the archived log events associated with the log group.</p>" 270 }, 271 "DeleteLogStream":{ 272 "name":"DeleteLogStream", 273 "http":{ 274 "method":"POST", 275 "requestUri":"/" 276 }, 277 "input":{"shape":"DeleteLogStreamRequest"}, 278 "errors":[ 279 {"shape":"InvalidParameterException"}, 280 {"shape":"ResourceNotFoundException"}, 281 {"shape":"OperationAbortedException"}, 282 {"shape":"ServiceUnavailableException"} 283 ], 284 "documentation":"<p>Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.</p>" 285 }, 286 "DeleteMetricFilter":{ 287 "name":"DeleteMetricFilter", 288 "http":{ 289 "method":"POST", 290 "requestUri":"/" 291 }, 292 "input":{"shape":"DeleteMetricFilterRequest"}, 293 "errors":[ 294 {"shape":"InvalidParameterException"}, 295 {"shape":"ResourceNotFoundException"}, 296 {"shape":"OperationAbortedException"}, 297 {"shape":"ServiceUnavailableException"} 298 ], 299 "documentation":"<p>Deletes the specified metric filter.</p>" 300 }, 301 "DeleteQueryDefinition":{ 302 "name":"DeleteQueryDefinition", 303 "http":{ 304 "method":"POST", 305 "requestUri":"/" 306 }, 307 "input":{"shape":"DeleteQueryDefinitionRequest"}, 308 "output":{"shape":"DeleteQueryDefinitionResponse"}, 309 "errors":[ 310 {"shape":"InvalidParameterException"}, 311 {"shape":"ResourceNotFoundException"}, 312 {"shape":"ServiceUnavailableException"} 313 ], 314 "documentation":"<p>Deletes a saved CloudWatch Logs Insights query definition. A query definition contains details about a saved CloudWatch Logs Insights query.</p> <p>Each <code>DeleteQueryDefinition</code> operation can delete one query definition.</p> <p>You must have the <code>logs:DeleteQueryDefinition</code> permission to be able to perform this operation.</p>" 315 }, 316 "DeleteResourcePolicy":{ 317 "name":"DeleteResourcePolicy", 318 "http":{ 319 "method":"POST", 320 "requestUri":"/" 321 }, 322 "input":{"shape":"DeleteResourcePolicyRequest"}, 323 "errors":[ 324 {"shape":"InvalidParameterException"}, 325 {"shape":"ResourceNotFoundException"}, 326 {"shape":"ServiceUnavailableException"} 327 ], 328 "documentation":"<p>Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.</p>" 329 }, 330 "DeleteRetentionPolicy":{ 331 "name":"DeleteRetentionPolicy", 332 "http":{ 333 "method":"POST", 334 "requestUri":"/" 335 }, 336 "input":{"shape":"DeleteRetentionPolicyRequest"}, 337 "errors":[ 338 {"shape":"InvalidParameterException"}, 339 {"shape":"ResourceNotFoundException"}, 340 {"shape":"OperationAbortedException"}, 341 {"shape":"ServiceUnavailableException"} 342 ], 343 "documentation":"<p>Deletes the specified retention policy.</p> <p>Log events do not expire if they belong to log groups without a retention policy.</p>" 344 }, 345 "DeleteSubscriptionFilter":{ 346 "name":"DeleteSubscriptionFilter", 347 "http":{ 348 "method":"POST", 349 "requestUri":"/" 350 }, 351 "input":{"shape":"DeleteSubscriptionFilterRequest"}, 352 "errors":[ 353 {"shape":"InvalidParameterException"}, 354 {"shape":"ResourceNotFoundException"}, 355 {"shape":"OperationAbortedException"}, 356 {"shape":"ServiceUnavailableException"} 357 ], 358 "documentation":"<p>Deletes the specified subscription filter.</p>" 359 }, 360 "DescribeAccountPolicies":{ 361 "name":"DescribeAccountPolicies", 362 "http":{ 363 "method":"POST", 364 "requestUri":"/" 365 }, 366 "input":{"shape":"DescribeAccountPoliciesRequest"}, 367 "output":{"shape":"DescribeAccountPoliciesResponse"}, 368 "errors":[ 369 {"shape":"InvalidParameterException"}, 370 {"shape":"OperationAbortedException"}, 371 {"shape":"ResourceNotFoundException"}, 372 {"shape":"ServiceUnavailableException"} 373 ], 374 "documentation":"<p>Returns a list of all CloudWatch Logs account policies in the account.</p>" 375 }, 376 "DescribeDeliveries":{ 377 "name":"DescribeDeliveries", 378 "http":{ 379 "method":"POST", 380 "requestUri":"/" 381 }, 382 "input":{"shape":"DescribeDeliveriesRequest"}, 383 "output":{"shape":"DescribeDeliveriesResponse"}, 384 "errors":[ 385 {"shape":"ServiceUnavailableException"}, 386 {"shape":"ServiceQuotaExceededException"}, 387 {"shape":"ValidationException"}, 388 {"shape":"ThrottlingException"} 389 ], 390 "documentation":"<p>Retrieves a list of the deliveries that have been created in the account.</p> <p>A <i>delivery</i> is a connection between a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html\"> <i>delivery source</i> </a> and a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html\"> <i>delivery destination</i> </a>.</p> <p>A delivery source represents an Amazon Web Services resource that sends logs to an logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose. Only some Amazon Web Services services support being configured as a delivery source. These services are listed in <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enable logging from Amazon Web Services services.</a> </p>" 391 }, 392 "DescribeDeliveryDestinations":{ 393 "name":"DescribeDeliveryDestinations", 394 "http":{ 395 "method":"POST", 396 "requestUri":"/" 397 }, 398 "input":{"shape":"DescribeDeliveryDestinationsRequest"}, 399 "output":{"shape":"DescribeDeliveryDestinationsResponse"}, 400 "errors":[ 401 {"shape":"ServiceUnavailableException"}, 402 {"shape":"ServiceQuotaExceededException"}, 403 {"shape":"ValidationException"}, 404 {"shape":"ThrottlingException"} 405 ], 406 "documentation":"<p>Retrieves a list of the delivery destinations that have been created in the account.</p>" 407 }, 408 "DescribeDeliverySources":{ 409 "name":"DescribeDeliverySources", 410 "http":{ 411 "method":"POST", 412 "requestUri":"/" 413 }, 414 "input":{"shape":"DescribeDeliverySourcesRequest"}, 415 "output":{"shape":"DescribeDeliverySourcesResponse"}, 416 "errors":[ 417 {"shape":"ServiceUnavailableException"}, 418 {"shape":"ServiceQuotaExceededException"}, 419 {"shape":"ValidationException"}, 420 {"shape":"ThrottlingException"} 421 ], 422 "documentation":"<p>Retrieves a list of the delivery sources that have been created in the account.</p>" 423 }, 424 "DescribeDestinations":{ 425 "name":"DescribeDestinations", 426 "http":{ 427 "method":"POST", 428 "requestUri":"/" 429 }, 430 "input":{"shape":"DescribeDestinationsRequest"}, 431 "output":{"shape":"DescribeDestinationsResponse"}, 432 "errors":[ 433 {"shape":"InvalidParameterException"}, 434 {"shape":"ServiceUnavailableException"} 435 ], 436 "documentation":"<p>Lists all your destinations. The results are ASCII-sorted by destination name.</p>" 437 }, 438 "DescribeExportTasks":{ 439 "name":"DescribeExportTasks", 440 "http":{ 441 "method":"POST", 442 "requestUri":"/" 443 }, 444 "input":{"shape":"DescribeExportTasksRequest"}, 445 "output":{"shape":"DescribeExportTasksResponse"}, 446 "errors":[ 447 {"shape":"InvalidParameterException"}, 448 {"shape":"ServiceUnavailableException"} 449 ], 450 "documentation":"<p>Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status.</p>" 451 }, 452 "DescribeLogGroups":{ 453 "name":"DescribeLogGroups", 454 "http":{ 455 "method":"POST", 456 "requestUri":"/" 457 }, 458 "input":{"shape":"DescribeLogGroupsRequest"}, 459 "output":{"shape":"DescribeLogGroupsResponse"}, 460 "errors":[ 461 {"shape":"InvalidParameterException"}, 462 {"shape":"ServiceUnavailableException"} 463 ], 464 "documentation":"<p>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.</p> <p>CloudWatch Logs doesn’t support IAM policies that control access to the <code>DescribeLogGroups</code> action by using the <code>aws:ResourceTag/<i>key-name</i> </code> condition key. Other CloudWatch Logs actions do support the use of the <code>aws:ResourceTag/<i>key-name</i> </code> condition key to control access. For more information about using tags to control access, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html\">Controlling access to Amazon Web Services resources using tags</a>.</p> <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html\">CloudWatch cross-account observability</a>.</p>" 465 }, 466 "DescribeLogStreams":{ 467 "name":"DescribeLogStreams", 468 "http":{ 469 "method":"POST", 470 "requestUri":"/" 471 }, 472 "input":{"shape":"DescribeLogStreamsRequest"}, 473 "output":{"shape":"DescribeLogStreamsResponse"}, 474 "errors":[ 475 {"shape":"InvalidParameterException"}, 476 {"shape":"ResourceNotFoundException"}, 477 {"shape":"ServiceUnavailableException"} 478 ], 479 "documentation":"<p>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.</p> <p>You can specify the log group to search by using either <code>logGroupIdentifier</code> or <code>logGroupName</code>. You must include one of these two parameters, but you can't include both. </p> <p>This operation has a limit of five transactions per second, after which transactions are throttled.</p> <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html\">CloudWatch cross-account observability</a>.</p>" 480 }, 481 "DescribeMetricFilters":{ 482 "name":"DescribeMetricFilters", 483 "http":{ 484 "method":"POST", 485 "requestUri":"/" 486 }, 487 "input":{"shape":"DescribeMetricFiltersRequest"}, 488 "output":{"shape":"DescribeMetricFiltersResponse"}, 489 "errors":[ 490 {"shape":"InvalidParameterException"}, 491 {"shape":"ResourceNotFoundException"}, 492 {"shape":"ServiceUnavailableException"} 493 ], 494 "documentation":"<p>Lists the specified metric filters. You can list all of the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.</p>" 495 }, 496 "DescribeQueries":{ 497 "name":"DescribeQueries", 498 "http":{ 499 "method":"POST", 500 "requestUri":"/" 501 }, 502 "input":{"shape":"DescribeQueriesRequest"}, 503 "output":{"shape":"DescribeQueriesResponse"}, 504 "errors":[ 505 {"shape":"InvalidParameterException"}, 506 {"shape":"ResourceNotFoundException"}, 507 {"shape":"ServiceUnavailableException"} 508 ], 509 "documentation":"<p>Returns a list of CloudWatch Logs Insights queries that are scheduled, running, or have been run 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.</p>" 510 }, 511 "DescribeQueryDefinitions":{ 512 "name":"DescribeQueryDefinitions", 513 "http":{ 514 "method":"POST", 515 "requestUri":"/" 516 }, 517 "input":{"shape":"DescribeQueryDefinitionsRequest"}, 518 "output":{"shape":"DescribeQueryDefinitionsResponse"}, 519 "errors":[ 520 {"shape":"InvalidParameterException"}, 521 {"shape":"ServiceUnavailableException"} 522 ], 523 "documentation":"<p>This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can retrieve query definitions from the current account or from a source account that is linked to the current account.</p> <p>You can use the <code>queryDefinitionNamePrefix</code> parameter to limit the results to only the query definitions that have names that start with a certain string.</p>" 524 }, 525 "DescribeResourcePolicies":{ 526 "name":"DescribeResourcePolicies", 527 "http":{ 528 "method":"POST", 529 "requestUri":"/" 530 }, 531 "input":{"shape":"DescribeResourcePoliciesRequest"}, 532 "output":{"shape":"DescribeResourcePoliciesResponse"}, 533 "errors":[ 534 {"shape":"InvalidParameterException"}, 535 {"shape":"ServiceUnavailableException"} 536 ], 537 "documentation":"<p>Lists the resource policies in this account.</p>" 538 }, 539 "DescribeSubscriptionFilters":{ 540 "name":"DescribeSubscriptionFilters", 541 "http":{ 542 "method":"POST", 543 "requestUri":"/" 544 }, 545 "input":{"shape":"DescribeSubscriptionFiltersRequest"}, 546 "output":{"shape":"DescribeSubscriptionFiltersResponse"}, 547 "errors":[ 548 {"shape":"InvalidParameterException"}, 549 {"shape":"ResourceNotFoundException"}, 550 {"shape":"ServiceUnavailableException"} 551 ], 552 "documentation":"<p>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.</p>" 553 }, 554 "DisassociateKmsKey":{ 555 "name":"DisassociateKmsKey", 556 "http":{ 557 "method":"POST", 558 "requestUri":"/" 559 }, 560 "input":{"shape":"DisassociateKmsKeyRequest"}, 561 "errors":[ 562 {"shape":"InvalidParameterException"}, 563 {"shape":"ResourceNotFoundException"}, 564 {"shape":"OperationAbortedException"}, 565 {"shape":"ServiceUnavailableException"} 566 ], 567 "documentation":"<p>Disassociates the specified KMS key from the specified log group or from all CloudWatch Logs Insights query results in the account.</p> <p>When you use <code>DisassociateKmsKey</code>, you specify either the <code>logGroupName</code> parameter or the <code>resourceIdentifier</code> parameter. You can't specify both of those parameters in the same operation.</p> <ul> <li> <p>Specify the <code>logGroupName</code> parameter to stop using the KMS key to encrypt future log events ingested and stored in the log group. Instead, they will be encrypted with the default CloudWatch Logs method. The log events that were ingested while the key was associated with the log group are still encrypted with that key. Therefore, CloudWatch Logs will need permissions for the key whenever that data is accessed.</p> </li> <li> <p>Specify the <code>resourceIdentifier</code> parameter with the <code>query-result</code> resource to stop using the KMS key to encrypt the results of all future <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html\">StartQuery</a> operations in the account. They will instead be encrypted with the default CloudWatch Logs method. The results from queries that ran while the key was associated with the account are still encrypted with that key. Therefore, CloudWatch Logs will need permissions for the key whenever that data is accessed.</p> </li> </ul> <p>It can take up to 5 minutes for this operation to take effect.</p>" 568 }, 569 "FilterLogEvents":{ 570 "name":"FilterLogEvents", 571 "http":{ 572 "method":"POST", 573 "requestUri":"/" 574 }, 575 "input":{"shape":"FilterLogEventsRequest"}, 576 "output":{"shape":"FilterLogEventsResponse"}, 577 "errors":[ 578 {"shape":"InvalidParameterException"}, 579 {"shape":"ResourceNotFoundException"}, 580 {"shape":"ServiceUnavailableException"} 581 ], 582 "documentation":"<p>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.</p> <p>You must have the <code>logs:FilterLogEvents</code> permission to perform this operation.</p> <p>You can specify the log group to search by using either <code>logGroupIdentifier</code> or <code>logGroupName</code>. You must include one of these two parameters, but you can't include both. </p> <p>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 specified time range. If the results include a token, that means there are more log events available. You can get additional results by specifying the token in a subsequent call. This operation can return empty results while there are more log events available through the token.</p> <p>The returned log events are sorted by event timestamp, the timestamp when the event was ingested by CloudWatch Logs, and the ID of the <code>PutLogEvents</code> request.</p> <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html\">CloudWatch cross-account observability</a>.</p>" 583 }, 584 "GetDataProtectionPolicy":{ 585 "name":"GetDataProtectionPolicy", 586 "http":{ 587 "method":"POST", 588 "requestUri":"/" 589 }, 590 "input":{"shape":"GetDataProtectionPolicyRequest"}, 591 "output":{"shape":"GetDataProtectionPolicyResponse"}, 592 "errors":[ 593 {"shape":"InvalidParameterException"}, 594 {"shape":"OperationAbortedException"}, 595 {"shape":"ResourceNotFoundException"}, 596 {"shape":"ServiceUnavailableException"} 597 ], 598 "documentation":"<p>Returns information about a log group data protection policy.</p>" 599 }, 600 "GetDelivery":{ 601 "name":"GetDelivery", 602 "http":{ 603 "method":"POST", 604 "requestUri":"/" 605 }, 606 "input":{"shape":"GetDeliveryRequest"}, 607 "output":{"shape":"GetDeliveryResponse"}, 608 "errors":[ 609 {"shape":"ResourceNotFoundException"}, 610 {"shape":"ServiceUnavailableException"}, 611 {"shape":"ValidationException"}, 612 {"shape":"ServiceQuotaExceededException"}, 613 {"shape":"ThrottlingException"} 614 ], 615 "documentation":"<p>Returns complete information about one logical <i>delivery</i>. A delivery is a connection between a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html\"> <i>delivery source</i> </a> and a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html\"> <i>delivery destination</i> </a>.</p> <p>A delivery source represents an Amazon Web Services resource that sends logs to an logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose. Only some Amazon Web Services services support being configured as a delivery source. These services are listed in <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enable logging from Amazon Web Services services.</a> </p> <p>You need to specify the delivery <code>id</code> in this operation. You can find the IDs of the deliveries in your account with the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html\">DescribeDeliveries</a> operation.</p>" 616 }, 617 "GetDeliveryDestination":{ 618 "name":"GetDeliveryDestination", 619 "http":{ 620 "method":"POST", 621 "requestUri":"/" 622 }, 623 "input":{"shape":"GetDeliveryDestinationRequest"}, 624 "output":{"shape":"GetDeliveryDestinationResponse"}, 625 "errors":[ 626 {"shape":"ResourceNotFoundException"}, 627 {"shape":"ServiceUnavailableException"}, 628 {"shape":"ValidationException"}, 629 {"shape":"ServiceQuotaExceededException"}, 630 {"shape":"ThrottlingException"} 631 ], 632 "documentation":"<p>Retrieves complete information about one delivery destination.</p>" 633 }, 634 "GetDeliveryDestinationPolicy":{ 635 "name":"GetDeliveryDestinationPolicy", 636 "http":{ 637 "method":"POST", 638 "requestUri":"/" 639 }, 640 "input":{"shape":"GetDeliveryDestinationPolicyRequest"}, 641 "output":{"shape":"GetDeliveryDestinationPolicyResponse"}, 642 "errors":[ 643 {"shape":"ServiceUnavailableException"}, 644 {"shape":"ValidationException"}, 645 {"shape":"ResourceNotFoundException"} 646 ], 647 "documentation":"<p>Retrieves the delivery destination policy assigned to the delivery destination that you specify. For more information about delivery destinations and their policies, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html\">PutDeliveryDestinationPolicy</a>.</p>" 648 }, 649 "GetDeliverySource":{ 650 "name":"GetDeliverySource", 651 "http":{ 652 "method":"POST", 653 "requestUri":"/" 654 }, 655 "input":{"shape":"GetDeliverySourceRequest"}, 656 "output":{"shape":"GetDeliverySourceResponse"}, 657 "errors":[ 658 {"shape":"ResourceNotFoundException"}, 659 {"shape":"ServiceUnavailableException"}, 660 {"shape":"ValidationException"}, 661 {"shape":"ServiceQuotaExceededException"}, 662 {"shape":"ThrottlingException"} 663 ], 664 "documentation":"<p>Retrieves complete information about one delivery source.</p>" 665 }, 666 "GetLogAnomalyDetector":{ 667 "name":"GetLogAnomalyDetector", 668 "http":{ 669 "method":"POST", 670 "requestUri":"/" 671 }, 672 "input":{"shape":"GetLogAnomalyDetectorRequest"}, 673 "output":{"shape":"GetLogAnomalyDetectorResponse"}, 674 "errors":[ 675 {"shape":"InvalidParameterException"}, 676 {"shape":"ResourceNotFoundException"}, 677 {"shape":"ServiceUnavailableException"}, 678 {"shape":"OperationAbortedException"} 679 ], 680 "documentation":"<p>Retrieves information about the log anomaly detector that you specify.</p>" 681 }, 682 "GetLogEvents":{ 683 "name":"GetLogEvents", 684 "http":{ 685 "method":"POST", 686 "requestUri":"/" 687 }, 688 "input":{"shape":"GetLogEventsRequest"}, 689 "output":{"shape":"GetLogEventsResponse"}, 690 "errors":[ 691 {"shape":"InvalidParameterException"}, 692 {"shape":"ResourceNotFoundException"}, 693 {"shape":"ServiceUnavailableException"} 694 ], 695 "documentation":"<p>Lists log events from the specified log stream. You can list all of the log events or filter using a time range.</p> <p>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. This operation can return empty results while there are more log events available through the token.</p> <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html\">CloudWatch cross-account observability</a>.</p> <p>You can specify the log group to search by using either <code>logGroupIdentifier</code> or <code>logGroupName</code>. You must include one of these two parameters, but you can't include both. </p>" 696 }, 697 "GetLogGroupFields":{ 698 "name":"GetLogGroupFields", 699 "http":{ 700 "method":"POST", 701 "requestUri":"/" 702 }, 703 "input":{"shape":"GetLogGroupFieldsRequest"}, 704 "output":{"shape":"GetLogGroupFieldsResponse"}, 705 "errors":[ 706 {"shape":"InvalidParameterException"}, 707 {"shape":"LimitExceededException"}, 708 {"shape":"ResourceNotFoundException"}, 709 {"shape":"ServiceUnavailableException"} 710 ], 711 "documentation":"<p>Returns a list of the fields that are included in log events in the specified log group. Includes the percentage of log events that contain each field. The search is limited to a time period that you specify.</p> <p>You can specify the log group to search by using either <code>logGroupIdentifier</code> or <code>logGroupName</code>. You must specify one of these parameters, but you can't specify both. </p> <p>In the results, fields that start with <code>@</code> are fields generated by CloudWatch Logs. For example, <code>@timestamp</code> is the timestamp of each log event. For more information about the fields that are generated by CloudWatch logs, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html\">Supported Logs and Discovered Fields</a>.</p> <p>The response results are sorted by the frequency percentage, starting with the highest percentage.</p> <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html\">CloudWatch cross-account observability</a>.</p>" 712 }, 713 "GetLogRecord":{ 714 "name":"GetLogRecord", 715 "http":{ 716 "method":"POST", 717 "requestUri":"/" 718 }, 719 "input":{"shape":"GetLogRecordRequest"}, 720 "output":{"shape":"GetLogRecordResponse"}, 721 "errors":[ 722 {"shape":"InvalidParameterException"}, 723 {"shape":"LimitExceededException"}, 724 {"shape":"ResourceNotFoundException"}, 725 {"shape":"ServiceUnavailableException"} 726 ], 727 "documentation":"<p>Retrieves all of the fields and values of a single log event. All fields are retrieved, even if the original query that produced the <code>logRecordPointer</code> retrieved only a subset of fields. Fields are returned as field name/field value pairs.</p> <p>The full unparsed log event is returned within <code>@message</code>.</p>" 728 }, 729 "GetQueryResults":{ 730 "name":"GetQueryResults", 731 "http":{ 732 "method":"POST", 733 "requestUri":"/" 734 }, 735 "input":{"shape":"GetQueryResultsRequest"}, 736 "output":{"shape":"GetQueryResultsResponse"}, 737 "errors":[ 738 {"shape":"InvalidParameterException"}, 739 {"shape":"ResourceNotFoundException"}, 740 {"shape":"ServiceUnavailableException"} 741 ], 742 "documentation":"<p>Returns the results from the specified query.</p> <p>Only the fields requested in the query are returned, along with a <code>@ptr</code> field, which is the identifier for the log record. You can use the value of <code>@ptr</code> in a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html\">GetLogRecord</a> operation to get the full log record.</p> <p> <code>GetQueryResults</code> does not start running a query. To run a query, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html\">StartQuery</a>. For more information about how long results of previous queries are available, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html\">CloudWatch Logs quotas</a>.</p> <p>If the value of the <code>Status</code> field in the output is <code>Running</code>, this operation returns only partial results. If you see a value of <code>Scheduled</code> or <code>Running</code> for the status, you can retry the operation later to see the final results. </p> <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to start queries in linked source accounts. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html\">CloudWatch cross-account observability</a>.</p>" 743 }, 744 "ListAnomalies":{ 745 "name":"ListAnomalies", 746 "http":{ 747 "method":"POST", 748 "requestUri":"/" 749 }, 750 "input":{"shape":"ListAnomaliesRequest"}, 751 "output":{"shape":"ListAnomaliesResponse"}, 752 "errors":[ 753 {"shape":"InvalidParameterException"}, 754 {"shape":"ResourceNotFoundException"}, 755 {"shape":"ServiceUnavailableException"}, 756 {"shape":"OperationAbortedException"} 757 ], 758 "documentation":"<p>Returns a list of anomalies that log anomaly detectors have found. For details about the structure format of each anomaly object that is returned, see the example in this section.</p>" 759 }, 760 "ListLogAnomalyDetectors":{ 761 "name":"ListLogAnomalyDetectors", 762 "http":{ 763 "method":"POST", 764 "requestUri":"/" 765 }, 766 "input":{"shape":"ListLogAnomalyDetectorsRequest"}, 767 "output":{"shape":"ListLogAnomalyDetectorsResponse"}, 768 "errors":[ 769 {"shape":"InvalidParameterException"}, 770 {"shape":"ResourceNotFoundException"}, 771 {"shape":"ServiceUnavailableException"}, 772 {"shape":"OperationAbortedException"} 773 ], 774 "documentation":"<p>Retrieves a list of the log anomaly detectors in the account.</p>" 775 }, 776 "ListTagsForResource":{ 777 "name":"ListTagsForResource", 778 "http":{ 779 "method":"POST", 780 "requestUri":"/" 781 }, 782 "input":{"shape":"ListTagsForResourceRequest"}, 783 "output":{"shape":"ListTagsForResourceResponse"}, 784 "errors":[ 785 {"shape":"InvalidParameterException"}, 786 {"shape":"ResourceNotFoundException"}, 787 {"shape":"ServiceUnavailableException"} 788 ], 789 "documentation":"<p>Displays the tags associated with a CloudWatch Logs resource. Currently, log groups and destinations support tagging.</p>" 790 }, 791 "ListTagsLogGroup":{ 792 "name":"ListTagsLogGroup", 793 "http":{ 794 "method":"POST", 795 "requestUri":"/" 796 }, 797 "input":{"shape":"ListTagsLogGroupRequest"}, 798 "output":{"shape":"ListTagsLogGroupResponse"}, 799 "errors":[ 800 {"shape":"ResourceNotFoundException"}, 801 {"shape":"ServiceUnavailableException"} 802 ], 803 "documentation":"<important> <p>The ListTagsLogGroup operation is on the path to deprecation. We recommend that you use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html\">ListTagsForResource</a> instead.</p> </important> <p>Lists the tags for the specified log group.</p>", 804 "deprecated":true, 805 "deprecatedMessage":"Please use the generic tagging API ListTagsForResource" 806 }, 807 "PutAccountPolicy":{ 808 "name":"PutAccountPolicy", 809 "http":{ 810 "method":"POST", 811 "requestUri":"/" 812 }, 813 "input":{"shape":"PutAccountPolicyRequest"}, 814 "output":{"shape":"PutAccountPolicyResponse"}, 815 "errors":[ 816 {"shape":"InvalidParameterException"}, 817 {"shape":"OperationAbortedException"}, 818 {"shape":"ServiceUnavailableException"}, 819 {"shape":"LimitExceededException"} 820 ], 821 "documentation":"<p>Creates an account-level data protection policy or subscription filter policy that applies to all log groups or a subset of log groups in the account.</p> <p> <b>Data protection policy</b> </p> <p>A data protection policy can help safeguard sensitive data that's ingested by your log groups by auditing and masking the sensitive log data. Each account can have only one account-level data protection policy.</p> <important> <p>Sensitive data is detected and masked when it is ingested into a log group. When you set a data protection policy, log events ingested into the log groups before that time are not masked.</p> </important> <p>If you use <code>PutAccountPolicy</code> to create a data protection policy for your whole account, it applies to both existing log groups and all log groups that are created later in this account. The account-level policy is applied to existing log groups with eventual consistency. It might take up to 5 minutes before sensitive data in existing log groups begins to be masked.</p> <p>By default, when a user views a log event that includes masked data, the sensitive data is replaced by asterisks. A user who has the <code>logs:Unmask</code> permission can use a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html\">GetLogEvents</a> or <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html\">FilterLogEvents</a> operation with the <code>unmask</code> parameter set to <code>true</code> to view the unmasked log events. Users with the <code>logs:Unmask</code> can also view unmasked data in the CloudWatch Logs console by running a CloudWatch Logs Insights query with the <code>unmask</code> query command.</p> <p>For more information, including a list of types of data that can be audited and masked, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html\">Protect sensitive log data with masking</a>.</p> <p>To use the <code>PutAccountPolicy</code> operation for a data protection policy, you must be signed on with the <code>logs:PutDataProtectionPolicy</code> and <code>logs:PutAccountPolicy</code> permissions.</p> <p>The <code>PutAccountPolicy</code> operation applies to all log groups in the account. You can use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html\">PutDataProtectionPolicy</a> to create a data protection policy that applies to just one log group. If a log group has its own data protection policy and the account also has an account-level data protection policy, then the two policies are cumulative. Any sensitive term specified in either policy is masked.</p> <p> <b>Subscription filter policy</b> </p> <p>A subscription filter policy sets up a real-time feed of log events from CloudWatch Logs to other Amazon Web Services services. Account-level subscription filter policies apply to both existing log groups and log groups that are created later in this account. Supported destinations are Kinesis Data Streams, Kinesis Data Firehose, and Lambda. When log events are sent to the receiving service, they are Base64 encoded and compressed with the GZIP format.</p> <p>The following destinations are supported for subscription filters:</p> <ul> <li> <p>An Kinesis Data Streams data stream in the same account as the subscription policy, for same-account delivery.</p> </li> <li> <p>An Kinesis Data Firehose data stream in the same account as the subscription policy, for same-account delivery.</p> </li> <li> <p>A Lambda function in the same account as the subscription policy, for same-account delivery.</p> </li> <li> <p>A logical destination in a different account created with <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html\">PutDestination</a>, for cross-account delivery. Kinesis Data Streams and Kinesis Data Firehose are supported as logical destinations.</p> </li> </ul> <p>Each account can have one account-level subscription filter policy. If you are updating an existing filter, you must specify the correct name in <code>PolicyName</code>. To perform a <code>PutAccountPolicy</code> subscription filter operation for any destination except a Lambda function, you must also have the <code>iam:PassRole</code> permission.</p>" 822 }, 823 "PutDataProtectionPolicy":{ 824 "name":"PutDataProtectionPolicy", 825 "http":{ 826 "method":"POST", 827 "requestUri":"/" 828 }, 829 "input":{"shape":"PutDataProtectionPolicyRequest"}, 830 "output":{"shape":"PutDataProtectionPolicyResponse"}, 831 "errors":[ 832 {"shape":"InvalidParameterException"}, 833 {"shape":"LimitExceededException"}, 834 {"shape":"OperationAbortedException"}, 835 {"shape":"ResourceNotFoundException"}, 836 {"shape":"ServiceUnavailableException"} 837 ], 838 "documentation":"<p>Creates a data protection policy for the specified log group. A data protection policy can help safeguard sensitive data that's ingested by the log group by auditing and masking the sensitive log data.</p> <important> <p>Sensitive data is detected and masked when it is ingested into the log group. When you set a data protection policy, log events ingested into the log group before that time are not masked.</p> </important> <p>By default, when a user views a log event that includes masked data, the sensitive data is replaced by asterisks. A user who has the <code>logs:Unmask</code> permission can use a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html\">GetLogEvents</a> or <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html\">FilterLogEvents</a> operation with the <code>unmask</code> parameter set to <code>true</code> to view the unmasked log events. Users with the <code>logs:Unmask</code> can also view unmasked data in the CloudWatch Logs console by running a CloudWatch Logs Insights query with the <code>unmask</code> query command.</p> <p>For more information, including a list of types of data that can be audited and masked, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html\">Protect sensitive log data with masking</a>.</p> <p>The <code>PutDataProtectionPolicy</code> operation applies to only the specified log group. You can also use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutAccountPolicy.html\">PutAccountPolicy</a> to create an account-level data protection policy that applies to all log groups in the account, including both existing log groups and log groups that are created level. If a log group has its own data protection policy and the account also has an account-level data protection policy, then the two policies are cumulative. Any sensitive term specified in either policy is masked.</p>" 839 }, 840 "PutDeliveryDestination":{ 841 "name":"PutDeliveryDestination", 842 "http":{ 843 "method":"POST", 844 "requestUri":"/" 845 }, 846 "input":{"shape":"PutDeliveryDestinationRequest"}, 847 "output":{"shape":"PutDeliveryDestinationResponse"}, 848 "errors":[ 849 {"shape":"ServiceUnavailableException"}, 850 {"shape":"ConflictException"}, 851 {"shape":"ValidationException"}, 852 {"shape":"ServiceQuotaExceededException"}, 853 {"shape":"ThrottlingException"}, 854 {"shape":"ResourceNotFoundException"} 855 ], 856 "documentation":"<p>Creates or updates a logical <i>delivery destination</i>. A delivery destination is an Amazon Web Services resource that represents an Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, and Kinesis Data Firehose are supported as logs delivery destinations.</p> <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p> <ul> <li> <p>Create a delivery source, which is a logical object that represents the resource that is actually sending the logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html\">PutDeliverySource</a>.</p> </li> <li> <p>Use <code>PutDeliveryDestination</code> to create a <i>delivery destination</i>, which is a logical object that represents the actual delivery destination. </p> </li> <li> <p>If you are delivering logs cross-account, you must use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html\">PutDeliveryDestinationPolicy</a> in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination. </p> </li> <li> <p>Use <code>CreateDelivery</code> to create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html\">CreateDelivery</a>. </p> </li> </ul> <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p> <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed as <b>Supported [V2 Permissions]</b> in the table at <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enabling logging from Amazon Web Services services.</a> </p> <p>If you use this operation to update an existing delivery destination, all the current delivery destination parameters are overwritten with the new parameter values that you specify.</p>" 857 }, 858 "PutDeliveryDestinationPolicy":{ 859 "name":"PutDeliveryDestinationPolicy", 860 "http":{ 861 "method":"POST", 862 "requestUri":"/" 863 }, 864 "input":{"shape":"PutDeliveryDestinationPolicyRequest"}, 865 "output":{"shape":"PutDeliveryDestinationPolicyResponse"}, 866 "errors":[ 867 {"shape":"ServiceUnavailableException"}, 868 {"shape":"ValidationException"}, 869 {"shape":"ResourceNotFoundException"}, 870 {"shape":"ConflictException"} 871 ], 872 "documentation":"<p>Creates and assigns an IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account. To configure the delivery of logs from an Amazon Web Services service in another account to a logs delivery destination in the current account, you must do the following:</p> <ul> <li> <p>Create a delivery source, which is a logical object that represents the resource that is actually sending the logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html\">PutDeliverySource</a>.</p> </li> <li> <p>Create a <i>delivery destination</i>, which is a logical object that represents the actual delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html\">PutDeliveryDestination</a>.</p> </li> <li> <p>Use this operation in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination. </p> </li> <li> <p>Create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html\">CreateDelivery</a>.</p> </li> </ul> <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed as <b>Supported [V2 Permissions]</b> in the table at <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enabling logging from Amazon Web Services services.</a> </p> <p>The contents of the policy must include two statements. One statement enables general logs delivery, and the other allows delivery to the chosen destination. See the examples for the needed policies.</p>" 873 }, 874 "PutDeliverySource":{ 875 "name":"PutDeliverySource", 876 "http":{ 877 "method":"POST", 878 "requestUri":"/" 879 }, 880 "input":{"shape":"PutDeliverySourceRequest"}, 881 "output":{"shape":"PutDeliverySourceResponse"}, 882 "errors":[ 883 {"shape":"ServiceUnavailableException"}, 884 {"shape":"ConflictException"}, 885 {"shape":"ValidationException"}, 886 {"shape":"ServiceQuotaExceededException"}, 887 {"shape":"ResourceNotFoundException"}, 888 {"shape":"ThrottlingException"} 889 ], 890 "documentation":"<p>Creates or updates a logical <i>delivery source</i>. A delivery source represents an Amazon Web Services resource that sends logs to an logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p> <p>To configure logs delivery between a delivery destination and an Amazon Web Services service that is supported as a delivery source, you must do the following:</p> <ul> <li> <p>Use <code>PutDeliverySource</code> to create a delivery source, which is a logical object that represents the resource that is actually sending the logs. </p> </li> <li> <p>Use <code>PutDeliveryDestination</code> to create a <i>delivery destination</i>, which is a logical object that represents the actual delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html\">PutDeliveryDestination</a>.</p> </li> <li> <p>If you are delivering logs cross-account, you must use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html\">PutDeliveryDestinationPolicy</a> in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination. </p> </li> <li> <p>Use <code>CreateDelivery</code> to create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html\">CreateDelivery</a>. </p> </li> </ul> <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p> <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed as <b>Supported [V2 Permissions]</b> in the table at <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enabling logging from Amazon Web Services services.</a> </p> <p>If you use this operation to update an existing delivery source, all the current delivery source parameters are overwritten with the new parameter values that you specify.</p>" 891 }, 892 "PutDestination":{ 893 "name":"PutDestination", 894 "http":{ 895 "method":"POST", 896 "requestUri":"/" 897 }, 898 "input":{"shape":"PutDestinationRequest"}, 899 "output":{"shape":"PutDestinationResponse"}, 900 "errors":[ 901 {"shape":"InvalidParameterException"}, 902 {"shape":"OperationAbortedException"}, 903 {"shape":"ServiceUnavailableException"} 904 ], 905 "documentation":"<p>Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.</p> <p>A destination encapsulates a physical resource (such as an Amazon Kinesis stream). With a destination, you can subscribe to a real-time stream of log events for a different account, ingested using <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html\">PutLogEvents</a>.</p> <p>Through an access policy, a destination controls what is written to it. By default, <code>PutDestination</code> does not set any access policy with the destination, which means a cross-account user cannot call <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html\">PutSubscriptionFilter</a> against this destination. To enable this, the destination owner must call <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html\">PutDestinationPolicy</a> after <code>PutDestination</code>.</p> <p>To perform a <code>PutDestination</code> operation, you must also have the <code>iam:PassRole</code> permission.</p>" 906 }, 907 "PutDestinationPolicy":{ 908 "name":"PutDestinationPolicy", 909 "http":{ 910 "method":"POST", 911 "requestUri":"/" 912 }, 913 "input":{"shape":"PutDestinationPolicyRequest"}, 914 "errors":[ 915 {"shape":"InvalidParameterException"}, 916 {"shape":"OperationAbortedException"}, 917 {"shape":"ServiceUnavailableException"} 918 ], 919 "documentation":"<p>Creates or updates an access policy associated with an existing destination. An access policy is an <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html\">IAM policy document</a> that is used to authorize claims to register a subscription filter against a given destination.</p>" 920 }, 921 "PutLogEvents":{ 922 "name":"PutLogEvents", 923 "http":{ 924 "method":"POST", 925 "requestUri":"/" 926 }, 927 "input":{"shape":"PutLogEventsRequest"}, 928 "output":{"shape":"PutLogEventsResponse"}, 929 "errors":[ 930 {"shape":"InvalidParameterException"}, 931 {"shape":"InvalidSequenceTokenException"}, 932 {"shape":"DataAlreadyAcceptedException"}, 933 {"shape":"ResourceNotFoundException"}, 934 {"shape":"ServiceUnavailableException"}, 935 {"shape":"UnrecognizedClientException"} 936 ], 937 "documentation":"<p>Uploads a batch of log events to the specified log stream.</p> <important> <p>The sequence token is now ignored in <code>PutLogEvents</code> actions. <code>PutLogEvents</code> actions are always accepted and never return <code>InvalidSequenceTokenException</code> or <code>DataAlreadyAcceptedException</code> even if the sequence token is not valid. You can use parallel <code>PutLogEvents</code> actions on the same log stream. </p> </important> <p>The batch of events must satisfy the following constraints:</p> <ul> <li> <p>The maximum batch size is 1,048,576 bytes. This size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.</p> </li> <li> <p>None of the log events in the batch can be more than 2 hours in the future.</p> </li> <li> <p>None of the log events in the batch can be more than 14 days in the past. Also, none of the log events can be from earlier than the retention period of the log group.</p> </li> <li> <p>The log events in the batch must be in chronological order by their timestamp. The timestamp is the time that the event occurred, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. (In Amazon Web Services Tools for PowerShell and the Amazon Web Services SDK for .NET, the timestamp is specified in .NET format: <code>yyyy-mm-ddThh:mm:ss</code>. For example, <code>2017-09-15T13:45:30</code>.) </p> </li> <li> <p>A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.</p> </li> <li> <p>Each log event can be no larger than 256 KB.</p> </li> <li> <p>The maximum number of log events in a batch is 10,000.</p> </li> <li> <important> <p>The quota of five requests per second per log stream has been removed. Instead, <code>PutLogEvents</code> actions are throttled based on a per-second per-account quota. You can request an increase to the per-second throttling quota by using the Service Quotas service.</p> </important> </li> </ul> <p>If a call to <code>PutLogEvents</code> returns \"UnrecognizedClientException\" the most likely cause is a non-valid Amazon Web Services access key ID or secret key. </p>" 938 }, 939 "PutMetricFilter":{ 940 "name":"PutMetricFilter", 941 "http":{ 942 "method":"POST", 943 "requestUri":"/" 944 }, 945 "input":{"shape":"PutMetricFilterRequest"}, 946 "errors":[ 947 {"shape":"InvalidParameterException"}, 948 {"shape":"ResourceNotFoundException"}, 949 {"shape":"OperationAbortedException"}, 950 {"shape":"LimitExceededException"}, 951 {"shape":"ServiceUnavailableException"} 952 ], 953 "documentation":"<p>Creates or updates a metric filter and associates it with the specified log group. With metric filters, you can configure rules to extract metric data from log events ingested through <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html\">PutLogEvents</a>.</p> <p>The maximum number of metric filters that can be associated with a log group is 100.</p> <p>When you create a metric filter, you can also optionally assign a unit and dimensions to the metric that is created.</p> <important> <p>Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as <code>IPAddress</code> or <code>requestID</code> as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric. </p> <p>CloudWatch Logs might disable a metric filter if it generates 1,000 different name/value pairs for your specified dimensions within one hour.</p> <p>You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html\"> Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>. </p> </important>" 954 }, 955 "PutQueryDefinition":{ 956 "name":"PutQueryDefinition", 957 "http":{ 958 "method":"POST", 959 "requestUri":"/" 960 }, 961 "input":{"shape":"PutQueryDefinitionRequest"}, 962 "output":{"shape":"PutQueryDefinitionResponse"}, 963 "errors":[ 964 {"shape":"InvalidParameterException"}, 965 {"shape":"LimitExceededException"}, 966 {"shape":"ResourceNotFoundException"}, 967 {"shape":"ServiceUnavailableException"} 968 ], 969 "documentation":"<p>Creates or updates a query definition for CloudWatch Logs Insights. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html\">Analyzing Log Data with CloudWatch Logs Insights</a>.</p> <p>To update a query definition, specify its <code>queryDefinitionId</code> in your request. The values of <code>name</code>, <code>queryString</code>, and <code>logGroupNames</code> are changed to the values that you specify in your update operation. No current values are retained from the current query definition. For example, imagine updating a current query definition that includes log groups. If you don't specify the <code>logGroupNames</code> parameter in your update operation, the query definition changes to contain no log groups.</p> <p>You must have the <code>logs:PutQueryDefinition</code> permission to be able to perform this operation.</p>" 970 }, 971 "PutResourcePolicy":{ 972 "name":"PutResourcePolicy", 973 "http":{ 974 "method":"POST", 975 "requestUri":"/" 976 }, 977 "input":{"shape":"PutResourcePolicyRequest"}, 978 "output":{"shape":"PutResourcePolicyResponse"}, 979 "errors":[ 980 {"shape":"InvalidParameterException"}, 981 {"shape":"LimitExceededException"}, 982 {"shape":"ServiceUnavailableException"} 983 ], 984 "documentation":"<p>Creates or updates a resource policy allowing other Amazon Web Services services to put log events to this account, such as Amazon Route 53. An account can have up to 10 resource policies per Amazon Web Services Region.</p>" 985 }, 986 "PutRetentionPolicy":{ 987 "name":"PutRetentionPolicy", 988 "http":{ 989 "method":"POST", 990 "requestUri":"/" 991 }, 992 "input":{"shape":"PutRetentionPolicyRequest"}, 993 "errors":[ 994 {"shape":"InvalidParameterException"}, 995 {"shape":"ResourceNotFoundException"}, 996 {"shape":"OperationAbortedException"}, 997 {"shape":"ServiceUnavailableException"} 998 ], 999 "documentation":"<p>Sets the retention of the specified log group. With a retention policy, you can configure the number of days for which to retain log events in the specified log group.</p> <note> <p>CloudWatch Logs doesn’t immediately delete log events when they reach their retention setting. It typically takes up to 72 hours after that before log events are deleted, but in rare situations might take longer.</p> <p>To illustrate, imagine that you change a log group to have a longer retention setting when it contains log events that are past the expiration date, but haven’t been deleted. Those log events will take up to 72 hours to be deleted after the new retention date is reached. To make sure that log data is deleted permanently, keep a log group at its lower retention setting until 72 hours after the previous retention period ends. Alternatively, wait to change the retention setting until you confirm that the earlier log events are deleted. </p> <p>When log events reach their retention setting they are marked for deletion. After they are marked for deletion, they do not add to your archival storage costs anymore, even if they are not actually deleted until later. These log events marked for deletion are also not included when you use an API to retrieve the <code>storedBytes</code> value to see how many bytes a log group is storing.</p> </note>" 1000 }, 1001 "PutSubscriptionFilter":{ 1002 "name":"PutSubscriptionFilter", 1003 "http":{ 1004 "method":"POST", 1005 "requestUri":"/" 1006 }, 1007 "input":{"shape":"PutSubscriptionFilterRequest"}, 1008 "errors":[ 1009 {"shape":"InvalidParameterException"}, 1010 {"shape":"ResourceNotFoundException"}, 1011 {"shape":"OperationAbortedException"}, 1012 {"shape":"LimitExceededException"}, 1013 {"shape":"ServiceUnavailableException"} 1014 ], 1015 "documentation":"<p>Creates or updates a subscription filter and associates it with the specified log group. With subscription filters, you can subscribe to a real-time stream of log events ingested through <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html\">PutLogEvents</a> and have them delivered to a specific destination. When log events are sent to the receiving service, they are Base64 encoded and compressed with the GZIP format.</p> <p>The following destinations are supported for subscription filters:</p> <ul> <li> <p>An Amazon Kinesis data stream belonging to the same account as the subscription filter, for same-account delivery.</p> </li> <li> <p>A logical destination created with <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html\">PutDestination</a> that belongs to a different account, for cross-account delivery. We currently support Kinesis Data Streams and Kinesis Data Firehose as logical destinations.</p> </li> <li> <p>An Amazon Kinesis Data Firehose delivery stream that belongs to the same account as the subscription filter, for same-account delivery.</p> </li> <li> <p>An Lambda function that belongs to the same account as the subscription filter, for same-account delivery.</p> </li> </ul> <p>Each log group can have up to two subscription filters associated with it. If you are updating an existing filter, you must specify the correct name in <code>filterName</code>. </p> <p>To perform a <code>PutSubscriptionFilter</code> operation for any destination except a Lambda function, you must also have the <code>iam:PassRole</code> permission.</p>" 1016 }, 1017 "StartLiveTail":{ 1018 "name":"StartLiveTail", 1019 "http":{ 1020 "method":"POST", 1021 "requestUri":"/" 1022 }, 1023 "input":{"shape":"StartLiveTailRequest"}, 1024 "output":{"shape":"StartLiveTailResponse"}, 1025 "errors":[ 1026 {"shape":"AccessDeniedException"}, 1027 {"shape":"InvalidParameterException"}, 1028 {"shape":"ResourceNotFoundException"}, 1029 {"shape":"LimitExceededException"}, 1030 {"shape":"InvalidOperationException"} 1031 ], 1032 "documentation":"<p>Starts a Live Tail streaming session for one or more log groups. A Live Tail session returns a stream of log events that have been recently ingested in the log groups. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html\">Use Live Tail to view logs in near real time</a>. </p> <p>The response to this operation is a response stream, over which the server sends live log events and the client receives them.</p> <p>The following objects are sent over the stream:</p> <ul> <li> <p>A single <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_LiveTailSessionStart.html\">LiveTailSessionStart</a> object is sent at the start of the session.</p> </li> <li> <p>Every second, a <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_LiveTailSessionUpdate.html\">LiveTailSessionUpdate</a> object is sent. Each of these objects contains an array of the actual log events.</p> <p>If no new log events were ingested in the past second, the <code>LiveTailSessionUpdate</code> object will contain an empty array.</p> <p>The array of log events contained in a <code>LiveTailSessionUpdate</code> can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each <code>LiveTailSessionUpdate</code> object.</p> <p>If your client consumes the log events slower than the server produces them, CloudWatch Logs buffers up to 10 <code>LiveTailSessionUpdate</code> events or 5000 log events, after which it starts dropping the oldest events.</p> </li> <li> <p>A <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_SessionStreamingException.html\">SessionStreamingException</a> object is returned if an unknown error occurs on the server side.</p> </li> <li> <p>A <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_SessionTimeoutException.html\">SessionTimeoutException</a> object is returned when the session times out, after it has been kept open for three hours.</p> </li> </ul> <important> <p>You can end a session before it times out by closing the session stream or by closing the client that is receiving the stream. The session also ends if the established connection between the client and the server breaks.</p> </important> <p>For examples of using an SDK to start a Live Tail session, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/example_cloudwatch-logs_StartLiveTail_section.html\"> Start a Live Tail session using an Amazon Web Services SDK</a>.</p>", 1033 "endpoint":{"hostPrefix":"streaming-"} 1034 }, 1035 "StartQuery":{ 1036 "name":"StartQuery", 1037 "http":{ 1038 "method":"POST", 1039 "requestUri":"/" 1040 }, 1041 "input":{"shape":"StartQueryRequest"}, 1042 "output":{"shape":"StartQueryResponse"}, 1043 "errors":[ 1044 {"shape":"MalformedQueryException"}, 1045 {"shape":"InvalidParameterException"}, 1046 {"shape":"LimitExceededException"}, 1047 {"shape":"ResourceNotFoundException"}, 1048 {"shape":"ServiceUnavailableException"} 1049 ], 1050 "documentation":"<p>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.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html\">CloudWatch Logs Insights Query Syntax</a>.</p> <p>After you run a query using <code>StartQuery</code>, the query results are stored by CloudWatch Logs. You can use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html\">GetQueryResults</a> to retrieve the results of a query, using the <code>queryId</code> that <code>StartQuery</code> returns. </p> <p>If you have associated a KMS key with the query results in this account, then <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html\">StartQuery</a> uses that key to encrypt the results when it stores them. If no key is associated with query results, the query results are encrypted with the default CloudWatch Logs encryption method.</p> <p>Queries time out after 60 minutes of runtime. If your queries are timing out, reduce the time range being searched or partition your query into a number of queries.</p> <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to start a query in a linked source account. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html\">CloudWatch cross-account observability</a>. For a cross-account <code>StartQuery</code> operation, the query definition must be defined in the monitoring account.</p> <p>You can have up to 30 concurrent CloudWatch Logs insights queries, including queries that have been added to dashboards. </p>" 1051 }, 1052 "StopQuery":{ 1053 "name":"StopQuery", 1054 "http":{ 1055 "method":"POST", 1056 "requestUri":"/" 1057 }, 1058 "input":{"shape":"StopQueryRequest"}, 1059 "output":{"shape":"StopQueryResponse"}, 1060 "errors":[ 1061 {"shape":"InvalidParameterException"}, 1062 {"shape":"ResourceNotFoundException"}, 1063 {"shape":"ServiceUnavailableException"} 1064 ], 1065 "documentation":"<p>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.</p>" 1066 }, 1067 "TagLogGroup":{ 1068 "name":"TagLogGroup", 1069 "http":{ 1070 "method":"POST", 1071 "requestUri":"/" 1072 }, 1073 "input":{"shape":"TagLogGroupRequest"}, 1074 "errors":[ 1075 {"shape":"ResourceNotFoundException"}, 1076 {"shape":"InvalidParameterException"} 1077 ], 1078 "documentation":"<important> <p>The TagLogGroup operation is on the path to deprecation. We recommend that you use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html\">TagResource</a> instead.</p> </important> <p>Adds or updates the specified tags for the specified log group.</p> <p>To list the tags for a log group, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html\">ListTagsForResource</a>. To remove tags, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html\">UntagResource</a>.</p> <p>For more information about tags, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging\">Tag Log Groups in Amazon CloudWatch Logs</a> in the <i>Amazon CloudWatch Logs User Guide</i>.</p> <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the <code>aws:Resource/<i>key-name</i> </code> or <code>aws:TagKeys</code> condition keys. For more information about using tags to control access, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html\">Controlling access to Amazon Web Services resources using tags</a>.</p>", 1079 "deprecated":true, 1080 "deprecatedMessage":"Please use the generic tagging API TagResource" 1081 }, 1082 "TagResource":{ 1083 "name":"TagResource", 1084 "http":{ 1085 "method":"POST", 1086 "requestUri":"/" 1087 }, 1088 "input":{"shape":"TagResourceRequest"}, 1089 "errors":[ 1090 {"shape":"InvalidParameterException"}, 1091 {"shape":"ResourceNotFoundException"}, 1092 {"shape":"ServiceUnavailableException"}, 1093 {"shape":"TooManyTagsException"} 1094 ], 1095 "documentation":"<p>Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs resource. Currently, the only CloudWatch Logs resources that can be tagged are log groups and destinations. </p> <p>Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.</p> <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p> <p>You can use the <code>TagResource</code> action with a resource that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag.</p> <p>You can associate as many as 50 tags with a CloudWatch Logs resource.</p>" 1096 }, 1097 "TestMetricFilter":{ 1098 "name":"TestMetricFilter", 1099 "http":{ 1100 "method":"POST", 1101 "requestUri":"/" 1102 }, 1103 "input":{"shape":"TestMetricFilterRequest"}, 1104 "output":{"shape":"TestMetricFilterResponse"}, 1105 "errors":[ 1106 {"shape":"InvalidParameterException"}, 1107 {"shape":"ServiceUnavailableException"} 1108 ], 1109 "documentation":"<p>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.</p>" 1110 }, 1111 "UntagLogGroup":{ 1112 "name":"UntagLogGroup", 1113 "http":{ 1114 "method":"POST", 1115 "requestUri":"/" 1116 }, 1117 "input":{"shape":"UntagLogGroupRequest"}, 1118 "errors":[ 1119 {"shape":"ResourceNotFoundException"} 1120 ], 1121 "documentation":"<important> <p>The UntagLogGroup operation is on the path to deprecation. We recommend that you use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html\">UntagResource</a> instead.</p> </important> <p>Removes the specified tags from the specified log group.</p> <p>To list the tags for a log group, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html\">ListTagsForResource</a>. To add tags, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html\">TagResource</a>.</p> <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the <code>aws:Resource/<i>key-name</i> </code> or <code>aws:TagKeys</code> condition keys. </p>", 1122 "deprecated":true, 1123 "deprecatedMessage":"Please use the generic tagging API UntagResource" 1124 }, 1125 "UntagResource":{ 1126 "name":"UntagResource", 1127 "http":{ 1128 "method":"POST", 1129 "requestUri":"/" 1130 }, 1131 "input":{"shape":"UntagResourceRequest"}, 1132 "errors":[ 1133 {"shape":"InvalidParameterException"}, 1134 {"shape":"ResourceNotFoundException"}, 1135 {"shape":"ServiceUnavailableException"} 1136 ], 1137 "documentation":"<p>Removes one or more tags from the specified resource.</p>" 1138 }, 1139 "UpdateAnomaly":{ 1140 "name":"UpdateAnomaly", 1141 "http":{ 1142 "method":"POST", 1143 "requestUri":"/" 1144 }, 1145 "input":{"shape":"UpdateAnomalyRequest"}, 1146 "errors":[ 1147 {"shape":"InvalidParameterException"}, 1148 {"shape":"ResourceNotFoundException"}, 1149 {"shape":"ServiceUnavailableException"}, 1150 {"shape":"OperationAbortedException"} 1151 ], 1152 "documentation":"<p>Use this operation to <i>suppress</i> anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern.</p> <p>You must specify either <code>anomalyId</code> or <code>patternId</code>, but you can't specify both parameters in the same operation.</p> <p>If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to stop suppressing, and omit the <code>suppressionType</code> and <code>suppressionPeriod</code> parameters.</p>" 1153 }, 1154 "UpdateLogAnomalyDetector":{ 1155 "name":"UpdateLogAnomalyDetector", 1156 "http":{ 1157 "method":"POST", 1158 "requestUri":"/" 1159 }, 1160 "input":{"shape":"UpdateLogAnomalyDetectorRequest"}, 1161 "errors":[ 1162 {"shape":"InvalidParameterException"}, 1163 {"shape":"ResourceNotFoundException"}, 1164 {"shape":"ServiceUnavailableException"}, 1165 {"shape":"OperationAbortedException"} 1166 ], 1167 "documentation":"<p>Updates an existing log anomaly detector.</p>" 1168 } 1169 }, 1170 "shapes":{ 1171 "AccessDeniedException":{ 1172 "type":"structure", 1173 "members":{ 1174 }, 1175 "documentation":"<p>You don't have sufficient permissions to perform this action.</p>", 1176 "exception":true 1177 }, 1178 "AccessPolicy":{ 1179 "type":"string", 1180 "min":1 1181 }, 1182 "AccountId":{ 1183 "type":"string", 1184 "max":12, 1185 "min":12, 1186 "pattern":"^\\d{12}$" 1187 }, 1188 "AccountIds":{ 1189 "type":"list", 1190 "member":{"shape":"AccountId"}, 1191 "max":20, 1192 "min":0 1193 }, 1194 "AccountPolicies":{ 1195 "type":"list", 1196 "member":{"shape":"AccountPolicy"} 1197 }, 1198 "AccountPolicy":{ 1199 "type":"structure", 1200 "members":{ 1201 "policyName":{ 1202 "shape":"PolicyName", 1203 "documentation":"<p>The name of the account policy.</p>" 1204 }, 1205 "policyDocument":{ 1206 "shape":"AccountPolicyDocument", 1207 "documentation":"<p>The policy document for this account policy.</p> <p>The JSON specified in <code>policyDocument</code> can be up to 30,720 characters.</p>" 1208 }, 1209 "lastUpdatedTime":{ 1210 "shape":"Timestamp", 1211 "documentation":"<p>The date and time that this policy was most recently updated.</p>" 1212 }, 1213 "policyType":{ 1214 "shape":"PolicyType", 1215 "documentation":"<p>The type of policy for this account policy.</p>" 1216 }, 1217 "scope":{ 1218 "shape":"Scope", 1219 "documentation":"<p>The scope of the account policy.</p>" 1220 }, 1221 "selectionCriteria":{ 1222 "shape":"SelectionCriteria", 1223 "documentation":"<p>The log group selection criteria for this subscription filter policy.</p>" 1224 }, 1225 "accountId":{ 1226 "shape":"AccountId", 1227 "documentation":"<p>The Amazon Web Services account ID that the policy applies to.</p>" 1228 } 1229 }, 1230 "documentation":"<p>A structure that contains information about one CloudWatch Logs account policy.</p>" 1231 }, 1232 "AccountPolicyDocument":{"type":"string"}, 1233 "AmazonResourceName":{ 1234 "type":"string", 1235 "max":1011, 1236 "min":1, 1237 "pattern":"[\\w+=/:,.@-]*" 1238 }, 1239 "Anomalies":{ 1240 "type":"list", 1241 "member":{"shape":"Anomaly"} 1242 }, 1243 "Anomaly":{ 1244 "type":"structure", 1245 "required":[ 1246 "anomalyId", 1247 "patternId", 1248 "anomalyDetectorArn", 1249 "patternString", 1250 "firstSeen", 1251 "lastSeen", 1252 "description", 1253 "active", 1254 "state", 1255 "histogram", 1256 "logSamples", 1257 "patternTokens", 1258 "logGroupArnList" 1259 ], 1260 "members":{ 1261 "anomalyId":{ 1262 "shape":"AnomalyId", 1263 "documentation":"<p>The unique ID that CloudWatch Logs assigned to this anomaly.</p>" 1264 }, 1265 "patternId":{ 1266 "shape":"PatternId", 1267 "documentation":"<p>The ID of the pattern used to help identify this anomaly.</p>" 1268 }, 1269 "anomalyDetectorArn":{ 1270 "shape":"AnomalyDetectorArn", 1271 "documentation":"<p>The ARN of the anomaly detector that identified this anomaly.</p>" 1272 }, 1273 "patternString":{ 1274 "shape":"PatternString", 1275 "documentation":"<p>The pattern used to help identify this anomaly, in string format.</p>" 1276 }, 1277 "patternRegex":{ 1278 "shape":"PatternRegex", 1279 "documentation":"<p>The pattern used to help identify this anomaly, in regular expression format.</p>" 1280 }, 1281 "priority":{ 1282 "shape":"Priority", 1283 "documentation":"<p>The priority level of this anomaly, as determined by CloudWatch Logs. Priority is computed based on log severity labels such as <code>FATAL</code> and <code>ERROR</code> and the amount of deviation from the baseline. Possible values are <code>HIGH</code>, <code>MEDIUM</code>, and <code>LOW</code>.</p>" 1284 }, 1285 "firstSeen":{ 1286 "shape":"EpochMillis", 1287 "documentation":"<p>The date and time when the anomaly detector first saw this anomaly. It is specified as epoch time, which is the number of seconds since <code>January 1, 1970, 00:00:00 UTC</code>.</p>" 1288 }, 1289 "lastSeen":{ 1290 "shape":"EpochMillis", 1291 "documentation":"<p>The date and time when the anomaly detector most recently saw this anomaly. It is specified as epoch time, which is the number of seconds since <code>January 1, 1970, 00:00:00 UTC</code>.</p>" 1292 }, 1293 "description":{ 1294 "shape":"Description", 1295 "documentation":"<p>A human-readable description of the anomaly. This description is generated by CloudWatch Logs.</p>" 1296 }, 1297 "active":{ 1298 "shape":"Boolean", 1299 "documentation":"<p>Specifies whether this anomaly is still ongoing.</p>" 1300 }, 1301 "state":{ 1302 "shape":"State", 1303 "documentation":"<p>Indicates the current state of this anomaly. If it is still being treated as an anomaly, the value is <code>Active</code>. If you have suppressed this anomaly by using the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateAnomaly.html\">UpdateAnomaly</a> operation, the value is <code>Suppressed</code>. If this behavior is now considered to be normal, the value is <code>Baseline</code>.</p>" 1304 }, 1305 "histogram":{ 1306 "shape":"Histogram", 1307 "documentation":"<p>A map showing times when the anomaly detector ran, and the number of occurrences of this anomaly that were detected at each of those runs. The times are specified in epoch time, which is the number of seconds since <code>January 1, 1970, 00:00:00 UTC</code>.</p>" 1308 }, 1309 "logSamples":{ 1310 "shape":"LogSamples", 1311 "documentation":"<p>An array of sample log event messages that are considered to be part of this anomaly.</p>" 1312 }, 1313 "patternTokens":{ 1314 "shape":"PatternTokens", 1315 "documentation":"<p>An array of structures where each structure contains information about one token that makes up the pattern.</p>" 1316 }, 1317 "logGroupArnList":{ 1318 "shape":"LogGroupArnList", 1319 "documentation":"<p>An array of ARNS of the log groups that contained log events considered to be part of this anomaly.</p>" 1320 }, 1321 "suppressed":{ 1322 "shape":"Boolean", 1323 "documentation":"<p>Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateAnomaly.html\">UpdateAnomaly</a>.</p>" 1324 }, 1325 "suppressedDate":{ 1326 "shape":"EpochMillis", 1327 "documentation":"<p>If the anomaly is suppressed, this indicates when it was suppressed.</p>" 1328 }, 1329 "suppressedUntil":{ 1330 "shape":"EpochMillis", 1331 "documentation":"<p>If the anomaly is suppressed, this indicates when the suppression will end. If this value is <code>0</code>, the anomaly was suppressed with no expiration, with the <code>INFINITE</code> value.</p>" 1332 }, 1333 "isPatternLevelSuppression":{ 1334 "shape":"Boolean", 1335 "documentation":"<p>If this anomaly is suppressed, this field is <code>true</code> if the suppression is because the pattern is suppressed. If <code>false</code>, then only this particular anomaly is suppressed.</p>" 1336 } 1337 }, 1338 "documentation":"<p>This structure represents one anomaly that has been found by a logs anomaly detector.</p> <p>For more information about patterns and anomalies, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html\">CreateLogAnomalyDetector</a>. </p>" 1339 }, 1340 "AnomalyDetector":{ 1341 "type":"structure", 1342 "members":{ 1343 "anomalyDetectorArn":{ 1344 "shape":"AnomalyDetectorArn", 1345 "documentation":"<p>The ARN of the anomaly detector.</p>" 1346 }, 1347 "detectorName":{ 1348 "shape":"DetectorName", 1349 "documentation":"<p>The name of the anomaly detector.</p>" 1350 }, 1351 "logGroupArnList":{ 1352 "shape":"LogGroupArnList", 1353 "documentation":"<p>A list of the ARNs of the log groups that this anomaly detector watches.</p>" 1354 }, 1355 "evaluationFrequency":{ 1356 "shape":"EvaluationFrequency", 1357 "documentation":"<p>Specifies how often the anomaly detector runs and look for anomalies.</p>" 1358 }, 1359 "filterPattern":{"shape":"FilterPattern"}, 1360 "anomalyDetectorStatus":{ 1361 "shape":"AnomalyDetectorStatus", 1362 "documentation":"<p>Specifies the current status of the anomaly detector. To pause an anomaly detector, use the <code>enabled</code> parameter in the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateLogAnomalyDetector.html\">UpdateLogAnomalyDetector</a> operation.</p>" 1363 }, 1364 "kmsKeyId":{ 1365 "shape":"KmsKeyId", 1366 "documentation":"<p>The ID of the KMS key assigned to this anomaly detector, if any.</p>" 1367 }, 1368 "creationTimeStamp":{ 1369 "shape":"EpochMillis", 1370 "documentation":"<p>The date and time when this anomaly detector was created.</p>" 1371 }, 1372 "lastModifiedTimeStamp":{ 1373 "shape":"EpochMillis", 1374 "documentation":"<p>The date and time when this anomaly detector was most recently modified.</p>" 1375 }, 1376 "anomalyVisibilityTime":{ 1377 "shape":"AnomalyVisibilityTime", 1378 "documentation":"<p>The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. </p>" 1379 } 1380 }, 1381 "documentation":"<p>Contains information about one anomaly detector in the account.</p>" 1382 }, 1383 "AnomalyDetectorArn":{ 1384 "type":"string", 1385 "min":1, 1386 "pattern":"[\\w#+=/:,.@-]*" 1387 }, 1388 "AnomalyDetectorStatus":{ 1389 "type":"string", 1390 "enum":[ 1391 "INITIALIZING", 1392 "TRAINING", 1393 "ANALYZING", 1394 "FAILED", 1395 "DELETED", 1396 "PAUSED" 1397 ] 1398 }, 1399 "AnomalyDetectors":{ 1400 "type":"list", 1401 "member":{"shape":"AnomalyDetector"} 1402 }, 1403 "AnomalyId":{ 1404 "type":"string", 1405 "max":36, 1406 "min":36 1407 }, 1408 "AnomalyVisibilityTime":{ 1409 "type":"long", 1410 "max":90, 1411 "min":7 1412 }, 1413 "Arn":{"type":"string"}, 1414 "AssociateKmsKeyRequest":{ 1415 "type":"structure", 1416 "required":["kmsKeyId"], 1417 "members":{ 1418 "logGroupName":{ 1419 "shape":"LogGroupName", 1420 "documentation":"<p>The name of the log group.</p> <p>In your <code>AssociateKmsKey</code> operation, you must specify either the <code>resourceIdentifier</code> parameter or the <code>logGroup</code> parameter, but you can't specify both.</p>" 1421 }, 1422 "kmsKeyId":{ 1423 "shape":"KmsKeyId", 1424 "documentation":"<p>The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. This must be a symmetric KMS key. For more information, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms\">Amazon Resource Names</a> and <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html\">Using Symmetric and Asymmetric Keys</a>.</p>" 1425 }, 1426 "resourceIdentifier":{ 1427 "shape":"ResourceIdentifier", 1428 "documentation":"<p>Specifies the target for this operation. You must specify one of the following:</p> <ul> <li> <p>Specify the following ARN to have future <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html\">GetQueryResults</a> operations in this account encrypt the results with the specified KMS key. Replace <i>REGION</i> and <i>ACCOUNT_ID</i> with your Region and account ID.</p> <p> <code>arn:aws:logs:<i>REGION</i>:<i>ACCOUNT_ID</i>:query-result:*</code> </p> </li> <li> <p>Specify the ARN of a log group to have CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. The log group ARN must be in the following format. Replace <i>REGION</i> and <i>ACCOUNT_ID</i> with your Region and account ID.</p> <p> <code>arn:aws:logs:<i>REGION</i>:<i>ACCOUNT_ID</i>:log-group:<i>LOG_GROUP_NAME</i> </code> </p> </li> </ul> <p>In your <code>AssociateKmsKey</code> operation, you must specify either the <code>resourceIdentifier</code> parameter or the <code>logGroup</code> parameter, but you can't specify both.</p>" 1429 } 1430 } 1431 }, 1432 "Boolean":{"type":"boolean"}, 1433 "CancelExportTaskRequest":{ 1434 "type":"structure", 1435 "required":["taskId"], 1436 "members":{ 1437 "taskId":{ 1438 "shape":"ExportTaskId", 1439 "documentation":"<p>The ID of the export task.</p>" 1440 } 1441 } 1442 }, 1443 "ClientToken":{ 1444 "type":"string", 1445 "max":128, 1446 "min":36, 1447 "pattern":"\\S{36,128}" 1448 }, 1449 "ConflictException":{ 1450 "type":"structure", 1451 "members":{ 1452 }, 1453 "documentation":"<p>This operation attempted to create a resource that already exists.</p>", 1454 "exception":true 1455 }, 1456 "Count":{"type":"long"}, 1457 "CreateDeliveryRequest":{ 1458 "type":"structure", 1459 "required":[ 1460 "deliverySourceName", 1461 "deliveryDestinationArn" 1462 ], 1463 "members":{ 1464 "deliverySourceName":{ 1465 "shape":"DeliverySourceName", 1466 "documentation":"<p>The name of the delivery source to use for this delivery.</p>" 1467 }, 1468 "deliveryDestinationArn":{ 1469 "shape":"Arn", 1470 "documentation":"<p>The ARN of the delivery destination to use for this delivery.</p>" 1471 }, 1472 "tags":{ 1473 "shape":"Tags", 1474 "documentation":"<p>An optional list of key-value pairs to associate with the resource.</p> <p>For more information about tagging, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services resources</a> </p>" 1475 } 1476 } 1477 }, 1478 "CreateDeliveryResponse":{ 1479 "type":"structure", 1480 "members":{ 1481 "delivery":{ 1482 "shape":"Delivery", 1483 "documentation":"<p>A structure that contains information about the delivery that you just created.</p>" 1484 } 1485 } 1486 }, 1487 "CreateExportTaskRequest":{ 1488 "type":"structure", 1489 "required":[ 1490 "logGroupName", 1491 "from", 1492 "to", 1493 "destination" 1494 ], 1495 "members":{ 1496 "taskName":{ 1497 "shape":"ExportTaskName", 1498 "documentation":"<p>The name of the export task.</p>" 1499 }, 1500 "logGroupName":{ 1501 "shape":"LogGroupName", 1502 "documentation":"<p>The name of the log group.</p>" 1503 }, 1504 "logStreamNamePrefix":{ 1505 "shape":"LogStreamName", 1506 "documentation":"<p>Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.</p>" 1507 }, 1508 "from":{ 1509 "shape":"Timestamp", 1510 "documentation":"<p>The start time of the range for the request, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp earlier than this time are not exported.</p>" 1511 }, 1512 "to":{ 1513 "shape":"Timestamp", 1514 "documentation":"<p>The end time of the range for the request, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp later than this time are not exported.</p> <p>You must specify a time that is not earlier than when this log group was created.</p>" 1515 }, 1516 "destination":{ 1517 "shape":"ExportDestinationBucket", 1518 "documentation":"<p>The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region.</p>" 1519 }, 1520 "destinationPrefix":{ 1521 "shape":"ExportDestinationPrefix", 1522 "documentation":"<p>The prefix used as the start of the key for every object exported. If you don't specify a value, the default is <code>exportedlogs</code>.</p>" 1523 } 1524 } 1525 }, 1526 "CreateExportTaskResponse":{ 1527 "type":"structure", 1528 "members":{ 1529 "taskId":{ 1530 "shape":"ExportTaskId", 1531 "documentation":"<p>The ID of the export task.</p>" 1532 } 1533 } 1534 }, 1535 "CreateLogAnomalyDetectorRequest":{ 1536 "type":"structure", 1537 "required":["logGroupArnList"], 1538 "members":{ 1539 "logGroupArnList":{ 1540 "shape":"LogGroupArnList", 1541 "documentation":"<p>An array containing the ARN of the log group that this anomaly detector will watch. You can specify only one log group ARN.</p>" 1542 }, 1543 "detectorName":{ 1544 "shape":"DetectorName", 1545 "documentation":"<p>A name for this anomaly detector.</p>" 1546 }, 1547 "evaluationFrequency":{ 1548 "shape":"EvaluationFrequency", 1549 "documentation":"<p>Specifies how often the anomaly detector is to run and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then 15 minutes might be a good setting for <code>evaluationFrequency</code> .</p>" 1550 }, 1551 "filterPattern":{ 1552 "shape":"FilterPattern", 1553 "documentation":"<p>You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html\">Filter and Pattern Syntax</a>.</p>" 1554 }, 1555 "kmsKeyId":{ 1556 "shape":"KmsKeyId", 1557 "documentation":"<p>Optionally assigns a KMS key to secure this anomaly detector and its findings. If a key is assigned, the anomalies found and the model used by this detector are encrypted at rest with the key. If a key is assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly detector to retrieve information about the anomalies that it finds.</p> <p>For more information about using a KMS key and to see the required IAM policy, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/LogsAnomalyDetection-KMS.html\">Use a KMS key with an anomaly detector</a>.</p>" 1558 }, 1559 "anomalyVisibilityTime":{ 1560 "shape":"AnomalyVisibilityTime", 1561 "documentation":"<p>The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in <code>anomalyVisibilityTime</code>, it will be considered normal going forward and will not be detected as an anomaly.</p>" 1562 }, 1563 "tags":{ 1564 "shape":"Tags", 1565 "documentation":"<p>An optional list of key-value pairs to associate with the resource.</p> <p>For more information about tagging, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services resources</a> </p>" 1566 } 1567 } 1568 }, 1569 "CreateLogAnomalyDetectorResponse":{ 1570 "type":"structure", 1571 "members":{ 1572 "anomalyDetectorArn":{ 1573 "shape":"AnomalyDetectorArn", 1574 "documentation":"<p>The ARN of the log anomaly detector that you just created.</p>" 1575 } 1576 } 1577 }, 1578 "CreateLogGroupRequest":{ 1579 "type":"structure", 1580 "required":["logGroupName"], 1581 "members":{ 1582 "logGroupName":{ 1583 "shape":"LogGroupName", 1584 "documentation":"<p>A name for the log group.</p>" 1585 }, 1586 "kmsKeyId":{ 1587 "shape":"KmsKeyId", 1588 "documentation":"<p>The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms\">Amazon Resource Names</a>.</p>" 1589 }, 1590 "tags":{ 1591 "shape":"Tags", 1592 "documentation":"<p>The key-value pairs to use for the tags.</p> <p>You can grant users access to certain log groups while preventing them from accessing other log groups. To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when you create a log group, you must have either the <code>logs:TagResource</code> or <code>logs:TagLogGroup</code> permission. For more information about tagging, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services resources</a>. For more information about using tags to control access, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html\">Controlling access to Amazon Web Services resources using tags</a>.</p>" 1593 }, 1594 "logGroupClass":{ 1595 "shape":"LogGroupClass", 1596 "documentation":"<p>Use this parameter to specify the log group class for this log group. There are two classes:</p> <ul> <li> <p>The <code>Standard</code> log class supports all CloudWatch Logs features.</p> </li> <li> <p>The <code>Infrequent Access</code> log class supports a subset of CloudWatch Logs features and incurs lower costs.</p> </li> </ul> <p>If you omit this parameter, the default of <code>STANDARD</code> is used.</p> <important> <p>The value of <code>logGroupClass</code> can't be changed after a log group is created.</p> </important> <p>For details about the features supported by each class, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html\">Log classes</a> </p>" 1597 } 1598 } 1599 }, 1600 "CreateLogStreamRequest":{ 1601 "type":"structure", 1602 "required":[ 1603 "logGroupName", 1604 "logStreamName" 1605 ], 1606 "members":{ 1607 "logGroupName":{ 1608 "shape":"LogGroupName", 1609 "documentation":"<p>The name of the log group.</p>" 1610 }, 1611 "logStreamName":{ 1612 "shape":"LogStreamName", 1613 "documentation":"<p>The name of the log stream.</p>" 1614 } 1615 } 1616 }, 1617 "DataAlreadyAcceptedException":{ 1618 "type":"structure", 1619 "members":{ 1620 "expectedSequenceToken":{"shape":"SequenceToken"} 1621 }, 1622 "documentation":"<p>The event was already logged.</p> <important> <p> <code>PutLogEvents</code> actions are now always accepted and never return <code>DataAlreadyAcceptedException</code> regardless of whether a given batch of log events has already been accepted. </p> </important>", 1623 "exception":true 1624 }, 1625 "DataProtectionPolicyDocument":{"type":"string"}, 1626 "DataProtectionStatus":{ 1627 "type":"string", 1628 "enum":[ 1629 "ACTIVATED", 1630 "DELETED", 1631 "ARCHIVED", 1632 "DISABLED" 1633 ] 1634 }, 1635 "Days":{ 1636 "type":"integer", 1637 "documentation":"<p>The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653.</p> <p>To set a log group so that its log events do not expire, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html\">DeleteRetentionPolicy</a>. </p>" 1638 }, 1639 "DefaultValue":{"type":"double"}, 1640 "DeleteAccountPolicyRequest":{ 1641 "type":"structure", 1642 "required":[ 1643 "policyName", 1644 "policyType" 1645 ], 1646 "members":{ 1647 "policyName":{ 1648 "shape":"PolicyName", 1649 "documentation":"<p>The name of the policy to delete.</p>" 1650 }, 1651 "policyType":{ 1652 "shape":"PolicyType", 1653 "documentation":"<p>The type of policy to delete.</p>" 1654 } 1655 } 1656 }, 1657 "DeleteDataProtectionPolicyRequest":{ 1658 "type":"structure", 1659 "required":["logGroupIdentifier"], 1660 "members":{ 1661 "logGroupIdentifier":{ 1662 "shape":"LogGroupIdentifier", 1663 "documentation":"<p>The name or ARN of the log group that you want to delete the data protection policy for.</p>" 1664 } 1665 } 1666 }, 1667 "DeleteDeliveryDestinationPolicyRequest":{ 1668 "type":"structure", 1669 "required":["deliveryDestinationName"], 1670 "members":{ 1671 "deliveryDestinationName":{ 1672 "shape":"DeliveryDestinationName", 1673 "documentation":"<p>The name of the delivery destination that you want to delete the policy for.</p>" 1674 } 1675 } 1676 }, 1677 "DeleteDeliveryDestinationRequest":{ 1678 "type":"structure", 1679 "required":["name"], 1680 "members":{ 1681 "name":{ 1682 "shape":"DeliveryDestinationName", 1683 "documentation":"<p>The name of the delivery destination that you want to delete. You can find a list of delivery destionation names by using the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveryDestinations.html\">DescribeDeliveryDestinations</a> operation.</p>" 1684 } 1685 } 1686 }, 1687 "DeleteDeliveryRequest":{ 1688 "type":"structure", 1689 "required":["id"], 1690 "members":{ 1691 "id":{ 1692 "shape":"DeliveryId", 1693 "documentation":"<p>The unique ID of the delivery to delete. You can find the ID of a delivery with the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html\">DescribeDeliveries</a> operation.</p>" 1694 } 1695 } 1696 }, 1697 "DeleteDeliverySourceRequest":{ 1698 "type":"structure", 1699 "required":["name"], 1700 "members":{ 1701 "name":{ 1702 "shape":"DeliverySourceName", 1703 "documentation":"<p>The name of the delivery source that you want to delete.</p>" 1704 } 1705 } 1706 }, 1707 "DeleteDestinationRequest":{ 1708 "type":"structure", 1709 "required":["destinationName"], 1710 "members":{ 1711 "destinationName":{ 1712 "shape":"DestinationName", 1713 "documentation":"<p>The name of the destination.</p>" 1714 } 1715 } 1716 }, 1717 "DeleteLogAnomalyDetectorRequest":{ 1718 "type":"structure", 1719 "required":["anomalyDetectorArn"], 1720 "members":{ 1721 "anomalyDetectorArn":{ 1722 "shape":"AnomalyDetectorArn", 1723 "documentation":"<p>The ARN of the anomaly detector to delete. You can find the ARNs of log anomaly detectors in your account by using the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListLogAnomalyDetectors.html\">ListLogAnomalyDetectors</a> operation.</p>" 1724 } 1725 } 1726 }, 1727 "DeleteLogGroupRequest":{ 1728 "type":"structure", 1729 "required":["logGroupName"], 1730 "members":{ 1731 "logGroupName":{ 1732 "shape":"LogGroupName", 1733 "documentation":"<p>The name of the log group.</p>" 1734 } 1735 } 1736 }, 1737 "DeleteLogStreamRequest":{ 1738 "type":"structure", 1739 "required":[ 1740 "logGroupName", 1741 "logStreamName" 1742 ], 1743 "members":{ 1744 "logGroupName":{ 1745 "shape":"LogGroupName", 1746 "documentation":"<p>The name of the log group.</p>" 1747 }, 1748 "logStreamName":{ 1749 "shape":"LogStreamName", 1750 "documentation":"<p>The name of the log stream.</p>" 1751 } 1752 } 1753 }, 1754 "DeleteMetricFilterRequest":{ 1755 "type":"structure", 1756 "required":[ 1757 "logGroupName", 1758 "filterName" 1759 ], 1760 "members":{ 1761 "logGroupName":{ 1762 "shape":"LogGroupName", 1763 "documentation":"<p>The name of the log group.</p>" 1764 }, 1765 "filterName":{ 1766 "shape":"FilterName", 1767 "documentation":"<p>The name of the metric filter.</p>" 1768 } 1769 } 1770 }, 1771 "DeleteQueryDefinitionRequest":{ 1772 "type":"structure", 1773 "required":["queryDefinitionId"], 1774 "members":{ 1775 "queryDefinitionId":{ 1776 "shape":"QueryId", 1777 "documentation":"<p>The ID of the query definition that you want to delete. You can use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html\">DescribeQueryDefinitions</a> to retrieve the IDs of your saved query definitions.</p>" 1778 } 1779 } 1780 }, 1781 "DeleteQueryDefinitionResponse":{ 1782 "type":"structure", 1783 "members":{ 1784 "success":{ 1785 "shape":"Success", 1786 "documentation":"<p>A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation failed.</p>" 1787 } 1788 } 1789 }, 1790 "DeleteResourcePolicyRequest":{ 1791 "type":"structure", 1792 "members":{ 1793 "policyName":{ 1794 "shape":"PolicyName", 1795 "documentation":"<p>The name of the policy to be revoked. This parameter is required.</p>" 1796 } 1797 } 1798 }, 1799 "DeleteRetentionPolicyRequest":{ 1800 "type":"structure", 1801 "required":["logGroupName"], 1802 "members":{ 1803 "logGroupName":{ 1804 "shape":"LogGroupName", 1805 "documentation":"<p>The name of the log group.</p>" 1806 } 1807 } 1808 }, 1809 "DeleteSubscriptionFilterRequest":{ 1810 "type":"structure", 1811 "required":[ 1812 "logGroupName", 1813 "filterName" 1814 ], 1815 "members":{ 1816 "logGroupName":{ 1817 "shape":"LogGroupName", 1818 "documentation":"<p>The name of the log group.</p>" 1819 }, 1820 "filterName":{ 1821 "shape":"FilterName", 1822 "documentation":"<p>The name of the subscription filter.</p>" 1823 } 1824 } 1825 }, 1826 "Deliveries":{ 1827 "type":"list", 1828 "member":{"shape":"Delivery"} 1829 }, 1830 "Delivery":{ 1831 "type":"structure", 1832 "members":{ 1833 "id":{ 1834 "shape":"DeliveryId", 1835 "documentation":"<p>The unique ID that identifies this delivery in your account.</p>" 1836 }, 1837 "arn":{ 1838 "shape":"Arn", 1839 "documentation":"<p>The Amazon Resource Name (ARN) that uniquely identifies this delivery.</p>" 1840 }, 1841 "deliverySourceName":{ 1842 "shape":"DeliverySourceName", 1843 "documentation":"<p>The name of the delivery source that is associated with this delivery.</p>" 1844 }, 1845 "deliveryDestinationArn":{ 1846 "shape":"Arn", 1847 "documentation":"<p>The ARN of the delivery destination that is associated with this delivery.</p>" 1848 }, 1849 "deliveryDestinationType":{ 1850 "shape":"DeliveryDestinationType", 1851 "documentation":"<p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>" 1852 }, 1853 "tags":{ 1854 "shape":"Tags", 1855 "documentation":"<p>The tags that have been assigned to this delivery.</p>" 1856 } 1857 }, 1858 "documentation":"<p>This structure contains information about one <i>delivery</i> in your account. </p> <p>A delivery is a connection between a logical <i>delivery source</i> and a logical <i>delivery destination</i>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html\">CreateDelivery</a>.</p> <p>You can't update an existing delivery. You can only create and delete deliveries.</p>" 1859 }, 1860 "DeliveryDestination":{ 1861 "type":"structure", 1862 "members":{ 1863 "name":{ 1864 "shape":"DeliveryDestinationName", 1865 "documentation":"<p>The name of this delivery destination.</p>" 1866 }, 1867 "arn":{ 1868 "shape":"Arn", 1869 "documentation":"<p>The Amazon Resource Name (ARN) that uniquely identifies this delivery destination.</p>" 1870 }, 1871 "deliveryDestinationType":{ 1872 "shape":"DeliveryDestinationType", 1873 "documentation":"<p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>" 1874 }, 1875 "outputFormat":{ 1876 "shape":"OutputFormat", 1877 "documentation":"<p>The format of the logs that are sent to this delivery destination. </p>" 1878 }, 1879 "deliveryDestinationConfiguration":{ 1880 "shape":"DeliveryDestinationConfiguration", 1881 "documentation":"<p>A structure that contains the ARN of the Amazon Web Services resource that will receive the logs.</p>" 1882 }, 1883 "tags":{ 1884 "shape":"Tags", 1885 "documentation":"<p>The tags that have been assigned to this delivery destination.</p>" 1886 } 1887 }, 1888 "documentation":"<p>This structure contains information about one <i>delivery destination</i> in your account. A delivery destination is an Amazon Web Services resource that represents an Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as Kinesis Data Firehose delivery destinations.</p> <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p> <ul> <li> <p>Create a delivery source, which is a logical object that represents the resource that is actually sending the logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html\">PutDeliverySource</a>.</p> </li> <li> <p>Create a <i>delivery destination</i>, which is a logical object that represents the actual delivery destination. </p> </li> <li> <p>If you are delivering logs cross-account, you must use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html\">PutDeliveryDestinationPolicy</a> in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination. </p> </li> <li> <p>Create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html\">CreateDelivery</a>.</p> </li> </ul> <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p>" 1889 }, 1890 "DeliveryDestinationConfiguration":{ 1891 "type":"structure", 1892 "required":["destinationResourceArn"], 1893 "members":{ 1894 "destinationResourceArn":{ 1895 "shape":"Arn", 1896 "documentation":"<p>The ARN of the Amazon Web Services destination that this delivery destination represents. That Amazon Web Services destination can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.</p>" 1897 } 1898 }, 1899 "documentation":"<p>A structure that contains information about one logs delivery destination.</p>" 1900 }, 1901 "DeliveryDestinationName":{ 1902 "type":"string", 1903 "max":60, 1904 "min":1, 1905 "pattern":"[\\w-]*" 1906 }, 1907 "DeliveryDestinationPolicy":{ 1908 "type":"string", 1909 "max":51200, 1910 "min":1 1911 }, 1912 "DeliveryDestinationType":{ 1913 "type":"string", 1914 "enum":[ 1915 "S3", 1916 "CWL", 1917 "FH" 1918 ] 1919 }, 1920 "DeliveryDestinations":{ 1921 "type":"list", 1922 "member":{"shape":"DeliveryDestination"} 1923 }, 1924 "DeliveryId":{ 1925 "type":"string", 1926 "max":64, 1927 "min":1, 1928 "pattern":"^[0-9A-Za-z]+$" 1929 }, 1930 "DeliverySource":{ 1931 "type":"structure", 1932 "members":{ 1933 "name":{ 1934 "shape":"DeliverySourceName", 1935 "documentation":"<p>The unique name of the delivery source.</p>" 1936 }, 1937 "arn":{ 1938 "shape":"Arn", 1939 "documentation":"<p>The Amazon Resource Name (ARN) that uniquely identifies this delivery source.</p>" 1940 }, 1941 "resourceArns":{ 1942 "shape":"ResourceArns", 1943 "documentation":"<p>This array contains the ARN of the Amazon Web Services resource that sends logs and is represented by this delivery source. Currently, only one ARN can be in the array.</p>" 1944 }, 1945 "service":{ 1946 "shape":"Service", 1947 "documentation":"<p>The Amazon Web Services service that is sending logs.</p>" 1948 }, 1949 "logType":{ 1950 "shape":"LogType", 1951 "documentation":"<p>The type of log that the source is sending. For valid values for this parameter, see the documentation for the source service.</p>" 1952 }, 1953 "tags":{ 1954 "shape":"Tags", 1955 "documentation":"<p>The tags that have been assigned to this delivery source.</p>" 1956 } 1957 }, 1958 "documentation":"<p>This structure contains information about one <i>delivery source</i> in your account. A delivery source is an Amazon Web Services resource that sends logs to an Amazon Web Services destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p> <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed as <b>Supported [V2 Permissions]</b> in the table at <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enabling logging from Amazon Web Services services.</a> </p> <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p> <ul> <li> <p>Create a delivery source, which is a logical object that represents the resource that is actually sending the logs. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html\">PutDeliverySource</a>.</p> </li> <li> <p>Create a <i>delivery destination</i>, which is a logical object that represents the actual delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html\">PutDeliveryDestination</a>.</p> </li> <li> <p>If you are delivering logs cross-account, you must use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html\">PutDeliveryDestinationPolicy</a> in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination. </p> </li> <li> <p>Create a <i>delivery</i> by pairing exactly one delivery source and one delivery destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html\">CreateDelivery</a>.</p> </li> </ul> <p>You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p>" 1959 }, 1960 "DeliverySourceName":{ 1961 "type":"string", 1962 "max":60, 1963 "min":1, 1964 "pattern":"[\\w-]*" 1965 }, 1966 "DeliverySources":{ 1967 "type":"list", 1968 "member":{"shape":"DeliverySource"} 1969 }, 1970 "Descending":{"type":"boolean"}, 1971 "DescribeAccountPoliciesRequest":{ 1972 "type":"structure", 1973 "required":["policyType"], 1974 "members":{ 1975 "policyType":{ 1976 "shape":"PolicyType", 1977 "documentation":"<p>Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.</p>" 1978 }, 1979 "policyName":{ 1980 "shape":"PolicyName", 1981 "documentation":"<p>Use this parameter to limit the returned policies to only the policy with the name that you specify.</p>" 1982 }, 1983 "accountIdentifiers":{ 1984 "shape":"AccountIds", 1985 "documentation":"<p>If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.</p> <p>If you omit this parameter, only the policy in the current account is returned.</p>" 1986 } 1987 } 1988 }, 1989 "DescribeAccountPoliciesResponse":{ 1990 "type":"structure", 1991 "members":{ 1992 "accountPolicies":{ 1993 "shape":"AccountPolicies", 1994 "documentation":"<p>An array of structures that contain information about the CloudWatch Logs account policies that match the specified filters.</p>" 1995 } 1996 } 1997 }, 1998 "DescribeDeliveriesRequest":{ 1999 "type":"structure", 2000 "members":{ 2001 "nextToken":{"shape":"NextToken"}, 2002 "limit":{ 2003 "shape":"DescribeLimit", 2004 "documentation":"<p>Optionally specify the maximum number of deliveries to return in the response.</p>" 2005 } 2006 } 2007 }, 2008 "DescribeDeliveriesResponse":{ 2009 "type":"structure", 2010 "members":{ 2011 "deliveries":{ 2012 "shape":"Deliveries", 2013 "documentation":"<p>An array of structures. Each structure contains information about one delivery in the account.</p>" 2014 }, 2015 "nextToken":{"shape":"NextToken"} 2016 } 2017 }, 2018 "DescribeDeliveryDestinationsRequest":{ 2019 "type":"structure", 2020 "members":{ 2021 "nextToken":{"shape":"NextToken"}, 2022 "limit":{ 2023 "shape":"DescribeLimit", 2024 "documentation":"<p>Optionally specify the maximum number of delivery destinations to return in the response.</p>" 2025 } 2026 } 2027 }, 2028 "DescribeDeliveryDestinationsResponse":{ 2029 "type":"structure", 2030 "members":{ 2031 "deliveryDestinations":{ 2032 "shape":"DeliveryDestinations", 2033 "documentation":"<p>An array of structures. Each structure contains information about one delivery destination in the account.</p>" 2034 }, 2035 "nextToken":{"shape":"NextToken"} 2036 } 2037 }, 2038 "DescribeDeliverySourcesRequest":{ 2039 "type":"structure", 2040 "members":{ 2041 "nextToken":{"shape":"NextToken"}, 2042 "limit":{ 2043 "shape":"DescribeLimit", 2044 "documentation":"<p>Optionally specify the maximum number of delivery sources to return in the response.</p>" 2045 } 2046 } 2047 }, 2048 "DescribeDeliverySourcesResponse":{ 2049 "type":"structure", 2050 "members":{ 2051 "deliverySources":{ 2052 "shape":"DeliverySources", 2053 "documentation":"<p>An array of structures. Each structure contains information about one delivery source in the account.</p>" 2054 }, 2055 "nextToken":{"shape":"NextToken"} 2056 } 2057 }, 2058 "DescribeDestinationsRequest":{ 2059 "type":"structure", 2060 "members":{ 2061 "DestinationNamePrefix":{ 2062 "shape":"DestinationName", 2063 "documentation":"<p>The prefix to match. If you don't specify a value, no prefix filter is applied.</p>" 2064 }, 2065 "nextToken":{ 2066 "shape":"NextToken", 2067 "documentation":"<p>The token for the next set of items to return. (You received this token from a previous call.)</p>" 2068 }, 2069 "limit":{ 2070 "shape":"DescribeLimit", 2071 "documentation":"<p>The maximum number of items returned. If you don't specify a value, the default maximum value of 50 items is used.</p>" 2072 } 2073 } 2074 }, 2075 "DescribeDestinationsResponse":{ 2076 "type":"structure", 2077 "members":{ 2078 "destinations":{ 2079 "shape":"Destinations", 2080 "documentation":"<p>The destinations.</p>" 2081 }, 2082 "nextToken":{"shape":"NextToken"} 2083 } 2084 }, 2085 "DescribeExportTasksRequest":{ 2086 "type":"structure", 2087 "members":{ 2088 "taskId":{ 2089 "shape":"ExportTaskId", 2090 "documentation":"<p>The ID of the export task. Specifying a task ID filters the results to one or zero export tasks.</p>" 2091 }, 2092 "statusCode":{ 2093 "shape":"ExportTaskStatusCode", 2094 "documentation":"<p>The status code of the export task. Specifying a status code filters the results to zero or more export tasks.</p>" 2095 }, 2096 "nextToken":{ 2097 "shape":"NextToken", 2098 "documentation":"<p>The token for the next set of items to return. (You received this token from a previous call.)</p>" 2099 }, 2100 "limit":{ 2101 "shape":"DescribeLimit", 2102 "documentation":"<p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>" 2103 } 2104 } 2105 }, 2106 "DescribeExportTasksResponse":{ 2107 "type":"structure", 2108 "members":{ 2109 "exportTasks":{ 2110 "shape":"ExportTasks", 2111 "documentation":"<p>The export tasks.</p>" 2112 }, 2113 "nextToken":{"shape":"NextToken"} 2114 } 2115 }, 2116 "DescribeLimit":{ 2117 "type":"integer", 2118 "max":50, 2119 "min":1 2120 }, 2121 "DescribeLogGroupsRequest":{ 2122 "type":"structure", 2123 "members":{ 2124 "accountIdentifiers":{ 2125 "shape":"AccountIds", 2126 "documentation":"<p>When <code>includeLinkedAccounts</code> is set to <code>True</code>, use this parameter to specify the list of accounts to search. You can specify as many as 20 account IDs in the array. </p>" 2127 }, 2128 "logGroupNamePrefix":{ 2129 "shape":"LogGroupName", 2130 "documentation":"<p>The prefix to match.</p> <note> <p> <code>logGroupNamePrefix</code> and <code>logGroupNamePattern</code> are mutually exclusive. Only one of these parameters can be passed. </p> </note>" 2131 }, 2132 "logGroupNamePattern":{ 2133 "shape":"LogGroupNamePattern", 2134 "documentation":"<p>If you specify a string for this parameter, the operation returns only log groups that have names that match the string based on a case-sensitive substring search. For example, if you specify <code>Foo</code>, log groups named <code>FooBar</code>, <code>aws/Foo</code>, and <code>GroupFoo</code> would match, but <code>foo</code>, <code>F/o/o</code> and <code>Froo</code> would not match.</p> <p>If you specify <code>logGroupNamePattern</code> in your request, then only <code>arn</code>, <code>creationTime</code>, and <code>logGroupName</code> are included in the response. </p> <note> <p> <code>logGroupNamePattern</code> and <code>logGroupNamePrefix</code> are mutually exclusive. Only one of these parameters can be passed. </p> </note>" 2135 }, 2136 "nextToken":{ 2137 "shape":"NextToken", 2138 "documentation":"<p>The token for the next set of items to return. (You received this token from a previous call.)</p>" 2139 }, 2140 "limit":{ 2141 "shape":"DescribeLimit", 2142 "documentation":"<p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>" 2143 }, 2144 "includeLinkedAccounts":{ 2145 "shape":"IncludeLinkedAccounts", 2146 "documentation":"<p>If you are using a monitoring account, set this to <code>True</code> to have the operation return log groups in the accounts listed in <code>accountIdentifiers</code>.</p> <p>If this parameter is set to <code>true</code> and <code>accountIdentifiers</code> contains a null value, the operation returns all log groups in the monitoring account and all log groups in all source accounts that are linked to the monitoring account. </p>" 2147 }, 2148 "logGroupClass":{ 2149 "shape":"LogGroupClass", 2150 "documentation":"<p>Specifies the log group class for this log group. There are two classes:</p> <ul> <li> <p>The <code>Standard</code> log class supports all CloudWatch Logs features.</p> </li> <li> <p>The <code>Infrequent Access</code> log class supports a subset of CloudWatch Logs features and incurs lower costs.</p> </li> </ul> <p>For details about the features supported by each class, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html\">Log classes</a> </p>" 2151 } 2152 } 2153 }, 2154 "DescribeLogGroupsResponse":{ 2155 "type":"structure", 2156 "members":{ 2157 "logGroups":{ 2158 "shape":"LogGroups", 2159 "documentation":"<p>The log groups.</p> <p>If the <code>retentionInDays</code> value is not included for a log group, then that log group's events do not expire.</p>" 2160 }, 2161 "nextToken":{"shape":"NextToken"} 2162 } 2163 }, 2164 "DescribeLogStreamsRequest":{ 2165 "type":"structure", 2166 "members":{ 2167 "logGroupName":{ 2168 "shape":"LogGroupName", 2169 "documentation":"<p>The name of the log group.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2170 }, 2171 "logGroupIdentifier":{ 2172 "shape":"LogGroupIdentifier", 2173 "documentation":"<p>Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2174 }, 2175 "logStreamNamePrefix":{ 2176 "shape":"LogStreamName", 2177 "documentation":"<p>The prefix to match.</p> <p>If <code>orderBy</code> is <code>LastEventTime</code>, you cannot specify this parameter.</p>" 2178 }, 2179 "orderBy":{ 2180 "shape":"OrderBy", 2181 "documentation":"<p>If the value is <code>LogStreamName</code>, the results are ordered by log stream name. If the value is <code>LastEventTime</code>, the results are ordered by the event time. The default value is <code>LogStreamName</code>.</p> <p>If you order the results by event time, you cannot specify the <code>logStreamNamePrefix</code> parameter.</p> <p> <code>lastEventTimestamp</code> 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 <code>Jan 1, 1970 00:00:00 UTC</code>. <code>lastEventTimestamp</code> updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.</p>" 2182 }, 2183 "descending":{ 2184 "shape":"Descending", 2185 "documentation":"<p>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.</p>" 2186 }, 2187 "nextToken":{ 2188 "shape":"NextToken", 2189 "documentation":"<p>The token for the next set of items to return. (You received this token from a previous call.)</p>" 2190 }, 2191 "limit":{ 2192 "shape":"DescribeLimit", 2193 "documentation":"<p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>" 2194 } 2195 } 2196 }, 2197 "DescribeLogStreamsResponse":{ 2198 "type":"structure", 2199 "members":{ 2200 "logStreams":{ 2201 "shape":"LogStreams", 2202 "documentation":"<p>The log streams.</p>" 2203 }, 2204 "nextToken":{"shape":"NextToken"} 2205 } 2206 }, 2207 "DescribeMetricFiltersRequest":{ 2208 "type":"structure", 2209 "members":{ 2210 "logGroupName":{ 2211 "shape":"LogGroupName", 2212 "documentation":"<p>The name of the log group.</p>" 2213 }, 2214 "filterNamePrefix":{ 2215 "shape":"FilterName", 2216 "documentation":"<p>The prefix to match. CloudWatch Logs uses the value that you set here only if you also include the <code>logGroupName</code> parameter in your request.</p>" 2217 }, 2218 "nextToken":{ 2219 "shape":"NextToken", 2220 "documentation":"<p>The token for the next set of items to return. (You received this token from a previous call.)</p>" 2221 }, 2222 "limit":{ 2223 "shape":"DescribeLimit", 2224 "documentation":"<p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>" 2225 }, 2226 "metricName":{ 2227 "shape":"MetricName", 2228 "documentation":"<p>Filters results to include only those with the specified metric name. If you include this parameter in your request, you must also include the <code>metricNamespace</code> parameter.</p>" 2229 }, 2230 "metricNamespace":{ 2231 "shape":"MetricNamespace", 2232 "documentation":"<p>Filters results to include only those in the specified namespace. If you include this parameter in your request, you must also include the <code>metricName</code> parameter.</p>" 2233 } 2234 } 2235 }, 2236 "DescribeMetricFiltersResponse":{ 2237 "type":"structure", 2238 "members":{ 2239 "metricFilters":{ 2240 "shape":"MetricFilters", 2241 "documentation":"<p>The metric filters.</p>" 2242 }, 2243 "nextToken":{"shape":"NextToken"} 2244 } 2245 }, 2246 "DescribeQueriesMaxResults":{ 2247 "type":"integer", 2248 "max":1000, 2249 "min":1 2250 }, 2251 "DescribeQueriesRequest":{ 2252 "type":"structure", 2253 "members":{ 2254 "logGroupName":{ 2255 "shape":"LogGroupName", 2256 "documentation":"<p>Limits the returned queries to only those for the specified log group.</p>" 2257 }, 2258 "status":{ 2259 "shape":"QueryStatus", 2260 "documentation":"<p>Limits the returned queries to only those that have the specified status. Valid values are <code>Cancelled</code>, <code>Complete</code>, <code>Failed</code>, <code>Running</code>, and <code>Scheduled</code>.</p>" 2261 }, 2262 "maxResults":{ 2263 "shape":"DescribeQueriesMaxResults", 2264 "documentation":"<p>Limits the number of returned queries to the specified number.</p>" 2265 }, 2266 "nextToken":{"shape":"NextToken"} 2267 } 2268 }, 2269 "DescribeQueriesResponse":{ 2270 "type":"structure", 2271 "members":{ 2272 "queries":{ 2273 "shape":"QueryInfoList", 2274 "documentation":"<p>The list of queries that match the request.</p>" 2275 }, 2276 "nextToken":{"shape":"NextToken"} 2277 } 2278 }, 2279 "DescribeQueryDefinitionsRequest":{ 2280 "type":"structure", 2281 "members":{ 2282 "queryDefinitionNamePrefix":{ 2283 "shape":"QueryDefinitionName", 2284 "documentation":"<p>Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify.</p>" 2285 }, 2286 "maxResults":{ 2287 "shape":"QueryListMaxResults", 2288 "documentation":"<p>Limits the number of returned query definitions to the specified number.</p>" 2289 }, 2290 "nextToken":{"shape":"NextToken"} 2291 } 2292 }, 2293 "DescribeQueryDefinitionsResponse":{ 2294 "type":"structure", 2295 "members":{ 2296 "queryDefinitions":{ 2297 "shape":"QueryDefinitionList", 2298 "documentation":"<p>The list of query definitions that match your request.</p>" 2299 }, 2300 "nextToken":{"shape":"NextToken"} 2301 } 2302 }, 2303 "DescribeResourcePoliciesRequest":{ 2304 "type":"structure", 2305 "members":{ 2306 "nextToken":{"shape":"NextToken"}, 2307 "limit":{ 2308 "shape":"DescribeLimit", 2309 "documentation":"<p>The maximum number of resource policies to be displayed with one call of this API.</p>" 2310 } 2311 } 2312 }, 2313 "DescribeResourcePoliciesResponse":{ 2314 "type":"structure", 2315 "members":{ 2316 "resourcePolicies":{ 2317 "shape":"ResourcePolicies", 2318 "documentation":"<p>The resource policies that exist in this account.</p>" 2319 }, 2320 "nextToken":{"shape":"NextToken"} 2321 } 2322 }, 2323 "DescribeSubscriptionFiltersRequest":{ 2324 "type":"structure", 2325 "required":["logGroupName"], 2326 "members":{ 2327 "logGroupName":{ 2328 "shape":"LogGroupName", 2329 "documentation":"<p>The name of the log group.</p>" 2330 }, 2331 "filterNamePrefix":{ 2332 "shape":"FilterName", 2333 "documentation":"<p>The prefix to match. If you don't specify a value, no prefix filter is applied.</p>" 2334 }, 2335 "nextToken":{ 2336 "shape":"NextToken", 2337 "documentation":"<p>The token for the next set of items to return. (You received this token from a previous call.)</p>" 2338 }, 2339 "limit":{ 2340 "shape":"DescribeLimit", 2341 "documentation":"<p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>" 2342 } 2343 } 2344 }, 2345 "DescribeSubscriptionFiltersResponse":{ 2346 "type":"structure", 2347 "members":{ 2348 "subscriptionFilters":{ 2349 "shape":"SubscriptionFilters", 2350 "documentation":"<p>The subscription filters.</p>" 2351 }, 2352 "nextToken":{"shape":"NextToken"} 2353 } 2354 }, 2355 "Description":{ 2356 "type":"string", 2357 "min":1 2358 }, 2359 "Destination":{ 2360 "type":"structure", 2361 "members":{ 2362 "destinationName":{ 2363 "shape":"DestinationName", 2364 "documentation":"<p>The name of the destination.</p>" 2365 }, 2366 "targetArn":{ 2367 "shape":"TargetArn", 2368 "documentation":"<p>The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).</p>" 2369 }, 2370 "roleArn":{ 2371 "shape":"RoleArn", 2372 "documentation":"<p>A role for impersonation, used when delivering log events to the target.</p>" 2373 }, 2374 "accessPolicy":{ 2375 "shape":"AccessPolicy", 2376 "documentation":"<p>An IAM policy document that governs which Amazon Web Services accounts can create subscription filters against this destination.</p>" 2377 }, 2378 "arn":{ 2379 "shape":"Arn", 2380 "documentation":"<p>The ARN of this destination.</p>" 2381 }, 2382 "creationTime":{ 2383 "shape":"Timestamp", 2384 "documentation":"<p>The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.</p>" 2385 } 2386 }, 2387 "documentation":"<p>Represents a cross-account destination that receives subscription log events.</p>" 2388 }, 2389 "DestinationArn":{ 2390 "type":"string", 2391 "min":1 2392 }, 2393 "DestinationName":{ 2394 "type":"string", 2395 "max":512, 2396 "min":1, 2397 "pattern":"[^:*]*" 2398 }, 2399 "Destinations":{ 2400 "type":"list", 2401 "member":{"shape":"Destination"} 2402 }, 2403 "DetectorName":{ 2404 "type":"string", 2405 "min":1 2406 }, 2407 "Dimensions":{ 2408 "type":"map", 2409 "key":{"shape":"DimensionsKey"}, 2410 "value":{"shape":"DimensionsValue"} 2411 }, 2412 "DimensionsKey":{ 2413 "type":"string", 2414 "max":255 2415 }, 2416 "DimensionsValue":{ 2417 "type":"string", 2418 "max":255 2419 }, 2420 "DisassociateKmsKeyRequest":{ 2421 "type":"structure", 2422 "members":{ 2423 "logGroupName":{ 2424 "shape":"LogGroupName", 2425 "documentation":"<p>The name of the log group.</p> <p>In your <code>DisassociateKmsKey</code> operation, you must specify either the <code>resourceIdentifier</code> parameter or the <code>logGroup</code> parameter, but you can't specify both.</p>" 2426 }, 2427 "resourceIdentifier":{ 2428 "shape":"ResourceIdentifier", 2429 "documentation":"<p>Specifies the target for this operation. You must specify one of the following:</p> <ul> <li> <p>Specify the ARN of a log group to stop having CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. After you run this operation, CloudWatch Logs encrypts ingested log events with the default CloudWatch Logs method. The log group ARN must be in the following format. Replace <i>REGION</i> and <i>ACCOUNT_ID</i> with your Region and account ID.</p> <p> <code>arn:aws:logs:<i>REGION</i>:<i>ACCOUNT_ID</i>:log-group:<i>LOG_GROUP_NAME</i> </code> </p> </li> <li> <p>Specify the following ARN to stop using this key to encrypt the results of future <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html\">StartQuery</a> operations in this account. Replace <i>REGION</i> and <i>ACCOUNT_ID</i> with your Region and account ID.</p> <p> <code>arn:aws:logs:<i>REGION</i>:<i>ACCOUNT_ID</i>:query-result:*</code> </p> </li> </ul> <p>In your <code>DisssociateKmsKey</code> operation, you must specify either the <code>resourceIdentifier</code> parameter or the <code>logGroup</code> parameter, but you can't specify both.</p>" 2430 } 2431 } 2432 }, 2433 "Distribution":{ 2434 "type":"string", 2435 "documentation":"<p>The method used to distribute log data to the destination, which can be either random or grouped by log stream.</p>", 2436 "enum":[ 2437 "Random", 2438 "ByLogStream" 2439 ] 2440 }, 2441 "DynamicTokenPosition":{"type":"integer"}, 2442 "EncryptionKey":{ 2443 "type":"string", 2444 "max":256 2445 }, 2446 "Enumerations":{ 2447 "type":"map", 2448 "key":{"shape":"TokenString"}, 2449 "value":{"shape":"TokenValue"} 2450 }, 2451 "EpochMillis":{ 2452 "type":"long", 2453 "min":0 2454 }, 2455 "EvaluationFrequency":{ 2456 "type":"string", 2457 "enum":[ 2458 "ONE_MIN", 2459 "FIVE_MIN", 2460 "TEN_MIN", 2461 "FIFTEEN_MIN", 2462 "THIRTY_MIN", 2463 "ONE_HOUR" 2464 ] 2465 }, 2466 "EventId":{"type":"string"}, 2467 "EventMessage":{ 2468 "type":"string", 2469 "min":1 2470 }, 2471 "EventNumber":{"type":"long"}, 2472 "EventsLimit":{ 2473 "type":"integer", 2474 "max":10000, 2475 "min":1 2476 }, 2477 "ExportDestinationBucket":{ 2478 "type":"string", 2479 "max":512, 2480 "min":1 2481 }, 2482 "ExportDestinationPrefix":{"type":"string"}, 2483 "ExportTask":{ 2484 "type":"structure", 2485 "members":{ 2486 "taskId":{ 2487 "shape":"ExportTaskId", 2488 "documentation":"<p>The ID of the export task.</p>" 2489 }, 2490 "taskName":{ 2491 "shape":"ExportTaskName", 2492 "documentation":"<p>The name of the export task.</p>" 2493 }, 2494 "logGroupName":{ 2495 "shape":"LogGroupName", 2496 "documentation":"<p>The name of the log group from which logs data was exported.</p>" 2497 }, 2498 "from":{ 2499 "shape":"Timestamp", 2500 "documentation":"<p>The start time, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp before this time are not exported.</p>" 2501 }, 2502 "to":{ 2503 "shape":"Timestamp", 2504 "documentation":"<p>The end time, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp later than this time are not exported.</p>" 2505 }, 2506 "destination":{ 2507 "shape":"ExportDestinationBucket", 2508 "documentation":"<p>The name of the S3 bucket to which the log data was exported.</p>" 2509 }, 2510 "destinationPrefix":{ 2511 "shape":"ExportDestinationPrefix", 2512 "documentation":"<p>The prefix that was used as the start of Amazon S3 key for every object exported.</p>" 2513 }, 2514 "status":{ 2515 "shape":"ExportTaskStatus", 2516 "documentation":"<p>The status of the export task.</p>" 2517 }, 2518 "executionInfo":{ 2519 "shape":"ExportTaskExecutionInfo", 2520 "documentation":"<p>Execution information about the export task.</p>" 2521 } 2522 }, 2523 "documentation":"<p>Represents an export task.</p>" 2524 }, 2525 "ExportTaskExecutionInfo":{ 2526 "type":"structure", 2527 "members":{ 2528 "creationTime":{ 2529 "shape":"Timestamp", 2530 "documentation":"<p>The creation time of the export task, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 2531 }, 2532 "completionTime":{ 2533 "shape":"Timestamp", 2534 "documentation":"<p>The completion time of the export task, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 2535 } 2536 }, 2537 "documentation":"<p>Represents the status of an export task.</p>" 2538 }, 2539 "ExportTaskId":{ 2540 "type":"string", 2541 "max":512, 2542 "min":1 2543 }, 2544 "ExportTaskName":{ 2545 "type":"string", 2546 "max":512, 2547 "min":1 2548 }, 2549 "ExportTaskStatus":{ 2550 "type":"structure", 2551 "members":{ 2552 "code":{ 2553 "shape":"ExportTaskStatusCode", 2554 "documentation":"<p>The status code of the export task.</p>" 2555 }, 2556 "message":{ 2557 "shape":"ExportTaskStatusMessage", 2558 "documentation":"<p>The status message related to the status code.</p>" 2559 } 2560 }, 2561 "documentation":"<p>Represents the status of an export task.</p>" 2562 }, 2563 "ExportTaskStatusCode":{ 2564 "type":"string", 2565 "enum":[ 2566 "CANCELLED", 2567 "COMPLETED", 2568 "FAILED", 2569 "PENDING", 2570 "PENDING_CANCEL", 2571 "RUNNING" 2572 ] 2573 }, 2574 "ExportTaskStatusMessage":{"type":"string"}, 2575 "ExportTasks":{ 2576 "type":"list", 2577 "member":{"shape":"ExportTask"} 2578 }, 2579 "ExtractedValues":{ 2580 "type":"map", 2581 "key":{"shape":"Token"}, 2582 "value":{"shape":"Value"} 2583 }, 2584 "Field":{"type":"string"}, 2585 "FilterCount":{"type":"integer"}, 2586 "FilterLogEventsRequest":{ 2587 "type":"structure", 2588 "members":{ 2589 "logGroupName":{ 2590 "shape":"LogGroupName", 2591 "documentation":"<p>The name of the log group to search.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2592 }, 2593 "logGroupIdentifier":{ 2594 "shape":"LogGroupIdentifier", 2595 "documentation":"<p>Specify either the name or ARN of the log group to view log events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2596 }, 2597 "logStreamNames":{ 2598 "shape":"InputLogStreamNames", 2599 "documentation":"<p>Filters the results to only logs from the log streams in this list.</p> <p>If you specify a value for both <code>logStreamNamePrefix</code> and <code>logStreamNames</code>, the action returns an <code>InvalidParameterException</code> error.</p>" 2600 }, 2601 "logStreamNamePrefix":{ 2602 "shape":"LogStreamName", 2603 "documentation":"<p>Filters the results to include only events from log streams that have names starting with this prefix.</p> <p>If you specify a value for both <code>logStreamNamePrefix</code> and <code>logStreamNames</code>, but the value for <code>logStreamNamePrefix</code> does not match any log stream names specified in <code>logStreamNames</code>, the action returns an <code>InvalidParameterException</code> error.</p>" 2604 }, 2605 "startTime":{ 2606 "shape":"Timestamp", 2607 "documentation":"<p>The start of the time range, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp before this time are not returned.</p>" 2608 }, 2609 "endTime":{ 2610 "shape":"Timestamp", 2611 "documentation":"<p>The end of the time range, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp later than this time are not returned.</p>" 2612 }, 2613 "filterPattern":{ 2614 "shape":"FilterPattern", 2615 "documentation":"<p>The filter pattern to use. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html\">Filter and Pattern Syntax</a>.</p> <p>If not provided, all the events are matched.</p>" 2616 }, 2617 "nextToken":{ 2618 "shape":"NextToken", 2619 "documentation":"<p>The token for the next set of events to return. (You received this token from a previous call.)</p>" 2620 }, 2621 "limit":{ 2622 "shape":"EventsLimit", 2623 "documentation":"<p>The maximum number of events to return. The default is 10,000 events.</p>" 2624 }, 2625 "interleaved":{ 2626 "shape":"Interleaved", 2627 "documentation":"<p>If the value is true, the operation attempts 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.</p> <p> <b>Important</b> As of June 17, 2019, this parameter is ignored and the value is assumed to be true. The response from this operation always interleaves events from multiple log streams within a log group.</p>", 2628 "deprecated":true, 2629 "deprecatedMessage":"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." 2630 }, 2631 "unmask":{ 2632 "shape":"Unmask", 2633 "documentation":"<p>Specify <code>true</code> to display the log event fields with all sensitive data unmasked and visible. The default is <code>false</code>.</p> <p>To use this operation with this parameter, you must be signed into an account with the <code>logs:Unmask</code> permission.</p>" 2634 } 2635 } 2636 }, 2637 "FilterLogEventsResponse":{ 2638 "type":"structure", 2639 "members":{ 2640 "events":{ 2641 "shape":"FilteredLogEvents", 2642 "documentation":"<p>The matched events.</p>" 2643 }, 2644 "searchedLogStreams":{ 2645 "shape":"SearchedLogStreams", 2646 "documentation":"<p> <b>Important</b> As of May 15, 2020, this parameter is no longer supported. This parameter returns an empty list.</p> <p>Indicates which log streams have been searched and whether each has been searched completely.</p>" 2647 }, 2648 "nextToken":{ 2649 "shape":"NextToken", 2650 "documentation":"<p>The token to use when requesting the next set of items. The token expires after 24 hours.</p>" 2651 } 2652 } 2653 }, 2654 "FilterName":{ 2655 "type":"string", 2656 "max":512, 2657 "min":1, 2658 "pattern":"[^:*]*" 2659 }, 2660 "FilterPattern":{ 2661 "type":"string", 2662 "documentation":"<p>A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.</p>", 2663 "max":1024, 2664 "min":0 2665 }, 2666 "FilteredLogEvent":{ 2667 "type":"structure", 2668 "members":{ 2669 "logStreamName":{ 2670 "shape":"LogStreamName", 2671 "documentation":"<p>The name of the log stream to which this event belongs.</p>" 2672 }, 2673 "timestamp":{ 2674 "shape":"Timestamp", 2675 "documentation":"<p>The time the event occurred, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 2676 }, 2677 "message":{ 2678 "shape":"EventMessage", 2679 "documentation":"<p>The data contained in the log event.</p>" 2680 }, 2681 "ingestionTime":{ 2682 "shape":"Timestamp", 2683 "documentation":"<p>The time the event was ingested, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 2684 }, 2685 "eventId":{ 2686 "shape":"EventId", 2687 "documentation":"<p>The ID of the event.</p>" 2688 } 2689 }, 2690 "documentation":"<p>Represents a matched event.</p>" 2691 }, 2692 "FilteredLogEvents":{ 2693 "type":"list", 2694 "member":{"shape":"FilteredLogEvent"} 2695 }, 2696 "ForceUpdate":{"type":"boolean"}, 2697 "GetDataProtectionPolicyRequest":{ 2698 "type":"structure", 2699 "required":["logGroupIdentifier"], 2700 "members":{ 2701 "logGroupIdentifier":{ 2702 "shape":"LogGroupIdentifier", 2703 "documentation":"<p>The name or ARN of the log group that contains the data protection policy that you want to see.</p>" 2704 } 2705 } 2706 }, 2707 "GetDataProtectionPolicyResponse":{ 2708 "type":"structure", 2709 "members":{ 2710 "logGroupIdentifier":{ 2711 "shape":"LogGroupIdentifier", 2712 "documentation":"<p>The log group name or ARN that you specified in your request.</p>" 2713 }, 2714 "policyDocument":{ 2715 "shape":"DataProtectionPolicyDocument", 2716 "documentation":"<p>The data protection policy document for this log group.</p>" 2717 }, 2718 "lastUpdatedTime":{ 2719 "shape":"Timestamp", 2720 "documentation":"<p>The date and time that this policy was most recently updated.</p>" 2721 } 2722 } 2723 }, 2724 "GetDeliveryDestinationPolicyRequest":{ 2725 "type":"structure", 2726 "required":["deliveryDestinationName"], 2727 "members":{ 2728 "deliveryDestinationName":{ 2729 "shape":"DeliveryDestinationName", 2730 "documentation":"<p>The name of the delivery destination that you want to retrieve the policy of.</p>" 2731 } 2732 } 2733 }, 2734 "GetDeliveryDestinationPolicyResponse":{ 2735 "type":"structure", 2736 "members":{ 2737 "policy":{ 2738 "shape":"Policy", 2739 "documentation":"<p>The IAM policy for this delivery destination.</p>" 2740 } 2741 } 2742 }, 2743 "GetDeliveryDestinationRequest":{ 2744 "type":"structure", 2745 "required":["name"], 2746 "members":{ 2747 "name":{ 2748 "shape":"DeliveryDestinationName", 2749 "documentation":"<p>The name of the delivery destination that you want to retrieve.</p>" 2750 } 2751 } 2752 }, 2753 "GetDeliveryDestinationResponse":{ 2754 "type":"structure", 2755 "members":{ 2756 "deliveryDestination":{ 2757 "shape":"DeliveryDestination", 2758 "documentation":"<p>A structure containing information about the delivery destination.</p>" 2759 } 2760 } 2761 }, 2762 "GetDeliveryRequest":{ 2763 "type":"structure", 2764 "required":["id"], 2765 "members":{ 2766 "id":{ 2767 "shape":"DeliveryId", 2768 "documentation":"<p>The ID of the delivery that you want to retrieve.</p>" 2769 } 2770 } 2771 }, 2772 "GetDeliveryResponse":{ 2773 "type":"structure", 2774 "members":{ 2775 "delivery":{ 2776 "shape":"Delivery", 2777 "documentation":"<p>A structure that contains information about the delivery.</p>" 2778 } 2779 } 2780 }, 2781 "GetDeliverySourceRequest":{ 2782 "type":"structure", 2783 "required":["name"], 2784 "members":{ 2785 "name":{ 2786 "shape":"DeliverySourceName", 2787 "documentation":"<p>The name of the delivery source that you want to retrieve.</p>" 2788 } 2789 } 2790 }, 2791 "GetDeliverySourceResponse":{ 2792 "type":"structure", 2793 "members":{ 2794 "deliverySource":{ 2795 "shape":"DeliverySource", 2796 "documentation":"<p>A structure containing information about the delivery source.</p>" 2797 } 2798 } 2799 }, 2800 "GetLogAnomalyDetectorRequest":{ 2801 "type":"structure", 2802 "required":["anomalyDetectorArn"], 2803 "members":{ 2804 "anomalyDetectorArn":{ 2805 "shape":"AnomalyDetectorArn", 2806 "documentation":"<p>The ARN of the anomaly detector to retrieve information about. You can find the ARNs of log anomaly detectors in your account by using the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListLogAnomalyDetectors.html\">ListLogAnomalyDetectors</a> operation.</p>" 2807 } 2808 } 2809 }, 2810 "GetLogAnomalyDetectorResponse":{ 2811 "type":"structure", 2812 "members":{ 2813 "detectorName":{ 2814 "shape":"DetectorName", 2815 "documentation":"<p>The name of the log anomaly detector</p>" 2816 }, 2817 "logGroupArnList":{ 2818 "shape":"LogGroupArnList", 2819 "documentation":"<p>An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.</p>" 2820 }, 2821 "evaluationFrequency":{ 2822 "shape":"EvaluationFrequency", 2823 "documentation":"<p>Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting <code>evaluationFrequency</code> to <code>FIFTEEN_MIN</code> might be appropriate.</p>" 2824 }, 2825 "filterPattern":{"shape":"FilterPattern"}, 2826 "anomalyDetectorStatus":{ 2827 "shape":"AnomalyDetectorStatus", 2828 "documentation":"<p>Specifies whether the anomaly detector is currently active. To change its status, use the <code>enabled</code> parameter in the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateLogAnomalyDetector.html\">UpdateLogAnomalyDetector</a> operation.</p>" 2829 }, 2830 "kmsKeyId":{ 2831 "shape":"KmsKeyId", 2832 "documentation":"<p>The ID of the KMS key assigned to this anomaly detector, if any.</p>" 2833 }, 2834 "creationTimeStamp":{ 2835 "shape":"EpochMillis", 2836 "documentation":"<p>The date and time when this anomaly detector was created.</p>" 2837 }, 2838 "lastModifiedTimeStamp":{ 2839 "shape":"EpochMillis", 2840 "documentation":"<p>The date and time when this anomaly detector was most recently modified.</p>" 2841 }, 2842 "anomalyVisibilityTime":{ 2843 "shape":"AnomalyVisibilityTime", 2844 "documentation":"<p>The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. </p>" 2845 } 2846 } 2847 }, 2848 "GetLogEventsRequest":{ 2849 "type":"structure", 2850 "required":["logStreamName"], 2851 "members":{ 2852 "logGroupName":{ 2853 "shape":"LogGroupName", 2854 "documentation":"<p>The name of the log group.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2855 }, 2856 "logGroupIdentifier":{ 2857 "shape":"LogGroupIdentifier", 2858 "documentation":"<p>Specify either the name or ARN of the log group to view events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2859 }, 2860 "logStreamName":{ 2861 "shape":"LogStreamName", 2862 "documentation":"<p>The name of the log stream.</p>" 2863 }, 2864 "startTime":{ 2865 "shape":"Timestamp", 2866 "documentation":"<p>The start of the time range, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. 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.</p>" 2867 }, 2868 "endTime":{ 2869 "shape":"Timestamp", 2870 "documentation":"<p>The end of the time range, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp equal to or later than this time are not included.</p>" 2871 }, 2872 "nextToken":{ 2873 "shape":"NextToken", 2874 "documentation":"<p>The token for the next set of items to return. (You received this token from a previous call.)</p>" 2875 }, 2876 "limit":{ 2877 "shape":"EventsLimit", 2878 "documentation":"<p>The maximum number of log events returned. If you don't specify a limit, the default is as many log events as can fit in a response size of 1 MB (up to 10,000 log events).</p>" 2879 }, 2880 "startFromHead":{ 2881 "shape":"StartFromHead", 2882 "documentation":"<p>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.</p> <p>If you are using a previous <code>nextForwardToken</code> value as the <code>nextToken</code> in this operation, you must specify <code>true</code> for <code>startFromHead</code>.</p>" 2883 }, 2884 "unmask":{ 2885 "shape":"Unmask", 2886 "documentation":"<p>Specify <code>true</code> to display the log event fields with all sensitive data unmasked and visible. The default is <code>false</code>.</p> <p>To use this operation with this parameter, you must be signed into an account with the <code>logs:Unmask</code> permission.</p>" 2887 } 2888 } 2889 }, 2890 "GetLogEventsResponse":{ 2891 "type":"structure", 2892 "members":{ 2893 "events":{ 2894 "shape":"OutputLogEvents", 2895 "documentation":"<p>The events.</p>" 2896 }, 2897 "nextForwardToken":{ 2898 "shape":"NextToken", 2899 "documentation":"<p>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 returns the same token you passed in.</p>" 2900 }, 2901 "nextBackwardToken":{ 2902 "shape":"NextToken", 2903 "documentation":"<p>The token for the next set of items in the backward direction. The token expires after 24 hours. This token is not null. If you have reached the end of the stream, it returns the same token you passed in.</p>" 2904 } 2905 } 2906 }, 2907 "GetLogGroupFieldsRequest":{ 2908 "type":"structure", 2909 "members":{ 2910 "logGroupName":{ 2911 "shape":"LogGroupName", 2912 "documentation":"<p>The name of the log group to search.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2913 }, 2914 "time":{ 2915 "shape":"Timestamp", 2916 "documentation":"<p>The time to set as the center of the query. If you specify <code>time</code>, the 8 minutes before and 8 minutes after this time are searched. If you omit <code>time</code>, the most recent 15 minutes up to the current time are searched.</p> <p>The <code>time</code> value is specified as epoch time, which is the number of seconds since <code>January 1, 1970, 00:00:00 UTC</code>.</p>" 2917 }, 2918 "logGroupIdentifier":{ 2919 "shape":"LogGroupIdentifier", 2920 "documentation":"<p>Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must specify the ARN.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>" 2921 } 2922 } 2923 }, 2924 "GetLogGroupFieldsResponse":{ 2925 "type":"structure", 2926 "members":{ 2927 "logGroupFields":{ 2928 "shape":"LogGroupFieldList", 2929 "documentation":"<p>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.</p>" 2930 } 2931 } 2932 }, 2933 "GetLogRecordRequest":{ 2934 "type":"structure", 2935 "required":["logRecordPointer"], 2936 "members":{ 2937 "logRecordPointer":{ 2938 "shape":"LogRecordPointer", 2939 "documentation":"<p>The pointer corresponding to the log event record you want to retrieve. You get this from the response of a <code>GetQueryResults</code> operation. In that response, the value of the <code>@ptr</code> field for a log event is the value to use as <code>logRecordPointer</code> to retrieve that complete log event record.</p>" 2940 }, 2941 "unmask":{ 2942 "shape":"Unmask", 2943 "documentation":"<p>Specify <code>true</code> to display the log event fields with all sensitive data unmasked and visible. The default is <code>false</code>.</p> <p>To use this operation with this parameter, you must be signed into an account with the <code>logs:Unmask</code> permission.</p>" 2944 } 2945 } 2946 }, 2947 "GetLogRecordResponse":{ 2948 "type":"structure", 2949 "members":{ 2950 "logRecord":{ 2951 "shape":"LogRecord", 2952 "documentation":"<p>The requested log event, as a JSON string.</p>" 2953 } 2954 } 2955 }, 2956 "GetQueryResultsRequest":{ 2957 "type":"structure", 2958 "required":["queryId"], 2959 "members":{ 2960 "queryId":{ 2961 "shape":"QueryId", 2962 "documentation":"<p>The ID number of the query.</p>" 2963 } 2964 } 2965 }, 2966 "GetQueryResultsResponse":{ 2967 "type":"structure", 2968 "members":{ 2969 "results":{ 2970 "shape":"QueryResults", 2971 "documentation":"<p>The log events that matched the query criteria during the most recent time it ran.</p> <p>The <code>results</code> 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 <code>field</code>/<code>value</code> pairs.</p>" 2972 }, 2973 "statistics":{ 2974 "shape":"QueryStatistics", 2975 "documentation":"<p>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 scanned log events. These values reflect the full raw results of the query.</p>" 2976 }, 2977 "status":{ 2978 "shape":"QueryStatus", 2979 "documentation":"<p>The status of the most recent running of the query. Possible values are <code>Cancelled</code>, <code>Complete</code>, <code>Failed</code>, <code>Running</code>, <code>Scheduled</code>, <code>Timeout</code>, and <code>Unknown</code>.</p> <p>Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.</p>" 2980 }, 2981 "encryptionKey":{ 2982 "shape":"EncryptionKey", 2983 "documentation":"<p>If you associated an KMS key with the CloudWatch Logs Insights query results in this account, this field displays the ARN of the key that's used to encrypt the query results when <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html\">StartQuery</a> stores them.</p>" 2984 } 2985 } 2986 }, 2987 "Histogram":{ 2988 "type":"map", 2989 "key":{"shape":"Time"}, 2990 "value":{"shape":"Count"} 2991 }, 2992 "IncludeLinkedAccounts":{"type":"boolean"}, 2993 "InheritedProperties":{ 2994 "type":"list", 2995 "member":{"shape":"InheritedProperty"} 2996 }, 2997 "InheritedProperty":{ 2998 "type":"string", 2999 "enum":["ACCOUNT_DATA_PROTECTION"] 3000 }, 3001 "InputLogEvent":{ 3002 "type":"structure", 3003 "required":[ 3004 "timestamp", 3005 "message" 3006 ], 3007 "members":{ 3008 "timestamp":{ 3009 "shape":"Timestamp", 3010 "documentation":"<p>The time the event occurred, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 3011 }, 3012 "message":{ 3013 "shape":"EventMessage", 3014 "documentation":"<p>The raw event message. Each log event can be no larger than 256 KB.</p>" 3015 } 3016 }, 3017 "documentation":"<p>Represents a log event, which is a record of activity that was recorded by the application or resource being monitored.</p>" 3018 }, 3019 "InputLogEvents":{ 3020 "type":"list", 3021 "member":{"shape":"InputLogEvent"}, 3022 "max":10000, 3023 "min":1 3024 }, 3025 "InputLogStreamNames":{ 3026 "type":"list", 3027 "member":{"shape":"LogStreamName"}, 3028 "max":100, 3029 "min":1 3030 }, 3031 "Integer":{"type":"integer"}, 3032 "Interleaved":{"type":"boolean"}, 3033 "InvalidOperationException":{ 3034 "type":"structure", 3035 "members":{ 3036 }, 3037 "documentation":"<p>The operation is not valid on the specified resource.</p>", 3038 "exception":true 3039 }, 3040 "InvalidParameterException":{ 3041 "type":"structure", 3042 "members":{ 3043 }, 3044 "documentation":"<p>A parameter is specified incorrectly.</p>", 3045 "exception":true 3046 }, 3047 "InvalidSequenceTokenException":{ 3048 "type":"structure", 3049 "members":{ 3050 "expectedSequenceToken":{"shape":"SequenceToken"} 3051 }, 3052 "documentation":"<p>The sequence token is not valid. You can get the correct sequence token in the <code>expectedSequenceToken</code> field in the <code>InvalidSequenceTokenException</code> message. </p> <important> <p> <code>PutLogEvents</code> actions are now always accepted and never return <code>InvalidSequenceTokenException</code> regardless of receiving an invalid sequence token. </p> </important>", 3053 "exception":true 3054 }, 3055 "IsSampled":{"type":"boolean"}, 3056 "KmsKeyId":{ 3057 "type":"string", 3058 "max":256 3059 }, 3060 "LimitExceededException":{ 3061 "type":"structure", 3062 "members":{ 3063 }, 3064 "documentation":"<p>You have reached the maximum number of resources that can be created.</p>", 3065 "exception":true 3066 }, 3067 "ListAnomaliesLimit":{ 3068 "type":"integer", 3069 "max":50, 3070 "min":1 3071 }, 3072 "ListAnomaliesRequest":{ 3073 "type":"structure", 3074 "members":{ 3075 "anomalyDetectorArn":{ 3076 "shape":"AnomalyDetectorArn", 3077 "documentation":"<p>Use this to optionally limit the results to only the anomalies found by a certain anomaly detector.</p>" 3078 }, 3079 "suppressionState":{ 3080 "shape":"SuppressionState", 3081 "documentation":"<p>You can specify this parameter if you want to the operation to return only anomalies that are currently either suppressed or unsuppressed.</p>" 3082 }, 3083 "limit":{ 3084 "shape":"ListAnomaliesLimit", 3085 "documentation":"<p>The maximum number of items to return. If you don't specify a value, the default maximum value of 50 items is used.</p>" 3086 }, 3087 "nextToken":{"shape":"NextToken"} 3088 } 3089 }, 3090 "ListAnomaliesResponse":{ 3091 "type":"structure", 3092 "members":{ 3093 "anomalies":{ 3094 "shape":"Anomalies", 3095 "documentation":"<p>An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.</p>" 3096 }, 3097 "nextToken":{"shape":"NextToken"} 3098 } 3099 }, 3100 "ListLogAnomalyDetectorsLimit":{ 3101 "type":"integer", 3102 "max":50, 3103 "min":1 3104 }, 3105 "ListLogAnomalyDetectorsRequest":{ 3106 "type":"structure", 3107 "members":{ 3108 "filterLogGroupArn":{ 3109 "shape":"LogGroupArn", 3110 "documentation":"<p>Use this to optionally filter the results to only include anomaly detectors that are associated with the specified log group.</p>" 3111 }, 3112 "limit":{ 3113 "shape":"ListLogAnomalyDetectorsLimit", 3114 "documentation":"<p>The maximum number of items to return. If you don't specify a value, the default maximum value of 50 items is used.</p>" 3115 }, 3116 "nextToken":{"shape":"NextToken"} 3117 } 3118 }, 3119 "ListLogAnomalyDetectorsResponse":{ 3120 "type":"structure", 3121 "members":{ 3122 "anomalyDetectors":{ 3123 "shape":"AnomalyDetectors", 3124 "documentation":"<p>An array of structures, where each structure in the array contains information about one anomaly detector.</p>" 3125 }, 3126 "nextToken":{"shape":"NextToken"} 3127 } 3128 }, 3129 "ListTagsForResourceRequest":{ 3130 "type":"structure", 3131 "required":["resourceArn"], 3132 "members":{ 3133 "resourceArn":{ 3134 "shape":"AmazonResourceName", 3135 "documentation":"<p>The ARN of the resource that you want to view tags for.</p> <p>The ARN format of a log group is <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i> </code> </p> <p>The ARN format of a destination is <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i> </code> </p> <p>For more information about ARN format, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html\">CloudWatch Logs resources and operations</a>.</p>" 3136 } 3137 } 3138 }, 3139 "ListTagsForResourceResponse":{ 3140 "type":"structure", 3141 "members":{ 3142 "tags":{ 3143 "shape":"Tags", 3144 "documentation":"<p>The list of tags associated with the requested resource.></p>" 3145 } 3146 } 3147 }, 3148 "ListTagsLogGroupRequest":{ 3149 "type":"structure", 3150 "required":["logGroupName"], 3151 "members":{ 3152 "logGroupName":{ 3153 "shape":"LogGroupName", 3154 "documentation":"<p>The name of the log group.</p>" 3155 } 3156 }, 3157 "deprecated":true, 3158 "deprecatedMessage":"Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse" 3159 }, 3160 "ListTagsLogGroupResponse":{ 3161 "type":"structure", 3162 "members":{ 3163 "tags":{ 3164 "shape":"Tags", 3165 "documentation":"<p>The tags for the log group.</p>" 3166 } 3167 }, 3168 "deprecated":true, 3169 "deprecatedMessage":"Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse" 3170 }, 3171 "LiveTailSessionLogEvent":{ 3172 "type":"structure", 3173 "members":{ 3174 "logStreamName":{ 3175 "shape":"LogStreamName", 3176 "documentation":"<p>The name of the log stream that ingested this log event.</p>" 3177 }, 3178 "logGroupIdentifier":{ 3179 "shape":"LogGroupIdentifier", 3180 "documentation":"<p>The name or ARN of the log group that ingested this log event.</p>" 3181 }, 3182 "message":{ 3183 "shape":"EventMessage", 3184 "documentation":"<p>The log event message text.</p>" 3185 }, 3186 "timestamp":{ 3187 "shape":"Timestamp", 3188 "documentation":"<p>The timestamp specifying when this log event was created.</p>" 3189 }, 3190 "ingestionTime":{ 3191 "shape":"Timestamp", 3192 "documentation":"<p>The timestamp specifying when this log event was ingested into the log group.</p>" 3193 } 3194 }, 3195 "documentation":"<p>This object contains the information for one log event returned in a Live Tail stream.</p>" 3196 }, 3197 "LiveTailSessionMetadata":{ 3198 "type":"structure", 3199 "members":{ 3200 "sampled":{ 3201 "shape":"IsSampled", 3202 "documentation":"<p>If this is <code>true</code>, then more than 500 log events matched the request for this update, and the <code>sessionResults</code> includes a sample of 500 of those events.</p> <p>If this is <code>false</code>, then 500 or fewer log events matched the request for this update, so no sampling was necessary. In this case, the <code>sessionResults</code> array includes all log events that matched your request during this time.</p>" 3203 } 3204 }, 3205 "documentation":"<p>This object contains the metadata for one <code>LiveTailSessionUpdate</code> structure. It indicates whether that update includes only a sample of 500 log events out of a larger number of ingested log events, or if it contains all of the matching log events ingested during that second of time.</p>" 3206 }, 3207 "LiveTailSessionResults":{ 3208 "type":"list", 3209 "member":{"shape":"LiveTailSessionLogEvent"} 3210 }, 3211 "LiveTailSessionStart":{ 3212 "type":"structure", 3213 "members":{ 3214 "requestId":{ 3215 "shape":"RequestId", 3216 "documentation":"<p>The unique ID generated by CloudWatch Logs to identify this Live Tail session request.</p>" 3217 }, 3218 "sessionId":{ 3219 "shape":"SessionId", 3220 "documentation":"<p>The unique ID generated by CloudWatch Logs to identify this Live Tail session.</p>" 3221 }, 3222 "logGroupIdentifiers":{ 3223 "shape":"StartLiveTailLogGroupIdentifiers", 3224 "documentation":"<p>An array of the names and ARNs of the log groups included in this Live Tail session.</p>" 3225 }, 3226 "logStreamNames":{ 3227 "shape":"InputLogStreamNames", 3228 "documentation":"<p>If your StartLiveTail operation request included a <code>logStreamNames</code> parameter that filtered the session to only include certain log streams, these streams are listed here.</p>" 3229 }, 3230 "logStreamNamePrefixes":{ 3231 "shape":"InputLogStreamNames", 3232 "documentation":"<p>If your StartLiveTail operation request included a <code>logStreamNamePrefixes</code> parameter that filtered the session to only include log streams that have names that start with certain prefixes, these prefixes are listed here.</p>" 3233 }, 3234 "logEventFilterPattern":{ 3235 "shape":"FilterPattern", 3236 "documentation":"<p>An optional pattern to filter the results to include only log events that match the pattern. For example, a filter pattern of <code>error 404</code> displays only log events that include both <code>error</code> and <code>404</code>.</p> <p>For more information about filter pattern syntax, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html\">Filter and Pattern Syntax</a>.</p>" 3237 } 3238 }, 3239 "documentation":"<p>This object contains information about this Live Tail session, including the log groups included and the log stream filters, if any.</p>", 3240 "event":true 3241 }, 3242 "LiveTailSessionUpdate":{ 3243 "type":"structure", 3244 "members":{ 3245 "sessionMetadata":{ 3246 "shape":"LiveTailSessionMetadata", 3247 "documentation":"<p>This object contains the session metadata for a Live Tail session.</p>" 3248 }, 3249 "sessionResults":{ 3250 "shape":"LiveTailSessionResults", 3251 "documentation":"<p>An array, where each member of the array includes the information for one log event in the Live Tail session.</p> <p>A <code>sessionResults</code> array can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each <code>sessionUpdate</code> structure.</p>" 3252 } 3253 }, 3254 "documentation":"<p>This object contains the log events and metadata for a Live Tail session.</p>", 3255 "event":true 3256 }, 3257 "LogEvent":{ 3258 "type":"string", 3259 "min":1 3260 }, 3261 "LogEventIndex":{"type":"integer"}, 3262 "LogGroup":{ 3263 "type":"structure", 3264 "members":{ 3265 "logGroupName":{ 3266 "shape":"LogGroupName", 3267 "documentation":"<p>The name of the log group.</p>" 3268 }, 3269 "creationTime":{ 3270 "shape":"Timestamp", 3271 "documentation":"<p>The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.</p>" 3272 }, 3273 "retentionInDays":{"shape":"Days"}, 3274 "metricFilterCount":{ 3275 "shape":"FilterCount", 3276 "documentation":"<p>The number of metric filters.</p>" 3277 }, 3278 "arn":{ 3279 "shape":"Arn", 3280 "documentation":"<p>The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing <code>:*</code> after the log group name. </p> <p>Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The exception is when specifying permissions for <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html\">TagResource</a>, <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html\">UntagResource</a>, and <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html\">ListTagsForResource</a>. The permissions for those three actions require the ARN version that doesn't include a trailing <code>:*</code>.</p>" 3281 }, 3282 "storedBytes":{ 3283 "shape":"StoredBytes", 3284 "documentation":"<p>The number of bytes stored.</p>" 3285 }, 3286 "kmsKeyId":{ 3287 "shape":"KmsKeyId", 3288 "documentation":"<p>The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.</p>" 3289 }, 3290 "dataProtectionStatus":{ 3291 "shape":"DataProtectionStatus", 3292 "documentation":"<p>Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html\">PutDataProtectionPolicy</a>.</p>" 3293 }, 3294 "inheritedProperties":{ 3295 "shape":"InheritedProperties", 3296 "documentation":"<p>Displays all the properties that this log group has inherited from account-level settings.</p>" 3297 }, 3298 "logGroupClass":{ 3299 "shape":"LogGroupClass", 3300 "documentation":"<p>This specifies the log group class for this log group. There are two classes:</p> <ul> <li> <p>The <code>Standard</code> log class supports all CloudWatch Logs features.</p> </li> <li> <p>The <code>Infrequent Access</code> log class supports a subset of CloudWatch Logs features and incurs lower costs.</p> </li> </ul> <p>For details about the features supported by each class, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html\">Log classes</a> </p>" 3301 }, 3302 "logGroupArn":{ 3303 "shape":"Arn", 3304 "documentation":"<p>The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing <code>:*</code> after the log group name. </p> <p>Use this version to refer to the ARN in the following situations:</p> <ul> <li> <p>In the <code>logGroupIdentifier</code> input field in many CloudWatch Logs APIs.</p> </li> <li> <p>In the <code>resourceArn</code> field in tagging APIs</p> </li> <li> <p>In IAM policies, when specifying permissions for <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html\">TagResource</a>, <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html\">UntagResource</a>, and <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html\">ListTagsForResource</a>.</p> </li> </ul>" 3305 } 3306 }, 3307 "documentation":"<p>Represents a log group.</p>" 3308 }, 3309 "LogGroupArn":{ 3310 "type":"string", 3311 "max":2048, 3312 "min":1, 3313 "pattern":"[\\w#+=/:,.@-]*" 3314 }, 3315 "LogGroupArnList":{ 3316 "type":"list", 3317 "member":{"shape":"LogGroupArn"} 3318 }, 3319 "LogGroupClass":{ 3320 "type":"string", 3321 "enum":[ 3322 "STANDARD", 3323 "INFREQUENT_ACCESS" 3324 ] 3325 }, 3326 "LogGroupField":{ 3327 "type":"structure", 3328 "members":{ 3329 "name":{ 3330 "shape":"Field", 3331 "documentation":"<p>The name of a log field.</p>" 3332 }, 3333 "percent":{ 3334 "shape":"Percentage", 3335 "documentation":"<p>The percentage of log events queried that contained the field.</p>" 3336 } 3337 }, 3338 "documentation":"<p>The fields contained in log events found by a <code>GetLogGroupFields</code> operation, along with the percentage of queried log events in which each field appears.</p>" 3339 }, 3340 "LogGroupFieldList":{ 3341 "type":"list", 3342 "member":{"shape":"LogGroupField"} 3343 }, 3344 "LogGroupIdentifier":{ 3345 "type":"string", 3346 "max":2048, 3347 "min":1, 3348 "pattern":"[\\w#+=/:,.@-]*" 3349 }, 3350 "LogGroupIdentifiers":{ 3351 "type":"list", 3352 "member":{"shape":"LogGroupIdentifier"} 3353 }, 3354 "LogGroupName":{ 3355 "type":"string", 3356 "max":512, 3357 "min":1, 3358 "pattern":"[\\.\\-_/#A-Za-z0-9]+" 3359 }, 3360 "LogGroupNamePattern":{ 3361 "type":"string", 3362 "max":512, 3363 "min":0, 3364 "pattern":"[\\.\\-_/#A-Za-z0-9]*" 3365 }, 3366 "LogGroupNames":{ 3367 "type":"list", 3368 "member":{"shape":"LogGroupName"} 3369 }, 3370 "LogGroups":{ 3371 "type":"list", 3372 "member":{"shape":"LogGroup"} 3373 }, 3374 "LogRecord":{ 3375 "type":"map", 3376 "key":{"shape":"Field"}, 3377 "value":{"shape":"Value"} 3378 }, 3379 "LogRecordPointer":{"type":"string"}, 3380 "LogSamples":{ 3381 "type":"list", 3382 "member":{"shape":"LogEvent"} 3383 }, 3384 "LogStream":{ 3385 "type":"structure", 3386 "members":{ 3387 "logStreamName":{ 3388 "shape":"LogStreamName", 3389 "documentation":"<p>The name of the log stream.</p>" 3390 }, 3391 "creationTime":{ 3392 "shape":"Timestamp", 3393 "documentation":"<p>The creation time of the stream, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 3394 }, 3395 "firstEventTimestamp":{ 3396 "shape":"Timestamp", 3397 "documentation":"<p>The time of the first event, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 3398 }, 3399 "lastEventTimestamp":{ 3400 "shape":"Timestamp", 3401 "documentation":"<p>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 <code>Jan 1, 1970 00:00:00 UTC</code>. The <code>lastEventTime</code> value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.</p>" 3402 }, 3403 "lastIngestionTime":{ 3404 "shape":"Timestamp", 3405 "documentation":"<p>The ingestion time, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code> The <code>lastIngestionTime</code> value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.</p>" 3406 }, 3407 "uploadSequenceToken":{ 3408 "shape":"SequenceToken", 3409 "documentation":"<p>The sequence token.</p> <important> <p>The sequence token is now ignored in <code>PutLogEvents</code> actions. <code>PutLogEvents</code> actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain <code>uploadSequenceToken</code> to use a <code>PutLogEvents</code> action.</p> </important>" 3410 }, 3411 "arn":{ 3412 "shape":"Arn", 3413 "documentation":"<p>The Amazon Resource Name (ARN) of the log stream.</p>" 3414 }, 3415 "storedBytes":{ 3416 "shape":"StoredBytes", 3417 "documentation":"<p>The number of bytes stored.</p> <p> <b>Important:</b> As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The <code>storedBytes</code> parameter for log groups is not affected.</p>", 3418 "deprecated":true, 3419 "deprecatedMessage":"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." 3420 } 3421 }, 3422 "documentation":"<p>Represents a log stream, which is a sequence of log events from a single emitter of logs.</p>" 3423 }, 3424 "LogStreamName":{ 3425 "type":"string", 3426 "max":512, 3427 "min":1, 3428 "pattern":"[^:*]*" 3429 }, 3430 "LogStreamSearchedCompletely":{"type":"boolean"}, 3431 "LogStreams":{ 3432 "type":"list", 3433 "member":{"shape":"LogStream"} 3434 }, 3435 "LogType":{ 3436 "type":"string", 3437 "max":255, 3438 "min":1, 3439 "pattern":"[\\w]*" 3440 }, 3441 "MalformedQueryException":{ 3442 "type":"structure", 3443 "members":{ 3444 "queryCompileError":{"shape":"QueryCompileError"} 3445 }, 3446 "documentation":"<p>The query string is not valid. Details about this error are displayed in a <code>QueryCompileError</code> object. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html\">QueryCompileError</a>.</p> <p>For more information about valid query syntax, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html\">CloudWatch Logs Insights Query Syntax</a>.</p>", 3447 "exception":true 3448 }, 3449 "Message":{"type":"string"}, 3450 "MetricFilter":{ 3451 "type":"structure", 3452 "members":{ 3453 "filterName":{ 3454 "shape":"FilterName", 3455 "documentation":"<p>The name of the metric filter.</p>" 3456 }, 3457 "filterPattern":{"shape":"FilterPattern"}, 3458 "metricTransformations":{ 3459 "shape":"MetricTransformations", 3460 "documentation":"<p>The metric transformations.</p>" 3461 }, 3462 "creationTime":{ 3463 "shape":"Timestamp", 3464 "documentation":"<p>The creation time of the metric filter, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 3465 }, 3466 "logGroupName":{ 3467 "shape":"LogGroupName", 3468 "documentation":"<p>The name of the log group.</p>" 3469 } 3470 }, 3471 "documentation":"<p>Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.</p>" 3472 }, 3473 "MetricFilterMatchRecord":{ 3474 "type":"structure", 3475 "members":{ 3476 "eventNumber":{ 3477 "shape":"EventNumber", 3478 "documentation":"<p>The event number.</p>" 3479 }, 3480 "eventMessage":{ 3481 "shape":"EventMessage", 3482 "documentation":"<p>The raw event data.</p>" 3483 }, 3484 "extractedValues":{ 3485 "shape":"ExtractedValues", 3486 "documentation":"<p>The values extracted from the event data by the filter.</p>" 3487 } 3488 }, 3489 "documentation":"<p>Represents a matched event.</p>" 3490 }, 3491 "MetricFilterMatches":{ 3492 "type":"list", 3493 "member":{"shape":"MetricFilterMatchRecord"} 3494 }, 3495 "MetricFilters":{ 3496 "type":"list", 3497 "member":{"shape":"MetricFilter"} 3498 }, 3499 "MetricName":{ 3500 "type":"string", 3501 "documentation":"<p>The name of the CloudWatch metric to which the monitored log information should be published. For example, you might publish to a metric named ErrorCount.</p>", 3502 "max":255, 3503 "pattern":"[^:*$]*" 3504 }, 3505 "MetricNamespace":{ 3506 "type":"string", 3507 "max":255, 3508 "pattern":"[^:*$]*" 3509 }, 3510 "MetricTransformation":{ 3511 "type":"structure", 3512 "required":[ 3513 "metricName", 3514 "metricNamespace", 3515 "metricValue" 3516 ], 3517 "members":{ 3518 "metricName":{ 3519 "shape":"MetricName", 3520 "documentation":"<p>The name of the CloudWatch metric.</p>" 3521 }, 3522 "metricNamespace":{ 3523 "shape":"MetricNamespace", 3524 "documentation":"<p>A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace\">Namespaces</a>.</p>" 3525 }, 3526 "metricValue":{ 3527 "shape":"MetricValue", 3528 "documentation":"<p>The value to publish to the CloudWatch metric when a filter pattern matches a log event.</p>" 3529 }, 3530 "defaultValue":{ 3531 "shape":"DefaultValue", 3532 "documentation":"<p>(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.</p>" 3533 }, 3534 "dimensions":{ 3535 "shape":"Dimensions", 3536 "documentation":"<p>The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions.</p> <important> <p>Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as <code>IPAddress</code> or <code>requestID</code> as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric. </p> <p>CloudWatch Logs disables a metric filter if it generates 1000 different name/value pairs for your specified dimensions within a certain amount of time. This helps to prevent accidental high charges.</p> <p>You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html\"> Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>. </p> </important>" 3537 }, 3538 "unit":{ 3539 "shape":"StandardUnit", 3540 "documentation":"<p>The unit to assign to the metric. If you omit this, the unit is set as <code>None</code>.</p>" 3541 } 3542 }, 3543 "documentation":"<p>Indicates how to transform ingested log events to metric data in a CloudWatch metric.</p>" 3544 }, 3545 "MetricTransformations":{ 3546 "type":"list", 3547 "member":{"shape":"MetricTransformation"}, 3548 "max":1, 3549 "min":1 3550 }, 3551 "MetricValue":{ 3552 "type":"string", 3553 "documentation":"<p>The value to publish to the CloudWatch metric. For example, if you're counting the occurrences of a term like <code>Error</code>, the value is <code>1</code> for each occurrence. If you're counting the bytes transferred, the value is the value in the log event.</p>", 3554 "max":100 3555 }, 3556 "NextToken":{ 3557 "type":"string", 3558 "documentation":"<p>The token for the next set of items to return. The token expires after 24 hours.</p>", 3559 "min":1 3560 }, 3561 "OperationAbortedException":{ 3562 "type":"structure", 3563 "members":{ 3564 }, 3565 "documentation":"<p>Multiple concurrent requests to update the same resource were in conflict.</p>", 3566 "exception":true 3567 }, 3568 "OrderBy":{ 3569 "type":"string", 3570 "enum":[ 3571 "LogStreamName", 3572 "LastEventTime" 3573 ] 3574 }, 3575 "OutputFormat":{ 3576 "type":"string", 3577 "enum":[ 3578 "json", 3579 "plain", 3580 "w3c", 3581 "raw", 3582 "parquet" 3583 ] 3584 }, 3585 "OutputLogEvent":{ 3586 "type":"structure", 3587 "members":{ 3588 "timestamp":{ 3589 "shape":"Timestamp", 3590 "documentation":"<p>The time the event occurred, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 3591 }, 3592 "message":{ 3593 "shape":"EventMessage", 3594 "documentation":"<p>The data contained in the log event.</p>" 3595 }, 3596 "ingestionTime":{ 3597 "shape":"Timestamp", 3598 "documentation":"<p>The time the event was ingested, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 3599 } 3600 }, 3601 "documentation":"<p>Represents a log event.</p>" 3602 }, 3603 "OutputLogEvents":{ 3604 "type":"list", 3605 "member":{"shape":"OutputLogEvent"} 3606 }, 3607 "PatternId":{ 3608 "type":"string", 3609 "max":32, 3610 "min":32 3611 }, 3612 "PatternRegex":{ 3613 "type":"string", 3614 "min":1 3615 }, 3616 "PatternString":{ 3617 "type":"string", 3618 "min":1 3619 }, 3620 "PatternToken":{ 3621 "type":"structure", 3622 "members":{ 3623 "dynamicTokenPosition":{ 3624 "shape":"DynamicTokenPosition", 3625 "documentation":"<p>For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens. The dynamic token that appears first has a value of <code>1</code>, the one that appears second is <code>2</code>, and so on.</p>" 3626 }, 3627 "isDynamic":{ 3628 "shape":"Boolean", 3629 "documentation":"<p>Specifies whether this is a dynamic token.</p>" 3630 }, 3631 "tokenString":{ 3632 "shape":"TokenString", 3633 "documentation":"<p>The string represented by this token. If this is a dynamic token, the value will be <code><*></code> </p>" 3634 }, 3635 "enumerations":{ 3636 "shape":"Enumerations", 3637 "documentation":"<p>Contains the values found for a dynamic token, and the number of times each value was found.</p>" 3638 } 3639 }, 3640 "documentation":"<p>A tructures that contains information about one pattern token related to an anomaly.</p> <p>For more information about patterns and tokens, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html\">CreateLogAnomalyDetector</a>. </p>" 3641 }, 3642 "PatternTokens":{ 3643 "type":"list", 3644 "member":{"shape":"PatternToken"} 3645 }, 3646 "Percentage":{ 3647 "type":"integer", 3648 "max":100, 3649 "min":0 3650 }, 3651 "Policy":{ 3652 "type":"structure", 3653 "members":{ 3654 "deliveryDestinationPolicy":{ 3655 "shape":"DeliveryDestinationPolicy", 3656 "documentation":"<p>The contents of the delivery destination policy.</p>" 3657 } 3658 }, 3659 "documentation":"<p>A structure that contains information about one delivery destination policy.</p>" 3660 }, 3661 "PolicyDocument":{ 3662 "type":"string", 3663 "max":5120, 3664 "min":1 3665 }, 3666 "PolicyName":{"type":"string"}, 3667 "PolicyType":{ 3668 "type":"string", 3669 "enum":[ 3670 "DATA_PROTECTION_POLICY", 3671 "SUBSCRIPTION_FILTER_POLICY" 3672 ] 3673 }, 3674 "Priority":{ 3675 "type":"string", 3676 "min":1 3677 }, 3678 "PutAccountPolicyRequest":{ 3679 "type":"structure", 3680 "required":[ 3681 "policyName", 3682 "policyDocument", 3683 "policyType" 3684 ], 3685 "members":{ 3686 "policyName":{ 3687 "shape":"PolicyName", 3688 "documentation":"<p>A name for the policy. This must be unique within the account.</p>" 3689 }, 3690 "policyDocument":{ 3691 "shape":"AccountPolicyDocument", 3692 "documentation":"<p>Specify the policy, in JSON.</p> <p> <b>Data protection policy</b> </p> <p>A data protection policy must include two JSON blocks:</p> <ul> <li> <p>The first block must include both a <code>DataIdentifer</code> array and an <code>Operation</code> property with an <code>Audit</code> action. The <code>DataIdentifer</code> array lists the types of sensitive data that you want to mask. For more information about the available options, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data-types.html\">Types of data that you can mask</a>.</p> <p>The <code>Operation</code> property with an <code>Audit</code> action is required to find the sensitive data terms. This <code>Audit</code> action must contain a <code>FindingsDestination</code> object. You can optionally use that <code>FindingsDestination</code> object to list one or more destinations to send audit findings to. If you specify destinations such as log groups, Kinesis Data Firehose streams, and S3 buckets, they must already exist.</p> </li> <li> <p>The second block must include both a <code>DataIdentifer</code> array and an <code>Operation</code> property with an <code>Deidentify</code> action. The <code>DataIdentifer</code> array must exactly match the <code>DataIdentifer</code> array in the first block of the policy.</p> <p>The <code>Operation</code> property with the <code>Deidentify</code> action is what actually masks the data, and it must contain the <code> \"MaskConfig\": {}</code> object. The <code> \"MaskConfig\": {}</code> object must be empty.</p> </li> </ul> <p>For an example data protection policy, see the <b>Examples</b> section on this page.</p> <important> <p>The contents of the two <code>DataIdentifer</code> arrays must match exactly.</p> </important> <p>In addition to the two JSON blocks, the <code>policyDocument</code> can also include <code>Name</code>, <code>Description</code>, and <code>Version</code> fields. The <code>Name</code> is different than the operation's <code>policyName</code> parameter, and is used as a dimension when CloudWatch Logs reports audit findings metrics to CloudWatch.</p> <p>The JSON specified in <code>policyDocument</code> can be up to 30,720 characters long.</p> <p> <b>Subscription filter policy</b> </p> <p>A subscription filter policy can include the following attributes in a JSON block:</p> <ul> <li> <p> <b>DestinationArn</b> The ARN of the destination to deliver log events to. Supported destinations are:</p> <ul> <li> <p>An Kinesis Data Streams data stream in the same account as the subscription policy, for same-account delivery.</p> </li> <li> <p>An Kinesis Data Firehose data stream in the same account as the subscription policy, for same-account delivery.</p> </li> <li> <p>A Lambda function in the same account as the subscription policy, for same-account delivery.</p> </li> <li> <p>A logical destination in a different account created with <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html\">PutDestination</a>, for cross-account delivery. Kinesis Data Streams and Kinesis Data Firehose are supported as logical destinations.</p> </li> </ul> </li> <li> <p> <b>RoleArn</b> 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.</p> </li> <li> <p> <b>FilterPattern</b> A filter pattern for subscribing to a filtered stream of log events.</p> </li> <li> <p> <b>Distribution</b>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 <code>Random</code> for a more even distribution. This property is only applicable when the destination is an Kinesis Data Streams data stream.</p> </li> </ul>" 3693 }, 3694 "policyType":{ 3695 "shape":"PolicyType", 3696 "documentation":"<p>The type of policy that you're creating or updating.</p>" 3697 }, 3698 "scope":{ 3699 "shape":"Scope", 3700 "documentation":"<p>Currently the only valid value for this parameter is <code>ALL</code>, which specifies that the data protection policy applies to all log groups in the account. If you omit this parameter, the default of <code>ALL</code> is used.</p>" 3701 }, 3702 "selectionCriteria":{ 3703 "shape":"SelectionCriteria", 3704 "documentation":"<p>Use this parameter to apply the subscription filter policy to a subset of log groups in the account. Currently, the only supported filter is <code>LogGroupName NOT IN []</code>. The <code>selectionCriteria</code> string can be up to 25KB in length. The length is determined by using its UTF-8 bytes.</p> <p>Using the <code>selectionCriteria</code> parameter is useful to help prevent infinite loops. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Subscriptions-recursion-prevention.html\">Log recursion prevention</a>.</p> <p>Specifing <code>selectionCriteria</code> is valid only when you specify <code> SUBSCRIPTION_FILTER_POLICY</code> for <code>policyType</code>.</p>" 3705 } 3706 } 3707 }, 3708 "PutAccountPolicyResponse":{ 3709 "type":"structure", 3710 "members":{ 3711 "accountPolicy":{ 3712 "shape":"AccountPolicy", 3713 "documentation":"<p>The account policy that you created.</p>" 3714 } 3715 } 3716 }, 3717 "PutDataProtectionPolicyRequest":{ 3718 "type":"structure", 3719 "required":[ 3720 "logGroupIdentifier", 3721 "policyDocument" 3722 ], 3723 "members":{ 3724 "logGroupIdentifier":{ 3725 "shape":"LogGroupIdentifier", 3726 "documentation":"<p>Specify either the log group name or log group ARN.</p>" 3727 }, 3728 "policyDocument":{ 3729 "shape":"DataProtectionPolicyDocument", 3730 "documentation":"<p>Specify the data protection policy, in JSON.</p> <p>This policy must include two JSON blocks:</p> <ul> <li> <p>The first block must include both a <code>DataIdentifer</code> array and an <code>Operation</code> property with an <code>Audit</code> action. The <code>DataIdentifer</code> array lists the types of sensitive data that you want to mask. For more information about the available options, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data-types.html\">Types of data that you can mask</a>.</p> <p>The <code>Operation</code> property with an <code>Audit</code> action is required to find the sensitive data terms. This <code>Audit</code> action must contain a <code>FindingsDestination</code> object. You can optionally use that <code>FindingsDestination</code> object to list one or more destinations to send audit findings to. If you specify destinations such as log groups, Kinesis Data Firehose streams, and S3 buckets, they must already exist.</p> </li> <li> <p>The second block must include both a <code>DataIdentifer</code> array and an <code>Operation</code> property with an <code>Deidentify</code> action. The <code>DataIdentifer</code> array must exactly match the <code>DataIdentifer</code> array in the first block of the policy.</p> <p>The <code>Operation</code> property with the <code>Deidentify</code> action is what actually masks the data, and it must contain the <code> \"MaskConfig\": {}</code> object. The <code> \"MaskConfig\": {}</code> object must be empty.</p> </li> </ul> <p>For an example data protection policy, see the <b>Examples</b> section on this page.</p> <important> <p>The contents of the two <code>DataIdentifer</code> arrays must match exactly.</p> </important> <p>In addition to the two JSON blocks, the <code>policyDocument</code> can also include <code>Name</code>, <code>Description</code>, and <code>Version</code> fields. The <code>Name</code> is used as a dimension when CloudWatch Logs reports audit findings metrics to CloudWatch.</p> <p>The JSON specified in <code>policyDocument</code> can be up to 30,720 characters.</p>" 3731 } 3732 } 3733 }, 3734 "PutDataProtectionPolicyResponse":{ 3735 "type":"structure", 3736 "members":{ 3737 "logGroupIdentifier":{ 3738 "shape":"LogGroupIdentifier", 3739 "documentation":"<p>The log group name or ARN that you specified in your request.</p>" 3740 }, 3741 "policyDocument":{ 3742 "shape":"DataProtectionPolicyDocument", 3743 "documentation":"<p>The data protection policy used for this log group.</p>" 3744 }, 3745 "lastUpdatedTime":{ 3746 "shape":"Timestamp", 3747 "documentation":"<p>The date and time that this policy was most recently updated.</p>" 3748 } 3749 } 3750 }, 3751 "PutDeliveryDestinationPolicyRequest":{ 3752 "type":"structure", 3753 "required":[ 3754 "deliveryDestinationName", 3755 "deliveryDestinationPolicy" 3756 ], 3757 "members":{ 3758 "deliveryDestinationName":{ 3759 "shape":"DeliveryDestinationName", 3760 "documentation":"<p>The name of the delivery destination to assign this policy to.</p>" 3761 }, 3762 "deliveryDestinationPolicy":{ 3763 "shape":"DeliveryDestinationPolicy", 3764 "documentation":"<p>The contents of the policy.</p>" 3765 } 3766 } 3767 }, 3768 "PutDeliveryDestinationPolicyResponse":{ 3769 "type":"structure", 3770 "members":{ 3771 "policy":{ 3772 "shape":"Policy", 3773 "documentation":"<p>The contents of the policy that you just created.</p>" 3774 } 3775 } 3776 }, 3777 "PutDeliveryDestinationRequest":{ 3778 "type":"structure", 3779 "required":[ 3780 "name", 3781 "deliveryDestinationConfiguration" 3782 ], 3783 "members":{ 3784 "name":{ 3785 "shape":"DeliveryDestinationName", 3786 "documentation":"<p>A name for this delivery destination. This name must be unique for all delivery destinations in your account.</p>" 3787 }, 3788 "outputFormat":{ 3789 "shape":"OutputFormat", 3790 "documentation":"<p>The format for the logs that this delivery destination will receive.</p>" 3791 }, 3792 "deliveryDestinationConfiguration":{ 3793 "shape":"DeliveryDestinationConfiguration", 3794 "documentation":"<p>A structure that contains the ARN of the Amazon Web Services resource that will receive the logs.</p>" 3795 }, 3796 "tags":{ 3797 "shape":"Tags", 3798 "documentation":"<p>An optional list of key-value pairs to associate with the resource.</p> <p>For more information about tagging, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services resources</a> </p>" 3799 } 3800 } 3801 }, 3802 "PutDeliveryDestinationResponse":{ 3803 "type":"structure", 3804 "members":{ 3805 "deliveryDestination":{ 3806 "shape":"DeliveryDestination", 3807 "documentation":"<p>A structure containing information about the delivery destination that you just created or updated.</p>" 3808 } 3809 } 3810 }, 3811 "PutDeliverySourceRequest":{ 3812 "type":"structure", 3813 "required":[ 3814 "name", 3815 "resourceArn", 3816 "logType" 3817 ], 3818 "members":{ 3819 "name":{ 3820 "shape":"DeliverySourceName", 3821 "documentation":"<p>A name for this delivery source. This name must be unique for all delivery sources in your account.</p>" 3822 }, 3823 "resourceArn":{ 3824 "shape":"Arn", 3825 "documentation":"<p>The ARN of the Amazon Web Services resource that is generating and sending logs. For example, <code>arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234</code> </p>" 3826 }, 3827 "logType":{ 3828 "shape":"LogType", 3829 "documentation":"<p>Defines the type of log that the source is sending. For Amazon CodeWhisperer, the valid value is <code>EVENT_LOGS</code>.</p>" 3830 }, 3831 "tags":{ 3832 "shape":"Tags", 3833 "documentation":"<p>An optional list of key-value pairs to associate with the resource.</p> <p>For more information about tagging, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services resources</a> </p>" 3834 } 3835 } 3836 }, 3837 "PutDeliverySourceResponse":{ 3838 "type":"structure", 3839 "members":{ 3840 "deliverySource":{ 3841 "shape":"DeliverySource", 3842 "documentation":"<p>A structure containing information about the delivery source that was just created or updated.</p>" 3843 } 3844 } 3845 }, 3846 "PutDestinationPolicyRequest":{ 3847 "type":"structure", 3848 "required":[ 3849 "destinationName", 3850 "accessPolicy" 3851 ], 3852 "members":{ 3853 "destinationName":{ 3854 "shape":"DestinationName", 3855 "documentation":"<p>A name for an existing destination.</p>" 3856 }, 3857 "accessPolicy":{ 3858 "shape":"AccessPolicy", 3859 "documentation":"<p>An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.</p>" 3860 }, 3861 "forceUpdate":{ 3862 "shape":"ForceUpdate", 3863 "documentation":"<p>Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this way, you must first update the subscription filters in the accounts that send logs to this destination. If you do not, the subscription filters might stop working. By specifying <code>true</code> for <code>forceUpdate</code>, you are affirming that you have already updated the subscription filters. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Cross-Account-Log_Subscription-Update.html\"> Updating an existing cross-account subscription</a> </p> <p>If you omit this parameter, the default of <code>false</code> is used.</p>" 3864 } 3865 } 3866 }, 3867 "PutDestinationRequest":{ 3868 "type":"structure", 3869 "required":[ 3870 "destinationName", 3871 "targetArn", 3872 "roleArn" 3873 ], 3874 "members":{ 3875 "destinationName":{ 3876 "shape":"DestinationName", 3877 "documentation":"<p>A name for the destination.</p>" 3878 }, 3879 "targetArn":{ 3880 "shape":"TargetArn", 3881 "documentation":"<p>The ARN of an Amazon Kinesis stream to which to deliver matching log events.</p>" 3882 }, 3883 "roleArn":{ 3884 "shape":"RoleArn", 3885 "documentation":"<p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>" 3886 }, 3887 "tags":{ 3888 "shape":"Tags", 3889 "documentation":"<p>An optional list of key-value pairs to associate with the resource.</p> <p>For more information about tagging, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services resources</a> </p>" 3890 } 3891 } 3892 }, 3893 "PutDestinationResponse":{ 3894 "type":"structure", 3895 "members":{ 3896 "destination":{ 3897 "shape":"Destination", 3898 "documentation":"<p>The destination.</p>" 3899 } 3900 } 3901 }, 3902 "PutLogEventsRequest":{ 3903 "type":"structure", 3904 "required":[ 3905 "logGroupName", 3906 "logStreamName", 3907 "logEvents" 3908 ], 3909 "members":{ 3910 "logGroupName":{ 3911 "shape":"LogGroupName", 3912 "documentation":"<p>The name of the log group.</p>" 3913 }, 3914 "logStreamName":{ 3915 "shape":"LogStreamName", 3916 "documentation":"<p>The name of the log stream.</p>" 3917 }, 3918 "logEvents":{ 3919 "shape":"InputLogEvents", 3920 "documentation":"<p>The log events.</p>" 3921 }, 3922 "sequenceToken":{ 3923 "shape":"SequenceToken", 3924 "documentation":"<p>The sequence token obtained from the response of the previous <code>PutLogEvents</code> call.</p> <important> <p>The <code>sequenceToken</code> parameter is now ignored in <code>PutLogEvents</code> actions. <code>PutLogEvents</code> actions are now accepted and never return <code>InvalidSequenceTokenException</code> or <code>DataAlreadyAcceptedException</code> even if the sequence token is not valid.</p> </important>" 3925 } 3926 } 3927 }, 3928 "PutLogEventsResponse":{ 3929 "type":"structure", 3930 "members":{ 3931 "nextSequenceToken":{ 3932 "shape":"SequenceToken", 3933 "documentation":"<p>The next sequence token.</p> <important> <p>This field has been deprecated.</p> <p>The sequence token is now ignored in <code>PutLogEvents</code> actions. <code>PutLogEvents</code> actions are always accepted even if the sequence token is not valid. You can use parallel <code>PutLogEvents</code> actions on the same log stream and you do not need to wait for the response of a previous <code>PutLogEvents</code> action to obtain the <code>nextSequenceToken</code> value.</p> </important>" 3934 }, 3935 "rejectedLogEventsInfo":{ 3936 "shape":"RejectedLogEventsInfo", 3937 "documentation":"<p>The rejected events.</p>" 3938 } 3939 } 3940 }, 3941 "PutMetricFilterRequest":{ 3942 "type":"structure", 3943 "required":[ 3944 "logGroupName", 3945 "filterName", 3946 "filterPattern", 3947 "metricTransformations" 3948 ], 3949 "members":{ 3950 "logGroupName":{ 3951 "shape":"LogGroupName", 3952 "documentation":"<p>The name of the log group.</p>" 3953 }, 3954 "filterName":{ 3955 "shape":"FilterName", 3956 "documentation":"<p>A name for the metric filter.</p>" 3957 }, 3958 "filterPattern":{ 3959 "shape":"FilterPattern", 3960 "documentation":"<p>A filter pattern for extracting metric data out of ingested log events.</p>" 3961 }, 3962 "metricTransformations":{ 3963 "shape":"MetricTransformations", 3964 "documentation":"<p>A collection of information that defines how metric data gets emitted.</p>" 3965 } 3966 } 3967 }, 3968 "PutQueryDefinitionRequest":{ 3969 "type":"structure", 3970 "required":[ 3971 "name", 3972 "queryString" 3973 ], 3974 "members":{ 3975 "name":{ 3976 "shape":"QueryDefinitionName", 3977 "documentation":"<p>A name for the query definition. If you are saving numerous query definitions, we recommend that you name them. This way, you can find the ones you want by using the first part of the name as a filter in the <code>queryDefinitionNamePrefix</code> parameter of <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html\">DescribeQueryDefinitions</a>.</p>" 3978 }, 3979 "queryDefinitionId":{ 3980 "shape":"QueryId", 3981 "documentation":"<p>If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html\">DescribeQueryDefinitions</a> to retrieve the IDs of your saved query definitions.</p> <p>If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.</p>" 3982 }, 3983 "logGroupNames":{ 3984 "shape":"LogGroupNames", 3985 "documentation":"<p>Use this parameter to include specific log groups as part of your query definition.</p> <p>If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.</p>" 3986 }, 3987 "queryString":{ 3988 "shape":"QueryDefinitionString", 3989 "documentation":"<p>The query string to use for this definition. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html\">CloudWatch Logs Insights Query Syntax</a>.</p>" 3990 }, 3991 "clientToken":{ 3992 "shape":"ClientToken", 3993 "documentation":"<p>Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.</p>", 3994 "idempotencyToken":true 3995 } 3996 } 3997 }, 3998 "PutQueryDefinitionResponse":{ 3999 "type":"structure", 4000 "members":{ 4001 "queryDefinitionId":{ 4002 "shape":"QueryId", 4003 "documentation":"<p>The ID of the query definition.</p>" 4004 } 4005 } 4006 }, 4007 "PutResourcePolicyRequest":{ 4008 "type":"structure", 4009 "members":{ 4010 "policyName":{ 4011 "shape":"PolicyName", 4012 "documentation":"<p>Name of the new policy. This parameter is required.</p>" 4013 }, 4014 "policyDocument":{ 4015 "shape":"PolicyDocument", 4016 "documentation":"<p>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.</p> <p>The following example creates a resource policy enabling the Route 53 service to put DNS query logs in to the specified log group. Replace <code>\"logArn\"</code> with the ARN of your CloudWatch Logs resource, such as a log group or log stream.</p> <p>CloudWatch Logs also supports <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn\">aws:SourceArn</a> and <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount\">aws:SourceAccount</a> condition context keys.</p> <p>In the example resource policy, you would replace the value of <code>SourceArn</code> with the resource making the call from Route 53 to CloudWatch Logs. You would also replace the value of <code>SourceAccount</code> with the Amazon Web Services account ID making that call.</p> <p/> <p> <code>{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Sid\": \"Route53LogsToCloudWatchLogs\", \"Effect\": \"Allow\", \"Principal\": { \"Service\": [ \"route53.amazonaws.com\" ] }, \"Action\": \"logs:PutLogEvents\", \"Resource\": \"logArn\", \"Condition\": { \"ArnLike\": { \"aws:SourceArn\": \"myRoute53ResourceArn\" }, \"StringEquals\": { \"aws:SourceAccount\": \"myAwsAccountId\" } } } ] }</code> </p>" 4017 } 4018 } 4019 }, 4020 "PutResourcePolicyResponse":{ 4021 "type":"structure", 4022 "members":{ 4023 "resourcePolicy":{ 4024 "shape":"ResourcePolicy", 4025 "documentation":"<p>The new policy.</p>" 4026 } 4027 } 4028 }, 4029 "PutRetentionPolicyRequest":{ 4030 "type":"structure", 4031 "required":[ 4032 "logGroupName", 4033 "retentionInDays" 4034 ], 4035 "members":{ 4036 "logGroupName":{ 4037 "shape":"LogGroupName", 4038 "documentation":"<p>The name of the log group.</p>" 4039 }, 4040 "retentionInDays":{"shape":"Days"} 4041 } 4042 }, 4043 "PutSubscriptionFilterRequest":{ 4044 "type":"structure", 4045 "required":[ 4046 "logGroupName", 4047 "filterName", 4048 "filterPattern", 4049 "destinationArn" 4050 ], 4051 "members":{ 4052 "logGroupName":{ 4053 "shape":"LogGroupName", 4054 "documentation":"<p>The name of the log group.</p>" 4055 }, 4056 "filterName":{ 4057 "shape":"FilterName", 4058 "documentation":"<p>A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in <code>filterName</code>. To find the name of the filter currently associated with a log group, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeSubscriptionFilters.html\">DescribeSubscriptionFilters</a>.</p>" 4059 }, 4060 "filterPattern":{ 4061 "shape":"FilterPattern", 4062 "documentation":"<p>A filter pattern for subscribing to a filtered stream of log events.</p>" 4063 }, 4064 "destinationArn":{ 4065 "shape":"DestinationArn", 4066 "documentation":"<p>The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:</p> <ul> <li> <p>An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.</p> </li> <li> <p>A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.</p> <p>If you're setting up a cross-account subscription, the destination must have an IAM policy associated with it. The IAM policy must allow the sender to send logs to the destination. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html\">PutDestinationPolicy</a>.</p> </li> <li> <p>A Kinesis Data Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.</p> </li> <li> <p>A Lambda function belonging to the same account as the subscription filter, for same-account delivery.</p> </li> </ul>" 4067 }, 4068 "roleArn":{ 4069 "shape":"RoleArn", 4070 "documentation":"<p>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.</p>" 4071 }, 4072 "distribution":{ 4073 "shape":"Distribution", 4074 "documentation":"<p>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 data stream. </p>" 4075 } 4076 } 4077 }, 4078 "QueryCharOffset":{"type":"integer"}, 4079 "QueryCompileError":{ 4080 "type":"structure", 4081 "members":{ 4082 "location":{ 4083 "shape":"QueryCompileErrorLocation", 4084 "documentation":"<p>Reserved.</p>" 4085 }, 4086 "message":{ 4087 "shape":"Message", 4088 "documentation":"<p>Reserved.</p>" 4089 } 4090 }, 4091 "documentation":"<p>Reserved.</p>" 4092 }, 4093 "QueryCompileErrorLocation":{ 4094 "type":"structure", 4095 "members":{ 4096 "startCharOffset":{ 4097 "shape":"QueryCharOffset", 4098 "documentation":"<p>Reserved.</p>" 4099 }, 4100 "endCharOffset":{ 4101 "shape":"QueryCharOffset", 4102 "documentation":"<p>Reserved.</p>" 4103 } 4104 }, 4105 "documentation":"<p>Reserved.</p>" 4106 }, 4107 "QueryDefinition":{ 4108 "type":"structure", 4109 "members":{ 4110 "queryDefinitionId":{ 4111 "shape":"QueryId", 4112 "documentation":"<p>The unique ID of the query definition.</p>" 4113 }, 4114 "name":{ 4115 "shape":"QueryDefinitionName", 4116 "documentation":"<p>The name of the query definition.</p>" 4117 }, 4118 "queryString":{ 4119 "shape":"QueryDefinitionString", 4120 "documentation":"<p>The query string to use for this definition. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html\">CloudWatch Logs Insights Query Syntax</a>.</p>" 4121 }, 4122 "lastModified":{ 4123 "shape":"Timestamp", 4124 "documentation":"<p>The date that the query definition was most recently modified.</p>" 4125 }, 4126 "logGroupNames":{ 4127 "shape":"LogGroupNames", 4128 "documentation":"<p>If this query definition contains a list of log groups that it is limited to, that list appears here.</p>" 4129 } 4130 }, 4131 "documentation":"<p>This structure contains details about a saved CloudWatch Logs Insights query definition.</p>" 4132 }, 4133 "QueryDefinitionList":{ 4134 "type":"list", 4135 "member":{"shape":"QueryDefinition"} 4136 }, 4137 "QueryDefinitionName":{ 4138 "type":"string", 4139 "max":255, 4140 "min":1 4141 }, 4142 "QueryDefinitionString":{ 4143 "type":"string", 4144 "max":10000, 4145 "min":1 4146 }, 4147 "QueryId":{ 4148 "type":"string", 4149 "max":256, 4150 "min":0 4151 }, 4152 "QueryInfo":{ 4153 "type":"structure", 4154 "members":{ 4155 "queryId":{ 4156 "shape":"QueryId", 4157 "documentation":"<p>The unique ID number of this query.</p>" 4158 }, 4159 "queryString":{ 4160 "shape":"QueryString", 4161 "documentation":"<p>The query string used in this query.</p>" 4162 }, 4163 "status":{ 4164 "shape":"QueryStatus", 4165 "documentation":"<p>The status of this query. Possible values are <code>Cancelled</code>, <code>Complete</code>, <code>Failed</code>, <code>Running</code>, <code>Scheduled</code>, and <code>Unknown</code>.</p>" 4166 }, 4167 "createTime":{ 4168 "shape":"Timestamp", 4169 "documentation":"<p>The date and time that this query was created.</p>" 4170 }, 4171 "logGroupName":{ 4172 "shape":"LogGroupName", 4173 "documentation":"<p>The name of the log group scanned by this query.</p>" 4174 } 4175 }, 4176 "documentation":"<p>Information about one CloudWatch Logs Insights query that matches the request in a <code>DescribeQueries</code> operation. </p>" 4177 }, 4178 "QueryInfoList":{ 4179 "type":"list", 4180 "member":{"shape":"QueryInfo"} 4181 }, 4182 "QueryListMaxResults":{ 4183 "type":"integer", 4184 "max":1000, 4185 "min":1 4186 }, 4187 "QueryResults":{ 4188 "type":"list", 4189 "member":{"shape":"ResultRows"} 4190 }, 4191 "QueryStatistics":{ 4192 "type":"structure", 4193 "members":{ 4194 "recordsMatched":{ 4195 "shape":"StatsValue", 4196 "documentation":"<p>The number of log events that matched the query string.</p>" 4197 }, 4198 "recordsScanned":{ 4199 "shape":"StatsValue", 4200 "documentation":"<p>The total number of log events scanned during the query.</p>" 4201 }, 4202 "bytesScanned":{ 4203 "shape":"StatsValue", 4204 "documentation":"<p>The total number of bytes in the log events scanned during the query.</p>" 4205 } 4206 }, 4207 "documentation":"<p>Contains 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.</p>" 4208 }, 4209 "QueryStatus":{ 4210 "type":"string", 4211 "enum":[ 4212 "Scheduled", 4213 "Running", 4214 "Complete", 4215 "Failed", 4216 "Cancelled", 4217 "Timeout", 4218 "Unknown" 4219 ] 4220 }, 4221 "QueryString":{ 4222 "type":"string", 4223 "max":10000, 4224 "min":0 4225 }, 4226 "RejectedLogEventsInfo":{ 4227 "type":"structure", 4228 "members":{ 4229 "tooNewLogEventStartIndex":{ 4230 "shape":"LogEventIndex", 4231 "documentation":"<p>The log events that are too new.</p>" 4232 }, 4233 "tooOldLogEventEndIndex":{ 4234 "shape":"LogEventIndex", 4235 "documentation":"<p>The log events that are dated too far in the past.</p>" 4236 }, 4237 "expiredLogEventEndIndex":{ 4238 "shape":"LogEventIndex", 4239 "documentation":"<p>The expired log events.</p>" 4240 } 4241 }, 4242 "documentation":"<p>Represents the rejected events.</p>" 4243 }, 4244 "RequestId":{ 4245 "type":"string", 4246 "max":256, 4247 "min":0 4248 }, 4249 "ResourceAlreadyExistsException":{ 4250 "type":"structure", 4251 "members":{ 4252 }, 4253 "documentation":"<p>The specified resource already exists.</p>", 4254 "exception":true 4255 }, 4256 "ResourceArns":{ 4257 "type":"list", 4258 "member":{"shape":"Arn"} 4259 }, 4260 "ResourceIdentifier":{ 4261 "type":"string", 4262 "max":2048, 4263 "min":1, 4264 "pattern":"[\\w+=/:,.@\\-\\*]*" 4265 }, 4266 "ResourceNotFoundException":{ 4267 "type":"structure", 4268 "members":{ 4269 }, 4270 "documentation":"<p>The specified resource does not exist.</p>", 4271 "exception":true 4272 }, 4273 "ResourcePolicies":{ 4274 "type":"list", 4275 "member":{"shape":"ResourcePolicy"} 4276 }, 4277 "ResourcePolicy":{ 4278 "type":"structure", 4279 "members":{ 4280 "policyName":{ 4281 "shape":"PolicyName", 4282 "documentation":"<p>The name of the resource policy.</p>" 4283 }, 4284 "policyDocument":{ 4285 "shape":"PolicyDocument", 4286 "documentation":"<p>The details of the policy.</p>" 4287 }, 4288 "lastUpdatedTime":{ 4289 "shape":"Timestamp", 4290 "documentation":"<p>Timestamp showing when this policy was last updated, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 4291 } 4292 }, 4293 "documentation":"<p>A policy enabling one or more entities to put logs to a log group in this account.</p>" 4294 }, 4295 "ResultField":{ 4296 "type":"structure", 4297 "members":{ 4298 "field":{ 4299 "shape":"Field", 4300 "documentation":"<p>The log event field.</p>" 4301 }, 4302 "value":{ 4303 "shape":"Value", 4304 "documentation":"<p>The value of this field.</p>" 4305 } 4306 }, 4307 "documentation":"<p>Contains one field from one log event returned by a CloudWatch Logs Insights query, along with the value of that field.</p> <p>For more information about the fields that are generated by CloudWatch logs, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html\">Supported Logs and Discovered Fields</a>.</p>" 4308 }, 4309 "ResultRows":{ 4310 "type":"list", 4311 "member":{"shape":"ResultField"} 4312 }, 4313 "RoleArn":{ 4314 "type":"string", 4315 "min":1 4316 }, 4317 "Scope":{ 4318 "type":"string", 4319 "enum":["ALL"] 4320 }, 4321 "SearchedLogStream":{ 4322 "type":"structure", 4323 "members":{ 4324 "logStreamName":{ 4325 "shape":"LogStreamName", 4326 "documentation":"<p>The name of the log stream.</p>" 4327 }, 4328 "searchedCompletely":{ 4329 "shape":"LogStreamSearchedCompletely", 4330 "documentation":"<p>Indicates whether all the events in this log stream were searched.</p>" 4331 } 4332 }, 4333 "documentation":"<p>Represents the search status of a log stream.</p>" 4334 }, 4335 "SearchedLogStreams":{ 4336 "type":"list", 4337 "member":{"shape":"SearchedLogStream"} 4338 }, 4339 "SelectionCriteria":{"type":"string"}, 4340 "SequenceToken":{ 4341 "type":"string", 4342 "min":1 4343 }, 4344 "Service":{ 4345 "type":"string", 4346 "max":255, 4347 "min":1, 4348 "pattern":"[\\w]*" 4349 }, 4350 "ServiceQuotaExceededException":{ 4351 "type":"structure", 4352 "members":{ 4353 }, 4354 "documentation":"<p>This request exceeds a service quota.</p>", 4355 "exception":true 4356 }, 4357 "ServiceUnavailableException":{ 4358 "type":"structure", 4359 "members":{ 4360 }, 4361 "documentation":"<p>The service cannot complete the request.</p>", 4362 "exception":true, 4363 "fault":true 4364 }, 4365 "SessionId":{ 4366 "type":"string", 4367 "max":256, 4368 "min":0 4369 }, 4370 "SessionStreamingException":{ 4371 "type":"structure", 4372 "members":{ 4373 "message":{"shape":"Message"} 4374 }, 4375 "documentation":"<p>his exception is returned if an unknown error occurs during a Live Tail session.</p>", 4376 "exception":true 4377 }, 4378 "SessionTimeoutException":{ 4379 "type":"structure", 4380 "members":{ 4381 "message":{"shape":"Message"} 4382 }, 4383 "documentation":"<p>This exception is returned in a Live Tail stream when the Live Tail session times out. Live Tail sessions time out after three hours.</p>", 4384 "exception":true 4385 }, 4386 "StandardUnit":{ 4387 "type":"string", 4388 "enum":[ 4389 "Seconds", 4390 "Microseconds", 4391 "Milliseconds", 4392 "Bytes", 4393 "Kilobytes", 4394 "Megabytes", 4395 "Gigabytes", 4396 "Terabytes", 4397 "Bits", 4398 "Kilobits", 4399 "Megabits", 4400 "Gigabits", 4401 "Terabits", 4402 "Percent", 4403 "Count", 4404 "Bytes/Second", 4405 "Kilobytes/Second", 4406 "Megabytes/Second", 4407 "Gigabytes/Second", 4408 "Terabytes/Second", 4409 "Bits/Second", 4410 "Kilobits/Second", 4411 "Megabits/Second", 4412 "Gigabits/Second", 4413 "Terabits/Second", 4414 "Count/Second", 4415 "None" 4416 ] 4417 }, 4418 "StartFromHead":{"type":"boolean"}, 4419 "StartLiveTailLogGroupIdentifiers":{ 4420 "type":"list", 4421 "member":{"shape":"LogGroupIdentifier"}, 4422 "max":10, 4423 "min":1 4424 }, 4425 "StartLiveTailRequest":{ 4426 "type":"structure", 4427 "required":["logGroupIdentifiers"], 4428 "members":{ 4429 "logGroupIdentifiers":{ 4430 "shape":"StartLiveTailLogGroupIdentifiers", 4431 "documentation":"<p>An array where each item in the array is a log group to include in the Live Tail session.</p> <p>Specify each log group by its ARN. </p> <p>If you specify an ARN, the ARN can't end with an asterisk (*).</p> <note> <p> You can include up to 10 log groups.</p> </note>" 4432 }, 4433 "logStreamNames":{ 4434 "shape":"InputLogStreamNames", 4435 "documentation":"<p>If you specify this parameter, then only log events in the log streams that you specify here are included in the Live Tail session.</p> <p>If you specify this field, you can't also specify the <code>logStreamNamePrefixes</code> field.</p> <note> <p>You can specify this parameter only if you specify only one log group in <code>logGroupIdentifiers</code>.</p> </note>" 4436 }, 4437 "logStreamNamePrefixes":{ 4438 "shape":"InputLogStreamNames", 4439 "documentation":"<p>If you specify this parameter, then only log events in the log streams that have names that start with the prefixes that you specify here are included in the Live Tail session.</p> <p>If you specify this field, you can't also specify the <code>logStreamNames</code> field.</p> <note> <p>You can specify this parameter only if you specify only one log group in <code>logGroupIdentifiers</code>.</p> </note>" 4440 }, 4441 "logEventFilterPattern":{ 4442 "shape":"FilterPattern", 4443 "documentation":"<p>An optional pattern to use to filter the results to include only log events that match the pattern. For example, a filter pattern of <code>error 404</code> causes only log events that include both <code>error</code> and <code>404</code> to be included in the Live Tail stream.</p> <p>Regular expression filter patterns are supported.</p> <p>For more information about filter pattern syntax, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html\">Filter and Pattern Syntax</a>.</p>" 4444 } 4445 } 4446 }, 4447 "StartLiveTailResponse":{ 4448 "type":"structure", 4449 "members":{ 4450 "responseStream":{ 4451 "shape":"StartLiveTailResponseStream", 4452 "documentation":"<p>An object that includes the stream returned by your request. It can include both log events and exceptions.</p>" 4453 } 4454 } 4455 }, 4456 "StartLiveTailResponseStream":{ 4457 "type":"structure", 4458 "members":{ 4459 "sessionStart":{ 4460 "shape":"LiveTailSessionStart", 4461 "documentation":"<p>This object contains information about this Live Tail session, including the log groups included and the log stream filters, if any.</p>" 4462 }, 4463 "sessionUpdate":{ 4464 "shape":"LiveTailSessionUpdate", 4465 "documentation":"<p>This object contains the log events and session metadata.</p>" 4466 }, 4467 "SessionTimeoutException":{ 4468 "shape":"SessionTimeoutException", 4469 "documentation":"<p>This exception is returned in the stream when the Live Tail session times out. Live Tail sessions time out after three hours.</p>" 4470 }, 4471 "SessionStreamingException":{ 4472 "shape":"SessionStreamingException", 4473 "documentation":"<p>This exception is returned if an unknown error occurs.</p>" 4474 } 4475 }, 4476 "documentation":"<p>This object includes the stream returned by your <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTail.html\">StartLiveTail</a> request.</p>", 4477 "eventstream":true 4478 }, 4479 "StartQueryRequest":{ 4480 "type":"structure", 4481 "required":[ 4482 "startTime", 4483 "endTime", 4484 "queryString" 4485 ], 4486 "members":{ 4487 "logGroupName":{ 4488 "shape":"LogGroupName", 4489 "documentation":"<p>The log group on which to perform the query.</p> <note> <p>A <code>StartQuery</code> operation must include exactly one of the following parameters: <code>logGroupName</code>, <code>logGroupNames</code>, or <code>logGroupIdentifiers</code>. </p> </note>" 4490 }, 4491 "logGroupNames":{ 4492 "shape":"LogGroupNames", 4493 "documentation":"<p>The list of log groups to be queried. You can include up to 50 log groups.</p> <note> <p>A <code>StartQuery</code> operation must include exactly one of the following parameters: <code>logGroupName</code>, <code>logGroupNames</code>, or <code>logGroupIdentifiers</code>. </p> </note>" 4494 }, 4495 "logGroupIdentifiers":{ 4496 "shape":"LogGroupIdentifiers", 4497 "documentation":"<p>The list of log groups to query. You can include up to 50 log groups.</p> <p>You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.</p> <p>If you specify an ARN, the ARN can't end with an asterisk (*).</p> <p>A <code>StartQuery</code> operation must include exactly one of the following parameters: <code>logGroupName</code>, <code>logGroupNames</code>, or <code>logGroupIdentifiers</code>. </p>" 4498 }, 4499 "startTime":{ 4500 "shape":"Timestamp", 4501 "documentation":"<p>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 <code>January 1, 1970, 00:00:00 UTC</code>.</p>" 4502 }, 4503 "endTime":{ 4504 "shape":"Timestamp", 4505 "documentation":"<p>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 <code>January 1, 1970, 00:00:00 UTC</code>.</p>" 4506 }, 4507 "queryString":{ 4508 "shape":"QueryString", 4509 "documentation":"<p>The query string to use. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html\">CloudWatch Logs Insights Query Syntax</a>.</p>" 4510 }, 4511 "limit":{ 4512 "shape":"EventsLimit", 4513 "documentation":"<p>The maximum number of log events to return in the query. If the query string uses the <code>fields</code> command, only the specified fields and their values are returned. The default is 1000.</p>" 4514 } 4515 } 4516 }, 4517 "StartQueryResponse":{ 4518 "type":"structure", 4519 "members":{ 4520 "queryId":{ 4521 "shape":"QueryId", 4522 "documentation":"<p>The unique ID of the query. </p>" 4523 } 4524 } 4525 }, 4526 "State":{ 4527 "type":"string", 4528 "enum":[ 4529 "Active", 4530 "Suppressed", 4531 "Baseline" 4532 ] 4533 }, 4534 "StatsValue":{"type":"double"}, 4535 "StopQueryRequest":{ 4536 "type":"structure", 4537 "required":["queryId"], 4538 "members":{ 4539 "queryId":{ 4540 "shape":"QueryId", 4541 "documentation":"<p>The ID number of the query to stop. To find this ID number, use <code>DescribeQueries</code>.</p>" 4542 } 4543 } 4544 }, 4545 "StopQueryResponse":{ 4546 "type":"structure", 4547 "members":{ 4548 "success":{ 4549 "shape":"Success", 4550 "documentation":"<p>This is true if the query was stopped by the <code>StopQuery</code> operation.</p>" 4551 } 4552 } 4553 }, 4554 "StoredBytes":{ 4555 "type":"long", 4556 "min":0 4557 }, 4558 "SubscriptionFilter":{ 4559 "type":"structure", 4560 "members":{ 4561 "filterName":{ 4562 "shape":"FilterName", 4563 "documentation":"<p>The name of the subscription filter.</p>" 4564 }, 4565 "logGroupName":{ 4566 "shape":"LogGroupName", 4567 "documentation":"<p>The name of the log group.</p>" 4568 }, 4569 "filterPattern":{"shape":"FilterPattern"}, 4570 "destinationArn":{ 4571 "shape":"DestinationArn", 4572 "documentation":"<p>The Amazon Resource Name (ARN) of the destination.</p>" 4573 }, 4574 "roleArn":{ 4575 "shape":"RoleArn", 4576 "documentation":"<p/>" 4577 }, 4578 "distribution":{"shape":"Distribution"}, 4579 "creationTime":{ 4580 "shape":"Timestamp", 4581 "documentation":"<p>The creation time of the subscription filter, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>" 4582 } 4583 }, 4584 "documentation":"<p>Represents a subscription filter.</p>" 4585 }, 4586 "SubscriptionFilters":{ 4587 "type":"list", 4588 "member":{"shape":"SubscriptionFilter"} 4589 }, 4590 "Success":{"type":"boolean"}, 4591 "SuppressionPeriod":{ 4592 "type":"structure", 4593 "members":{ 4594 "value":{ 4595 "shape":"Integer", 4596 "documentation":"<p>Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.</p>" 4597 }, 4598 "suppressionUnit":{ 4599 "shape":"SuppressionUnit", 4600 "documentation":"<p>Specifies whether the value of <code>value</code> is in seconds, minutes, or hours.</p>" 4601 } 4602 }, 4603 "documentation":"<p>If you are suppressing an anomaly temporariliy, this structure defines how long the suppression period is to be.</p>" 4604 }, 4605 "SuppressionState":{ 4606 "type":"string", 4607 "enum":[ 4608 "SUPPRESSED", 4609 "UNSUPPRESSED" 4610 ] 4611 }, 4612 "SuppressionType":{ 4613 "type":"string", 4614 "enum":[ 4615 "LIMITED", 4616 "INFINITE" 4617 ] 4618 }, 4619 "SuppressionUnit":{ 4620 "type":"string", 4621 "enum":[ 4622 "SECONDS", 4623 "MINUTES", 4624 "HOURS" 4625 ] 4626 }, 4627 "TagKey":{ 4628 "type":"string", 4629 "max":128, 4630 "min":1, 4631 "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+)$" 4632 }, 4633 "TagKeyList":{ 4634 "type":"list", 4635 "member":{"shape":"TagKey"}, 4636 "max":50, 4637 "min":0 4638 }, 4639 "TagList":{ 4640 "type":"list", 4641 "member":{"shape":"TagKey"}, 4642 "min":1 4643 }, 4644 "TagLogGroupRequest":{ 4645 "type":"structure", 4646 "required":[ 4647 "logGroupName", 4648 "tags" 4649 ], 4650 "members":{ 4651 "logGroupName":{ 4652 "shape":"LogGroupName", 4653 "documentation":"<p>The name of the log group.</p>" 4654 }, 4655 "tags":{ 4656 "shape":"Tags", 4657 "documentation":"<p>The key-value pairs to use for the tags.</p>" 4658 } 4659 }, 4660 "deprecated":true, 4661 "deprecatedMessage":"Please use the generic tagging API model TagResourceRequest" 4662 }, 4663 "TagResourceRequest":{ 4664 "type":"structure", 4665 "required":[ 4666 "resourceArn", 4667 "tags" 4668 ], 4669 "members":{ 4670 "resourceArn":{ 4671 "shape":"AmazonResourceName", 4672 "documentation":"<p>The ARN of the resource that you're adding tags to.</p> <p>The ARN format of a log group is <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i> </code> </p> <p>The ARN format of a destination is <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i> </code> </p> <p>For more information about ARN format, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html\">CloudWatch Logs resources and operations</a>.</p>" 4673 }, 4674 "tags":{ 4675 "shape":"Tags", 4676 "documentation":"<p>The list of key-value pairs to associate with the resource.</p>" 4677 } 4678 } 4679 }, 4680 "TagValue":{ 4681 "type":"string", 4682 "max":256, 4683 "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" 4684 }, 4685 "Tags":{ 4686 "type":"map", 4687 "key":{"shape":"TagKey"}, 4688 "value":{"shape":"TagValue"}, 4689 "max":50, 4690 "min":1 4691 }, 4692 "TargetArn":{ 4693 "type":"string", 4694 "min":1 4695 }, 4696 "TestEventMessages":{ 4697 "type":"list", 4698 "member":{"shape":"EventMessage"}, 4699 "max":50, 4700 "min":1 4701 }, 4702 "TestMetricFilterRequest":{ 4703 "type":"structure", 4704 "required":[ 4705 "filterPattern", 4706 "logEventMessages" 4707 ], 4708 "members":{ 4709 "filterPattern":{"shape":"FilterPattern"}, 4710 "logEventMessages":{ 4711 "shape":"TestEventMessages", 4712 "documentation":"<p>The log event messages to test.</p>" 4713 } 4714 } 4715 }, 4716 "TestMetricFilterResponse":{ 4717 "type":"structure", 4718 "members":{ 4719 "matches":{ 4720 "shape":"MetricFilterMatches", 4721 "documentation":"<p>The matched events.</p>" 4722 } 4723 } 4724 }, 4725 "ThrottlingException":{ 4726 "type":"structure", 4727 "members":{ 4728 }, 4729 "documentation":"<p>The request was throttled because of quota limits.</p>", 4730 "exception":true 4731 }, 4732 "Time":{ 4733 "type":"string", 4734 "min":1 4735 }, 4736 "Timestamp":{ 4737 "type":"long", 4738 "min":0 4739 }, 4740 "Token":{"type":"string"}, 4741 "TokenString":{ 4742 "type":"string", 4743 "min":1 4744 }, 4745 "TokenValue":{"type":"long"}, 4746 "TooManyTagsException":{ 4747 "type":"structure", 4748 "members":{ 4749 "message":{"shape":"Message"}, 4750 "resourceName":{ 4751 "shape":"AmazonResourceName", 4752 "documentation":"<p>The name of the resource.</p>" 4753 } 4754 }, 4755 "documentation":"<p>A resource can have no more than 50 tags.</p>", 4756 "exception":true 4757 }, 4758 "Unmask":{"type":"boolean"}, 4759 "UnrecognizedClientException":{ 4760 "type":"structure", 4761 "members":{ 4762 }, 4763 "documentation":"<p>The most likely cause is an Amazon Web Services access key ID or secret key that's not valid.</p>", 4764 "exception":true 4765 }, 4766 "UntagLogGroupRequest":{ 4767 "type":"structure", 4768 "required":[ 4769 "logGroupName", 4770 "tags" 4771 ], 4772 "members":{ 4773 "logGroupName":{ 4774 "shape":"LogGroupName", 4775 "documentation":"<p>The name of the log group.</p>" 4776 }, 4777 "tags":{ 4778 "shape":"TagList", 4779 "documentation":"<p>The tag keys. The corresponding tags are removed from the log group.</p>" 4780 } 4781 }, 4782 "deprecated":true, 4783 "deprecatedMessage":"Please use the generic tagging API model UntagResourceRequest" 4784 }, 4785 "UntagResourceRequest":{ 4786 "type":"structure", 4787 "required":[ 4788 "resourceArn", 4789 "tagKeys" 4790 ], 4791 "members":{ 4792 "resourceArn":{ 4793 "shape":"AmazonResourceName", 4794 "documentation":"<p>The ARN of the CloudWatch Logs resource that you're removing tags from.</p> <p>The ARN format of a log group is <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i> </code> </p> <p>The ARN format of a destination is <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i> </code> </p> <p>For more information about ARN format, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html\">CloudWatch Logs resources and operations</a>.</p>" 4795 }, 4796 "tagKeys":{ 4797 "shape":"TagKeyList", 4798 "documentation":"<p>The list of tag keys to remove from the resource.</p>" 4799 } 4800 } 4801 }, 4802 "UpdateAnomalyRequest":{ 4803 "type":"structure", 4804 "required":["anomalyDetectorArn"], 4805 "members":{ 4806 "anomalyId":{ 4807 "shape":"AnomalyId", 4808 "documentation":"<p>If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html\">ListAnomalies</a> operation.</p>" 4809 }, 4810 "patternId":{ 4811 "shape":"PatternId", 4812 "documentation":"<p>If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html\">ListAnomalies</a> operation.</p>" 4813 }, 4814 "anomalyDetectorArn":{ 4815 "shape":"AnomalyDetectorArn", 4816 "documentation":"<p>The ARN of the anomaly detector that this operation is to act on.</p>" 4817 }, 4818 "suppressionType":{ 4819 "shape":"SuppressionType", 4820 "documentation":"<p>Use this to specify whether the suppression to be temporary or infinite. If you specify <code>LIMITED</code>, you must also specify a <code>suppressionPeriod</code>. If you specify <code>INFINITE</code>, any value for <code>suppressionPeriod</code> is ignored. </p>" 4821 }, 4822 "suppressionPeriod":{ 4823 "shape":"SuppressionPeriod", 4824 "documentation":"<p>If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.</p>" 4825 } 4826 } 4827 }, 4828 "UpdateLogAnomalyDetectorRequest":{ 4829 "type":"structure", 4830 "required":[ 4831 "anomalyDetectorArn", 4832 "enabled" 4833 ], 4834 "members":{ 4835 "anomalyDetectorArn":{ 4836 "shape":"AnomalyDetectorArn", 4837 "documentation":"<p>The ARN of the anomaly detector that you want to update.</p>" 4838 }, 4839 "evaluationFrequency":{ 4840 "shape":"EvaluationFrequency", 4841 "documentation":"<p>Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting <code>evaluationFrequency</code> to <code>FIFTEEN_MIN</code> might be appropriate.</p>" 4842 }, 4843 "filterPattern":{"shape":"FilterPattern"}, 4844 "anomalyVisibilityTime":{ 4845 "shape":"AnomalyVisibilityTime", 4846 "documentation":"<p>The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.</p>" 4847 }, 4848 "enabled":{ 4849 "shape":"Boolean", 4850 "documentation":"<p>Use this parameter to pause or restart the anomaly detector. </p>" 4851 } 4852 } 4853 }, 4854 "ValidationException":{ 4855 "type":"structure", 4856 "members":{ 4857 }, 4858 "documentation":"<p>One of the parameters for the request is not valid.</p>", 4859 "exception":true 4860 }, 4861 "Value":{"type":"string"} 4862 }, 4863 "documentation":"<p>You can use Amazon CloudWatch Logs to monitor, store, and access your log files from EC2 instances, CloudTrail, and other sources. You can then retrieve the associated log data from CloudWatch Logs using the CloudWatch console. Alternatively, you can use CloudWatch Logs commands in the Amazon Web Services CLI, CloudWatch Logs API, or CloudWatch Logs SDK.</p> <p>You can use CloudWatch Logs to:</p> <ul> <li> <p> <b>Monitor logs from EC2 instances in real time</b>: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs. Then, it can send you a notification whenever the rate of errors exceeds a threshold that you specify. CloudWatch Logs uses your log data for monitoring so no code changes are required. For example, you can monitor application logs for specific literal terms (such as \"NullReferenceException\"). You can also count the number of occurrences of a literal term at a particular position in log data (such as \"404\" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a CloudWatch metric that you specify.</p> </li> <li> <p> <b>Monitor CloudTrail logged events</b>: You can create alarms in CloudWatch and receive notifications of particular API activity as captured by CloudTrail. You can use the notification to perform troubleshooting.</p> </li> <li> <p> <b>Archive log data</b>: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events earlier than this setting are automatically deleted. The CloudWatch Logs agent helps to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.</p> </li> </ul>" 4864} 4865