aws-sdk-backup 1.17.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-backup.rb +1 -1
- data/lib/aws-sdk-backup/client.rb +63 -17
- data/lib/aws-sdk-backup/client_api.rb +14 -1
- data/lib/aws-sdk-backup/types.rb +109 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f9fba0576ad1b2d98d4a204fbe89644842a72907bb431851aa136cf8a9ba83d
|
4
|
+
data.tar.gz: 3a1bdf4222f008c765b1b14bf96d597df63f551a7e20ed6efc04a788a4bbbe2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e75c7df74bf4247f950cb273a810d6662f99fa2f3c66d83f5f22aae50eda855fe58b69d672529a86affcf091924e0fdf9aa329e3942e0279f75cf8340fe76920
|
7
|
+
data.tar.gz: 5aacac9b9dcd055f5c20174fbf6a15790c7758ecf5e4a20a737b1ec23a7be9b83f15399abc8f50bfb0a81f71d6692fef623a544be7a29b5456cd5810539ffb15
|
data/lib/aws-sdk-backup.rb
CHANGED
@@ -716,6 +716,7 @@ module Aws::Backup
|
|
716
716
|
#
|
717
717
|
# @return [Types::DescribeBackupJobOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
718
718
|
#
|
719
|
+
# * {Types::DescribeBackupJobOutput#account_id #account_id} => String
|
719
720
|
# * {Types::DescribeBackupJobOutput#backup_job_id #backup_job_id} => String
|
720
721
|
# * {Types::DescribeBackupJobOutput#backup_vault_name #backup_vault_name} => String
|
721
722
|
# * {Types::DescribeBackupJobOutput#backup_vault_arn #backup_vault_arn} => String
|
@@ -742,6 +743,7 @@ module Aws::Backup
|
|
742
743
|
#
|
743
744
|
# @example Response structure
|
744
745
|
#
|
746
|
+
# resp.account_id #=> String
|
745
747
|
# resp.backup_job_id #=> String
|
746
748
|
# resp.backup_vault_name #=> String
|
747
749
|
# resp.backup_vault_arn #=> String
|
@@ -830,6 +832,7 @@ module Aws::Backup
|
|
830
832
|
#
|
831
833
|
# @example Response structure
|
832
834
|
#
|
835
|
+
# resp.copy_job.account_id #=> String
|
833
836
|
# resp.copy_job.copy_job_id #=> String
|
834
837
|
# resp.copy_job.source_backup_vault_arn #=> String
|
835
838
|
# resp.copy_job.source_recovery_point_arn #=> String
|
@@ -967,12 +970,12 @@ module Aws::Backup
|
|
967
970
|
req.send_request(options)
|
968
971
|
end
|
969
972
|
|
970
|
-
# Returns the current service opt-in settings for the
|
971
|
-
# service has a value set to true
|
972
|
-
#
|
973
|
-
#
|
974
|
-
#
|
975
|
-
#
|
973
|
+
# Returns the current service opt-in settings for the Region. If the
|
974
|
+
# service has a value set to `true`, AWS Backup attempts to protect that
|
975
|
+
# service's resources in this Region, when included in an on-demand
|
976
|
+
# backup or scheduled backup plan. If the value is set to `false` for a
|
977
|
+
# service, AWS Backup does not attempt to protect that service's
|
978
|
+
# resources in this Region.
|
976
979
|
#
|
977
980
|
# @return [Types::DescribeRegionSettingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
978
981
|
#
|
@@ -1000,6 +1003,7 @@ module Aws::Backup
|
|
1000
1003
|
#
|
1001
1004
|
# @return [Types::DescribeRestoreJobOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1002
1005
|
#
|
1006
|
+
# * {Types::DescribeRestoreJobOutput#account_id #account_id} => String
|
1003
1007
|
# * {Types::DescribeRestoreJobOutput#restore_job_id #restore_job_id} => String
|
1004
1008
|
# * {Types::DescribeRestoreJobOutput#recovery_point_arn #recovery_point_arn} => String
|
1005
1009
|
# * {Types::DescribeRestoreJobOutput#creation_date #creation_date} => Time
|
@@ -1011,6 +1015,7 @@ module Aws::Backup
|
|
1011
1015
|
# * {Types::DescribeRestoreJobOutput#iam_role_arn #iam_role_arn} => String
|
1012
1016
|
# * {Types::DescribeRestoreJobOutput#expected_completion_time_minutes #expected_completion_time_minutes} => Integer
|
1013
1017
|
# * {Types::DescribeRestoreJobOutput#created_resource_arn #created_resource_arn} => String
|
1018
|
+
# * {Types::DescribeRestoreJobOutput#resource_type #resource_type} => String
|
1014
1019
|
#
|
1015
1020
|
# @example Request syntax with placeholder values
|
1016
1021
|
#
|
@@ -1020,6 +1025,7 @@ module Aws::Backup
|
|
1020
1025
|
#
|
1021
1026
|
# @example Response structure
|
1022
1027
|
#
|
1028
|
+
# resp.account_id #=> String
|
1023
1029
|
# resp.restore_job_id #=> String
|
1024
1030
|
# resp.recovery_point_arn #=> String
|
1025
1031
|
# resp.creation_date #=> Time
|
@@ -1031,6 +1037,7 @@ module Aws::Backup
|
|
1031
1037
|
# resp.iam_role_arn #=> String
|
1032
1038
|
# resp.expected_completion_time_minutes #=> Integer
|
1033
1039
|
# resp.created_resource_arn #=> String
|
1040
|
+
# resp.resource_type #=> String
|
1034
1041
|
#
|
1035
1042
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeRestoreJob AWS API Documentation
|
1036
1043
|
#
|
@@ -1442,12 +1449,18 @@ module Aws::Backup
|
|
1442
1449
|
#
|
1443
1450
|
# * `EBS` for Amazon Elastic Block Store
|
1444
1451
|
#
|
1452
|
+
# * `EC2` for Amazon Elastic Compute Cloud
|
1453
|
+
#
|
1445
1454
|
# * `EFS` for Amazon Elastic File System
|
1446
1455
|
#
|
1447
1456
|
# * `RDS` for Amazon Relational Database Service
|
1448
1457
|
#
|
1449
1458
|
# * `Storage Gateway` for AWS Storage Gateway
|
1450
1459
|
#
|
1460
|
+
# @option params [String] :by_account_id
|
1461
|
+
# The account ID to list the jobs from. Returns only backup jobs
|
1462
|
+
# associated with the specified account ID.
|
1463
|
+
#
|
1451
1464
|
# @return [Types::ListBackupJobsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1452
1465
|
#
|
1453
1466
|
# * {Types::ListBackupJobsOutput#backup_jobs #backup_jobs} => Array<Types::BackupJob>
|
@@ -1466,11 +1479,13 @@ module Aws::Backup
|
|
1466
1479
|
# by_created_before: Time.now,
|
1467
1480
|
# by_created_after: Time.now,
|
1468
1481
|
# by_resource_type: "ResourceType",
|
1482
|
+
# by_account_id: "AccountId",
|
1469
1483
|
# })
|
1470
1484
|
#
|
1471
1485
|
# @example Response structure
|
1472
1486
|
#
|
1473
1487
|
# resp.backup_jobs #=> Array
|
1488
|
+
# resp.backup_jobs[0].account_id #=> String
|
1474
1489
|
# resp.backup_jobs[0].backup_job_id #=> String
|
1475
1490
|
# resp.backup_jobs[0].backup_vault_name #=> String
|
1476
1491
|
# resp.backup_jobs[0].backup_vault_arn #=> String
|
@@ -1774,8 +1789,12 @@ module Aws::Backup
|
|
1774
1789
|
# @option params [String] :by_resource_type
|
1775
1790
|
# Returns only backup jobs for the specified resources:
|
1776
1791
|
#
|
1792
|
+
# * `DynamoDB` for Amazon DynamoDB
|
1793
|
+
#
|
1777
1794
|
# * `EBS` for Amazon Elastic Block Store
|
1778
1795
|
#
|
1796
|
+
# * `EC2` for Amazon Elastic Compute Cloud
|
1797
|
+
#
|
1779
1798
|
# * `EFS` for Amazon Elastic File System
|
1780
1799
|
#
|
1781
1800
|
# * `RDS` for Amazon Relational Database Service
|
@@ -1787,6 +1806,10 @@ module Aws::Backup
|
|
1787
1806
|
# vault to copy from; for example,
|
1788
1807
|
# `arn:aws:backup:us-east-1:123456789012:vault:aBackupVault`.
|
1789
1808
|
#
|
1809
|
+
# @option params [String] :by_account_id
|
1810
|
+
# The account ID to list the jobs from. Returns only copy jobs
|
1811
|
+
# associated with the specified account ID.
|
1812
|
+
#
|
1790
1813
|
# @return [Types::ListCopyJobsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1791
1814
|
#
|
1792
1815
|
# * {Types::ListCopyJobsOutput#copy_jobs #copy_jobs} => Array<Types::CopyJob>
|
@@ -1805,11 +1828,13 @@ module Aws::Backup
|
|
1805
1828
|
# by_created_after: Time.now,
|
1806
1829
|
# by_resource_type: "ResourceType",
|
1807
1830
|
# by_destination_vault_arn: "string",
|
1831
|
+
# by_account_id: "AccountId",
|
1808
1832
|
# })
|
1809
1833
|
#
|
1810
1834
|
# @example Response structure
|
1811
1835
|
#
|
1812
1836
|
# resp.copy_jobs #=> Array
|
1837
|
+
# resp.copy_jobs[0].account_id #=> String
|
1813
1838
|
# resp.copy_jobs[0].copy_job_id #=> String
|
1814
1839
|
# resp.copy_jobs[0].source_backup_vault_arn #=> String
|
1815
1840
|
# resp.copy_jobs[0].source_recovery_point_arn #=> String
|
@@ -2036,6 +2061,19 @@ module Aws::Backup
|
|
2036
2061
|
# @option params [Integer] :max_results
|
2037
2062
|
# The maximum number of items to be returned.
|
2038
2063
|
#
|
2064
|
+
# @option params [String] :by_account_id
|
2065
|
+
# The account ID to list the jobs from. Returns only restore jobs
|
2066
|
+
# associated with the specified account ID.
|
2067
|
+
#
|
2068
|
+
# @option params [Time,DateTime,Date,Integer,String] :by_created_before
|
2069
|
+
# Returns only restore jobs that were created before the specified date.
|
2070
|
+
#
|
2071
|
+
# @option params [Time,DateTime,Date,Integer,String] :by_created_after
|
2072
|
+
# Returns only restore jobs that were created after the specified date.
|
2073
|
+
#
|
2074
|
+
# @option params [String] :by_status
|
2075
|
+
# Returns only restore jobs associated with the specified job status.
|
2076
|
+
#
|
2039
2077
|
# @return [Types::ListRestoreJobsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2040
2078
|
#
|
2041
2079
|
# * {Types::ListRestoreJobsOutput#restore_jobs #restore_jobs} => Array<Types::RestoreJobsListMember>
|
@@ -2048,11 +2086,16 @@ module Aws::Backup
|
|
2048
2086
|
# resp = client.list_restore_jobs({
|
2049
2087
|
# next_token: "string",
|
2050
2088
|
# max_results: 1,
|
2089
|
+
# by_account_id: "AccountId",
|
2090
|
+
# by_created_before: Time.now,
|
2091
|
+
# by_created_after: Time.now,
|
2092
|
+
# by_status: "PENDING", # accepts PENDING, RUNNING, COMPLETED, ABORTED, FAILED
|
2051
2093
|
# })
|
2052
2094
|
#
|
2053
2095
|
# @example Response structure
|
2054
2096
|
#
|
2055
2097
|
# resp.restore_jobs #=> Array
|
2098
|
+
# resp.restore_jobs[0].account_id #=> String
|
2056
2099
|
# resp.restore_jobs[0].restore_job_id #=> String
|
2057
2100
|
# resp.restore_jobs[0].recovery_point_arn #=> String
|
2058
2101
|
# resp.restore_jobs[0].creation_date #=> Time
|
@@ -2064,6 +2107,7 @@ module Aws::Backup
|
|
2064
2107
|
# resp.restore_jobs[0].iam_role_arn #=> String
|
2065
2108
|
# resp.restore_jobs[0].expected_completion_time_minutes #=> Integer
|
2066
2109
|
# resp.restore_jobs[0].created_resource_arn #=> String
|
2110
|
+
# resp.restore_jobs[0].resource_type #=> String
|
2067
2111
|
# resp.next_token #=> String
|
2068
2112
|
#
|
2069
2113
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRestoreJobs AWS API Documentation
|
@@ -2404,15 +2448,17 @@ module Aws::Backup
|
|
2404
2448
|
# Starts a job to restore a recovery point for one of the following
|
2405
2449
|
# resources:
|
2406
2450
|
#
|
2451
|
+
# * `DynamoDB` for Amazon DynamoDB
|
2452
|
+
#
|
2407
2453
|
# * `EBS` for Amazon Elastic Block Store
|
2408
2454
|
#
|
2409
|
-
# * `
|
2455
|
+
# * `EC2` for Amazon Elastic Compute Cloud
|
2410
2456
|
#
|
2411
|
-
# * `
|
2457
|
+
# * `EFS` for Amazon Elastic File System
|
2412
2458
|
#
|
2413
|
-
# * `
|
2459
|
+
# * `RDS` for Amazon Relational Database Service
|
2414
2460
|
#
|
2415
|
-
# * `
|
2461
|
+
# * `Storage Gateway` for AWS Storage Gateway
|
2416
2462
|
#
|
2417
2463
|
# @return [Types::StartRestoreJobOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2418
2464
|
#
|
@@ -2663,12 +2709,12 @@ module Aws::Backup
|
|
2663
2709
|
req.send_request(options)
|
2664
2710
|
end
|
2665
2711
|
|
2666
|
-
# Updates the current service opt-in settings for the
|
2667
|
-
# service has a value set to true
|
2668
|
-
#
|
2669
|
-
#
|
2670
|
-
#
|
2671
|
-
#
|
2712
|
+
# Updates the current service opt-in settings for the Region. If the
|
2713
|
+
# service has a value set to `true`, AWS Backup attempts to protect that
|
2714
|
+
# service's resources in this Region, when included in an on-demand
|
2715
|
+
# backup or scheduled backup plan. If the value is set to `false` for a
|
2716
|
+
# service, AWS Backup does not attempt to protect that service's
|
2717
|
+
# resources in this Region.
|
2672
2718
|
#
|
2673
2719
|
# @option params [Hash<String,Boolean>] :resource_type_opt_in_preference
|
2674
2720
|
# Updates the list of services along with the opt-in preferences for the
|
@@ -2706,7 +2752,7 @@ module Aws::Backup
|
|
2706
2752
|
params: params,
|
2707
2753
|
config: config)
|
2708
2754
|
context[:gem_name] = 'aws-sdk-backup'
|
2709
|
-
context[:gem_version] = '1.
|
2755
|
+
context[:gem_version] = '1.18.0'
|
2710
2756
|
Seahorse::Client::Request.new(handlers, context)
|
2711
2757
|
end
|
2712
2758
|
|
@@ -14,6 +14,7 @@ module Aws::Backup
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
ARN = Shapes::StringShape.new(name: 'ARN')
|
17
|
+
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
17
18
|
AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
|
18
19
|
BackupJob = Shapes::StructureShape.new(name: 'BackupJob')
|
19
20
|
BackupJobState = Shapes::StringShape.new(name: 'BackupJobState')
|
@@ -188,6 +189,7 @@ module Aws::Backup
|
|
188
189
|
AlreadyExistsException.add_member(:context, Shapes::ShapeRef.new(shape: string, location_name: "Context"))
|
189
190
|
AlreadyExistsException.struct_class = Types::AlreadyExistsException
|
190
191
|
|
192
|
+
BackupJob.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
191
193
|
BackupJob.add_member(:backup_job_id, Shapes::ShapeRef.new(shape: string, location_name: "BackupJobId"))
|
192
194
|
BackupJob.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, location_name: "BackupVaultName"))
|
193
195
|
BackupJob.add_member(:backup_vault_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "BackupVaultArn"))
|
@@ -305,6 +307,7 @@ module Aws::Backup
|
|
305
307
|
|
306
308
|
CopyActions.member = Shapes::ShapeRef.new(shape: CopyAction)
|
307
309
|
|
310
|
+
CopyJob.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
308
311
|
CopyJob.add_member(:copy_job_id, Shapes::ShapeRef.new(shape: string, location_name: "CopyJobId"))
|
309
312
|
CopyJob.add_member(:source_backup_vault_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "SourceBackupVaultArn"))
|
310
313
|
CopyJob.add_member(:source_recovery_point_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "SourceRecoveryPointArn"))
|
@@ -390,6 +393,7 @@ module Aws::Backup
|
|
390
393
|
DescribeBackupJobInput.add_member(:backup_job_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "backupJobId"))
|
391
394
|
DescribeBackupJobInput.struct_class = Types::DescribeBackupJobInput
|
392
395
|
|
396
|
+
DescribeBackupJobOutput.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
393
397
|
DescribeBackupJobOutput.add_member(:backup_job_id, Shapes::ShapeRef.new(shape: string, location_name: "BackupJobId"))
|
394
398
|
DescribeBackupJobOutput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, location_name: "BackupVaultName"))
|
395
399
|
DescribeBackupJobOutput.add_member(:backup_vault_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "BackupVaultArn"))
|
@@ -465,6 +469,7 @@ module Aws::Backup
|
|
465
469
|
DescribeRestoreJobInput.add_member(:restore_job_id, Shapes::ShapeRef.new(shape: RestoreJobId, required: true, location: "uri", location_name: "restoreJobId"))
|
466
470
|
DescribeRestoreJobInput.struct_class = Types::DescribeRestoreJobInput
|
467
471
|
|
472
|
+
DescribeRestoreJobOutput.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
468
473
|
DescribeRestoreJobOutput.add_member(:restore_job_id, Shapes::ShapeRef.new(shape: string, location_name: "RestoreJobId"))
|
469
474
|
DescribeRestoreJobOutput.add_member(:recovery_point_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "RecoveryPointArn"))
|
470
475
|
DescribeRestoreJobOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "CreationDate"))
|
@@ -476,6 +481,7 @@ module Aws::Backup
|
|
476
481
|
DescribeRestoreJobOutput.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, location_name: "IamRoleArn"))
|
477
482
|
DescribeRestoreJobOutput.add_member(:expected_completion_time_minutes, Shapes::ShapeRef.new(shape: Long, location_name: "ExpectedCompletionTimeMinutes"))
|
478
483
|
DescribeRestoreJobOutput.add_member(:created_resource_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "CreatedResourceArn"))
|
484
|
+
DescribeRestoreJobOutput.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
479
485
|
DescribeRestoreJobOutput.struct_class = Types::DescribeRestoreJobOutput
|
480
486
|
|
481
487
|
ExportBackupPlanTemplateInput.add_member(:backup_plan_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "backupPlanId"))
|
@@ -580,6 +586,7 @@ module Aws::Backup
|
|
580
586
|
ListBackupJobsInput.add_member(:by_created_before, Shapes::ShapeRef.new(shape: timestamp, location: "querystring", location_name: "createdBefore"))
|
581
587
|
ListBackupJobsInput.add_member(:by_created_after, Shapes::ShapeRef.new(shape: timestamp, location: "querystring", location_name: "createdAfter"))
|
582
588
|
ListBackupJobsInput.add_member(:by_resource_type, Shapes::ShapeRef.new(shape: ResourceType, location: "querystring", location_name: "resourceType"))
|
589
|
+
ListBackupJobsInput.add_member(:by_account_id, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "accountId"))
|
583
590
|
ListBackupJobsInput.struct_class = Types::ListBackupJobsInput
|
584
591
|
|
585
592
|
ListBackupJobsOutput.add_member(:backup_jobs, Shapes::ShapeRef.new(shape: BackupJobsList, location_name: "BackupJobs"))
|
@@ -637,6 +644,7 @@ module Aws::Backup
|
|
637
644
|
ListCopyJobsInput.add_member(:by_created_after, Shapes::ShapeRef.new(shape: timestamp, location: "querystring", location_name: "createdAfter"))
|
638
645
|
ListCopyJobsInput.add_member(:by_resource_type, Shapes::ShapeRef.new(shape: ResourceType, location: "querystring", location_name: "resourceType"))
|
639
646
|
ListCopyJobsInput.add_member(:by_destination_vault_arn, Shapes::ShapeRef.new(shape: string, location: "querystring", location_name: "destinationVaultArn"))
|
647
|
+
ListCopyJobsInput.add_member(:by_account_id, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "accountId"))
|
640
648
|
ListCopyJobsInput.struct_class = Types::ListCopyJobsInput
|
641
649
|
|
642
650
|
ListCopyJobsOutput.add_member(:copy_jobs, Shapes::ShapeRef.new(shape: CopyJobsList, location_name: "CopyJobs"))
|
@@ -678,6 +686,10 @@ module Aws::Backup
|
|
678
686
|
|
679
687
|
ListRestoreJobsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location: "querystring", location_name: "nextToken"))
|
680
688
|
ListRestoreJobsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
689
|
+
ListRestoreJobsInput.add_member(:by_account_id, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "accountId"))
|
690
|
+
ListRestoreJobsInput.add_member(:by_created_before, Shapes::ShapeRef.new(shape: timestamp, location: "querystring", location_name: "createdBefore"))
|
691
|
+
ListRestoreJobsInput.add_member(:by_created_after, Shapes::ShapeRef.new(shape: timestamp, location: "querystring", location_name: "createdAfter"))
|
692
|
+
ListRestoreJobsInput.add_member(:by_status, Shapes::ShapeRef.new(shape: RestoreJobStatus, location: "querystring", location_name: "status"))
|
681
693
|
ListRestoreJobsInput.struct_class = Types::ListRestoreJobsInput
|
682
694
|
|
683
695
|
ListRestoreJobsOutput.add_member(:restore_jobs, Shapes::ShapeRef.new(shape: RestoreJobsList, location_name: "RestoreJobs"))
|
@@ -769,6 +781,7 @@ module Aws::Backup
|
|
769
781
|
|
770
782
|
RestoreJobsList.member = Shapes::ShapeRef.new(shape: RestoreJobsListMember)
|
771
783
|
|
784
|
+
RestoreJobsListMember.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
772
785
|
RestoreJobsListMember.add_member(:restore_job_id, Shapes::ShapeRef.new(shape: string, location_name: "RestoreJobId"))
|
773
786
|
RestoreJobsListMember.add_member(:recovery_point_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "RecoveryPointArn"))
|
774
787
|
RestoreJobsListMember.add_member(:creation_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "CreationDate"))
|
@@ -780,6 +793,7 @@ module Aws::Backup
|
|
780
793
|
RestoreJobsListMember.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, location_name: "IamRoleArn"))
|
781
794
|
RestoreJobsListMember.add_member(:expected_completion_time_minutes, Shapes::ShapeRef.new(shape: Long, location_name: "ExpectedCompletionTimeMinutes"))
|
782
795
|
RestoreJobsListMember.add_member(:created_resource_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "CreatedResourceArn"))
|
796
|
+
RestoreJobsListMember.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
783
797
|
RestoreJobsListMember.struct_class = Types::RestoreJobsListMember
|
784
798
|
|
785
799
|
ServiceUnavailableException.add_member(:code, Shapes::ShapeRef.new(shape: string, location_name: "Code"))
|
@@ -1192,7 +1206,6 @@ module Aws::Backup
|
|
1192
1206
|
o.input = Shapes::ShapeRef.new(shape: ListBackupJobsInput)
|
1193
1207
|
o.output = Shapes::ShapeRef.new(shape: ListBackupJobsOutput)
|
1194
1208
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1195
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1196
1209
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1197
1210
|
o[:pager] = Aws::Pager.new(
|
1198
1211
|
limit_key: "max_results",
|
data/lib/aws-sdk-backup/types.rb
CHANGED
@@ -45,6 +45,10 @@ module Aws::Backup
|
|
45
45
|
|
46
46
|
# Contains detailed information about a backup job.
|
47
47
|
#
|
48
|
+
# @!attribute [rw] account_id
|
49
|
+
# The account ID that owns the backup job.
|
50
|
+
# @return [String]
|
51
|
+
#
|
48
52
|
# @!attribute [rw] backup_job_id
|
49
53
|
# Uniquely identifies a request to AWS Backup to back up a resource.
|
50
54
|
# @return [String]
|
@@ -148,6 +152,7 @@ module Aws::Backup
|
|
148
152
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/BackupJob AWS API Documentation
|
149
153
|
#
|
150
154
|
class BackupJob < Struct.new(
|
155
|
+
:account_id,
|
151
156
|
:backup_job_id,
|
152
157
|
:backup_vault_name,
|
153
158
|
:backup_vault_arn,
|
@@ -230,7 +235,7 @@ module Aws::Backup
|
|
230
235
|
# }
|
231
236
|
#
|
232
237
|
# @!attribute [rw] backup_plan_name
|
233
|
-
# The display name of a backup plan.
|
238
|
+
# The optional display name of a backup plan.
|
234
239
|
# @return [String]
|
235
240
|
#
|
236
241
|
# @!attribute [rw] rules
|
@@ -756,6 +761,10 @@ module Aws::Backup
|
|
756
761
|
|
757
762
|
# Contains detailed information about a copy job.
|
758
763
|
#
|
764
|
+
# @!attribute [rw] account_id
|
765
|
+
# The account ID that owns the copy job.
|
766
|
+
# @return [String]
|
767
|
+
#
|
759
768
|
# @!attribute [rw] copy_job_id
|
760
769
|
# Uniquely identifies a copy job.
|
761
770
|
# @return [String]
|
@@ -792,14 +801,14 @@ module Aws::Backup
|
|
792
801
|
#
|
793
802
|
# @!attribute [rw] creation_date
|
794
803
|
# The date and time a copy job is created, in Unix format and
|
795
|
-
# Coordinated Universal Time (UTC). The value of CreationDate is
|
804
|
+
# Coordinated Universal Time (UTC). The value of `CreationDate` is
|
796
805
|
# accurate to milliseconds. For example, the value 1516925490.087
|
797
806
|
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
798
807
|
# @return [Time]
|
799
808
|
#
|
800
809
|
# @!attribute [rw] completion_date
|
801
810
|
# The date and time a copy job is completed, in Unix format and
|
802
|
-
# Coordinated Universal Time (UTC). The value of CompletionDate is
|
811
|
+
# Coordinated Universal Time (UTC). The value of `CompletionDate` is
|
803
812
|
# accurate to milliseconds. For example, the value 1516925490.087
|
804
813
|
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
805
814
|
# @return [Time]
|
@@ -836,6 +845,7 @@ module Aws::Backup
|
|
836
845
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CopyJob AWS API Documentation
|
837
846
|
#
|
838
847
|
class CopyJob < Struct.new(
|
848
|
+
:account_id,
|
839
849
|
:copy_job_id,
|
840
850
|
:source_backup_vault_arn,
|
841
851
|
:source_recovery_point_arn,
|
@@ -1133,7 +1143,7 @@ module Aws::Backup
|
|
1133
1143
|
#
|
1134
1144
|
# @!attribute [rw] deletion_date
|
1135
1145
|
# The date and time a backup plan is deleted, in Unix format and
|
1136
|
-
# Coordinated Universal Time (UTC). The value of `
|
1146
|
+
# Coordinated Universal Time (UTC). The value of `DeletionDate` is
|
1137
1147
|
# accurate to milliseconds. For example, the value 1516925490.087
|
1138
1148
|
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
1139
1149
|
# @return [Time]
|
@@ -1321,6 +1331,10 @@ module Aws::Backup
|
|
1321
1331
|
include Aws::Structure
|
1322
1332
|
end
|
1323
1333
|
|
1334
|
+
# @!attribute [rw] account_id
|
1335
|
+
# Returns the account ID that owns the backup job.
|
1336
|
+
# @return [String]
|
1337
|
+
#
|
1324
1338
|
# @!attribute [rw] backup_job_id
|
1325
1339
|
# Uniquely identifies a request to AWS Backup to back up a resource.
|
1326
1340
|
# @return [String]
|
@@ -1358,7 +1372,7 @@ module Aws::Backup
|
|
1358
1372
|
# @!attribute [rw] completion_date
|
1359
1373
|
# The date and time that a job to create a backup job is completed, in
|
1360
1374
|
# Unix format and Coordinated Universal Time (UTC). The value of
|
1361
|
-
# `
|
1375
|
+
# `CompletionDate` is accurate to milliseconds. For example, the value
|
1362
1376
|
# 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
|
1363
1377
|
# @return [Time]
|
1364
1378
|
#
|
@@ -1424,6 +1438,7 @@ module Aws::Backup
|
|
1424
1438
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupJobOutput AWS API Documentation
|
1425
1439
|
#
|
1426
1440
|
class DescribeBackupJobOutput < Struct.new(
|
1441
|
+
:account_id,
|
1427
1442
|
:backup_job_id,
|
1428
1443
|
:backup_vault_name,
|
1429
1444
|
:backup_vault_arn,
|
@@ -1796,6 +1811,10 @@ module Aws::Backup
|
|
1796
1811
|
include Aws::Structure
|
1797
1812
|
end
|
1798
1813
|
|
1814
|
+
# @!attribute [rw] account_id
|
1815
|
+
# Returns the account ID that owns the restore job.
|
1816
|
+
# @return [String]
|
1817
|
+
#
|
1799
1818
|
# @!attribute [rw] restore_job_id
|
1800
1819
|
# Uniquely identifies the job that restores a recovery point.
|
1801
1820
|
# @return [String]
|
@@ -1826,8 +1845,7 @@ module Aws::Backup
|
|
1826
1845
|
# @return [String]
|
1827
1846
|
#
|
1828
1847
|
# @!attribute [rw] status_message
|
1829
|
-
# A
|
1830
|
-
# recovery point.
|
1848
|
+
# A message showing the status of a job to restore a recovery point.
|
1831
1849
|
# @return [String]
|
1832
1850
|
#
|
1833
1851
|
# @!attribute [rw] percent_done
|
@@ -1855,9 +1873,15 @@ module Aws::Backup
|
|
1855
1873
|
# depends on the resource type of the backed-up resource.
|
1856
1874
|
# @return [String]
|
1857
1875
|
#
|
1876
|
+
# @!attribute [rw] resource_type
|
1877
|
+
# Returns metadata associated with a restore job listed by resource
|
1878
|
+
# type.
|
1879
|
+
# @return [String]
|
1880
|
+
#
|
1858
1881
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeRestoreJobOutput AWS API Documentation
|
1859
1882
|
#
|
1860
1883
|
class DescribeRestoreJobOutput < Struct.new(
|
1884
|
+
:account_id,
|
1861
1885
|
:restore_job_id,
|
1862
1886
|
:recovery_point_arn,
|
1863
1887
|
:creation_date,
|
@@ -1868,7 +1892,8 @@ module Aws::Backup
|
|
1868
1892
|
:backup_size_in_bytes,
|
1869
1893
|
:iam_role_arn,
|
1870
1894
|
:expected_completion_time_minutes,
|
1871
|
-
:created_resource_arn
|
1895
|
+
:created_resource_arn,
|
1896
|
+
:resource_type)
|
1872
1897
|
SENSITIVE = []
|
1873
1898
|
include Aws::Structure
|
1874
1899
|
end
|
@@ -2034,7 +2059,7 @@ module Aws::Backup
|
|
2034
2059
|
#
|
2035
2060
|
# @!attribute [rw] deletion_date
|
2036
2061
|
# The date and time that a backup plan is deleted, in Unix format and
|
2037
|
-
# Coordinated Universal Time (UTC). The value of `
|
2062
|
+
# Coordinated Universal Time (UTC). The value of `DeletionDate` is
|
2038
2063
|
# accurate to milliseconds. For example, the value 1516925490.087
|
2039
2064
|
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
2040
2065
|
# @return [Time]
|
@@ -2292,15 +2317,17 @@ module Aws::Backup
|
|
2292
2317
|
# @!attribute [rw] resource_types
|
2293
2318
|
# Contains a string with the supported AWS resource types:
|
2294
2319
|
#
|
2320
|
+
# * `DynamoDB` for Amazon DynamoDB
|
2321
|
+
#
|
2295
2322
|
# * `EBS` for Amazon Elastic Block Store
|
2296
2323
|
#
|
2297
|
-
# * `
|
2324
|
+
# * `EC2` for Amazon Elastic Compute Cloud
|
2298
2325
|
#
|
2299
|
-
# * `
|
2326
|
+
# * `EFS` for Amazon Elastic File System
|
2300
2327
|
#
|
2301
|
-
# * `
|
2328
|
+
# * `RDS` for Amazon Relational Database Service
|
2302
2329
|
#
|
2303
|
-
# * `
|
2330
|
+
# * `Storage Gateway` for AWS Storage Gateway
|
2304
2331
|
# @return [Array<String>]
|
2305
2332
|
#
|
2306
2333
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetSupportedResourceTypesOutput AWS API Documentation
|
@@ -2438,6 +2465,7 @@ module Aws::Backup
|
|
2438
2465
|
# by_created_before: Time.now,
|
2439
2466
|
# by_created_after: Time.now,
|
2440
2467
|
# by_resource_type: "ResourceType",
|
2468
|
+
# by_account_id: "AccountId",
|
2441
2469
|
# }
|
2442
2470
|
#
|
2443
2471
|
# @!attribute [rw] next_token
|
@@ -2483,6 +2511,8 @@ module Aws::Backup
|
|
2483
2511
|
#
|
2484
2512
|
# * `EBS` for Amazon Elastic Block Store
|
2485
2513
|
#
|
2514
|
+
# * `EC2` for Amazon Elastic Compute Cloud
|
2515
|
+
#
|
2486
2516
|
# * `EFS` for Amazon Elastic File System
|
2487
2517
|
#
|
2488
2518
|
# * `RDS` for Amazon Relational Database Service
|
@@ -2490,6 +2520,11 @@ module Aws::Backup
|
|
2490
2520
|
# * `Storage Gateway` for AWS Storage Gateway
|
2491
2521
|
# @return [String]
|
2492
2522
|
#
|
2523
|
+
# @!attribute [rw] by_account_id
|
2524
|
+
# The account ID to list the jobs from. Returns only backup jobs
|
2525
|
+
# associated with the specified account ID.
|
2526
|
+
# @return [String]
|
2527
|
+
#
|
2493
2528
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupJobsInput AWS API Documentation
|
2494
2529
|
#
|
2495
2530
|
class ListBackupJobsInput < Struct.new(
|
@@ -2500,7 +2535,8 @@ module Aws::Backup
|
|
2500
2535
|
:by_backup_vault_name,
|
2501
2536
|
:by_created_before,
|
2502
2537
|
:by_created_after,
|
2503
|
-
:by_resource_type
|
2538
|
+
:by_resource_type,
|
2539
|
+
:by_account_id)
|
2504
2540
|
SENSITIVE = []
|
2505
2541
|
include Aws::Structure
|
2506
2542
|
end
|
@@ -2804,6 +2840,7 @@ module Aws::Backup
|
|
2804
2840
|
# by_created_after: Time.now,
|
2805
2841
|
# by_resource_type: "ResourceType",
|
2806
2842
|
# by_destination_vault_arn: "string",
|
2843
|
+
# by_account_id: "AccountId",
|
2807
2844
|
# }
|
2808
2845
|
#
|
2809
2846
|
# @!attribute [rw] next_token
|
@@ -2837,8 +2874,12 @@ module Aws::Backup
|
|
2837
2874
|
# @!attribute [rw] by_resource_type
|
2838
2875
|
# Returns only backup jobs for the specified resources:
|
2839
2876
|
#
|
2877
|
+
# * `DynamoDB` for Amazon DynamoDB
|
2878
|
+
#
|
2840
2879
|
# * `EBS` for Amazon Elastic Block Store
|
2841
2880
|
#
|
2881
|
+
# * `EC2` for Amazon Elastic Compute Cloud
|
2882
|
+
#
|
2842
2883
|
# * `EFS` for Amazon Elastic File System
|
2843
2884
|
#
|
2844
2885
|
# * `RDS` for Amazon Relational Database Service
|
@@ -2852,6 +2893,11 @@ module Aws::Backup
|
|
2852
2893
|
# `arn:aws:backup:us-east-1:123456789012:vault:aBackupVault`.
|
2853
2894
|
# @return [String]
|
2854
2895
|
#
|
2896
|
+
# @!attribute [rw] by_account_id
|
2897
|
+
# The account ID to list the jobs from. Returns only copy jobs
|
2898
|
+
# associated with the specified account ID.
|
2899
|
+
# @return [String]
|
2900
|
+
#
|
2855
2901
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListCopyJobsInput AWS API Documentation
|
2856
2902
|
#
|
2857
2903
|
class ListCopyJobsInput < Struct.new(
|
@@ -2862,7 +2908,8 @@ module Aws::Backup
|
|
2862
2908
|
:by_created_before,
|
2863
2909
|
:by_created_after,
|
2864
2910
|
:by_resource_type,
|
2865
|
-
:by_destination_vault_arn
|
2911
|
+
:by_destination_vault_arn,
|
2912
|
+
:by_account_id)
|
2866
2913
|
SENSITIVE = []
|
2867
2914
|
include Aws::Structure
|
2868
2915
|
end
|
@@ -3092,6 +3139,10 @@ module Aws::Backup
|
|
3092
3139
|
# {
|
3093
3140
|
# next_token: "string",
|
3094
3141
|
# max_results: 1,
|
3142
|
+
# by_account_id: "AccountId",
|
3143
|
+
# by_created_before: Time.now,
|
3144
|
+
# by_created_after: Time.now,
|
3145
|
+
# by_status: "PENDING", # accepts PENDING, RUNNING, COMPLETED, ABORTED, FAILED
|
3095
3146
|
# }
|
3096
3147
|
#
|
3097
3148
|
# @!attribute [rw] next_token
|
@@ -3105,11 +3156,34 @@ module Aws::Backup
|
|
3105
3156
|
# The maximum number of items to be returned.
|
3106
3157
|
# @return [Integer]
|
3107
3158
|
#
|
3159
|
+
# @!attribute [rw] by_account_id
|
3160
|
+
# The account ID to list the jobs from. Returns only restore jobs
|
3161
|
+
# associated with the specified account ID.
|
3162
|
+
# @return [String]
|
3163
|
+
#
|
3164
|
+
# @!attribute [rw] by_created_before
|
3165
|
+
# Returns only restore jobs that were created before the specified
|
3166
|
+
# date.
|
3167
|
+
# @return [Time]
|
3168
|
+
#
|
3169
|
+
# @!attribute [rw] by_created_after
|
3170
|
+
# Returns only restore jobs that were created after the specified
|
3171
|
+
# date.
|
3172
|
+
# @return [Time]
|
3173
|
+
#
|
3174
|
+
# @!attribute [rw] by_status
|
3175
|
+
# Returns only restore jobs associated with the specified job status.
|
3176
|
+
# @return [String]
|
3177
|
+
#
|
3108
3178
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRestoreJobsInput AWS API Documentation
|
3109
3179
|
#
|
3110
3180
|
class ListRestoreJobsInput < Struct.new(
|
3111
3181
|
:next_token,
|
3112
|
-
:max_results
|
3182
|
+
:max_results,
|
3183
|
+
:by_account_id,
|
3184
|
+
:by_created_before,
|
3185
|
+
:by_created_after,
|
3186
|
+
:by_status)
|
3113
3187
|
SENSITIVE = []
|
3114
3188
|
include Aws::Structure
|
3115
3189
|
end
|
@@ -3547,6 +3621,10 @@ module Aws::Backup
|
|
3547
3621
|
|
3548
3622
|
# Contains metadata about a restore job.
|
3549
3623
|
#
|
3624
|
+
# @!attribute [rw] account_id
|
3625
|
+
# The account ID that owns the restore job.
|
3626
|
+
# @return [String]
|
3627
|
+
#
|
3550
3628
|
# @!attribute [rw] restore_job_id
|
3551
3629
|
# Uniquely identifies the job that restores a recovery point.
|
3552
3630
|
# @return [String]
|
@@ -3604,9 +3682,16 @@ module Aws::Backup
|
|
3604
3682
|
# The format of the ARN depends on the resource type.
|
3605
3683
|
# @return [String]
|
3606
3684
|
#
|
3685
|
+
# @!attribute [rw] resource_type
|
3686
|
+
# The resource type of the listed restore jobs; for example, an Amazon
|
3687
|
+
# Elastic Block Store (Amazon EBS) volume or an Amazon Relational
|
3688
|
+
# Database Service (Amazon RDS) database.
|
3689
|
+
# @return [String]
|
3690
|
+
#
|
3607
3691
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/RestoreJobsListMember AWS API Documentation
|
3608
3692
|
#
|
3609
3693
|
class RestoreJobsListMember < Struct.new(
|
3694
|
+
:account_id,
|
3610
3695
|
:restore_job_id,
|
3611
3696
|
:recovery_point_arn,
|
3612
3697
|
:creation_date,
|
@@ -3617,7 +3702,8 @@ module Aws::Backup
|
|
3617
3702
|
:backup_size_in_bytes,
|
3618
3703
|
:iam_role_arn,
|
3619
3704
|
:expected_completion_time_minutes,
|
3620
|
-
:created_resource_arn
|
3705
|
+
:created_resource_arn,
|
3706
|
+
:resource_type)
|
3621
3707
|
SENSITIVE = []
|
3622
3708
|
include Aws::Structure
|
3623
3709
|
end
|
@@ -3915,15 +4001,17 @@ module Aws::Backup
|
|
3915
4001
|
# Starts a job to restore a recovery point for one of the following
|
3916
4002
|
# resources:
|
3917
4003
|
#
|
4004
|
+
# * `DynamoDB` for Amazon DynamoDB
|
4005
|
+
#
|
3918
4006
|
# * `EBS` for Amazon Elastic Block Store
|
3919
4007
|
#
|
3920
|
-
# * `
|
4008
|
+
# * `EC2` for Amazon Elastic Compute Cloud
|
3921
4009
|
#
|
3922
|
-
# * `
|
4010
|
+
# * `EFS` for Amazon Elastic File System
|
3923
4011
|
#
|
3924
|
-
# * `
|
4012
|
+
# * `RDS` for Amazon Relational Database Service
|
3925
4013
|
#
|
3926
|
-
# * `
|
4014
|
+
# * `Storage Gateway` for AWS Storage Gateway
|
3927
4015
|
# @return [String]
|
3928
4016
|
#
|
3929
4017
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/StartRestoreJobInput AWS API Documentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|