1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2018-01-12", 5 "endpointPrefix":"dlm", 6 "jsonVersion":"1.1", 7 "protocol":"rest-json", 8 "serviceAbbreviation":"Amazon DLM", 9 "serviceFullName":"Amazon Data Lifecycle Manager", 10 "serviceId":"DLM", 11 "signatureVersion":"v4", 12 "signingName":"dlm", 13 "uid":"dlm-2018-01-12" 14 }, 15 "operations":{ 16 "CreateLifecyclePolicy":{ 17 "name":"CreateLifecyclePolicy", 18 "http":{ 19 "method":"POST", 20 "requestUri":"/policies" 21 }, 22 "input":{"shape":"CreateLifecyclePolicyRequest"}, 23 "output":{"shape":"CreateLifecyclePolicyResponse"}, 24 "errors":[ 25 {"shape":"InvalidRequestException"}, 26 {"shape":"LimitExceededException"}, 27 {"shape":"InternalServerException"} 28 ], 29 "documentation":"<p>Creates a policy to manage the lifecycle of the specified Amazon Web Services resources. You can create up to 100 lifecycle policies.</p>" 30 }, 31 "DeleteLifecyclePolicy":{ 32 "name":"DeleteLifecyclePolicy", 33 "http":{ 34 "method":"DELETE", 35 "requestUri":"/policies/{policyId}/" 36 }, 37 "input":{"shape":"DeleteLifecyclePolicyRequest"}, 38 "output":{"shape":"DeleteLifecyclePolicyResponse"}, 39 "errors":[ 40 {"shape":"ResourceNotFoundException"}, 41 {"shape":"InternalServerException"}, 42 {"shape":"LimitExceededException"} 43 ], 44 "documentation":"<p>Deletes the specified lifecycle policy and halts the automated operations that the policy specified.</p>" 45 }, 46 "GetLifecyclePolicies":{ 47 "name":"GetLifecyclePolicies", 48 "http":{ 49 "method":"GET", 50 "requestUri":"/policies" 51 }, 52 "input":{"shape":"GetLifecyclePoliciesRequest"}, 53 "output":{"shape":"GetLifecyclePoliciesResponse"}, 54 "errors":[ 55 {"shape":"ResourceNotFoundException"}, 56 {"shape":"InvalidRequestException"}, 57 {"shape":"InternalServerException"}, 58 {"shape":"LimitExceededException"} 59 ], 60 "documentation":"<p>Gets summary information about all or the specified data lifecycle policies.</p> <p>To get complete information about a policy, use <a>GetLifecyclePolicy</a>.</p>" 61 }, 62 "GetLifecyclePolicy":{ 63 "name":"GetLifecyclePolicy", 64 "http":{ 65 "method":"GET", 66 "requestUri":"/policies/{policyId}/" 67 }, 68 "input":{"shape":"GetLifecyclePolicyRequest"}, 69 "output":{"shape":"GetLifecyclePolicyResponse"}, 70 "errors":[ 71 {"shape":"ResourceNotFoundException"}, 72 {"shape":"InternalServerException"}, 73 {"shape":"LimitExceededException"} 74 ], 75 "documentation":"<p>Gets detailed information about the specified lifecycle policy.</p>" 76 }, 77 "ListTagsForResource":{ 78 "name":"ListTagsForResource", 79 "http":{ 80 "method":"GET", 81 "requestUri":"/tags/{resourceArn}" 82 }, 83 "input":{"shape":"ListTagsForResourceRequest"}, 84 "output":{"shape":"ListTagsForResourceResponse"}, 85 "errors":[ 86 {"shape":"InternalServerException"}, 87 {"shape":"InvalidRequestException"}, 88 {"shape":"ResourceNotFoundException"} 89 ], 90 "documentation":"<p>Lists the tags for the specified resource.</p>" 91 }, 92 "TagResource":{ 93 "name":"TagResource", 94 "http":{ 95 "method":"POST", 96 "requestUri":"/tags/{resourceArn}" 97 }, 98 "input":{"shape":"TagResourceRequest"}, 99 "output":{"shape":"TagResourceResponse"}, 100 "errors":[ 101 {"shape":"InternalServerException"}, 102 {"shape":"InvalidRequestException"}, 103 {"shape":"ResourceNotFoundException"} 104 ], 105 "documentation":"<p>Adds the specified tags to the specified resource.</p>" 106 }, 107 "UntagResource":{ 108 "name":"UntagResource", 109 "http":{ 110 "method":"DELETE", 111 "requestUri":"/tags/{resourceArn}" 112 }, 113 "input":{"shape":"UntagResourceRequest"}, 114 "output":{"shape":"UntagResourceResponse"}, 115 "errors":[ 116 {"shape":"InternalServerException"}, 117 {"shape":"InvalidRequestException"}, 118 {"shape":"ResourceNotFoundException"} 119 ], 120 "documentation":"<p>Removes the specified tags from the specified resource.</p>" 121 }, 122 "UpdateLifecyclePolicy":{ 123 "name":"UpdateLifecyclePolicy", 124 "http":{ 125 "method":"PATCH", 126 "requestUri":"/policies/{policyId}" 127 }, 128 "input":{"shape":"UpdateLifecyclePolicyRequest"}, 129 "output":{"shape":"UpdateLifecyclePolicyResponse"}, 130 "errors":[ 131 {"shape":"ResourceNotFoundException"}, 132 {"shape":"InvalidRequestException"}, 133 {"shape":"InternalServerException"}, 134 {"shape":"LimitExceededException"} 135 ], 136 "documentation":"<p>Updates the specified lifecycle policy.</p>" 137 } 138 }, 139 "shapes":{ 140 "Action":{ 141 "type":"structure", 142 "required":[ 143 "Name", 144 "CrossRegionCopy" 145 ], 146 "members":{ 147 "Name":{ 148 "shape":"ActionName", 149 "documentation":"<p>A descriptive name for the action.</p>" 150 }, 151 "CrossRegionCopy":{ 152 "shape":"CrossRegionCopyActionList", 153 "documentation":"<p>The rule for copying shared snapshots across Regions.</p>" 154 } 155 }, 156 "documentation":"<p>Specifies an action for an event-based policy.</p>" 157 }, 158 "ActionList":{ 159 "type":"list", 160 "member":{"shape":"Action"}, 161 "max":1, 162 "min":1 163 }, 164 "ActionName":{ 165 "type":"string", 166 "max":120, 167 "min":0, 168 "pattern":"[0-9A-Za-z _-]+" 169 }, 170 "AvailabilityZone":{ 171 "type":"string", 172 "max":16, 173 "min":0, 174 "pattern":"([a-z]+-){2,3}\\d[a-z]" 175 }, 176 "AvailabilityZoneList":{ 177 "type":"list", 178 "member":{"shape":"AvailabilityZone"}, 179 "max":10, 180 "min":1 181 }, 182 "AwsAccountId":{ 183 "type":"string", 184 "max":12, 185 "min":12, 186 "pattern":"^[0-9]{12}$" 187 }, 188 "CmkArn":{ 189 "type":"string", 190 "max":2048, 191 "min":0, 192 "pattern":"arn:aws(-[a-z]{1,3}){0,2}:kms:([a-z]+-){2,3}\\d:\\d+:key/.*" 193 }, 194 "CopyTags":{"type":"boolean"}, 195 "CopyTagsNullable":{"type":"boolean"}, 196 "Count":{ 197 "type":"integer", 198 "max":1000, 199 "min":1 200 }, 201 "CreateLifecyclePolicyRequest":{ 202 "type":"structure", 203 "required":[ 204 "ExecutionRoleArn", 205 "Description", 206 "State", 207 "PolicyDetails" 208 ], 209 "members":{ 210 "ExecutionRoleArn":{ 211 "shape":"ExecutionRoleArn", 212 "documentation":"<p>The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.</p>" 213 }, 214 "Description":{ 215 "shape":"PolicyDescription", 216 "documentation":"<p>A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.</p>" 217 }, 218 "State":{ 219 "shape":"SettablePolicyStateValues", 220 "documentation":"<p>The desired activation state of the lifecycle policy after creation.</p>" 221 }, 222 "PolicyDetails":{ 223 "shape":"PolicyDetails", 224 "documentation":"<p>The configuration details of the lifecycle policy.</p>" 225 }, 226 "Tags":{ 227 "shape":"TagMap", 228 "documentation":"<p>The tags to apply to the lifecycle policy during creation.</p>" 229 } 230 } 231 }, 232 "CreateLifecyclePolicyResponse":{ 233 "type":"structure", 234 "members":{ 235 "PolicyId":{ 236 "shape":"PolicyId", 237 "documentation":"<p>The identifier of the lifecycle policy.</p>" 238 } 239 } 240 }, 241 "CreateRule":{ 242 "type":"structure", 243 "members":{ 244 "Location":{ 245 "shape":"LocationValues", 246 "documentation":"<p>Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify <code>CLOUD</code>. To create snapshots on the same Outpost as the source resource, specify <code>OUTPOST_LOCAL</code>. If you omit this parameter, <code>CLOUD</code> is used by default.</p> <p>If the policy targets resources in an Amazon Web Services Region, then you must create snapshots in the same Region as the source resource.</p> <p>If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost.</p>" 247 }, 248 "Interval":{ 249 "shape":"Interval", 250 "documentation":"<p>The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.</p>" 251 }, 252 "IntervalUnit":{ 253 "shape":"IntervalUnitValues", 254 "documentation":"<p>The interval unit.</p>" 255 }, 256 "Times":{ 257 "shape":"TimesList", 258 "documentation":"<p>The time, in UTC, to start the operation. The supported format is hh:mm.</p> <p>The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon DLM selects a time within the next 24 hours.</p>" 259 }, 260 "CronExpression":{ 261 "shape":"CronExpression", 262 "documentation":"<p>The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\">Cron expressions</a> in the <i>Amazon CloudWatch User Guide</i>.</p>" 263 } 264 }, 265 "documentation":"<p>Specifies when to create snapshots of EBS volumes.</p> <p>You must specify either a Cron expression or an interval, interval unit, and start time. You cannot specify both.</p>" 266 }, 267 "CronExpression":{ 268 "type":"string", 269 "max":106, 270 "min":17, 271 "pattern":"cron\\([^\\n]{11,100}\\)" 272 }, 273 "CrossRegionCopyAction":{ 274 "type":"structure", 275 "required":[ 276 "Target", 277 "EncryptionConfiguration" 278 ], 279 "members":{ 280 "Target":{ 281 "shape":"Target", 282 "documentation":"<p>The target Region.</p>" 283 }, 284 "EncryptionConfiguration":{ 285 "shape":"EncryptionConfiguration", 286 "documentation":"<p>The encryption settings for the copied snapshot.</p>" 287 }, 288 "RetainRule":{"shape":"CrossRegionCopyRetainRule"} 289 }, 290 "documentation":"<p>Specifies a rule for copying shared snapshots across Regions.</p>" 291 }, 292 "CrossRegionCopyActionList":{ 293 "type":"list", 294 "member":{"shape":"CrossRegionCopyAction"}, 295 "max":3, 296 "min":0 297 }, 298 "CrossRegionCopyDeprecateRule":{ 299 "type":"structure", 300 "members":{ 301 "Interval":{ 302 "shape":"Interval", 303 "documentation":"<p>The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.</p>" 304 }, 305 "IntervalUnit":{ 306 "shape":"RetentionIntervalUnitValues", 307 "documentation":"<p>The unit of time in which to measure the <b>Interval</b>.</p>" 308 } 309 }, 310 "documentation":"<p>Specifies an AMI deprecation rule for cross-Region AMI copies created by a cross-Region copy rule.</p>" 311 }, 312 "CrossRegionCopyRetainRule":{ 313 "type":"structure", 314 "members":{ 315 "Interval":{ 316 "shape":"Interval", 317 "documentation":"<p>The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.</p>" 318 }, 319 "IntervalUnit":{ 320 "shape":"RetentionIntervalUnitValues", 321 "documentation":"<p>The unit of time for time-based retention.</p>" 322 } 323 }, 324 "documentation":"<p>Specifies the retention rule for cross-Region snapshot copies.</p>" 325 }, 326 "CrossRegionCopyRule":{ 327 "type":"structure", 328 "required":["Encrypted"], 329 "members":{ 330 "TargetRegion":{ 331 "shape":"TargetRegion", 332 "documentation":"<p>Avoid using this parameter when creating new policies. Instead, use <b>Target</b> to specify a target Region or a target Outpost for snapshot copies.</p> <p>For policies created before the <b>Target</b> parameter was introduced, this parameter indicates the target Region for snapshot copies.</p>" 333 }, 334 "Target":{ 335 "shape":"Target", 336 "documentation":"<p>The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.</p> <p>Use this parameter instead of <b>TargetRegion</b>. Do not specify both.</p>" 337 }, 338 "Encrypted":{ 339 "shape":"Encrypted", 340 "documentation":"<p>To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.</p>" 341 }, 342 "CmkArn":{ 343 "shape":"CmkArn", 344 "documentation":"<p>The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.</p>" 345 }, 346 "CopyTags":{ 347 "shape":"CopyTagsNullable", 348 "documentation":"<p>Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.</p>" 349 }, 350 "RetainRule":{ 351 "shape":"CrossRegionCopyRetainRule", 352 "documentation":"<p>The retention rule that indicates how long snapshot copies are to be retained in the destination Region.</p>" 353 }, 354 "DeprecateRule":{ 355 "shape":"CrossRegionCopyDeprecateRule", 356 "documentation":"<p>The AMI deprecation rule for cross-Region AMI copies created by the rule.</p>" 357 } 358 }, 359 "documentation":"<p>Specifies a rule for cross-Region snapshot copies.</p>" 360 }, 361 "CrossRegionCopyRules":{ 362 "type":"list", 363 "member":{"shape":"CrossRegionCopyRule"}, 364 "max":3, 365 "min":0 366 }, 367 "DeleteLifecyclePolicyRequest":{ 368 "type":"structure", 369 "required":["PolicyId"], 370 "members":{ 371 "PolicyId":{ 372 "shape":"PolicyId", 373 "documentation":"<p>The identifier of the lifecycle policy.</p>", 374 "location":"uri", 375 "locationName":"policyId" 376 } 377 } 378 }, 379 "DeleteLifecyclePolicyResponse":{ 380 "type":"structure", 381 "members":{ 382 } 383 }, 384 "DeprecateRule":{ 385 "type":"structure", 386 "members":{ 387 "Count":{ 388 "shape":"Count", 389 "documentation":"<p>If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.</p>" 390 }, 391 "Interval":{ 392 "shape":"Interval", 393 "documentation":"<p>If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.</p>" 394 }, 395 "IntervalUnit":{ 396 "shape":"RetentionIntervalUnitValues", 397 "documentation":"<p>The unit of time in which to measure the <b>Interval</b>.</p>" 398 } 399 }, 400 "documentation":"<p>Specifies an AMI deprecation rule for a schedule.</p>" 401 }, 402 "DescriptionRegex":{ 403 "type":"string", 404 "max":1000, 405 "min":0, 406 "pattern":"[\\p{all}]*" 407 }, 408 "Encrypted":{"type":"boolean"}, 409 "EncryptionConfiguration":{ 410 "type":"structure", 411 "required":["Encrypted"], 412 "members":{ 413 "Encrypted":{ 414 "shape":"Encrypted", 415 "documentation":"<p>To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.</p>" 416 }, 417 "CmkArn":{ 418 "shape":"CmkArn", 419 "documentation":"<p>The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.</p>" 420 } 421 }, 422 "documentation":"<p>Specifies the encryption settings for shared snapshots that are copied across Regions.</p>" 423 }, 424 "ErrorCode":{"type":"string"}, 425 "ErrorMessage":{"type":"string"}, 426 "EventParameters":{ 427 "type":"structure", 428 "required":[ 429 "EventType", 430 "SnapshotOwner", 431 "DescriptionRegex" 432 ], 433 "members":{ 434 "EventType":{ 435 "shape":"EventTypeValues", 436 "documentation":"<p>The type of event. Currently, only snapshot sharing events are supported.</p>" 437 }, 438 "SnapshotOwner":{ 439 "shape":"SnapshotOwnerList", 440 "documentation":"<p>The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.</p>" 441 }, 442 "DescriptionRegex":{ 443 "shape":"DescriptionRegex", 444 "documentation":"<p>The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.</p> <p>For example, specifying <code>^.*Created for policy: policy-1234567890abcdef0.*$</code> configures the policy to run only if snapshots created by policy <code>policy-1234567890abcdef0</code> are shared with your account.</p>" 445 } 446 }, 447 "documentation":"<p>Specifies an event that triggers an event-based policy.</p>" 448 }, 449 "EventSource":{ 450 "type":"structure", 451 "required":["Type"], 452 "members":{ 453 "Type":{ 454 "shape":"EventSourceValues", 455 "documentation":"<p>The source of the event. Currently only managed CloudWatch Events rules are supported.</p>" 456 }, 457 "Parameters":{ 458 "shape":"EventParameters", 459 "documentation":"<p>Information about the event.</p>" 460 } 461 }, 462 "documentation":"<p>Specifies an event that triggers an event-based policy.</p>" 463 }, 464 "EventSourceValues":{ 465 "type":"string", 466 "enum":["MANAGED_CWE"] 467 }, 468 "EventTypeValues":{ 469 "type":"string", 470 "enum":["shareSnapshot"] 471 }, 472 "ExcludeBootVolume":{"type":"boolean"}, 473 "ExecutionRoleArn":{ 474 "type":"string", 475 "max":2048, 476 "min":0, 477 "pattern":"arn:aws(-[a-z]{1,3}){0,2}:iam::\\d+:role/.*" 478 }, 479 "FastRestoreRule":{ 480 "type":"structure", 481 "required":["AvailabilityZones"], 482 "members":{ 483 "Count":{ 484 "shape":"Count", 485 "documentation":"<p>The number of snapshots to be enabled with fast snapshot restore.</p>" 486 }, 487 "Interval":{ 488 "shape":"Interval", 489 "documentation":"<p>The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.</p>" 490 }, 491 "IntervalUnit":{ 492 "shape":"RetentionIntervalUnitValues", 493 "documentation":"<p>The unit of time for enabling fast snapshot restore.</p>" 494 }, 495 "AvailabilityZones":{ 496 "shape":"AvailabilityZoneList", 497 "documentation":"<p>The Availability Zones in which to enable fast snapshot restore.</p>" 498 } 499 }, 500 "documentation":"<p>Specifies a rule for enabling fast snapshot restore. You can enable fast snapshot restore based on either a count or a time interval.</p>" 501 }, 502 "GetLifecyclePoliciesRequest":{ 503 "type":"structure", 504 "members":{ 505 "PolicyIds":{ 506 "shape":"PolicyIdList", 507 "documentation":"<p>The identifiers of the data lifecycle policies.</p>", 508 "location":"querystring", 509 "locationName":"policyIds" 510 }, 511 "State":{ 512 "shape":"GettablePolicyStateValues", 513 "documentation":"<p>The activation state.</p>", 514 "location":"querystring", 515 "locationName":"state" 516 }, 517 "ResourceTypes":{ 518 "shape":"ResourceTypeValuesList", 519 "documentation":"<p>The resource type.</p>", 520 "location":"querystring", 521 "locationName":"resourceTypes" 522 }, 523 "TargetTags":{ 524 "shape":"TargetTagsFilterList", 525 "documentation":"<p>The target tag for a policy.</p> <p>Tags are strings in the format <code>key=value</code>.</p>", 526 "location":"querystring", 527 "locationName":"targetTags" 528 }, 529 "TagsToAdd":{ 530 "shape":"TagsToAddFilterList", 531 "documentation":"<p>The tags to add to objects created by the policy.</p> <p>Tags are strings in the format <code>key=value</code>.</p> <p>These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.</p>", 532 "location":"querystring", 533 "locationName":"tagsToAdd" 534 } 535 } 536 }, 537 "GetLifecyclePoliciesResponse":{ 538 "type":"structure", 539 "members":{ 540 "Policies":{ 541 "shape":"LifecyclePolicySummaryList", 542 "documentation":"<p>Summary information about the lifecycle policies.</p>" 543 } 544 } 545 }, 546 "GetLifecyclePolicyRequest":{ 547 "type":"structure", 548 "required":["PolicyId"], 549 "members":{ 550 "PolicyId":{ 551 "shape":"PolicyId", 552 "documentation":"<p>The identifier of the lifecycle policy.</p>", 553 "location":"uri", 554 "locationName":"policyId" 555 } 556 } 557 }, 558 "GetLifecyclePolicyResponse":{ 559 "type":"structure", 560 "members":{ 561 "Policy":{ 562 "shape":"LifecyclePolicy", 563 "documentation":"<p>Detailed information about the lifecycle policy.</p>" 564 } 565 } 566 }, 567 "GettablePolicyStateValues":{ 568 "type":"string", 569 "enum":[ 570 "ENABLED", 571 "DISABLED", 572 "ERROR" 573 ] 574 }, 575 "InternalServerException":{ 576 "type":"structure", 577 "members":{ 578 "Message":{"shape":"ErrorMessage"}, 579 "Code":{"shape":"ErrorCode"} 580 }, 581 "documentation":"<p>The service failed in an unexpected way.</p>", 582 "error":{"httpStatusCode":500}, 583 "exception":true 584 }, 585 "Interval":{ 586 "type":"integer", 587 "min":1 588 }, 589 "IntervalUnitValues":{ 590 "type":"string", 591 "enum":["HOURS"] 592 }, 593 "InvalidRequestException":{ 594 "type":"structure", 595 "members":{ 596 "Message":{"shape":"ErrorMessage"}, 597 "Code":{"shape":"ErrorCode"}, 598 "RequiredParameters":{ 599 "shape":"ParameterList", 600 "documentation":"<p>The request omitted one or more required parameters.</p>" 601 }, 602 "MutuallyExclusiveParameters":{ 603 "shape":"ParameterList", 604 "documentation":"<p>The request included parameters that cannot be provided together.</p>" 605 } 606 }, 607 "documentation":"<p>Bad request. The request is missing required parameters or has invalid parameters.</p>", 608 "error":{"httpStatusCode":400}, 609 "exception":true 610 }, 611 "LifecyclePolicy":{ 612 "type":"structure", 613 "members":{ 614 "PolicyId":{ 615 "shape":"PolicyId", 616 "documentation":"<p>The identifier of the lifecycle policy.</p>" 617 }, 618 "Description":{ 619 "shape":"PolicyDescription", 620 "documentation":"<p>The description of the lifecycle policy.</p>" 621 }, 622 "State":{ 623 "shape":"GettablePolicyStateValues", 624 "documentation":"<p>The activation state of the lifecycle policy.</p>" 625 }, 626 "StatusMessage":{ 627 "shape":"StatusMessage", 628 "documentation":"<p>The description of the status.</p>" 629 }, 630 "ExecutionRoleArn":{ 631 "shape":"ExecutionRoleArn", 632 "documentation":"<p>The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.</p>" 633 }, 634 "DateCreated":{ 635 "shape":"Timestamp", 636 "documentation":"<p>The local date and time when the lifecycle policy was created.</p>" 637 }, 638 "DateModified":{ 639 "shape":"Timestamp", 640 "documentation":"<p>The local date and time when the lifecycle policy was last modified.</p>" 641 }, 642 "PolicyDetails":{ 643 "shape":"PolicyDetails", 644 "documentation":"<p>The configuration of the lifecycle policy</p>" 645 }, 646 "Tags":{ 647 "shape":"TagMap", 648 "documentation":"<p>The tags.</p>" 649 }, 650 "PolicyArn":{ 651 "shape":"PolicyArn", 652 "documentation":"<p>The Amazon Resource Name (ARN) of the policy.</p>" 653 } 654 }, 655 "documentation":"<p>Detailed information about a lifecycle policy.</p>" 656 }, 657 "LifecyclePolicySummary":{ 658 "type":"structure", 659 "members":{ 660 "PolicyId":{ 661 "shape":"PolicyId", 662 "documentation":"<p>The identifier of the lifecycle policy.</p>" 663 }, 664 "Description":{ 665 "shape":"PolicyDescription", 666 "documentation":"<p>The description of the lifecycle policy.</p>" 667 }, 668 "State":{ 669 "shape":"GettablePolicyStateValues", 670 "documentation":"<p>The activation state of the lifecycle policy.</p>" 671 }, 672 "Tags":{ 673 "shape":"TagMap", 674 "documentation":"<p>The tags.</p>" 675 }, 676 "PolicyType":{ 677 "shape":"PolicyTypeValues", 678 "documentation":"<p>The type of policy. <code>EBS_SNAPSHOT_MANAGEMENT</code> indicates that the policy manages the lifecycle of Amazon EBS snapshots. <code>IMAGE_MANAGEMENT</code> indicates that the policy manages the lifecycle of EBS-backed AMIs.</p>" 679 } 680 }, 681 "documentation":"<p>Summary information about a lifecycle policy.</p>" 682 }, 683 "LifecyclePolicySummaryList":{ 684 "type":"list", 685 "member":{"shape":"LifecyclePolicySummary"} 686 }, 687 "LimitExceededException":{ 688 "type":"structure", 689 "members":{ 690 "Message":{"shape":"ErrorMessage"}, 691 "Code":{"shape":"ErrorCode"}, 692 "ResourceType":{ 693 "shape":"String", 694 "documentation":"<p>Value is the type of resource for which a limit was exceeded.</p>" 695 } 696 }, 697 "documentation":"<p>The request failed because a limit was exceeded.</p>", 698 "error":{"httpStatusCode":429}, 699 "exception":true 700 }, 701 "ListTagsForResourceRequest":{ 702 "type":"structure", 703 "required":["ResourceArn"], 704 "members":{ 705 "ResourceArn":{ 706 "shape":"PolicyArn", 707 "documentation":"<p>The Amazon Resource Name (ARN) of the resource.</p>", 708 "location":"uri", 709 "locationName":"resourceArn" 710 } 711 } 712 }, 713 "ListTagsForResourceResponse":{ 714 "type":"structure", 715 "members":{ 716 "Tags":{ 717 "shape":"TagMap", 718 "documentation":"<p>Information about the tags.</p>" 719 } 720 } 721 }, 722 "LocationValues":{ 723 "type":"string", 724 "enum":[ 725 "CLOUD", 726 "OUTPOST_LOCAL" 727 ] 728 }, 729 "NoReboot":{"type":"boolean"}, 730 "Parameter":{"type":"string"}, 731 "ParameterList":{ 732 "type":"list", 733 "member":{"shape":"Parameter"} 734 }, 735 "Parameters":{ 736 "type":"structure", 737 "members":{ 738 "ExcludeBootVolume":{ 739 "shape":"ExcludeBootVolume", 740 "documentation":"<p>[EBS Snapshot Management – Instance policies only] Indicates whether to exclude the root volume from snapshots created using <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSnapshots.html\">CreateSnapshots</a>. The default is false.</p>" 741 }, 742 "NoReboot":{ 743 "shape":"NoReboot", 744 "documentation":"<p>Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. <code>true</code> indicates that targeted instances are not rebooted when the policy runs. <code>false</code> indicates that target instances are rebooted when the policy runs. The default is <code>true</code> (instances are not rebooted).</p>" 745 } 746 }, 747 "documentation":"<p>Specifies optional parameters to add to a policy. The set of valid parameters depends on the combination of policy type and resource type.</p>" 748 }, 749 "PolicyArn":{ 750 "type":"string", 751 "max":2048, 752 "min":0, 753 "pattern":"^arn:aws(-[a-z]{1,3}){0,2}:dlm:[A-Za-z0-9_/.-]{0,63}:\\d+:policy/[0-9A-Za-z_-]{1,128}$" 754 }, 755 "PolicyDescription":{ 756 "type":"string", 757 "max":500, 758 "min":0, 759 "pattern":"[0-9A-Za-z _-]+" 760 }, 761 "PolicyDetails":{ 762 "type":"structure", 763 "members":{ 764 "PolicyType":{ 765 "shape":"PolicyTypeValues", 766 "documentation":"<p>The valid target resource types and actions a policy can manage. Specify <code>EBS_SNAPSHOT_MANAGEMENT</code> to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify <code>IMAGE_MANAGEMENT</code> to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify <code>EVENT_BASED_POLICY </code> to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.</p> <p>The default is <code>EBS_SNAPSHOT_MANAGEMENT</code>.</p>" 767 }, 768 "ResourceTypes":{ 769 "shape":"ResourceTypeValuesList", 770 "documentation":"<p>The target resource type for snapshot and AMI lifecycle policies. Use <code>VOLUME </code>to create snapshots of individual volumes or use <code>INSTANCE</code> to create multi-volume snapshots from the volumes for an instance.</p> <p>This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.</p>" 771 }, 772 "ResourceLocations":{ 773 "shape":"ResourceLocationList", 774 "documentation":"<p>The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify <code>CLOUD</code>. If the source resources are located on an Outpost in your account, specify <code>OUTPOST</code>. </p> <p>If you specify <code>OUTPOST</code>, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.</p>" 775 }, 776 "TargetTags":{ 777 "shape":"TargetTagList", 778 "documentation":"<p>The single tag that identifies targeted resources for this policy.</p> <p>This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.</p>" 779 }, 780 "Schedules":{ 781 "shape":"ScheduleList", 782 "documentation":"<p>The schedules of policy-defined actions for snapshot and AMI lifecycle policies. A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.</p> <p>This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.</p>" 783 }, 784 "Parameters":{ 785 "shape":"Parameters", 786 "documentation":"<p>A set of optional parameters for snapshot and AMI lifecycle policies. </p> <p>This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.</p>" 787 }, 788 "EventSource":{ 789 "shape":"EventSource", 790 "documentation":"<p>The event that triggers the event-based policy. </p> <p>This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.</p>" 791 }, 792 "Actions":{ 793 "shape":"ActionList", 794 "documentation":"<p>The actions to be performed when the event-based policy is triggered. You can specify only one action per policy.</p> <p>This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.</p>" 795 } 796 }, 797 "documentation":"<p>Specifies the configuration of a lifecycle policy.</p>" 798 }, 799 "PolicyId":{ 800 "type":"string", 801 "max":64, 802 "min":0, 803 "pattern":"policy-[A-Za-z0-9]+" 804 }, 805 "PolicyIdList":{ 806 "type":"list", 807 "member":{"shape":"PolicyId"} 808 }, 809 "PolicyTypeValues":{ 810 "type":"string", 811 "enum":[ 812 "EBS_SNAPSHOT_MANAGEMENT", 813 "IMAGE_MANAGEMENT", 814 "EVENT_BASED_POLICY" 815 ] 816 }, 817 "ResourceLocationList":{ 818 "type":"list", 819 "member":{"shape":"ResourceLocationValues"}, 820 "max":1, 821 "min":1 822 }, 823 "ResourceLocationValues":{ 824 "type":"string", 825 "enum":[ 826 "CLOUD", 827 "OUTPOST" 828 ] 829 }, 830 "ResourceNotFoundException":{ 831 "type":"structure", 832 "members":{ 833 "Message":{"shape":"ErrorMessage"}, 834 "Code":{"shape":"ErrorCode"}, 835 "ResourceType":{ 836 "shape":"String", 837 "documentation":"<p>Value is the type of resource that was not found.</p>" 838 }, 839 "ResourceIds":{ 840 "shape":"PolicyIdList", 841 "documentation":"<p>Value is a list of resource IDs that were not found.</p>" 842 } 843 }, 844 "documentation":"<p>A requested resource was not found.</p>", 845 "error":{"httpStatusCode":404}, 846 "exception":true 847 }, 848 "ResourceTypeValues":{ 849 "type":"string", 850 "enum":[ 851 "VOLUME", 852 "INSTANCE" 853 ] 854 }, 855 "ResourceTypeValuesList":{ 856 "type":"list", 857 "member":{"shape":"ResourceTypeValues"}, 858 "max":1, 859 "min":1 860 }, 861 "RetainRule":{ 862 "type":"structure", 863 "members":{ 864 "Count":{ 865 "shape":"Count", 866 "documentation":"<p>The number of snapshots to retain for each volume, up to a maximum of 1000.</p>" 867 }, 868 "Interval":{ 869 "shape":"Interval", 870 "documentation":"<p>The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.</p>" 871 }, 872 "IntervalUnit":{ 873 "shape":"RetentionIntervalUnitValues", 874 "documentation":"<p>The unit of time for time-based retention.</p>" 875 } 876 }, 877 "documentation":"<p>Specifies the retention rule for a lifecycle policy. You can retain snapshots based on either a count or a time interval.</p>" 878 }, 879 "RetentionIntervalUnitValues":{ 880 "type":"string", 881 "enum":[ 882 "DAYS", 883 "WEEKS", 884 "MONTHS", 885 "YEARS" 886 ] 887 }, 888 "Schedule":{ 889 "type":"structure", 890 "members":{ 891 "Name":{ 892 "shape":"ScheduleName", 893 "documentation":"<p>The name of the schedule.</p>" 894 }, 895 "CopyTags":{ 896 "shape":"CopyTags", 897 "documentation":"<p>Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.</p>" 898 }, 899 "TagsToAdd":{ 900 "shape":"TagsToAddList", 901 "documentation":"<p>The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.</p>" 902 }, 903 "VariableTags":{ 904 "shape":"VariableTagsList", 905 "documentation":"<p>A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any valid Amazon EC2 tag key. Values must be in one of the two following formats: <code>$(instance-id)</code> or <code>$(timestamp)</code>. Variable tags are only valid for EBS Snapshot Management – Instance policies.</p>" 906 }, 907 "CreateRule":{ 908 "shape":"CreateRule", 909 "documentation":"<p>The creation rule.</p>" 910 }, 911 "RetainRule":{ 912 "shape":"RetainRule", 913 "documentation":"<p>The retention rule.</p>" 914 }, 915 "FastRestoreRule":{ 916 "shape":"FastRestoreRule", 917 "documentation":"<p>The rule for enabling fast snapshot restore.</p>" 918 }, 919 "CrossRegionCopyRules":{ 920 "shape":"CrossRegionCopyRules", 921 "documentation":"<p>The rule for cross-Region snapshot copies.</p> <p>You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.</p>" 922 }, 923 "ShareRules":{ 924 "shape":"ShareRules", 925 "documentation":"<p>The rule for sharing snapshots with other Amazon Web Services accounts.</p>" 926 }, 927 "DeprecateRule":{ 928 "shape":"DeprecateRule", 929 "documentation":"<p>The AMI deprecation rule for the schedule.</p>" 930 } 931 }, 932 "documentation":"<p>Specifies a backup schedule for a snapshot or AMI lifecycle policy.</p>" 933 }, 934 "ScheduleList":{ 935 "type":"list", 936 "member":{"shape":"Schedule"}, 937 "max":4, 938 "min":1 939 }, 940 "ScheduleName":{ 941 "type":"string", 942 "max":120, 943 "min":0, 944 "pattern":"[0-9A-Za-z _-]+" 945 }, 946 "SettablePolicyStateValues":{ 947 "type":"string", 948 "enum":[ 949 "ENABLED", 950 "DISABLED" 951 ] 952 }, 953 "ShareRule":{ 954 "type":"structure", 955 "required":["TargetAccounts"], 956 "members":{ 957 "TargetAccounts":{ 958 "shape":"ShareTargetAccountList", 959 "documentation":"<p>The IDs of the Amazon Web Services accounts with which to share the snapshots.</p>" 960 }, 961 "UnshareInterval":{ 962 "shape":"Interval", 963 "documentation":"<p>The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.</p>" 964 }, 965 "UnshareIntervalUnit":{ 966 "shape":"RetentionIntervalUnitValues", 967 "documentation":"<p>The unit of time for the automatic unsharing interval.</p>" 968 } 969 }, 970 "documentation":"<p>Specifies a rule for sharing snapshots across Amazon Web Services accounts.</p>" 971 }, 972 "ShareRules":{ 973 "type":"list", 974 "member":{"shape":"ShareRule"}, 975 "max":1, 976 "min":0 977 }, 978 "ShareTargetAccountList":{ 979 "type":"list", 980 "member":{"shape":"AwsAccountId"}, 981 "min":1 982 }, 983 "SnapshotOwnerList":{ 984 "type":"list", 985 "member":{"shape":"AwsAccountId"}, 986 "max":50, 987 "min":0 988 }, 989 "StatusMessage":{ 990 "type":"string", 991 "max":500, 992 "min":0, 993 "pattern":"[\\p{all}]*" 994 }, 995 "String":{ 996 "type":"string", 997 "max":500, 998 "min":0, 999 "pattern":"[\\p{all}]*" 1000 }, 1001 "Tag":{ 1002 "type":"structure", 1003 "required":[ 1004 "Key", 1005 "Value" 1006 ], 1007 "members":{ 1008 "Key":{ 1009 "shape":"String", 1010 "documentation":"<p>The tag key.</p>" 1011 }, 1012 "Value":{ 1013 "shape":"String", 1014 "documentation":"<p>The tag value.</p>" 1015 } 1016 }, 1017 "documentation":"<p>Specifies a tag for a resource.</p>" 1018 }, 1019 "TagFilter":{ 1020 "type":"string", 1021 "max":256, 1022 "min":0, 1023 "pattern":"[\\p{all}]*" 1024 }, 1025 "TagKey":{ 1026 "type":"string", 1027 "max":128, 1028 "min":1, 1029 "pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$" 1030 }, 1031 "TagKeyList":{ 1032 "type":"list", 1033 "member":{"shape":"TagKey"}, 1034 "max":200, 1035 "min":1 1036 }, 1037 "TagMap":{ 1038 "type":"map", 1039 "key":{"shape":"TagKey"}, 1040 "value":{"shape":"TagValue"}, 1041 "max":200, 1042 "min":1 1043 }, 1044 "TagResourceRequest":{ 1045 "type":"structure", 1046 "required":[ 1047 "ResourceArn", 1048 "Tags" 1049 ], 1050 "members":{ 1051 "ResourceArn":{ 1052 "shape":"PolicyArn", 1053 "documentation":"<p>The Amazon Resource Name (ARN) of the resource.</p>", 1054 "location":"uri", 1055 "locationName":"resourceArn" 1056 }, 1057 "Tags":{ 1058 "shape":"TagMap", 1059 "documentation":"<p>One or more tags.</p>" 1060 } 1061 } 1062 }, 1063 "TagResourceResponse":{ 1064 "type":"structure", 1065 "members":{ 1066 } 1067 }, 1068 "TagValue":{ 1069 "type":"string", 1070 "max":256, 1071 "pattern":"[\\p{all}]*" 1072 }, 1073 "TagsToAddFilterList":{ 1074 "type":"list", 1075 "member":{"shape":"TagFilter"}, 1076 "max":50, 1077 "min":0 1078 }, 1079 "TagsToAddList":{ 1080 "type":"list", 1081 "member":{"shape":"Tag"}, 1082 "max":45, 1083 "min":0 1084 }, 1085 "Target":{ 1086 "type":"string", 1087 "max":2048, 1088 "min":0, 1089 "pattern":"^[\\w:\\-\\/\\*]+$" 1090 }, 1091 "TargetRegion":{ 1092 "type":"string", 1093 "max":16, 1094 "min":0, 1095 "pattern":"([a-z]+-){2,3}\\d" 1096 }, 1097 "TargetTagList":{ 1098 "type":"list", 1099 "member":{"shape":"Tag"}, 1100 "max":50, 1101 "min":1 1102 }, 1103 "TargetTagsFilterList":{ 1104 "type":"list", 1105 "member":{"shape":"TagFilter"}, 1106 "max":50, 1107 "min":1 1108 }, 1109 "Time":{ 1110 "type":"string", 1111 "max":5, 1112 "min":5, 1113 "pattern":"^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$" 1114 }, 1115 "TimesList":{ 1116 "type":"list", 1117 "member":{"shape":"Time"}, 1118 "max":1 1119 }, 1120 "Timestamp":{ 1121 "type":"timestamp", 1122 "timestampFormat":"iso8601" 1123 }, 1124 "UntagResourceRequest":{ 1125 "type":"structure", 1126 "required":[ 1127 "ResourceArn", 1128 "TagKeys" 1129 ], 1130 "members":{ 1131 "ResourceArn":{ 1132 "shape":"PolicyArn", 1133 "documentation":"<p>The Amazon Resource Name (ARN) of the resource.</p>", 1134 "location":"uri", 1135 "locationName":"resourceArn" 1136 }, 1137 "TagKeys":{ 1138 "shape":"TagKeyList", 1139 "documentation":"<p>The tag keys.</p>", 1140 "location":"querystring", 1141 "locationName":"tagKeys" 1142 } 1143 } 1144 }, 1145 "UntagResourceResponse":{ 1146 "type":"structure", 1147 "members":{ 1148 } 1149 }, 1150 "UpdateLifecyclePolicyRequest":{ 1151 "type":"structure", 1152 "required":["PolicyId"], 1153 "members":{ 1154 "PolicyId":{ 1155 "shape":"PolicyId", 1156 "documentation":"<p>The identifier of the lifecycle policy.</p>", 1157 "location":"uri", 1158 "locationName":"policyId" 1159 }, 1160 "ExecutionRoleArn":{ 1161 "shape":"ExecutionRoleArn", 1162 "documentation":"<p>The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.</p>" 1163 }, 1164 "State":{ 1165 "shape":"SettablePolicyStateValues", 1166 "documentation":"<p>The desired activation state of the lifecycle policy after creation.</p>" 1167 }, 1168 "Description":{ 1169 "shape":"PolicyDescription", 1170 "documentation":"<p>A description of the lifecycle policy.</p>" 1171 }, 1172 "PolicyDetails":{ 1173 "shape":"PolicyDetails", 1174 "documentation":"<p>The configuration of the lifecycle policy. You cannot update the policy type or the resource type.</p>" 1175 } 1176 } 1177 }, 1178 "UpdateLifecyclePolicyResponse":{ 1179 "type":"structure", 1180 "members":{ 1181 } 1182 }, 1183 "VariableTagsList":{ 1184 "type":"list", 1185 "member":{"shape":"Tag"}, 1186 "max":45, 1187 "min":0 1188 } 1189 }, 1190 "documentation":"<fullname>Amazon Data Lifecycle Manager</fullname> <p>With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web Services resources. You create lifecycle policies, which are used to automate operations on the specified resources.</p> <p>Amazon DLM supports Amazon EBS volumes and snapshots. For information about using Amazon DLM with Amazon EBS, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html\">Automating the Amazon EBS Snapshot Lifecycle</a> in the <i>Amazon EC2 User Guide</i>.</p>" 1191} 1192