|
318 | 318 | {"shape":"InvalidParameterException"}, |
319 | 319 | {"shape":"ResourceNotFoundException"}, |
320 | 320 | {"shape":"OperationAbortedException"}, |
321 | | - {"shape":"ServiceUnavailableException"} |
| 321 | + {"shape":"ServiceUnavailableException"}, |
| 322 | + {"shape":"ValidationException"} |
322 | 323 | ], |
323 | 324 | "documentation":"<p>Deletes the specified log group and permanently deletes all the archived log events associated with the log group.</p>" |
324 | 325 | }, |
|
333 | 334 | {"shape":"InvalidParameterException"}, |
334 | 335 | {"shape":"ResourceNotFoundException"}, |
335 | 336 | {"shape":"OperationAbortedException"}, |
336 | | - {"shape":"ServiceUnavailableException"} |
| 337 | + {"shape":"ServiceUnavailableException"}, |
| 338 | + {"shape":"ValidationException"} |
337 | 339 | ], |
338 | 340 | "documentation":"<p>Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.</p>" |
339 | 341 | }, |
|
1250 | 1252 | ], |
1251 | 1253 | "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>Events more than 2 hours in the future are rejected while processing remaining valid events.</p> </li> <li> <p>Events older than 14 days or preceding the log group's retention period are rejected while processing remaining valid events.</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 must be in a chronological order. Otherwise, the operation fails.</p> </li> <li> <p>Each log event can be no larger than 1 MB.</p> </li> <li> <p>The maximum number of log events in a batch is 10,000.</p> </li> <li> <p>For valid events (within 14 days in the past to 2 hours in future), the time span in a single batch cannot exceed 24 hours. Otherwise, the operation fails.</p> </li> </ul> <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> <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>" |
1252 | 1254 | }, |
| 1255 | + "PutLogGroupDeletionProtection":{ |
| 1256 | + "name":"PutLogGroupDeletionProtection", |
| 1257 | + "http":{ |
| 1258 | + "method":"POST", |
| 1259 | + "requestUri":"/" |
| 1260 | + }, |
| 1261 | + "input":{"shape":"PutLogGroupDeletionProtectionRequest"}, |
| 1262 | + "errors":[ |
| 1263 | + {"shape":"InvalidParameterException"}, |
| 1264 | + {"shape":"ResourceNotFoundException"}, |
| 1265 | + {"shape":"AccessDeniedException"}, |
| 1266 | + {"shape":"OperationAbortedException"}, |
| 1267 | + {"shape":"ServiceUnavailableException"}, |
| 1268 | + {"shape":"InvalidOperationException"} |
| 1269 | + ], |
| 1270 | + "documentation":"<p>Enables or disables deletion protection for the specified log group. When enabled on a log group, deletion protection blocks all deletion operations until it is explicitly disabled.</p> <p>For information about the parameters that are common to all actions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/CommonParameters.html\">Common Parameters</a>.</p>" |
| 1271 | + }, |
1253 | 1272 | "PutMetricFilter":{ |
1254 | 1273 | "name":"PutMetricFilter", |
1255 | 1274 | "http":{ |
|
2197 | 2216 | "logGroupClass":{ |
2198 | 2217 | "shape":"LogGroupClass", |
2199 | 2218 | "documentation":"<p>Use this parameter to specify the log group class for this log group. There are three 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> <li> <p>Use the <code>Delivery</code> log class only for delivering Lambda logs to store in Amazon S3 or Amazon Data Firehose. Log events in log groups in the Delivery class are kept in CloudWatch Logs for only one day. This log class doesn't offer rich CloudWatch Logs capabilities such as CloudWatch Logs Insights queries.</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>" |
| 2219 | + }, |
| 2220 | + "deletionProtectionEnabled":{ |
| 2221 | + "shape":"DeletionProtectionEnabled", |
| 2222 | + "documentation":"<p>Use this parameter to enable deletion protection for the new log group. When enabled on a log group, deletion protection blocks all deletion operations until it is explicitly disabled. By default log groups are created without deletion protection enabled.</p>" |
2200 | 2223 | } |
2201 | 2224 | } |
2202 | 2225 | }, |
|
2632 | 2655 | "max":5, |
2633 | 2656 | "min":1 |
2634 | 2657 | }, |
| 2658 | + "DeletionProtectionEnabled":{"type":"boolean"}, |
2635 | 2659 | "Delimiter":{ |
2636 | 2660 | "type":"string", |
2637 | 2661 | "max":2, |
|
5020 | 5044 | "logGroupArn":{ |
5021 | 5045 | "shape":"Arn", |
5022 | 5046 | "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>" |
| 5047 | + }, |
| 5048 | + "deletionProtectionEnabled":{ |
| 5049 | + "shape":"DeletionProtectionEnabled", |
| 5050 | + "documentation":"<p>Indicates whether deletion protection is enabled for this log group. When enabled, deletion protection blocks all deletion operations until it is explicitly disabled.</p>" |
5023 | 5051 | } |
5024 | 5052 | }, |
5025 | 5053 | "documentation":"<p>Represents a log group.</p>" |
|
6364 | 6392 | } |
6365 | 6393 | } |
6366 | 6394 | }, |
| 6395 | + "PutLogGroupDeletionProtectionRequest":{ |
| 6396 | + "type":"structure", |
| 6397 | + "required":[ |
| 6398 | + "logGroupIdentifier", |
| 6399 | + "deletionProtectionEnabled" |
| 6400 | + ], |
| 6401 | + "members":{ |
| 6402 | + "logGroupIdentifier":{ |
| 6403 | + "shape":"LogGroupIdentifier", |
| 6404 | + "documentation":"<p>The name or ARN of the log group.</p> <p>Type: String</p> <p>Length Constraints: Minimum length of 1. Maximum length of 512.</p> <p>Pattern: <code>[\\.\\-_/#A-Za-z0-9]+</code> </p> <p>Required: Yes</p>" |
| 6405 | + }, |
| 6406 | + "deletionProtectionEnabled":{ |
| 6407 | + "shape":"DeletionProtectionEnabled", |
| 6408 | + "documentation":"<p>Whether to enable deletion protection.</p> <p>Type: Boolean</p> <p>Required: Yes</p>" |
| 6409 | + } |
| 6410 | + } |
| 6411 | + }, |
6367 | 6412 | "PutMetricFilterRequest":{ |
6368 | 6413 | "type":"structure", |
6369 | 6414 | "required":[ |
|
0 commit comments