aws-sdk-backup 1.31.0 → 1.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-backup/client.rb +163 -7
- data/lib/aws-sdk-backup/client_api.rb +49 -0
- data/lib/aws-sdk-backup/types.rb +274 -16
- data/lib/aws-sdk-backup.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0b3865585ed461ce2dc58157427f92bdd3aa60a04e7474083690a87fc5d75de
|
4
|
+
data.tar.gz: 9c514293547a0b10bc1a98cc8df7361cde32644f2b02f453a9fef43db1db8248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f3fef03fa1ff0d17471fe8cca34e5e05b0c88a2481c3fe50618223ce7b95ee0741a5e17e17e7fdd3af84ee0722253e3cf388507a6537f8cd8b38f9b5176f069
|
7
|
+
data.tar.gz: 80463f48cc9dbc3a870b68234112e411dabd34f92dd082aaacd32c73b22753447e3a9037201cf154b8b7edff7df4f02fe9a11bc795c0780bf2a314bfcb9f1ee5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.35.0 (2021-10-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.34.0 (2021-10-07)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Launch of AWS Backup Vault Lock, which protects your backups from malicious and accidental actions, works with existing backup policies, and helps you meet compliance requirements.
|
13
|
+
|
14
|
+
1.33.0 (2021-10-05)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - AWS Backup Audit Manager framework report.
|
18
|
+
|
19
|
+
1.32.0 (2021-09-01)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.31.0 (2021-08-23)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.35.0
|
@@ -570,8 +570,7 @@ module Aws::Backup
|
|
570
570
|
# collection of controls that you can use to evaluate your backup
|
571
571
|
# practices. By using pre-built customizable controls to define your
|
572
572
|
# policies, you can evaluate whether your backup practices comply with
|
573
|
-
# your policies
|
574
|
-
# frameworks, you can set up automatic daily reports.
|
573
|
+
# your policies and which resources are not yet in compliance.
|
575
574
|
#
|
576
575
|
# @option params [required, String] :framework_name
|
577
576
|
# The unique name of the framework. The name must be between 1 and 256
|
@@ -672,11 +671,16 @@ module Aws::Backup
|
|
672
671
|
# Identifies the report template for the report. Reports are built using
|
673
672
|
# a report template. The report templates are:
|
674
673
|
#
|
675
|
-
# `
|
674
|
+
# `RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT |
|
675
|
+
# BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`
|
676
|
+
#
|
677
|
+
# If the report template is `RESOURCE_COMPLIANCE_REPORT` or
|
678
|
+
# `CONTROL_COMPLIANCE_REPORT`, this API resource also describes the
|
679
|
+
# report coverage by Amazon Web Services Regions and frameworks.
|
676
680
|
#
|
677
681
|
# @option params [Hash<String,String>] :report_plan_tags
|
678
|
-
# Metadata that you can assign to help organize the
|
679
|
-
# create. Each tag is a key-value pair.
|
682
|
+
# Metadata that you can assign to help organize the report plans that
|
683
|
+
# you create. Each tag is a key-value pair.
|
680
684
|
#
|
681
685
|
# @option params [String] :idempotency_token
|
682
686
|
# A customer-chosen string that you can use to distinguish between
|
@@ -691,6 +695,7 @@ module Aws::Backup
|
|
691
695
|
#
|
692
696
|
# * {Types::CreateReportPlanOutput#report_plan_name #report_plan_name} => String
|
693
697
|
# * {Types::CreateReportPlanOutput#report_plan_arn #report_plan_arn} => String
|
698
|
+
# * {Types::CreateReportPlanOutput#creation_time #creation_time} => Time
|
694
699
|
#
|
695
700
|
# @example Request syntax with placeholder values
|
696
701
|
#
|
@@ -704,6 +709,8 @@ module Aws::Backup
|
|
704
709
|
# },
|
705
710
|
# report_setting: { # required
|
706
711
|
# report_template: "string", # required
|
712
|
+
# framework_arns: ["string"],
|
713
|
+
# number_of_frameworks: 1,
|
707
714
|
# },
|
708
715
|
# report_plan_tags: {
|
709
716
|
# "string" => "string",
|
@@ -715,6 +722,7 @@ module Aws::Backup
|
|
715
722
|
#
|
716
723
|
# resp.report_plan_name #=> String
|
717
724
|
# resp.report_plan_arn #=> String
|
725
|
+
# resp.creation_time #=> Time
|
718
726
|
#
|
719
727
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateReportPlan AWS API Documentation
|
720
728
|
#
|
@@ -842,6 +850,38 @@ module Aws::Backup
|
|
842
850
|
req.send_request(options)
|
843
851
|
end
|
844
852
|
|
853
|
+
# Deletes Backup Vault Lock from a backup vault specified by a backup
|
854
|
+
# vault name.
|
855
|
+
#
|
856
|
+
# If the Vault Lock configuration is immutable, then you cannot delete
|
857
|
+
# Vault Lock using API operations, and you will receive an
|
858
|
+
# `InvalidRequestException` if you attempt to do so. For more
|
859
|
+
# information, see [Vault Lock][1] in the *Backup Developer Guide*.
|
860
|
+
#
|
861
|
+
#
|
862
|
+
#
|
863
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html
|
864
|
+
#
|
865
|
+
# @option params [required, String] :backup_vault_name
|
866
|
+
# The name of the backup vault from which to delete Backup Vault Lock.
|
867
|
+
#
|
868
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
869
|
+
#
|
870
|
+
# @example Request syntax with placeholder values
|
871
|
+
#
|
872
|
+
# resp = client.delete_backup_vault_lock_configuration({
|
873
|
+
# backup_vault_name: "BackupVaultName", # required
|
874
|
+
# })
|
875
|
+
#
|
876
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultLockConfiguration AWS API Documentation
|
877
|
+
#
|
878
|
+
# @overload delete_backup_vault_lock_configuration(params = {})
|
879
|
+
# @param [Hash] params ({})
|
880
|
+
def delete_backup_vault_lock_configuration(params = {}, options = {})
|
881
|
+
req = build_request(:delete_backup_vault_lock_configuration, params)
|
882
|
+
req.send_request(options)
|
883
|
+
end
|
884
|
+
|
845
885
|
# Deletes event notifications for the specified backup vault.
|
846
886
|
#
|
847
887
|
# @option params [required, String] :backup_vault_name
|
@@ -1032,6 +1072,10 @@ module Aws::Backup
|
|
1032
1072
|
# * {Types::DescribeBackupVaultOutput#creation_date #creation_date} => Time
|
1033
1073
|
# * {Types::DescribeBackupVaultOutput#creator_request_id #creator_request_id} => String
|
1034
1074
|
# * {Types::DescribeBackupVaultOutput#number_of_recovery_points #number_of_recovery_points} => Integer
|
1075
|
+
# * {Types::DescribeBackupVaultOutput#locked #locked} => Boolean
|
1076
|
+
# * {Types::DescribeBackupVaultOutput#min_retention_days #min_retention_days} => Integer
|
1077
|
+
# * {Types::DescribeBackupVaultOutput#max_retention_days #max_retention_days} => Integer
|
1078
|
+
# * {Types::DescribeBackupVaultOutput#lock_date #lock_date} => Time
|
1035
1079
|
#
|
1036
1080
|
# @example Request syntax with placeholder values
|
1037
1081
|
#
|
@@ -1047,6 +1091,10 @@ module Aws::Backup
|
|
1047
1091
|
# resp.creation_date #=> Time
|
1048
1092
|
# resp.creator_request_id #=> String
|
1049
1093
|
# resp.number_of_recovery_points #=> Integer
|
1094
|
+
# resp.locked #=> Boolean
|
1095
|
+
# resp.min_retention_days #=> Integer
|
1096
|
+
# resp.max_retention_days #=> Integer
|
1097
|
+
# resp.lock_date #=> Time
|
1050
1098
|
#
|
1051
1099
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupVault AWS API Documentation
|
1052
1100
|
#
|
@@ -1379,6 +1427,9 @@ module Aws::Backup
|
|
1379
1427
|
# resp.report_plan.report_plan_name #=> String
|
1380
1428
|
# resp.report_plan.report_plan_description #=> String
|
1381
1429
|
# resp.report_plan.report_setting.report_template #=> String
|
1430
|
+
# resp.report_plan.report_setting.framework_arns #=> Array
|
1431
|
+
# resp.report_plan.report_setting.framework_arns[0] #=> String
|
1432
|
+
# resp.report_plan.report_setting.number_of_frameworks #=> Integer
|
1382
1433
|
# resp.report_plan.report_delivery_channel.s3_bucket_name #=> String
|
1383
1434
|
# resp.report_plan.report_delivery_channel.s3_key_prefix #=> String
|
1384
1435
|
# resp.report_plan.report_delivery_channel.formats #=> Array
|
@@ -2231,6 +2282,10 @@ module Aws::Backup
|
|
2231
2282
|
# resp.backup_vault_list[0].encryption_key_arn #=> String
|
2232
2283
|
# resp.backup_vault_list[0].creator_request_id #=> String
|
2233
2284
|
# resp.backup_vault_list[0].number_of_recovery_points #=> Integer
|
2285
|
+
# resp.backup_vault_list[0].locked #=> Boolean
|
2286
|
+
# resp.backup_vault_list[0].min_retention_days #=> Integer
|
2287
|
+
# resp.backup_vault_list[0].max_retention_days #=> Integer
|
2288
|
+
# resp.backup_vault_list[0].lock_date #=> Time
|
2234
2289
|
# resp.next_token #=> String
|
2235
2290
|
#
|
2236
2291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupVaults AWS API Documentation
|
@@ -2701,6 +2756,9 @@ module Aws::Backup
|
|
2701
2756
|
# resp.report_plans[0].report_plan_name #=> String
|
2702
2757
|
# resp.report_plans[0].report_plan_description #=> String
|
2703
2758
|
# resp.report_plans[0].report_setting.report_template #=> String
|
2759
|
+
# resp.report_plans[0].report_setting.framework_arns #=> Array
|
2760
|
+
# resp.report_plans[0].report_setting.framework_arns[0] #=> String
|
2761
|
+
# resp.report_plans[0].report_setting.number_of_frameworks #=> Integer
|
2704
2762
|
# resp.report_plans[0].report_delivery_channel.s3_bucket_name #=> String
|
2705
2763
|
# resp.report_plans[0].report_delivery_channel.s3_key_prefix #=> String
|
2706
2764
|
# resp.report_plans[0].report_delivery_channel.formats #=> Array
|
@@ -2872,6 +2930,97 @@ module Aws::Backup
|
|
2872
2930
|
req.send_request(options)
|
2873
2931
|
end
|
2874
2932
|
|
2933
|
+
# Applies Backup Vault Lock to a backup vault, preventing attempts to
|
2934
|
+
# delete any recovery point stored in or created in a backup vault.
|
2935
|
+
# Vault Lock also prevents attempts to update the lifecycle policy that
|
2936
|
+
# controls the retention period of any recovery point currently stored
|
2937
|
+
# in a backup vault. If specified, Vault Lock enforces a minimum and
|
2938
|
+
# maximum retention period for future backup and copy jobs that target a
|
2939
|
+
# backup vault.
|
2940
|
+
#
|
2941
|
+
# @option params [required, String] :backup_vault_name
|
2942
|
+
# The Backup Vault Lock configuration that specifies the name of the
|
2943
|
+
# backup vault it protects.
|
2944
|
+
#
|
2945
|
+
# @option params [Integer] :min_retention_days
|
2946
|
+
# The Backup Vault Lock configuration that specifies the minimum
|
2947
|
+
# retention period that the vault retains its recovery points. This
|
2948
|
+
# setting can be useful if, for example, your organization's policies
|
2949
|
+
# require you to retain certain data for at least seven years (2555
|
2950
|
+
# days).
|
2951
|
+
#
|
2952
|
+
# If this parameter is not specified, Vault Lock will not enforce a
|
2953
|
+
# minimum retention period.
|
2954
|
+
#
|
2955
|
+
# If this parameter is specified, any backup or copy job to the vault
|
2956
|
+
# must have a lifecycle policy with a retention period equal to or
|
2957
|
+
# longer than the minimum retention period. If the job's retention
|
2958
|
+
# period is shorter than that minimum retention period, then the vault
|
2959
|
+
# fails that backup or copy job, and you should either modify your
|
2960
|
+
# lifecycle settings or use a different vault. Recovery points already
|
2961
|
+
# saved in the vault prior to Vault Lock are not affected.
|
2962
|
+
#
|
2963
|
+
# @option params [Integer] :max_retention_days
|
2964
|
+
# The Backup Vault Lock configuration that specifies the maximum
|
2965
|
+
# retention period that the vault retains its recovery points. This
|
2966
|
+
# setting can be useful if, for example, your organization's policies
|
2967
|
+
# require you to destroy certain data after retaining it for four years
|
2968
|
+
# (1460 days).
|
2969
|
+
#
|
2970
|
+
# If this parameter is not included, Vault Lock does not enforce a
|
2971
|
+
# maximum retention period on the recovery points in the vault. If this
|
2972
|
+
# parameter is included without a value, Vault Lock will not enforce a
|
2973
|
+
# maximum retention period.
|
2974
|
+
#
|
2975
|
+
# If this parameter is specified, any backup or copy job to the vault
|
2976
|
+
# must have a lifecycle policy with a retention period equal to or
|
2977
|
+
# shorter than the maximum retention period. If the job's retention
|
2978
|
+
# period is longer than that maximum retention period, then the vault
|
2979
|
+
# fails the backup or copy job, and you should either modify your
|
2980
|
+
# lifecycle settings or use a different vault. Recovery points already
|
2981
|
+
# saved in the vault prior to Vault Lock are not affected.
|
2982
|
+
#
|
2983
|
+
# @option params [Integer] :changeable_for_days
|
2984
|
+
# The Backup Vault Lock configuration that specifies the number of days
|
2985
|
+
# before the lock date. For example, setting `ChangeableForDays` to 30
|
2986
|
+
# on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31, 2022 at
|
2987
|
+
# 8pm UTC.
|
2988
|
+
#
|
2989
|
+
# Backup enforces a 72-hour cooling-off period before Vault Lock takes
|
2990
|
+
# effect and becomes immutable. Therefore, you must set
|
2991
|
+
# `ChangeableForDays` to 3 or greater.
|
2992
|
+
#
|
2993
|
+
# Before the lock date, you can delete Vault Lock from the vault using
|
2994
|
+
# `DeleteBackupVaultLockConfiguration` or change the Vault Lock
|
2995
|
+
# configuration using `PutBackupVaultLockConfiguration`. On and after
|
2996
|
+
# the lock date, the Vault Lock becomes immutable and cannot be changed
|
2997
|
+
# or deleted.
|
2998
|
+
#
|
2999
|
+
# If this parameter is not specified, you can delete Vault Lock from the
|
3000
|
+
# vault using `DeleteBackupVaultLockConfiguration` or change the Vault
|
3001
|
+
# Lock configuration using `PutBackupVaultLockConfiguration` at any
|
3002
|
+
# time.
|
3003
|
+
#
|
3004
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3005
|
+
#
|
3006
|
+
# @example Request syntax with placeholder values
|
3007
|
+
#
|
3008
|
+
# resp = client.put_backup_vault_lock_configuration({
|
3009
|
+
# backup_vault_name: "BackupVaultName", # required
|
3010
|
+
# min_retention_days: 1,
|
3011
|
+
# max_retention_days: 1,
|
3012
|
+
# changeable_for_days: 1,
|
3013
|
+
# })
|
3014
|
+
#
|
3015
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultLockConfiguration AWS API Documentation
|
3016
|
+
#
|
3017
|
+
# @overload put_backup_vault_lock_configuration(params = {})
|
3018
|
+
# @param [Hash] params ({})
|
3019
|
+
def put_backup_vault_lock_configuration(params = {}, options = {})
|
3020
|
+
req = build_request(:put_backup_vault_lock_configuration, params)
|
3021
|
+
req.send_request(options)
|
3022
|
+
end
|
3023
|
+
|
2875
3024
|
# Turns on notifications on a backup vault for the specified topic and
|
2876
3025
|
# events.
|
2877
3026
|
#
|
@@ -3640,7 +3789,12 @@ module Aws::Backup
|
|
3640
3789
|
# Identifies the report template for the report. Reports are built using
|
3641
3790
|
# a report template. The report templates are:
|
3642
3791
|
#
|
3643
|
-
# `
|
3792
|
+
# `RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT |
|
3793
|
+
# BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`
|
3794
|
+
#
|
3795
|
+
# If the report template is `RESOURCE_COMPLIANCE_REPORT` or
|
3796
|
+
# `CONTROL_COMPLIANCE_REPORT`, this API resource also describes the
|
3797
|
+
# report coverage by Amazon Web Services Regions and frameworks.
|
3644
3798
|
#
|
3645
3799
|
# @option params [String] :idempotency_token
|
3646
3800
|
# A customer-chosen string that you can use to distinguish between
|
@@ -3669,6 +3823,8 @@ module Aws::Backup
|
|
3669
3823
|
# },
|
3670
3824
|
# report_setting: {
|
3671
3825
|
# report_template: "string", # required
|
3826
|
+
# framework_arns: ["string"],
|
3827
|
+
# number_of_frameworks: 1,
|
3672
3828
|
# },
|
3673
3829
|
# idempotency_token: "string",
|
3674
3830
|
# })
|
@@ -3701,7 +3857,7 @@ module Aws::Backup
|
|
3701
3857
|
params: params,
|
3702
3858
|
config: config)
|
3703
3859
|
context[:gem_name] = 'aws-sdk-backup'
|
3704
|
-
context[:gem_version] = '1.
|
3860
|
+
context[:gem_version] = '1.35.0'
|
3705
3861
|
Seahorse::Client::Request.new(handlers, context)
|
3706
3862
|
end
|
3707
3863
|
|
@@ -79,6 +79,7 @@ module Aws::Backup
|
|
79
79
|
DeleteBackupSelectionInput = Shapes::StructureShape.new(name: 'DeleteBackupSelectionInput')
|
80
80
|
DeleteBackupVaultAccessPolicyInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultAccessPolicyInput')
|
81
81
|
DeleteBackupVaultInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultInput')
|
82
|
+
DeleteBackupVaultLockConfigurationInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultLockConfigurationInput')
|
82
83
|
DeleteBackupVaultNotificationsInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultNotificationsInput')
|
83
84
|
DeleteFrameworkInput = Shapes::StructureShape.new(name: 'DeleteFrameworkInput')
|
84
85
|
DeleteRecoveryPointInput = Shapes::StructureShape.new(name: 'DeleteRecoveryPointInput')
|
@@ -185,6 +186,7 @@ module Aws::Backup
|
|
185
186
|
ProtectedResource = Shapes::StructureShape.new(name: 'ProtectedResource')
|
186
187
|
ProtectedResourcesList = Shapes::ListShape.new(name: 'ProtectedResourcesList')
|
187
188
|
PutBackupVaultAccessPolicyInput = Shapes::StructureShape.new(name: 'PutBackupVaultAccessPolicyInput')
|
189
|
+
PutBackupVaultLockConfigurationInput = Shapes::StructureShape.new(name: 'PutBackupVaultLockConfigurationInput')
|
188
190
|
PutBackupVaultNotificationsInput = Shapes::StructureShape.new(name: 'PutBackupVaultNotificationsInput')
|
189
191
|
RecoveryPointByBackupVault = Shapes::StructureShape.new(name: 'RecoveryPointByBackupVault')
|
190
192
|
RecoveryPointByBackupVaultList = Shapes::ListShape.new(name: 'RecoveryPointByBackupVaultList')
|
@@ -373,6 +375,10 @@ module Aws::Backup
|
|
373
375
|
BackupVaultListMember.add_member(:encryption_key_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "EncryptionKeyArn"))
|
374
376
|
BackupVaultListMember.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: string, location_name: "CreatorRequestId"))
|
375
377
|
BackupVaultListMember.add_member(:number_of_recovery_points, Shapes::ShapeRef.new(shape: long, location_name: "NumberOfRecoveryPoints"))
|
378
|
+
BackupVaultListMember.add_member(:locked, Shapes::ShapeRef.new(shape: Boolean, location_name: "Locked"))
|
379
|
+
BackupVaultListMember.add_member(:min_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MinRetentionDays"))
|
380
|
+
BackupVaultListMember.add_member(:max_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MaxRetentionDays"))
|
381
|
+
BackupVaultListMember.add_member(:lock_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "LockDate"))
|
376
382
|
BackupVaultListMember.struct_class = Types::BackupVaultListMember
|
377
383
|
|
378
384
|
CalculatedLifecycle.add_member(:move_to_cold_storage_at, Shapes::ShapeRef.new(shape: timestamp, location_name: "MoveToColdStorageAt"))
|
@@ -482,6 +488,7 @@ module Aws::Backup
|
|
482
488
|
|
483
489
|
CreateReportPlanOutput.add_member(:report_plan_name, Shapes::ShapeRef.new(shape: ReportPlanName, location_name: "ReportPlanName"))
|
484
490
|
CreateReportPlanOutput.add_member(:report_plan_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "ReportPlanArn"))
|
491
|
+
CreateReportPlanOutput.add_member(:creation_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "CreationTime"))
|
485
492
|
CreateReportPlanOutput.struct_class = Types::CreateReportPlanOutput
|
486
493
|
|
487
494
|
DeleteBackupPlanInput.add_member(:backup_plan_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "backupPlanId"))
|
@@ -503,6 +510,9 @@ module Aws::Backup
|
|
503
510
|
DeleteBackupVaultInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "backupVaultName"))
|
504
511
|
DeleteBackupVaultInput.struct_class = Types::DeleteBackupVaultInput
|
505
512
|
|
513
|
+
DeleteBackupVaultLockConfigurationInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
514
|
+
DeleteBackupVaultLockConfigurationInput.struct_class = Types::DeleteBackupVaultLockConfigurationInput
|
515
|
+
|
506
516
|
DeleteBackupVaultNotificationsInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
507
517
|
DeleteBackupVaultNotificationsInput.struct_class = Types::DeleteBackupVaultNotificationsInput
|
508
518
|
|
@@ -556,6 +566,10 @@ module Aws::Backup
|
|
556
566
|
DescribeBackupVaultOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "CreationDate"))
|
557
567
|
DescribeBackupVaultOutput.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: string, location_name: "CreatorRequestId"))
|
558
568
|
DescribeBackupVaultOutput.add_member(:number_of_recovery_points, Shapes::ShapeRef.new(shape: long, location_name: "NumberOfRecoveryPoints"))
|
569
|
+
DescribeBackupVaultOutput.add_member(:locked, Shapes::ShapeRef.new(shape: Boolean, location_name: "Locked"))
|
570
|
+
DescribeBackupVaultOutput.add_member(:min_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MinRetentionDays"))
|
571
|
+
DescribeBackupVaultOutput.add_member(:max_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MaxRetentionDays"))
|
572
|
+
DescribeBackupVaultOutput.add_member(:lock_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "LockDate"))
|
559
573
|
DescribeBackupVaultOutput.struct_class = Types::DescribeBackupVaultOutput
|
560
574
|
|
561
575
|
DescribeCopyJobInput.add_member(:copy_job_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "copyJobId"))
|
@@ -953,6 +967,12 @@ module Aws::Backup
|
|
953
967
|
PutBackupVaultAccessPolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: IAMPolicy, location_name: "Policy"))
|
954
968
|
PutBackupVaultAccessPolicyInput.struct_class = Types::PutBackupVaultAccessPolicyInput
|
955
969
|
|
970
|
+
PutBackupVaultLockConfigurationInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
971
|
+
PutBackupVaultLockConfigurationInput.add_member(:min_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MinRetentionDays"))
|
972
|
+
PutBackupVaultLockConfigurationInput.add_member(:max_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MaxRetentionDays"))
|
973
|
+
PutBackupVaultLockConfigurationInput.add_member(:changeable_for_days, Shapes::ShapeRef.new(shape: Long, location_name: "ChangeableForDays"))
|
974
|
+
PutBackupVaultLockConfigurationInput.struct_class = Types::PutBackupVaultLockConfigurationInput
|
975
|
+
|
956
976
|
PutBackupVaultNotificationsInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
957
977
|
PutBackupVaultNotificationsInput.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "SNSTopicArn"))
|
958
978
|
PutBackupVaultNotificationsInput.add_member(:backup_vault_events, Shapes::ShapeRef.new(shape: BackupVaultEvents, required: true, location_name: "BackupVaultEvents"))
|
@@ -1032,6 +1052,8 @@ module Aws::Backup
|
|
1032
1052
|
ReportPlanList.member = Shapes::ShapeRef.new(shape: ReportPlan)
|
1033
1053
|
|
1034
1054
|
ReportSetting.add_member(:report_template, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ReportTemplate"))
|
1055
|
+
ReportSetting.add_member(:framework_arns, Shapes::ShapeRef.new(shape: stringList, location_name: "FrameworkArns"))
|
1056
|
+
ReportSetting.add_member(:number_of_frameworks, Shapes::ShapeRef.new(shape: integer, location_name: "NumberOfFrameworks"))
|
1035
1057
|
ReportSetting.struct_class = Types::ReportSetting
|
1036
1058
|
|
1037
1059
|
ResourceArns.member = Shapes::ShapeRef.new(shape: ARN)
|
@@ -1321,6 +1343,19 @@ module Aws::Backup
|
|
1321
1343
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1322
1344
|
end)
|
1323
1345
|
|
1346
|
+
api.add_operation(:delete_backup_vault_lock_configuration, Seahorse::Model::Operation.new.tap do |o|
|
1347
|
+
o.name = "DeleteBackupVaultLockConfiguration"
|
1348
|
+
o.http_method = "DELETE"
|
1349
|
+
o.http_request_uri = "/backup-vaults/{backupVaultName}/vault-lock"
|
1350
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteBackupVaultLockConfigurationInput)
|
1351
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1352
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1353
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1354
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingParameterValueException)
|
1355
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1356
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1357
|
+
end)
|
1358
|
+
|
1324
1359
|
api.add_operation(:delete_backup_vault_notifications, Seahorse::Model::Operation.new.tap do |o|
|
1325
1360
|
o.name = "DeleteBackupVaultNotifications"
|
1326
1361
|
o.http_method = "DELETE"
|
@@ -1891,6 +1926,19 @@ module Aws::Backup
|
|
1891
1926
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1892
1927
|
end)
|
1893
1928
|
|
1929
|
+
api.add_operation(:put_backup_vault_lock_configuration, Seahorse::Model::Operation.new.tap do |o|
|
1930
|
+
o.name = "PutBackupVaultLockConfiguration"
|
1931
|
+
o.http_method = "PUT"
|
1932
|
+
o.http_request_uri = "/backup-vaults/{backupVaultName}/vault-lock"
|
1933
|
+
o.input = Shapes::ShapeRef.new(shape: PutBackupVaultLockConfigurationInput)
|
1934
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1935
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1936
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1937
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingParameterValueException)
|
1938
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1939
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1940
|
+
end)
|
1941
|
+
|
1894
1942
|
api.add_operation(:put_backup_vault_notifications, Seahorse::Model::Operation.new.tap do |o|
|
1895
1943
|
o.name = "PutBackupVaultNotifications"
|
1896
1944
|
o.http_method = "PUT"
|
@@ -2011,6 +2059,7 @@ module Aws::Backup
|
|
2011
2059
|
o.http_request_uri = "/audit/frameworks/{frameworkName}"
|
2012
2060
|
o.input = Shapes::ShapeRef.new(shape: UpdateFrameworkInput)
|
2013
2061
|
o.output = Shapes::ShapeRef.new(shape: UpdateFrameworkOutput)
|
2062
|
+
o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException)
|
2014
2063
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2015
2064
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
2016
2065
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
data/lib/aws-sdk-backup/types.rb
CHANGED
@@ -285,8 +285,7 @@ module Aws::Backup
|
|
285
285
|
|
286
286
|
# Contains an optional backup plan display name and an array of
|
287
287
|
# `BackupRule` objects, each of which specifies a backup rule. Each rule
|
288
|
-
# in a backup plan is a separate scheduled task
|
289
|
-
# different selection of Amazon Web Services resources.
|
288
|
+
# in a backup plan is a separate scheduled task.
|
290
289
|
#
|
291
290
|
# @note When making an API call, you may pass BackupPlanInput
|
292
291
|
# data as a hash:
|
@@ -774,6 +773,56 @@ module Aws::Backup
|
|
774
773
|
# The number of recovery points that are stored in a backup vault.
|
775
774
|
# @return [Integer]
|
776
775
|
#
|
776
|
+
# @!attribute [rw] locked
|
777
|
+
# A Boolean value that indicates whether Backup Vault Lock applies to
|
778
|
+
# the selected backup vault. If `true`, Vault Lock prevents delete and
|
779
|
+
# update operations on the recovery points in the selected vault.
|
780
|
+
# @return [Boolean]
|
781
|
+
#
|
782
|
+
# @!attribute [rw] min_retention_days
|
783
|
+
# The Backup Vault Lock setting that specifies the minimum retention
|
784
|
+
# period that the vault retains its recovery points. If this parameter
|
785
|
+
# is not specified, Vault Lock does not enforce a minimum retention
|
786
|
+
# period.
|
787
|
+
#
|
788
|
+
# If specified, any backup or copy job to the vault must have a
|
789
|
+
# lifecycle policy with a retention period equal to or longer than the
|
790
|
+
# minimum retention period. If the job's retention period is shorter
|
791
|
+
# than that minimum retention period, then the vault fails the backup
|
792
|
+
# or copy job, and you should either modify your lifecycle settings or
|
793
|
+
# use a different vault. Recovery points already stored in the vault
|
794
|
+
# prior to Vault Lock are not affected.
|
795
|
+
# @return [Integer]
|
796
|
+
#
|
797
|
+
# @!attribute [rw] max_retention_days
|
798
|
+
# The Backup Vault Lock setting that specifies the maximum retention
|
799
|
+
# period that the vault retains its recovery points. If this parameter
|
800
|
+
# is not specified, Vault Lock does not enforce a maximum retention
|
801
|
+
# period on the recovery points in the vault (allowing indefinite
|
802
|
+
# storage).
|
803
|
+
#
|
804
|
+
# If specified, any backup or copy job to the vault must have a
|
805
|
+
# lifecycle policy with a retention period equal to or shorter than
|
806
|
+
# the maximum retention period. If the job's retention period is
|
807
|
+
# longer than that maximum retention period, then the vault fails the
|
808
|
+
# backup or copy job, and you should either modify your lifecycle
|
809
|
+
# settings or use a different vault. Recovery points already stored in
|
810
|
+
# the vault prior to Vault Lock are not affected.
|
811
|
+
# @return [Integer]
|
812
|
+
#
|
813
|
+
# @!attribute [rw] lock_date
|
814
|
+
# The date and time when Backup Vault Lock configuration becomes
|
815
|
+
# immutable, meaning it cannot be changed or deleted.
|
816
|
+
#
|
817
|
+
# If you applied Vault Lock to your vault without specifying a lock
|
818
|
+
# date, you can change your Vault Lock settings, or delete Vault Lock
|
819
|
+
# from the vault entirely, at any time.
|
820
|
+
#
|
821
|
+
# This value is in Unix format, Coordinated Universal Time (UTC), and
|
822
|
+
# accurate to milliseconds. For example, the value 1516925490.087
|
823
|
+
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
824
|
+
# @return [Time]
|
825
|
+
#
|
777
826
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/BackupVaultListMember AWS API Documentation
|
778
827
|
#
|
779
828
|
class BackupVaultListMember < Struct.new(
|
@@ -782,7 +831,11 @@ module Aws::Backup
|
|
782
831
|
:creation_date,
|
783
832
|
:encryption_key_arn,
|
784
833
|
:creator_request_id,
|
785
|
-
:number_of_recovery_points
|
834
|
+
:number_of_recovery_points,
|
835
|
+
:locked,
|
836
|
+
:min_retention_days,
|
837
|
+
:max_retention_days,
|
838
|
+
:lock_date)
|
786
839
|
SENSITIVE = []
|
787
840
|
include Aws::Structure
|
788
841
|
end
|
@@ -941,8 +994,8 @@ module Aws::Backup
|
|
941
994
|
# }
|
942
995
|
#
|
943
996
|
# @!attribute [rw] compliance_resource_ids
|
944
|
-
#
|
945
|
-
#
|
997
|
+
# The ID of the only Amazon Web Services resource that you want your
|
998
|
+
# control scope to contain.
|
946
999
|
# @return [Array<String>]
|
947
1000
|
#
|
948
1001
|
# @!attribute [rw] compliance_resource_types
|
@@ -1484,6 +1537,8 @@ module Aws::Backup
|
|
1484
1537
|
# },
|
1485
1538
|
# report_setting: { # required
|
1486
1539
|
# report_template: "string", # required
|
1540
|
+
# framework_arns: ["string"],
|
1541
|
+
# number_of_frameworks: 1,
|
1487
1542
|
# },
|
1488
1543
|
# report_plan_tags: {
|
1489
1544
|
# "string" => "string",
|
@@ -1512,11 +1567,16 @@ module Aws::Backup
|
|
1512
1567
|
# Identifies the report template for the report. Reports are built
|
1513
1568
|
# using a report template. The report templates are:
|
1514
1569
|
#
|
1515
|
-
# `
|
1570
|
+
# `RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT |
|
1571
|
+
# BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`
|
1572
|
+
#
|
1573
|
+
# If the report template is `RESOURCE_COMPLIANCE_REPORT` or
|
1574
|
+
# `CONTROL_COMPLIANCE_REPORT`, this API resource also describes the
|
1575
|
+
# report coverage by Amazon Web Services Regions and frameworks.
|
1516
1576
|
# @return [Types::ReportSetting]
|
1517
1577
|
#
|
1518
1578
|
# @!attribute [rw] report_plan_tags
|
1519
|
-
# Metadata that you can assign to help organize the
|
1579
|
+
# Metadata that you can assign to help organize the report plans that
|
1520
1580
|
# you create. Each tag is a key-value pair.
|
1521
1581
|
# @return [Hash<String,String>]
|
1522
1582
|
#
|
@@ -1552,11 +1612,19 @@ module Aws::Backup
|
|
1552
1612
|
# The format of the ARN depends on the resource type.
|
1553
1613
|
# @return [String]
|
1554
1614
|
#
|
1615
|
+
# @!attribute [rw] creation_time
|
1616
|
+
# The date and time a backup vault is created, in Unix format and
|
1617
|
+
# Coordinated Universal Time (UTC). The value of `CreationTime` is
|
1618
|
+
# accurate to milliseconds. For example, the value 1516925490.087
|
1619
|
+
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
1620
|
+
# @return [Time]
|
1621
|
+
#
|
1555
1622
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateReportPlanOutput AWS API Documentation
|
1556
1623
|
#
|
1557
1624
|
class CreateReportPlanOutput < Struct.new(
|
1558
1625
|
:report_plan_name,
|
1559
|
-
:report_plan_arn
|
1626
|
+
:report_plan_arn,
|
1627
|
+
:creation_time)
|
1560
1628
|
SENSITIVE = []
|
1561
1629
|
include Aws::Structure
|
1562
1630
|
end
|
@@ -1683,6 +1751,25 @@ module Aws::Backup
|
|
1683
1751
|
include Aws::Structure
|
1684
1752
|
end
|
1685
1753
|
|
1754
|
+
# @note When making an API call, you may pass DeleteBackupVaultLockConfigurationInput
|
1755
|
+
# data as a hash:
|
1756
|
+
#
|
1757
|
+
# {
|
1758
|
+
# backup_vault_name: "BackupVaultName", # required
|
1759
|
+
# }
|
1760
|
+
#
|
1761
|
+
# @!attribute [rw] backup_vault_name
|
1762
|
+
# The name of the backup vault from which to delete Backup Vault Lock.
|
1763
|
+
# @return [String]
|
1764
|
+
#
|
1765
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultLockConfigurationInput AWS API Documentation
|
1766
|
+
#
|
1767
|
+
class DeleteBackupVaultLockConfigurationInput < Struct.new(
|
1768
|
+
:backup_vault_name)
|
1769
|
+
SENSITIVE = []
|
1770
|
+
include Aws::Structure
|
1771
|
+
end
|
1772
|
+
|
1686
1773
|
# @note When making an API call, you may pass DeleteBackupVaultNotificationsInput
|
1687
1774
|
# data as a hash:
|
1688
1775
|
#
|
@@ -2019,6 +2106,57 @@ module Aws::Backup
|
|
2019
2106
|
# The number of recovery points that are stored in a backup vault.
|
2020
2107
|
# @return [Integer]
|
2021
2108
|
#
|
2109
|
+
# @!attribute [rw] locked
|
2110
|
+
# A Boolean that indicates whether Backup Vault Lock is currently
|
2111
|
+
# protecting the backup vault. `True` means that Vault Lock causes
|
2112
|
+
# delete or update operations on the recovery points stored in the
|
2113
|
+
# vault to fail.
|
2114
|
+
# @return [Boolean]
|
2115
|
+
#
|
2116
|
+
# @!attribute [rw] min_retention_days
|
2117
|
+
# The Backup Vault Lock setting that specifies the minimum retention
|
2118
|
+
# period that the vault retains its recovery points. If this parameter
|
2119
|
+
# is not specified, Vault Lock does not enforce a minimum retention
|
2120
|
+
# period.
|
2121
|
+
#
|
2122
|
+
# If specified, any backup or copy job to the vault must have a
|
2123
|
+
# lifecycle policy with a retention period equal to or longer than the
|
2124
|
+
# minimum retention period. If the job's retention period is shorter
|
2125
|
+
# than that minimum retention period, then the vault fails the backup
|
2126
|
+
# or copy job, and you should either modify your lifecycle settings or
|
2127
|
+
# use a different vault. Recovery points already stored in the vault
|
2128
|
+
# prior to Vault Lock are not affected.
|
2129
|
+
# @return [Integer]
|
2130
|
+
#
|
2131
|
+
# @!attribute [rw] max_retention_days
|
2132
|
+
# The Backup Vault Lock setting that specifies the maximum retention
|
2133
|
+
# period that the vault retains its recovery points. If this parameter
|
2134
|
+
# is not specified, Vault Lock does not enforce a maximum retention
|
2135
|
+
# period on the recovery points in the vault (allowing indefinite
|
2136
|
+
# storage).
|
2137
|
+
#
|
2138
|
+
# If specified, any backup or copy job to the vault must have a
|
2139
|
+
# lifecycle policy with a retention period equal to or shorter than
|
2140
|
+
# the maximum retention period. If the job's retention period is
|
2141
|
+
# longer than that maximum retention period, then the vault fails the
|
2142
|
+
# backup or copy job, and you should either modify your lifecycle
|
2143
|
+
# settings or use a different vault. Recovery points already stored in
|
2144
|
+
# the vault prior to Vault Lock are not affected.
|
2145
|
+
# @return [Integer]
|
2146
|
+
#
|
2147
|
+
# @!attribute [rw] lock_date
|
2148
|
+
# The date and time when Backup Vault Lock configuration cannot be
|
2149
|
+
# changed or deleted.
|
2150
|
+
#
|
2151
|
+
# If you applied Vault Lock to your vault without specifying a lock
|
2152
|
+
# date, you can change any of your Vault Lock settings, or delete
|
2153
|
+
# Vault Lock from the vault entirely, at any time.
|
2154
|
+
#
|
2155
|
+
# This value is in Unix format, Coordinated Universal Time (UTC), and
|
2156
|
+
# accurate to milliseconds. For example, the value 1516925490.087
|
2157
|
+
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
2158
|
+
# @return [Time]
|
2159
|
+
#
|
2022
2160
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupVaultOutput AWS API Documentation
|
2023
2161
|
#
|
2024
2162
|
class DescribeBackupVaultOutput < Struct.new(
|
@@ -2027,7 +2165,11 @@ module Aws::Backup
|
|
2027
2165
|
:encryption_key_arn,
|
2028
2166
|
:creation_date,
|
2029
2167
|
:creator_request_id,
|
2030
|
-
:number_of_recovery_points
|
2168
|
+
:number_of_recovery_points,
|
2169
|
+
:locked,
|
2170
|
+
:min_retention_days,
|
2171
|
+
:max_retention_days,
|
2172
|
+
:lock_date)
|
2031
2173
|
SENSITIVE = []
|
2032
2174
|
include Aws::Structure
|
2033
2175
|
end
|
@@ -3169,6 +3311,8 @@ module Aws::Backup
|
|
3169
3311
|
# Contains a string with the supported Amazon Web Services resource
|
3170
3312
|
# types:
|
3171
3313
|
#
|
3314
|
+
# * `Aurora` for Amazon Aurora
|
3315
|
+
#
|
3172
3316
|
# * `DynamoDB` for Amazon DynamoDB
|
3173
3317
|
#
|
3174
3318
|
# * `EBS` for Amazon Elastic Block Store
|
@@ -3177,9 +3321,9 @@ module Aws::Backup
|
|
3177
3321
|
#
|
3178
3322
|
# * `EFS` for Amazon Elastic File System
|
3179
3323
|
#
|
3180
|
-
# * `
|
3324
|
+
# * `FSX` for Amazon FSx
|
3181
3325
|
#
|
3182
|
-
# * `
|
3326
|
+
# * `RDS` for Amazon Relational Database Service
|
3183
3327
|
#
|
3184
3328
|
# * `Storage Gateway` for Storage Gateway
|
3185
3329
|
# @return [Array<String>]
|
@@ -4437,6 +4581,94 @@ module Aws::Backup
|
|
4437
4581
|
include Aws::Structure
|
4438
4582
|
end
|
4439
4583
|
|
4584
|
+
# @note When making an API call, you may pass PutBackupVaultLockConfigurationInput
|
4585
|
+
# data as a hash:
|
4586
|
+
#
|
4587
|
+
# {
|
4588
|
+
# backup_vault_name: "BackupVaultName", # required
|
4589
|
+
# min_retention_days: 1,
|
4590
|
+
# max_retention_days: 1,
|
4591
|
+
# changeable_for_days: 1,
|
4592
|
+
# }
|
4593
|
+
#
|
4594
|
+
# @!attribute [rw] backup_vault_name
|
4595
|
+
# The Backup Vault Lock configuration that specifies the name of the
|
4596
|
+
# backup vault it protects.
|
4597
|
+
# @return [String]
|
4598
|
+
#
|
4599
|
+
# @!attribute [rw] min_retention_days
|
4600
|
+
# The Backup Vault Lock configuration that specifies the minimum
|
4601
|
+
# retention period that the vault retains its recovery points. This
|
4602
|
+
# setting can be useful if, for example, your organization's policies
|
4603
|
+
# require you to retain certain data for at least seven years (2555
|
4604
|
+
# days).
|
4605
|
+
#
|
4606
|
+
# If this parameter is not specified, Vault Lock will not enforce a
|
4607
|
+
# minimum retention period.
|
4608
|
+
#
|
4609
|
+
# If this parameter is specified, any backup or copy job to the vault
|
4610
|
+
# must have a lifecycle policy with a retention period equal to or
|
4611
|
+
# longer than the minimum retention period. If the job's retention
|
4612
|
+
# period is shorter than that minimum retention period, then the vault
|
4613
|
+
# fails that backup or copy job, and you should either modify your
|
4614
|
+
# lifecycle settings or use a different vault. Recovery points already
|
4615
|
+
# saved in the vault prior to Vault Lock are not affected.
|
4616
|
+
# @return [Integer]
|
4617
|
+
#
|
4618
|
+
# @!attribute [rw] max_retention_days
|
4619
|
+
# The Backup Vault Lock configuration that specifies the maximum
|
4620
|
+
# retention period that the vault retains its recovery points. This
|
4621
|
+
# setting can be useful if, for example, your organization's policies
|
4622
|
+
# require you to destroy certain data after retaining it for four
|
4623
|
+
# years (1460 days).
|
4624
|
+
#
|
4625
|
+
# If this parameter is not included, Vault Lock does not enforce a
|
4626
|
+
# maximum retention period on the recovery points in the vault. If
|
4627
|
+
# this parameter is included without a value, Vault Lock will not
|
4628
|
+
# enforce a maximum retention period.
|
4629
|
+
#
|
4630
|
+
# If this parameter is specified, any backup or copy job to the vault
|
4631
|
+
# must have a lifecycle policy with a retention period equal to or
|
4632
|
+
# shorter than the maximum retention period. If the job's retention
|
4633
|
+
# period is longer than that maximum retention period, then the vault
|
4634
|
+
# fails the backup or copy job, and you should either modify your
|
4635
|
+
# lifecycle settings or use a different vault. Recovery points already
|
4636
|
+
# saved in the vault prior to Vault Lock are not affected.
|
4637
|
+
# @return [Integer]
|
4638
|
+
#
|
4639
|
+
# @!attribute [rw] changeable_for_days
|
4640
|
+
# The Backup Vault Lock configuration that specifies the number of
|
4641
|
+
# days before the lock date. For example, setting `ChangeableForDays`
|
4642
|
+
# to 30 on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31,
|
4643
|
+
# 2022 at 8pm UTC.
|
4644
|
+
#
|
4645
|
+
# Backup enforces a 72-hour cooling-off period before Vault Lock takes
|
4646
|
+
# effect and becomes immutable. Therefore, you must set
|
4647
|
+
# `ChangeableForDays` to 3 or greater.
|
4648
|
+
#
|
4649
|
+
# Before the lock date, you can delete Vault Lock from the vault using
|
4650
|
+
# `DeleteBackupVaultLockConfiguration` or change the Vault Lock
|
4651
|
+
# configuration using `PutBackupVaultLockConfiguration`. On and after
|
4652
|
+
# the lock date, the Vault Lock becomes immutable and cannot be
|
4653
|
+
# changed or deleted.
|
4654
|
+
#
|
4655
|
+
# If this parameter is not specified, you can delete Vault Lock from
|
4656
|
+
# the vault using `DeleteBackupVaultLockConfiguration` or change the
|
4657
|
+
# Vault Lock configuration using `PutBackupVaultLockConfiguration` at
|
4658
|
+
# any time.
|
4659
|
+
# @return [Integer]
|
4660
|
+
#
|
4661
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultLockConfigurationInput AWS API Documentation
|
4662
|
+
#
|
4663
|
+
class PutBackupVaultLockConfigurationInput < Struct.new(
|
4664
|
+
:backup_vault_name,
|
4665
|
+
:min_retention_days,
|
4666
|
+
:max_retention_days,
|
4667
|
+
:changeable_for_days)
|
4668
|
+
SENSITIVE = []
|
4669
|
+
include Aws::Structure
|
4670
|
+
end
|
4671
|
+
|
4440
4672
|
# @note When making an API call, you may pass PutBackupVaultNotificationsInput
|
4441
4673
|
# data as a hash:
|
4442
4674
|
#
|
@@ -4801,7 +5033,8 @@ module Aws::Backup
|
|
4801
5033
|
# Identifies the report template for the report. Reports are built
|
4802
5034
|
# using a report template. The report templates are:
|
4803
5035
|
#
|
4804
|
-
# `
|
5036
|
+
# `RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT |
|
5037
|
+
# BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`
|
4805
5038
|
# @return [String]
|
4806
5039
|
#
|
4807
5040
|
# @!attribute [rw] creation_time
|
@@ -4874,7 +5107,12 @@ module Aws::Backup
|
|
4874
5107
|
# Identifies the report template for the report. Reports are built
|
4875
5108
|
# using a report template. The report templates are:
|
4876
5109
|
#
|
4877
|
-
# `
|
5110
|
+
# `RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT |
|
5111
|
+
# BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`
|
5112
|
+
#
|
5113
|
+
# If the report template is `RESOURCE_COMPLIANCE_REPORT` or
|
5114
|
+
# `CONTROL_COMPLIANCE_REPORT`, this API resource also describes the
|
5115
|
+
# report coverage by Amazon Web Services Regions and frameworks.
|
4878
5116
|
# @return [Types::ReportSetting]
|
4879
5117
|
#
|
4880
5118
|
# @!attribute [rw] report_delivery_channel
|
@@ -4936,19 +5174,32 @@ module Aws::Backup
|
|
4936
5174
|
#
|
4937
5175
|
# {
|
4938
5176
|
# report_template: "string", # required
|
5177
|
+
# framework_arns: ["string"],
|
5178
|
+
# number_of_frameworks: 1,
|
4939
5179
|
# }
|
4940
5180
|
#
|
4941
5181
|
# @!attribute [rw] report_template
|
4942
5182
|
# Identifies the report template for the report. Reports are built
|
4943
5183
|
# using a report template. The report templates are:
|
4944
5184
|
#
|
4945
|
-
# `
|
5185
|
+
# `RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT |
|
5186
|
+
# BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`
|
4946
5187
|
# @return [String]
|
4947
5188
|
#
|
5189
|
+
# @!attribute [rw] framework_arns
|
5190
|
+
# The Amazon Resource Names (ARNs) of the frameworks a report covers.
|
5191
|
+
# @return [Array<String>]
|
5192
|
+
#
|
5193
|
+
# @!attribute [rw] number_of_frameworks
|
5194
|
+
# The number of frameworks a report covers.
|
5195
|
+
# @return [Integer]
|
5196
|
+
#
|
4948
5197
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ReportSetting AWS API Documentation
|
4949
5198
|
#
|
4950
5199
|
class ReportSetting < Struct.new(
|
4951
|
-
:report_template
|
5200
|
+
:report_template,
|
5201
|
+
:framework_arns,
|
5202
|
+
:number_of_frameworks)
|
4952
5203
|
SENSITIVE = []
|
4953
5204
|
include Aws::Structure
|
4954
5205
|
end
|
@@ -5899,6 +6150,8 @@ module Aws::Backup
|
|
5899
6150
|
# },
|
5900
6151
|
# report_setting: {
|
5901
6152
|
# report_template: "string", # required
|
6153
|
+
# framework_arns: ["string"],
|
6154
|
+
# number_of_frameworks: 1,
|
5902
6155
|
# },
|
5903
6156
|
# idempotency_token: "string",
|
5904
6157
|
# }
|
@@ -5924,7 +6177,12 @@ module Aws::Backup
|
|
5924
6177
|
# Identifies the report template for the report. Reports are built
|
5925
6178
|
# using a report template. The report templates are:
|
5926
6179
|
#
|
5927
|
-
# `
|
6180
|
+
# `RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT |
|
6181
|
+
# BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT`
|
6182
|
+
#
|
6183
|
+
# If the report template is `RESOURCE_COMPLIANCE_REPORT` or
|
6184
|
+
# `CONTROL_COMPLIANCE_REPORT`, this API resource also describes the
|
6185
|
+
# report coverage by Amazon Web Services Regions and frameworks.
|
5928
6186
|
# @return [Types::ReportSetting]
|
5929
6187
|
#
|
5930
6188
|
# @!attribute [rw] idempotency_token
|
data/lib/aws-sdk-backup.rb
CHANGED
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.35.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: 2021-
|
11
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.121.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.121.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
requirements:
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
79
|
+
version: '2.3'
|
80
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - ">="
|