aws-sdk-backup 1.33.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-backup/client.rb +186 -1
- data/lib/aws-sdk-backup/client_api.rb +62 -0
- data/lib/aws-sdk-backup/types.rb +357 -3
- data/lib/aws-sdk-backup.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a3555bf0c96c1e14ed15095b6f3a6c21c94cc660d1401bd4d40e869afda89ce
|
|
4
|
+
data.tar.gz: 5a144051881626bc0981d647c92b2420e6082d5076c7181712b54610f5c58455
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b607b1aaaeba6562d5b5d06f12098267c8e4651438ad9f5860b2746fb99e7a09516150ddcbcb347014560de41c0217f7f002cc67b98a5ebb07aa134c75c74e95
|
|
7
|
+
data.tar.gz: 335020bc32527cab5d6d1d3ead57d2c7a60272476f2c269220e525cf5e2dbcbd5b0c7fe3816387f039ccb4aa2319855ac464e944114cc37a42bb46dc2edeae4e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.37.0 (2021-11-10)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - AWS Backup SDK provides new options when scheduling backups: select supported services and resources that are assigned to a particular tag, linked to a combination of tags, or can be identified by a partial tag value, and exclude resources from their assignments.
|
|
8
|
+
|
|
9
|
+
1.36.0 (2021-11-04)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
14
|
+
1.35.0 (2021-10-18)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
18
|
+
|
|
19
|
+
1.34.0 (2021-10-07)
|
|
20
|
+
------------------
|
|
21
|
+
|
|
22
|
+
* 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.
|
|
23
|
+
|
|
4
24
|
1.33.0 (2021-10-05)
|
|
5
25
|
------------------
|
|
6
26
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.37.0
|
|
@@ -275,6 +275,15 @@ module Aws::Backup
|
|
|
275
275
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
|
276
276
|
# requests are made, and retries are disabled.
|
|
277
277
|
#
|
|
278
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
|
279
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
|
280
|
+
# will be used if available.
|
|
281
|
+
#
|
|
282
|
+
# @option options [Boolean] :use_fips_endpoint
|
|
283
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
|
284
|
+
# When a `fips` region is used, the region is normalized and this config
|
|
285
|
+
# is set to `true`.
|
|
286
|
+
#
|
|
278
287
|
# @option options [Boolean] :validate_params (true)
|
|
279
288
|
# When `true`, request parameters are validated before
|
|
280
289
|
# sending the request.
|
|
@@ -487,6 +496,33 @@ module Aws::Backup
|
|
|
487
496
|
# condition_value: "ConditionValue", # required
|
|
488
497
|
# },
|
|
489
498
|
# ],
|
|
499
|
+
# not_resources: ["ARN"],
|
|
500
|
+
# conditions: {
|
|
501
|
+
# string_equals: [
|
|
502
|
+
# {
|
|
503
|
+
# condition_key: "ConditionKey",
|
|
504
|
+
# condition_value: "ConditionValue",
|
|
505
|
+
# },
|
|
506
|
+
# ],
|
|
507
|
+
# string_not_equals: [
|
|
508
|
+
# {
|
|
509
|
+
# condition_key: "ConditionKey",
|
|
510
|
+
# condition_value: "ConditionValue",
|
|
511
|
+
# },
|
|
512
|
+
# ],
|
|
513
|
+
# string_like: [
|
|
514
|
+
# {
|
|
515
|
+
# condition_key: "ConditionKey",
|
|
516
|
+
# condition_value: "ConditionValue",
|
|
517
|
+
# },
|
|
518
|
+
# ],
|
|
519
|
+
# string_not_like: [
|
|
520
|
+
# {
|
|
521
|
+
# condition_key: "ConditionKey",
|
|
522
|
+
# condition_value: "ConditionValue",
|
|
523
|
+
# },
|
|
524
|
+
# ],
|
|
525
|
+
# },
|
|
490
526
|
# },
|
|
491
527
|
# creator_request_id: "string",
|
|
492
528
|
# })
|
|
@@ -850,6 +886,38 @@ module Aws::Backup
|
|
|
850
886
|
req.send_request(options)
|
|
851
887
|
end
|
|
852
888
|
|
|
889
|
+
# Deletes Backup Vault Lock from a backup vault specified by a backup
|
|
890
|
+
# vault name.
|
|
891
|
+
#
|
|
892
|
+
# If the Vault Lock configuration is immutable, then you cannot delete
|
|
893
|
+
# Vault Lock using API operations, and you will receive an
|
|
894
|
+
# `InvalidRequestException` if you attempt to do so. For more
|
|
895
|
+
# information, see [Vault Lock][1] in the *Backup Developer Guide*.
|
|
896
|
+
#
|
|
897
|
+
#
|
|
898
|
+
#
|
|
899
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html
|
|
900
|
+
#
|
|
901
|
+
# @option params [required, String] :backup_vault_name
|
|
902
|
+
# The name of the backup vault from which to delete Backup Vault Lock.
|
|
903
|
+
#
|
|
904
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
905
|
+
#
|
|
906
|
+
# @example Request syntax with placeholder values
|
|
907
|
+
#
|
|
908
|
+
# resp = client.delete_backup_vault_lock_configuration({
|
|
909
|
+
# backup_vault_name: "BackupVaultName", # required
|
|
910
|
+
# })
|
|
911
|
+
#
|
|
912
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultLockConfiguration AWS API Documentation
|
|
913
|
+
#
|
|
914
|
+
# @overload delete_backup_vault_lock_configuration(params = {})
|
|
915
|
+
# @param [Hash] params ({})
|
|
916
|
+
def delete_backup_vault_lock_configuration(params = {}, options = {})
|
|
917
|
+
req = build_request(:delete_backup_vault_lock_configuration, params)
|
|
918
|
+
req.send_request(options)
|
|
919
|
+
end
|
|
920
|
+
|
|
853
921
|
# Deletes event notifications for the specified backup vault.
|
|
854
922
|
#
|
|
855
923
|
# @option params [required, String] :backup_vault_name
|
|
@@ -1040,6 +1108,10 @@ module Aws::Backup
|
|
|
1040
1108
|
# * {Types::DescribeBackupVaultOutput#creation_date #creation_date} => Time
|
|
1041
1109
|
# * {Types::DescribeBackupVaultOutput#creator_request_id #creator_request_id} => String
|
|
1042
1110
|
# * {Types::DescribeBackupVaultOutput#number_of_recovery_points #number_of_recovery_points} => Integer
|
|
1111
|
+
# * {Types::DescribeBackupVaultOutput#locked #locked} => Boolean
|
|
1112
|
+
# * {Types::DescribeBackupVaultOutput#min_retention_days #min_retention_days} => Integer
|
|
1113
|
+
# * {Types::DescribeBackupVaultOutput#max_retention_days #max_retention_days} => Integer
|
|
1114
|
+
# * {Types::DescribeBackupVaultOutput#lock_date #lock_date} => Time
|
|
1043
1115
|
#
|
|
1044
1116
|
# @example Request syntax with placeholder values
|
|
1045
1117
|
#
|
|
@@ -1055,6 +1127,10 @@ module Aws::Backup
|
|
|
1055
1127
|
# resp.creation_date #=> Time
|
|
1056
1128
|
# resp.creator_request_id #=> String
|
|
1057
1129
|
# resp.number_of_recovery_points #=> Integer
|
|
1130
|
+
# resp.locked #=> Boolean
|
|
1131
|
+
# resp.min_retention_days #=> Integer
|
|
1132
|
+
# resp.max_retention_days #=> Integer
|
|
1133
|
+
# resp.lock_date #=> Time
|
|
1058
1134
|
#
|
|
1059
1135
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupVault AWS API Documentation
|
|
1060
1136
|
#
|
|
@@ -1728,6 +1804,20 @@ module Aws::Backup
|
|
|
1728
1804
|
# resp.backup_selection.list_of_tags[0].condition_type #=> String, one of "STRINGEQUALS"
|
|
1729
1805
|
# resp.backup_selection.list_of_tags[0].condition_key #=> String
|
|
1730
1806
|
# resp.backup_selection.list_of_tags[0].condition_value #=> String
|
|
1807
|
+
# resp.backup_selection.not_resources #=> Array
|
|
1808
|
+
# resp.backup_selection.not_resources[0] #=> String
|
|
1809
|
+
# resp.backup_selection.conditions.string_equals #=> Array
|
|
1810
|
+
# resp.backup_selection.conditions.string_equals[0].condition_key #=> String
|
|
1811
|
+
# resp.backup_selection.conditions.string_equals[0].condition_value #=> String
|
|
1812
|
+
# resp.backup_selection.conditions.string_not_equals #=> Array
|
|
1813
|
+
# resp.backup_selection.conditions.string_not_equals[0].condition_key #=> String
|
|
1814
|
+
# resp.backup_selection.conditions.string_not_equals[0].condition_value #=> String
|
|
1815
|
+
# resp.backup_selection.conditions.string_like #=> Array
|
|
1816
|
+
# resp.backup_selection.conditions.string_like[0].condition_key #=> String
|
|
1817
|
+
# resp.backup_selection.conditions.string_like[0].condition_value #=> String
|
|
1818
|
+
# resp.backup_selection.conditions.string_not_like #=> Array
|
|
1819
|
+
# resp.backup_selection.conditions.string_not_like[0].condition_key #=> String
|
|
1820
|
+
# resp.backup_selection.conditions.string_not_like[0].condition_value #=> String
|
|
1731
1821
|
# resp.selection_id #=> String
|
|
1732
1822
|
# resp.backup_plan_id #=> String
|
|
1733
1823
|
# resp.creation_date #=> Time
|
|
@@ -2242,6 +2332,10 @@ module Aws::Backup
|
|
|
2242
2332
|
# resp.backup_vault_list[0].encryption_key_arn #=> String
|
|
2243
2333
|
# resp.backup_vault_list[0].creator_request_id #=> String
|
|
2244
2334
|
# resp.backup_vault_list[0].number_of_recovery_points #=> Integer
|
|
2335
|
+
# resp.backup_vault_list[0].locked #=> Boolean
|
|
2336
|
+
# resp.backup_vault_list[0].min_retention_days #=> Integer
|
|
2337
|
+
# resp.backup_vault_list[0].max_retention_days #=> Integer
|
|
2338
|
+
# resp.backup_vault_list[0].lock_date #=> Time
|
|
2245
2339
|
# resp.next_token #=> String
|
|
2246
2340
|
#
|
|
2247
2341
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupVaults AWS API Documentation
|
|
@@ -2886,6 +2980,97 @@ module Aws::Backup
|
|
|
2886
2980
|
req.send_request(options)
|
|
2887
2981
|
end
|
|
2888
2982
|
|
|
2983
|
+
# Applies Backup Vault Lock to a backup vault, preventing attempts to
|
|
2984
|
+
# delete any recovery point stored in or created in a backup vault.
|
|
2985
|
+
# Vault Lock also prevents attempts to update the lifecycle policy that
|
|
2986
|
+
# controls the retention period of any recovery point currently stored
|
|
2987
|
+
# in a backup vault. If specified, Vault Lock enforces a minimum and
|
|
2988
|
+
# maximum retention period for future backup and copy jobs that target a
|
|
2989
|
+
# backup vault.
|
|
2990
|
+
#
|
|
2991
|
+
# @option params [required, String] :backup_vault_name
|
|
2992
|
+
# The Backup Vault Lock configuration that specifies the name of the
|
|
2993
|
+
# backup vault it protects.
|
|
2994
|
+
#
|
|
2995
|
+
# @option params [Integer] :min_retention_days
|
|
2996
|
+
# The Backup Vault Lock configuration that specifies the minimum
|
|
2997
|
+
# retention period that the vault retains its recovery points. This
|
|
2998
|
+
# setting can be useful if, for example, your organization's policies
|
|
2999
|
+
# require you to retain certain data for at least seven years (2555
|
|
3000
|
+
# days).
|
|
3001
|
+
#
|
|
3002
|
+
# If this parameter is not specified, Vault Lock will not enforce a
|
|
3003
|
+
# minimum retention period.
|
|
3004
|
+
#
|
|
3005
|
+
# If this parameter is specified, any backup or copy job to the vault
|
|
3006
|
+
# must have a lifecycle policy with a retention period equal to or
|
|
3007
|
+
# longer than the minimum retention period. If the job's retention
|
|
3008
|
+
# period is shorter than that minimum retention period, then the vault
|
|
3009
|
+
# fails that backup or copy job, and you should either modify your
|
|
3010
|
+
# lifecycle settings or use a different vault. Recovery points already
|
|
3011
|
+
# saved in the vault prior to Vault Lock are not affected.
|
|
3012
|
+
#
|
|
3013
|
+
# @option params [Integer] :max_retention_days
|
|
3014
|
+
# The Backup Vault Lock configuration that specifies the maximum
|
|
3015
|
+
# retention period that the vault retains its recovery points. This
|
|
3016
|
+
# setting can be useful if, for example, your organization's policies
|
|
3017
|
+
# require you to destroy certain data after retaining it for four years
|
|
3018
|
+
# (1460 days).
|
|
3019
|
+
#
|
|
3020
|
+
# If this parameter is not included, Vault Lock does not enforce a
|
|
3021
|
+
# maximum retention period on the recovery points in the vault. If this
|
|
3022
|
+
# parameter is included without a value, Vault Lock will not enforce a
|
|
3023
|
+
# maximum retention period.
|
|
3024
|
+
#
|
|
3025
|
+
# If this parameter is specified, any backup or copy job to the vault
|
|
3026
|
+
# must have a lifecycle policy with a retention period equal to or
|
|
3027
|
+
# shorter than the maximum retention period. If the job's retention
|
|
3028
|
+
# period is longer than that maximum retention period, then the vault
|
|
3029
|
+
# fails the backup or copy job, and you should either modify your
|
|
3030
|
+
# lifecycle settings or use a different vault. Recovery points already
|
|
3031
|
+
# saved in the vault prior to Vault Lock are not affected.
|
|
3032
|
+
#
|
|
3033
|
+
# @option params [Integer] :changeable_for_days
|
|
3034
|
+
# The Backup Vault Lock configuration that specifies the number of days
|
|
3035
|
+
# before the lock date. For example, setting `ChangeableForDays` to 30
|
|
3036
|
+
# on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31, 2022 at
|
|
3037
|
+
# 8pm UTC.
|
|
3038
|
+
#
|
|
3039
|
+
# Backup enforces a 72-hour cooling-off period before Vault Lock takes
|
|
3040
|
+
# effect and becomes immutable. Therefore, you must set
|
|
3041
|
+
# `ChangeableForDays` to 3 or greater.
|
|
3042
|
+
#
|
|
3043
|
+
# Before the lock date, you can delete Vault Lock from the vault using
|
|
3044
|
+
# `DeleteBackupVaultLockConfiguration` or change the Vault Lock
|
|
3045
|
+
# configuration using `PutBackupVaultLockConfiguration`. On and after
|
|
3046
|
+
# the lock date, the Vault Lock becomes immutable and cannot be changed
|
|
3047
|
+
# or deleted.
|
|
3048
|
+
#
|
|
3049
|
+
# If this parameter is not specified, you can delete Vault Lock from the
|
|
3050
|
+
# vault using `DeleteBackupVaultLockConfiguration` or change the Vault
|
|
3051
|
+
# Lock configuration using `PutBackupVaultLockConfiguration` at any
|
|
3052
|
+
# time.
|
|
3053
|
+
#
|
|
3054
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
3055
|
+
#
|
|
3056
|
+
# @example Request syntax with placeholder values
|
|
3057
|
+
#
|
|
3058
|
+
# resp = client.put_backup_vault_lock_configuration({
|
|
3059
|
+
# backup_vault_name: "BackupVaultName", # required
|
|
3060
|
+
# min_retention_days: 1,
|
|
3061
|
+
# max_retention_days: 1,
|
|
3062
|
+
# changeable_for_days: 1,
|
|
3063
|
+
# })
|
|
3064
|
+
#
|
|
3065
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultLockConfiguration AWS API Documentation
|
|
3066
|
+
#
|
|
3067
|
+
# @overload put_backup_vault_lock_configuration(params = {})
|
|
3068
|
+
# @param [Hash] params ({})
|
|
3069
|
+
def put_backup_vault_lock_configuration(params = {}, options = {})
|
|
3070
|
+
req = build_request(:put_backup_vault_lock_configuration, params)
|
|
3071
|
+
req.send_request(options)
|
|
3072
|
+
end
|
|
3073
|
+
|
|
2889
3074
|
# Turns on notifications on a backup vault for the specified topic and
|
|
2890
3075
|
# events.
|
|
2891
3076
|
#
|
|
@@ -3722,7 +3907,7 @@ module Aws::Backup
|
|
|
3722
3907
|
params: params,
|
|
3723
3908
|
config: config)
|
|
3724
3909
|
context[:gem_name] = 'aws-sdk-backup'
|
|
3725
|
-
context[:gem_version] = '1.
|
|
3910
|
+
context[:gem_version] = '1.37.0'
|
|
3726
3911
|
Seahorse::Client::Request.new(handlers, context)
|
|
3727
3912
|
end
|
|
3728
3913
|
|
|
@@ -51,8 +51,11 @@ module Aws::Backup
|
|
|
51
51
|
ComplianceResourceIdList = Shapes::ListShape.new(name: 'ComplianceResourceIdList')
|
|
52
52
|
Condition = Shapes::StructureShape.new(name: 'Condition')
|
|
53
53
|
ConditionKey = Shapes::StringShape.new(name: 'ConditionKey')
|
|
54
|
+
ConditionParameter = Shapes::StructureShape.new(name: 'ConditionParameter')
|
|
55
|
+
ConditionParameters = Shapes::ListShape.new(name: 'ConditionParameters')
|
|
54
56
|
ConditionType = Shapes::StringShape.new(name: 'ConditionType')
|
|
55
57
|
ConditionValue = Shapes::StringShape.new(name: 'ConditionValue')
|
|
58
|
+
Conditions = Shapes::StructureShape.new(name: 'Conditions')
|
|
56
59
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
57
60
|
ControlInputParameter = Shapes::StructureShape.new(name: 'ControlInputParameter')
|
|
58
61
|
ControlInputParameters = Shapes::ListShape.new(name: 'ControlInputParameters')
|
|
@@ -79,6 +82,7 @@ module Aws::Backup
|
|
|
79
82
|
DeleteBackupSelectionInput = Shapes::StructureShape.new(name: 'DeleteBackupSelectionInput')
|
|
80
83
|
DeleteBackupVaultAccessPolicyInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultAccessPolicyInput')
|
|
81
84
|
DeleteBackupVaultInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultInput')
|
|
85
|
+
DeleteBackupVaultLockConfigurationInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultLockConfigurationInput')
|
|
82
86
|
DeleteBackupVaultNotificationsInput = Shapes::StructureShape.new(name: 'DeleteBackupVaultNotificationsInput')
|
|
83
87
|
DeleteFrameworkInput = Shapes::StructureShape.new(name: 'DeleteFrameworkInput')
|
|
84
88
|
DeleteRecoveryPointInput = Shapes::StructureShape.new(name: 'DeleteRecoveryPointInput')
|
|
@@ -185,6 +189,7 @@ module Aws::Backup
|
|
|
185
189
|
ProtectedResource = Shapes::StructureShape.new(name: 'ProtectedResource')
|
|
186
190
|
ProtectedResourcesList = Shapes::ListShape.new(name: 'ProtectedResourcesList')
|
|
187
191
|
PutBackupVaultAccessPolicyInput = Shapes::StructureShape.new(name: 'PutBackupVaultAccessPolicyInput')
|
|
192
|
+
PutBackupVaultLockConfigurationInput = Shapes::StructureShape.new(name: 'PutBackupVaultLockConfigurationInput')
|
|
188
193
|
PutBackupVaultNotificationsInput = Shapes::StructureShape.new(name: 'PutBackupVaultNotificationsInput')
|
|
189
194
|
RecoveryPointByBackupVault = Shapes::StructureShape.new(name: 'RecoveryPointByBackupVault')
|
|
190
195
|
RecoveryPointByBackupVaultList = Shapes::ListShape.new(name: 'RecoveryPointByBackupVaultList')
|
|
@@ -351,6 +356,8 @@ module Aws::Backup
|
|
|
351
356
|
BackupSelection.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "IamRoleArn"))
|
|
352
357
|
BackupSelection.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceArns, location_name: "Resources"))
|
|
353
358
|
BackupSelection.add_member(:list_of_tags, Shapes::ShapeRef.new(shape: ListOfTags, location_name: "ListOfTags"))
|
|
359
|
+
BackupSelection.add_member(:not_resources, Shapes::ShapeRef.new(shape: ResourceArns, location_name: "NotResources"))
|
|
360
|
+
BackupSelection.add_member(:conditions, Shapes::ShapeRef.new(shape: Conditions, location_name: "Conditions"))
|
|
354
361
|
BackupSelection.struct_class = Types::BackupSelection
|
|
355
362
|
|
|
356
363
|
BackupSelectionsList.member = Shapes::ShapeRef.new(shape: BackupSelectionsListMember)
|
|
@@ -373,6 +380,10 @@ module Aws::Backup
|
|
|
373
380
|
BackupVaultListMember.add_member(:encryption_key_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "EncryptionKeyArn"))
|
|
374
381
|
BackupVaultListMember.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: string, location_name: "CreatorRequestId"))
|
|
375
382
|
BackupVaultListMember.add_member(:number_of_recovery_points, Shapes::ShapeRef.new(shape: long, location_name: "NumberOfRecoveryPoints"))
|
|
383
|
+
BackupVaultListMember.add_member(:locked, Shapes::ShapeRef.new(shape: Boolean, location_name: "Locked"))
|
|
384
|
+
BackupVaultListMember.add_member(:min_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MinRetentionDays"))
|
|
385
|
+
BackupVaultListMember.add_member(:max_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MaxRetentionDays"))
|
|
386
|
+
BackupVaultListMember.add_member(:lock_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "LockDate"))
|
|
376
387
|
BackupVaultListMember.struct_class = Types::BackupVaultListMember
|
|
377
388
|
|
|
378
389
|
CalculatedLifecycle.add_member(:move_to_cold_storage_at, Shapes::ShapeRef.new(shape: timestamp, location_name: "MoveToColdStorageAt"))
|
|
@@ -386,6 +397,18 @@ module Aws::Backup
|
|
|
386
397
|
Condition.add_member(:condition_value, Shapes::ShapeRef.new(shape: ConditionValue, required: true, location_name: "ConditionValue"))
|
|
387
398
|
Condition.struct_class = Types::Condition
|
|
388
399
|
|
|
400
|
+
ConditionParameter.add_member(:condition_key, Shapes::ShapeRef.new(shape: ConditionKey, location_name: "ConditionKey"))
|
|
401
|
+
ConditionParameter.add_member(:condition_value, Shapes::ShapeRef.new(shape: ConditionValue, location_name: "ConditionValue"))
|
|
402
|
+
ConditionParameter.struct_class = Types::ConditionParameter
|
|
403
|
+
|
|
404
|
+
ConditionParameters.member = Shapes::ShapeRef.new(shape: ConditionParameter)
|
|
405
|
+
|
|
406
|
+
Conditions.add_member(:string_equals, Shapes::ShapeRef.new(shape: ConditionParameters, location_name: "StringEquals"))
|
|
407
|
+
Conditions.add_member(:string_not_equals, Shapes::ShapeRef.new(shape: ConditionParameters, location_name: "StringNotEquals"))
|
|
408
|
+
Conditions.add_member(:string_like, Shapes::ShapeRef.new(shape: ConditionParameters, location_name: "StringLike"))
|
|
409
|
+
Conditions.add_member(:string_not_like, Shapes::ShapeRef.new(shape: ConditionParameters, location_name: "StringNotLike"))
|
|
410
|
+
Conditions.struct_class = Types::Conditions
|
|
411
|
+
|
|
389
412
|
ConflictException.add_member(:code, Shapes::ShapeRef.new(shape: string, location_name: "Code"))
|
|
390
413
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
|
|
391
414
|
ConflictException.add_member(:type, Shapes::ShapeRef.new(shape: string, location_name: "Type"))
|
|
@@ -504,6 +527,9 @@ module Aws::Backup
|
|
|
504
527
|
DeleteBackupVaultInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "backupVaultName"))
|
|
505
528
|
DeleteBackupVaultInput.struct_class = Types::DeleteBackupVaultInput
|
|
506
529
|
|
|
530
|
+
DeleteBackupVaultLockConfigurationInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
|
531
|
+
DeleteBackupVaultLockConfigurationInput.struct_class = Types::DeleteBackupVaultLockConfigurationInput
|
|
532
|
+
|
|
507
533
|
DeleteBackupVaultNotificationsInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
|
508
534
|
DeleteBackupVaultNotificationsInput.struct_class = Types::DeleteBackupVaultNotificationsInput
|
|
509
535
|
|
|
@@ -557,6 +583,10 @@ module Aws::Backup
|
|
|
557
583
|
DescribeBackupVaultOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "CreationDate"))
|
|
558
584
|
DescribeBackupVaultOutput.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: string, location_name: "CreatorRequestId"))
|
|
559
585
|
DescribeBackupVaultOutput.add_member(:number_of_recovery_points, Shapes::ShapeRef.new(shape: long, location_name: "NumberOfRecoveryPoints"))
|
|
586
|
+
DescribeBackupVaultOutput.add_member(:locked, Shapes::ShapeRef.new(shape: Boolean, location_name: "Locked"))
|
|
587
|
+
DescribeBackupVaultOutput.add_member(:min_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MinRetentionDays"))
|
|
588
|
+
DescribeBackupVaultOutput.add_member(:max_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MaxRetentionDays"))
|
|
589
|
+
DescribeBackupVaultOutput.add_member(:lock_date, Shapes::ShapeRef.new(shape: timestamp, location_name: "LockDate"))
|
|
560
590
|
DescribeBackupVaultOutput.struct_class = Types::DescribeBackupVaultOutput
|
|
561
591
|
|
|
562
592
|
DescribeCopyJobInput.add_member(:copy_job_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "copyJobId"))
|
|
@@ -954,6 +984,12 @@ module Aws::Backup
|
|
|
954
984
|
PutBackupVaultAccessPolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: IAMPolicy, location_name: "Policy"))
|
|
955
985
|
PutBackupVaultAccessPolicyInput.struct_class = Types::PutBackupVaultAccessPolicyInput
|
|
956
986
|
|
|
987
|
+
PutBackupVaultLockConfigurationInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
|
988
|
+
PutBackupVaultLockConfigurationInput.add_member(:min_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MinRetentionDays"))
|
|
989
|
+
PutBackupVaultLockConfigurationInput.add_member(:max_retention_days, Shapes::ShapeRef.new(shape: Long, location_name: "MaxRetentionDays"))
|
|
990
|
+
PutBackupVaultLockConfigurationInput.add_member(:changeable_for_days, Shapes::ShapeRef.new(shape: Long, location_name: "ChangeableForDays"))
|
|
991
|
+
PutBackupVaultLockConfigurationInput.struct_class = Types::PutBackupVaultLockConfigurationInput
|
|
992
|
+
|
|
957
993
|
PutBackupVaultNotificationsInput.add_member(:backup_vault_name, Shapes::ShapeRef.new(shape: BackupVaultName, required: true, location: "uri", location_name: "backupVaultName"))
|
|
958
994
|
PutBackupVaultNotificationsInput.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "SNSTopicArn"))
|
|
959
995
|
PutBackupVaultNotificationsInput.add_member(:backup_vault_events, Shapes::ShapeRef.new(shape: BackupVaultEvents, required: true, location_name: "BackupVaultEvents"))
|
|
@@ -1324,6 +1360,19 @@ module Aws::Backup
|
|
|
1324
1360
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1325
1361
|
end)
|
|
1326
1362
|
|
|
1363
|
+
api.add_operation(:delete_backup_vault_lock_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
1364
|
+
o.name = "DeleteBackupVaultLockConfiguration"
|
|
1365
|
+
o.http_method = "DELETE"
|
|
1366
|
+
o.http_request_uri = "/backup-vaults/{backupVaultName}/vault-lock"
|
|
1367
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteBackupVaultLockConfigurationInput)
|
|
1368
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
|
1369
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
1370
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1371
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingParameterValueException)
|
|
1372
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
|
1373
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1374
|
+
end)
|
|
1375
|
+
|
|
1327
1376
|
api.add_operation(:delete_backup_vault_notifications, Seahorse::Model::Operation.new.tap do |o|
|
|
1328
1377
|
o.name = "DeleteBackupVaultNotifications"
|
|
1329
1378
|
o.http_method = "DELETE"
|
|
@@ -1894,6 +1943,19 @@ module Aws::Backup
|
|
|
1894
1943
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1895
1944
|
end)
|
|
1896
1945
|
|
|
1946
|
+
api.add_operation(:put_backup_vault_lock_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
1947
|
+
o.name = "PutBackupVaultLockConfiguration"
|
|
1948
|
+
o.http_method = "PUT"
|
|
1949
|
+
o.http_request_uri = "/backup-vaults/{backupVaultName}/vault-lock"
|
|
1950
|
+
o.input = Shapes::ShapeRef.new(shape: PutBackupVaultLockConfigurationInput)
|
|
1951
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
|
1952
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
1953
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
1954
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingParameterValueException)
|
|
1955
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
|
1956
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
1957
|
+
end)
|
|
1958
|
+
|
|
1897
1959
|
api.add_operation(:put_backup_vault_notifications, Seahorse::Model::Operation.new.tap do |o|
|
|
1898
1960
|
o.name = "PutBackupVaultNotifications"
|
|
1899
1961
|
o.http_method = "PUT"
|
data/lib/aws-sdk-backup/types.rb
CHANGED
|
@@ -653,6 +653,33 @@ module Aws::Backup
|
|
|
653
653
|
# condition_value: "ConditionValue", # required
|
|
654
654
|
# },
|
|
655
655
|
# ],
|
|
656
|
+
# not_resources: ["ARN"],
|
|
657
|
+
# conditions: {
|
|
658
|
+
# string_equals: [
|
|
659
|
+
# {
|
|
660
|
+
# condition_key: "ConditionKey",
|
|
661
|
+
# condition_value: "ConditionValue",
|
|
662
|
+
# },
|
|
663
|
+
# ],
|
|
664
|
+
# string_not_equals: [
|
|
665
|
+
# {
|
|
666
|
+
# condition_key: "ConditionKey",
|
|
667
|
+
# condition_value: "ConditionValue",
|
|
668
|
+
# },
|
|
669
|
+
# ],
|
|
670
|
+
# string_like: [
|
|
671
|
+
# {
|
|
672
|
+
# condition_key: "ConditionKey",
|
|
673
|
+
# condition_value: "ConditionValue",
|
|
674
|
+
# },
|
|
675
|
+
# ],
|
|
676
|
+
# string_not_like: [
|
|
677
|
+
# {
|
|
678
|
+
# condition_key: "ConditionKey",
|
|
679
|
+
# condition_value: "ConditionValue",
|
|
680
|
+
# },
|
|
681
|
+
# ],
|
|
682
|
+
# },
|
|
656
683
|
# }
|
|
657
684
|
#
|
|
658
685
|
# @!attribute [rw] selection_name
|
|
@@ -677,13 +704,21 @@ module Aws::Backup
|
|
|
677
704
|
# plan to every resource with at least one matching tag.
|
|
678
705
|
# @return [Array<Types::Condition>]
|
|
679
706
|
#
|
|
707
|
+
# @!attribute [rw] not_resources
|
|
708
|
+
# @return [Array<String>]
|
|
709
|
+
#
|
|
710
|
+
# @!attribute [rw] conditions
|
|
711
|
+
# @return [Types::Conditions]
|
|
712
|
+
#
|
|
680
713
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/BackupSelection AWS API Documentation
|
|
681
714
|
#
|
|
682
715
|
class BackupSelection < Struct.new(
|
|
683
716
|
:selection_name,
|
|
684
717
|
:iam_role_arn,
|
|
685
718
|
:resources,
|
|
686
|
-
:list_of_tags
|
|
719
|
+
:list_of_tags,
|
|
720
|
+
:not_resources,
|
|
721
|
+
:conditions)
|
|
687
722
|
SENSITIVE = []
|
|
688
723
|
include Aws::Structure
|
|
689
724
|
end
|
|
@@ -773,6 +808,56 @@ module Aws::Backup
|
|
|
773
808
|
# The number of recovery points that are stored in a backup vault.
|
|
774
809
|
# @return [Integer]
|
|
775
810
|
#
|
|
811
|
+
# @!attribute [rw] locked
|
|
812
|
+
# A Boolean value that indicates whether Backup Vault Lock applies to
|
|
813
|
+
# the selected backup vault. If `true`, Vault Lock prevents delete and
|
|
814
|
+
# update operations on the recovery points in the selected vault.
|
|
815
|
+
# @return [Boolean]
|
|
816
|
+
#
|
|
817
|
+
# @!attribute [rw] min_retention_days
|
|
818
|
+
# The Backup Vault Lock setting that specifies the minimum retention
|
|
819
|
+
# period that the vault retains its recovery points. If this parameter
|
|
820
|
+
# is not specified, Vault Lock does not enforce a minimum retention
|
|
821
|
+
# period.
|
|
822
|
+
#
|
|
823
|
+
# If specified, any backup or copy job to the vault must have a
|
|
824
|
+
# lifecycle policy with a retention period equal to or longer than the
|
|
825
|
+
# minimum retention period. If the job's retention period is shorter
|
|
826
|
+
# than that minimum retention period, then the vault fails the backup
|
|
827
|
+
# or copy job, and you should either modify your lifecycle settings or
|
|
828
|
+
# use a different vault. Recovery points already stored in the vault
|
|
829
|
+
# prior to Vault Lock are not affected.
|
|
830
|
+
# @return [Integer]
|
|
831
|
+
#
|
|
832
|
+
# @!attribute [rw] max_retention_days
|
|
833
|
+
# The Backup Vault Lock setting that specifies the maximum retention
|
|
834
|
+
# period that the vault retains its recovery points. If this parameter
|
|
835
|
+
# is not specified, Vault Lock does not enforce a maximum retention
|
|
836
|
+
# period on the recovery points in the vault (allowing indefinite
|
|
837
|
+
# storage).
|
|
838
|
+
#
|
|
839
|
+
# If specified, any backup or copy job to the vault must have a
|
|
840
|
+
# lifecycle policy with a retention period equal to or shorter than
|
|
841
|
+
# the maximum retention period. If the job's retention period is
|
|
842
|
+
# longer than that maximum retention period, then the vault fails the
|
|
843
|
+
# backup or copy job, and you should either modify your lifecycle
|
|
844
|
+
# settings or use a different vault. Recovery points already stored in
|
|
845
|
+
# the vault prior to Vault Lock are not affected.
|
|
846
|
+
# @return [Integer]
|
|
847
|
+
#
|
|
848
|
+
# @!attribute [rw] lock_date
|
|
849
|
+
# The date and time when Backup Vault Lock configuration becomes
|
|
850
|
+
# immutable, meaning it cannot be changed or deleted.
|
|
851
|
+
#
|
|
852
|
+
# If you applied Vault Lock to your vault without specifying a lock
|
|
853
|
+
# date, you can change your Vault Lock settings, or delete Vault Lock
|
|
854
|
+
# from the vault entirely, at any time.
|
|
855
|
+
#
|
|
856
|
+
# This value is in Unix format, Coordinated Universal Time (UTC), and
|
|
857
|
+
# accurate to milliseconds. For example, the value 1516925490.087
|
|
858
|
+
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
|
859
|
+
# @return [Time]
|
|
860
|
+
#
|
|
776
861
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/BackupVaultListMember AWS API Documentation
|
|
777
862
|
#
|
|
778
863
|
class BackupVaultListMember < Struct.new(
|
|
@@ -781,7 +866,11 @@ module Aws::Backup
|
|
|
781
866
|
:creation_date,
|
|
782
867
|
:encryption_key_arn,
|
|
783
868
|
:creator_request_id,
|
|
784
|
-
:number_of_recovery_points
|
|
869
|
+
:number_of_recovery_points,
|
|
870
|
+
:locked,
|
|
871
|
+
:min_retention_days,
|
|
872
|
+
:max_retention_days,
|
|
873
|
+
:lock_date)
|
|
785
874
|
SENSITIVE = []
|
|
786
875
|
include Aws::Structure
|
|
787
876
|
end
|
|
@@ -860,6 +949,82 @@ module Aws::Backup
|
|
|
860
949
|
include Aws::Structure
|
|
861
950
|
end
|
|
862
951
|
|
|
952
|
+
# @note When making an API call, you may pass ConditionParameter
|
|
953
|
+
# data as a hash:
|
|
954
|
+
#
|
|
955
|
+
# {
|
|
956
|
+
# condition_key: "ConditionKey",
|
|
957
|
+
# condition_value: "ConditionValue",
|
|
958
|
+
# }
|
|
959
|
+
#
|
|
960
|
+
# @!attribute [rw] condition_key
|
|
961
|
+
# @return [String]
|
|
962
|
+
#
|
|
963
|
+
# @!attribute [rw] condition_value
|
|
964
|
+
# @return [String]
|
|
965
|
+
#
|
|
966
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ConditionParameter AWS API Documentation
|
|
967
|
+
#
|
|
968
|
+
class ConditionParameter < Struct.new(
|
|
969
|
+
:condition_key,
|
|
970
|
+
:condition_value)
|
|
971
|
+
SENSITIVE = []
|
|
972
|
+
include Aws::Structure
|
|
973
|
+
end
|
|
974
|
+
|
|
975
|
+
# @note When making an API call, you may pass Conditions
|
|
976
|
+
# data as a hash:
|
|
977
|
+
#
|
|
978
|
+
# {
|
|
979
|
+
# string_equals: [
|
|
980
|
+
# {
|
|
981
|
+
# condition_key: "ConditionKey",
|
|
982
|
+
# condition_value: "ConditionValue",
|
|
983
|
+
# },
|
|
984
|
+
# ],
|
|
985
|
+
# string_not_equals: [
|
|
986
|
+
# {
|
|
987
|
+
# condition_key: "ConditionKey",
|
|
988
|
+
# condition_value: "ConditionValue",
|
|
989
|
+
# },
|
|
990
|
+
# ],
|
|
991
|
+
# string_like: [
|
|
992
|
+
# {
|
|
993
|
+
# condition_key: "ConditionKey",
|
|
994
|
+
# condition_value: "ConditionValue",
|
|
995
|
+
# },
|
|
996
|
+
# ],
|
|
997
|
+
# string_not_like: [
|
|
998
|
+
# {
|
|
999
|
+
# condition_key: "ConditionKey",
|
|
1000
|
+
# condition_value: "ConditionValue",
|
|
1001
|
+
# },
|
|
1002
|
+
# ],
|
|
1003
|
+
# }
|
|
1004
|
+
#
|
|
1005
|
+
# @!attribute [rw] string_equals
|
|
1006
|
+
# @return [Array<Types::ConditionParameter>]
|
|
1007
|
+
#
|
|
1008
|
+
# @!attribute [rw] string_not_equals
|
|
1009
|
+
# @return [Array<Types::ConditionParameter>]
|
|
1010
|
+
#
|
|
1011
|
+
# @!attribute [rw] string_like
|
|
1012
|
+
# @return [Array<Types::ConditionParameter>]
|
|
1013
|
+
#
|
|
1014
|
+
# @!attribute [rw] string_not_like
|
|
1015
|
+
# @return [Array<Types::ConditionParameter>]
|
|
1016
|
+
#
|
|
1017
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/Conditions AWS API Documentation
|
|
1018
|
+
#
|
|
1019
|
+
class Conditions < Struct.new(
|
|
1020
|
+
:string_equals,
|
|
1021
|
+
:string_not_equals,
|
|
1022
|
+
:string_like,
|
|
1023
|
+
:string_not_like)
|
|
1024
|
+
SENSITIVE = []
|
|
1025
|
+
include Aws::Structure
|
|
1026
|
+
end
|
|
1027
|
+
|
|
863
1028
|
# Backup can't perform the action that you requested until it finishes
|
|
864
1029
|
# performing a previous action. Try again later.
|
|
865
1030
|
#
|
|
@@ -1244,6 +1409,33 @@ module Aws::Backup
|
|
|
1244
1409
|
# condition_value: "ConditionValue", # required
|
|
1245
1410
|
# },
|
|
1246
1411
|
# ],
|
|
1412
|
+
# not_resources: ["ARN"],
|
|
1413
|
+
# conditions: {
|
|
1414
|
+
# string_equals: [
|
|
1415
|
+
# {
|
|
1416
|
+
# condition_key: "ConditionKey",
|
|
1417
|
+
# condition_value: "ConditionValue",
|
|
1418
|
+
# },
|
|
1419
|
+
# ],
|
|
1420
|
+
# string_not_equals: [
|
|
1421
|
+
# {
|
|
1422
|
+
# condition_key: "ConditionKey",
|
|
1423
|
+
# condition_value: "ConditionValue",
|
|
1424
|
+
# },
|
|
1425
|
+
# ],
|
|
1426
|
+
# string_like: [
|
|
1427
|
+
# {
|
|
1428
|
+
# condition_key: "ConditionKey",
|
|
1429
|
+
# condition_value: "ConditionValue",
|
|
1430
|
+
# },
|
|
1431
|
+
# ],
|
|
1432
|
+
# string_not_like: [
|
|
1433
|
+
# {
|
|
1434
|
+
# condition_key: "ConditionKey",
|
|
1435
|
+
# condition_value: "ConditionValue",
|
|
1436
|
+
# },
|
|
1437
|
+
# ],
|
|
1438
|
+
# },
|
|
1247
1439
|
# },
|
|
1248
1440
|
# creator_request_id: "string",
|
|
1249
1441
|
# }
|
|
@@ -1697,6 +1889,25 @@ module Aws::Backup
|
|
|
1697
1889
|
include Aws::Structure
|
|
1698
1890
|
end
|
|
1699
1891
|
|
|
1892
|
+
# @note When making an API call, you may pass DeleteBackupVaultLockConfigurationInput
|
|
1893
|
+
# data as a hash:
|
|
1894
|
+
#
|
|
1895
|
+
# {
|
|
1896
|
+
# backup_vault_name: "BackupVaultName", # required
|
|
1897
|
+
# }
|
|
1898
|
+
#
|
|
1899
|
+
# @!attribute [rw] backup_vault_name
|
|
1900
|
+
# The name of the backup vault from which to delete Backup Vault Lock.
|
|
1901
|
+
# @return [String]
|
|
1902
|
+
#
|
|
1903
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultLockConfigurationInput AWS API Documentation
|
|
1904
|
+
#
|
|
1905
|
+
class DeleteBackupVaultLockConfigurationInput < Struct.new(
|
|
1906
|
+
:backup_vault_name)
|
|
1907
|
+
SENSITIVE = []
|
|
1908
|
+
include Aws::Structure
|
|
1909
|
+
end
|
|
1910
|
+
|
|
1700
1911
|
# @note When making an API call, you may pass DeleteBackupVaultNotificationsInput
|
|
1701
1912
|
# data as a hash:
|
|
1702
1913
|
#
|
|
@@ -2033,6 +2244,57 @@ module Aws::Backup
|
|
|
2033
2244
|
# The number of recovery points that are stored in a backup vault.
|
|
2034
2245
|
# @return [Integer]
|
|
2035
2246
|
#
|
|
2247
|
+
# @!attribute [rw] locked
|
|
2248
|
+
# A Boolean that indicates whether Backup Vault Lock is currently
|
|
2249
|
+
# protecting the backup vault. `True` means that Vault Lock causes
|
|
2250
|
+
# delete or update operations on the recovery points stored in the
|
|
2251
|
+
# vault to fail.
|
|
2252
|
+
# @return [Boolean]
|
|
2253
|
+
#
|
|
2254
|
+
# @!attribute [rw] min_retention_days
|
|
2255
|
+
# The Backup Vault Lock setting that specifies the minimum retention
|
|
2256
|
+
# period that the vault retains its recovery points. If this parameter
|
|
2257
|
+
# is not specified, Vault Lock does not enforce a minimum retention
|
|
2258
|
+
# period.
|
|
2259
|
+
#
|
|
2260
|
+
# If specified, any backup or copy job to the vault must have a
|
|
2261
|
+
# lifecycle policy with a retention period equal to or longer than the
|
|
2262
|
+
# minimum retention period. If the job's retention period is shorter
|
|
2263
|
+
# than that minimum retention period, then the vault fails the backup
|
|
2264
|
+
# or copy job, and you should either modify your lifecycle settings or
|
|
2265
|
+
# use a different vault. Recovery points already stored in the vault
|
|
2266
|
+
# prior to Vault Lock are not affected.
|
|
2267
|
+
# @return [Integer]
|
|
2268
|
+
#
|
|
2269
|
+
# @!attribute [rw] max_retention_days
|
|
2270
|
+
# The Backup Vault Lock setting that specifies the maximum retention
|
|
2271
|
+
# period that the vault retains its recovery points. If this parameter
|
|
2272
|
+
# is not specified, Vault Lock does not enforce a maximum retention
|
|
2273
|
+
# period on the recovery points in the vault (allowing indefinite
|
|
2274
|
+
# storage).
|
|
2275
|
+
#
|
|
2276
|
+
# If specified, any backup or copy job to the vault must have a
|
|
2277
|
+
# lifecycle policy with a retention period equal to or shorter than
|
|
2278
|
+
# the maximum retention period. If the job's retention period is
|
|
2279
|
+
# longer than that maximum retention period, then the vault fails the
|
|
2280
|
+
# backup or copy job, and you should either modify your lifecycle
|
|
2281
|
+
# settings or use a different vault. Recovery points already stored in
|
|
2282
|
+
# the vault prior to Vault Lock are not affected.
|
|
2283
|
+
# @return [Integer]
|
|
2284
|
+
#
|
|
2285
|
+
# @!attribute [rw] lock_date
|
|
2286
|
+
# The date and time when Backup Vault Lock configuration cannot be
|
|
2287
|
+
# changed or deleted.
|
|
2288
|
+
#
|
|
2289
|
+
# If you applied Vault Lock to your vault without specifying a lock
|
|
2290
|
+
# date, you can change any of your Vault Lock settings, or delete
|
|
2291
|
+
# Vault Lock from the vault entirely, at any time.
|
|
2292
|
+
#
|
|
2293
|
+
# This value is in Unix format, Coordinated Universal Time (UTC), and
|
|
2294
|
+
# accurate to milliseconds. For example, the value 1516925490.087
|
|
2295
|
+
# represents Friday, January 26, 2018 12:11:30.087 AM.
|
|
2296
|
+
# @return [Time]
|
|
2297
|
+
#
|
|
2036
2298
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupVaultOutput AWS API Documentation
|
|
2037
2299
|
#
|
|
2038
2300
|
class DescribeBackupVaultOutput < Struct.new(
|
|
@@ -2041,7 +2303,11 @@ module Aws::Backup
|
|
|
2041
2303
|
:encryption_key_arn,
|
|
2042
2304
|
:creation_date,
|
|
2043
2305
|
:creator_request_id,
|
|
2044
|
-
:number_of_recovery_points
|
|
2306
|
+
:number_of_recovery_points,
|
|
2307
|
+
:locked,
|
|
2308
|
+
:min_retention_days,
|
|
2309
|
+
:max_retention_days,
|
|
2310
|
+
:lock_date)
|
|
2045
2311
|
SENSITIVE = []
|
|
2046
2312
|
include Aws::Structure
|
|
2047
2313
|
end
|
|
@@ -4453,6 +4719,94 @@ module Aws::Backup
|
|
|
4453
4719
|
include Aws::Structure
|
|
4454
4720
|
end
|
|
4455
4721
|
|
|
4722
|
+
# @note When making an API call, you may pass PutBackupVaultLockConfigurationInput
|
|
4723
|
+
# data as a hash:
|
|
4724
|
+
#
|
|
4725
|
+
# {
|
|
4726
|
+
# backup_vault_name: "BackupVaultName", # required
|
|
4727
|
+
# min_retention_days: 1,
|
|
4728
|
+
# max_retention_days: 1,
|
|
4729
|
+
# changeable_for_days: 1,
|
|
4730
|
+
# }
|
|
4731
|
+
#
|
|
4732
|
+
# @!attribute [rw] backup_vault_name
|
|
4733
|
+
# The Backup Vault Lock configuration that specifies the name of the
|
|
4734
|
+
# backup vault it protects.
|
|
4735
|
+
# @return [String]
|
|
4736
|
+
#
|
|
4737
|
+
# @!attribute [rw] min_retention_days
|
|
4738
|
+
# The Backup Vault Lock configuration that specifies the minimum
|
|
4739
|
+
# retention period that the vault retains its recovery points. This
|
|
4740
|
+
# setting can be useful if, for example, your organization's policies
|
|
4741
|
+
# require you to retain certain data for at least seven years (2555
|
|
4742
|
+
# days).
|
|
4743
|
+
#
|
|
4744
|
+
# If this parameter is not specified, Vault Lock will not enforce a
|
|
4745
|
+
# minimum retention period.
|
|
4746
|
+
#
|
|
4747
|
+
# If this parameter is specified, any backup or copy job to the vault
|
|
4748
|
+
# must have a lifecycle policy with a retention period equal to or
|
|
4749
|
+
# longer than the minimum retention period. If the job's retention
|
|
4750
|
+
# period is shorter than that minimum retention period, then the vault
|
|
4751
|
+
# fails that backup or copy job, and you should either modify your
|
|
4752
|
+
# lifecycle settings or use a different vault. Recovery points already
|
|
4753
|
+
# saved in the vault prior to Vault Lock are not affected.
|
|
4754
|
+
# @return [Integer]
|
|
4755
|
+
#
|
|
4756
|
+
# @!attribute [rw] max_retention_days
|
|
4757
|
+
# The Backup Vault Lock configuration that specifies the maximum
|
|
4758
|
+
# retention period that the vault retains its recovery points. This
|
|
4759
|
+
# setting can be useful if, for example, your organization's policies
|
|
4760
|
+
# require you to destroy certain data after retaining it for four
|
|
4761
|
+
# years (1460 days).
|
|
4762
|
+
#
|
|
4763
|
+
# If this parameter is not included, Vault Lock does not enforce a
|
|
4764
|
+
# maximum retention period on the recovery points in the vault. If
|
|
4765
|
+
# this parameter is included without a value, Vault Lock will not
|
|
4766
|
+
# enforce a maximum retention period.
|
|
4767
|
+
#
|
|
4768
|
+
# If this parameter is specified, any backup or copy job to the vault
|
|
4769
|
+
# must have a lifecycle policy with a retention period equal to or
|
|
4770
|
+
# shorter than the maximum retention period. If the job's retention
|
|
4771
|
+
# period is longer than that maximum retention period, then the vault
|
|
4772
|
+
# fails the backup or copy job, and you should either modify your
|
|
4773
|
+
# lifecycle settings or use a different vault. Recovery points already
|
|
4774
|
+
# saved in the vault prior to Vault Lock are not affected.
|
|
4775
|
+
# @return [Integer]
|
|
4776
|
+
#
|
|
4777
|
+
# @!attribute [rw] changeable_for_days
|
|
4778
|
+
# The Backup Vault Lock configuration that specifies the number of
|
|
4779
|
+
# days before the lock date. For example, setting `ChangeableForDays`
|
|
4780
|
+
# to 30 on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31,
|
|
4781
|
+
# 2022 at 8pm UTC.
|
|
4782
|
+
#
|
|
4783
|
+
# Backup enforces a 72-hour cooling-off period before Vault Lock takes
|
|
4784
|
+
# effect and becomes immutable. Therefore, you must set
|
|
4785
|
+
# `ChangeableForDays` to 3 or greater.
|
|
4786
|
+
#
|
|
4787
|
+
# Before the lock date, you can delete Vault Lock from the vault using
|
|
4788
|
+
# `DeleteBackupVaultLockConfiguration` or change the Vault Lock
|
|
4789
|
+
# configuration using `PutBackupVaultLockConfiguration`. On and after
|
|
4790
|
+
# the lock date, the Vault Lock becomes immutable and cannot be
|
|
4791
|
+
# changed or deleted.
|
|
4792
|
+
#
|
|
4793
|
+
# If this parameter is not specified, you can delete Vault Lock from
|
|
4794
|
+
# the vault using `DeleteBackupVaultLockConfiguration` or change the
|
|
4795
|
+
# Vault Lock configuration using `PutBackupVaultLockConfiguration` at
|
|
4796
|
+
# any time.
|
|
4797
|
+
# @return [Integer]
|
|
4798
|
+
#
|
|
4799
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultLockConfigurationInput AWS API Documentation
|
|
4800
|
+
#
|
|
4801
|
+
class PutBackupVaultLockConfigurationInput < Struct.new(
|
|
4802
|
+
:backup_vault_name,
|
|
4803
|
+
:min_retention_days,
|
|
4804
|
+
:max_retention_days,
|
|
4805
|
+
:changeable_for_days)
|
|
4806
|
+
SENSITIVE = []
|
|
4807
|
+
include Aws::Structure
|
|
4808
|
+
end
|
|
4809
|
+
|
|
4456
4810
|
# @note When making an API call, you may pass PutBackupVaultNotificationsInput
|
|
4457
4811
|
# data as a hash:
|
|
4458
4812
|
#
|
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.37.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-10
|
|
11
|
+
date: 2021-11-10 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.122.0
|
|
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.122.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|