aws-sdk-backup 1.37.0 → 1.41.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 +67 -40
- data/lib/aws-sdk-backup/client_api.rb +7 -0
- data/lib/aws-sdk-backup/types.rb +169 -47
- 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: 4acf0a1d08741a34324670f166a154a56323eb656b6383a6d3a558bb2ac5bafb
|
4
|
+
data.tar.gz: 0ae177c280deaa4bdfede6d39240e69bc5e6fa95f449ed077ffdf1db4bebf273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73c5bdd08265f02909f9fa0b179b1eaa1e3b405c0bb9d1dfe27b541a1bf15e0a4ee91772b8e9bb7a654815bee97291cc655173ff928acd2d501bf1bedad5fa84
|
7
|
+
data.tar.gz: 7411c34167673dff3c9f4444bc995e127f3554cc2d3b90602a312a531623c4f8d2097035d7a4bf3d69def56bc30eeeb56116fe767f76aefec465757fc0a287c6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.41.0 (2022-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.40.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.39.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.38.0 (2021-11-23)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds new opt-in settings for advanced features for DynamoDB backups
|
23
|
+
|
4
24
|
1.37.0 (2021-11-10)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.41.0
|
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
34
|
|
@@ -73,6 +75,8 @@ module Aws::Backup
|
|
73
75
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
78
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
79
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
76
80
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
81
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
82
|
|
@@ -119,7 +123,9 @@ module Aws::Backup
|
|
119
123
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
124
|
# are very aggressive. Construct and pass an instance of
|
121
125
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
126
|
+
# enable retries and extended timeouts. Instance profile credential
|
127
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
128
|
+
# to true.
|
123
129
|
#
|
124
130
|
# @option options [required, String] :region
|
125
131
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +179,10 @@ module Aws::Backup
|
|
173
179
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
180
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
181
|
#
|
182
|
+
# @option options [String] :defaults_mode ("legacy")
|
183
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
184
|
+
# accepted modes and the configuration defaults that are included.
|
185
|
+
#
|
176
186
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
187
|
# Set to true to disable SDK automatically adding host prefix
|
178
188
|
# to default service endpoint when available.
|
@@ -295,7 +305,7 @@ module Aws::Backup
|
|
295
305
|
# seconds to wait when opening a HTTP session before raising a
|
296
306
|
# `Timeout::Error`.
|
297
307
|
#
|
298
|
-
# @option options [
|
308
|
+
# @option options [Float] :http_read_timeout (60) The default
|
299
309
|
# number of seconds to wait for response data. This value can
|
300
310
|
# safely be set per-request on the session.
|
301
311
|
#
|
@@ -311,6 +321,9 @@ module Aws::Backup
|
|
311
321
|
# disables this behaviour. This value can safely be set per
|
312
322
|
# request on the session.
|
313
323
|
#
|
324
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
325
|
+
# in seconds.
|
326
|
+
#
|
314
327
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
315
328
|
# HTTP debug output will be sent to the `:logger`.
|
316
329
|
#
|
@@ -358,6 +371,9 @@ module Aws::Backup
|
|
358
371
|
# includes a `CreatorRequestId` that matches an existing backup plan,
|
359
372
|
# that plan is returned. This parameter is optional.
|
360
373
|
#
|
374
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or '-\_.'
|
375
|
+
# characters.
|
376
|
+
#
|
361
377
|
# @return [Types::CreateBackupPlanOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
362
378
|
#
|
363
379
|
# * {Types::CreateBackupPlanOutput#backup_plan_id #backup_plan_id} => String
|
@@ -433,35 +449,12 @@ module Aws::Backup
|
|
433
449
|
end
|
434
450
|
|
435
451
|
# Creates a JSON document that specifies a set of resources to assign to
|
436
|
-
# a backup plan.
|
437
|
-
#
|
438
|
-
#
|
439
|
-
# For example, consider the following patterns:
|
440
|
-
#
|
441
|
-
# * `Resources: "arn:aws:ec2:region:account-id:volume/volume-id"`
|
442
|
-
#
|
443
|
-
# * `ConditionKey:"department"`
|
452
|
+
# a backup plan. For examples, see [Assigning resources
|
453
|
+
# programmatically][1].
|
444
454
|
#
|
445
|
-
# `ConditionValue:"finance"`
|
446
455
|
#
|
447
|
-
# `ConditionType:"StringEquals"`
|
448
456
|
#
|
449
|
-
#
|
450
|
-
#
|
451
|
-
# `ConditionValue:"critical"`
|
452
|
-
#
|
453
|
-
# `ConditionType:"StringEquals"`
|
454
|
-
#
|
455
|
-
# Using these patterns would back up all Amazon Elastic Block Store
|
456
|
-
# (Amazon EBS) volumes that are tagged as `"department=finance"`,
|
457
|
-
# `"importance=critical"`, in addition to an EBS volume with the
|
458
|
-
# specified volume ID.
|
459
|
-
#
|
460
|
-
# Resources and conditions are additive in that all resources that match
|
461
|
-
# the pattern are selected. This shouldn't be confused with a logical
|
462
|
-
# AND, where all conditions must match. The matching patterns are
|
463
|
-
# logically put together using the OR operator. In other words, all
|
464
|
-
# patterns that match are selected for backup.
|
457
|
+
# [1]: https://docs.aws.amazon.com/assigning-resources.html#assigning-resources-json
|
465
458
|
#
|
466
459
|
# @option params [required, String] :backup_plan_id
|
467
460
|
# Uniquely identifies the backup plan to be associated with the
|
@@ -473,7 +466,11 @@ module Aws::Backup
|
|
473
466
|
#
|
474
467
|
# @option params [String] :creator_request_id
|
475
468
|
# A unique string that identifies the request and allows failed requests
|
476
|
-
# to be retried without the risk of running the operation twice.
|
469
|
+
# to be retried without the risk of running the operation twice. This
|
470
|
+
# parameter is optional.
|
471
|
+
#
|
472
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or '-\_.'
|
473
|
+
# characters.
|
477
474
|
#
|
478
475
|
# @return [Types::CreateBackupSelectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
479
476
|
#
|
@@ -568,7 +565,11 @@ module Aws::Backup
|
|
568
565
|
#
|
569
566
|
# @option params [String] :creator_request_id
|
570
567
|
# A unique string that identifies the request and allows failed requests
|
571
|
-
# to be retried without the risk of running the operation twice.
|
568
|
+
# to be retried without the risk of running the operation twice. This
|
569
|
+
# parameter is optional.
|
570
|
+
#
|
571
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or '-\_.'
|
572
|
+
# characters.
|
572
573
|
#
|
573
574
|
# @return [Types::CreateBackupVaultOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
574
575
|
#
|
@@ -1386,11 +1387,14 @@ module Aws::Backup
|
|
1386
1387
|
# @return [Types::DescribeRegionSettingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1387
1388
|
#
|
1388
1389
|
# * {Types::DescribeRegionSettingsOutput#resource_type_opt_in_preference #resource_type_opt_in_preference} => Hash<String,Boolean>
|
1390
|
+
# * {Types::DescribeRegionSettingsOutput#resource_type_management_preference #resource_type_management_preference} => Hash<String,Boolean>
|
1389
1391
|
#
|
1390
1392
|
# @example Response structure
|
1391
1393
|
#
|
1392
1394
|
# resp.resource_type_opt_in_preference #=> Hash
|
1393
1395
|
# resp.resource_type_opt_in_preference["ResourceType"] #=> Boolean
|
1396
|
+
# resp.resource_type_management_preference #=> Hash
|
1397
|
+
# resp.resource_type_management_preference["ResourceType"] #=> Boolean
|
1394
1398
|
#
|
1395
1399
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeRegionSettings AWS API Documentation
|
1396
1400
|
#
|
@@ -2988,6 +2992,11 @@ module Aws::Backup
|
|
2988
2992
|
# maximum retention period for future backup and copy jobs that target a
|
2989
2993
|
# backup vault.
|
2990
2994
|
#
|
2995
|
+
# <note markdown="1"> Backup Vault Lock has yet to receive a third-party assessment for SEC
|
2996
|
+
# 17a-4(f) and CFTC.
|
2997
|
+
#
|
2998
|
+
# </note>
|
2999
|
+
#
|
2991
3000
|
# @option params [required, String] :backup_vault_name
|
2992
3001
|
# The Backup Vault Lock configuration that specifies the name of the
|
2993
3002
|
# backup vault it protects.
|
@@ -3089,22 +3098,27 @@ module Aws::Backup
|
|
3089
3098
|
# An array of events that indicate the status of jobs to back up
|
3090
3099
|
# resources to the backup vault.
|
3091
3100
|
#
|
3092
|
-
#
|
3101
|
+
# For common use cases and code samples, see [Using Amazon SNS to track
|
3102
|
+
# Backup events][1].
|
3093
3103
|
#
|
3094
|
-
#
|
3104
|
+
# The following events are supported:
|
3095
3105
|
#
|
3096
|
-
#
|
3106
|
+
# * `BACKUP_JOB_STARTED` \| `BACKUP_JOB_COMPLETED`
|
3097
3107
|
#
|
3098
|
-
#
|
3099
|
-
# `RECOVERY_POINT_MODIFIED`.
|
3108
|
+
# * `COPY_JOB_STARTED` \| `COPY_JOB_SUCCESSFUL` \| `COPY_JOB_FAILED`
|
3100
3109
|
#
|
3101
|
-
#
|
3102
|
-
#
|
3110
|
+
# * `RESTORE_JOB_STARTED` \| `RESTORE_JOB_COMPLETED` \|
|
3111
|
+
# `RECOVERY_POINT_MODIFIED`
|
3103
3112
|
#
|
3104
|
-
#
|
3113
|
+
# <note markdown="1"> Ignore the list below because it includes deprecated events. Refer to
|
3114
|
+
# the list above.
|
3105
3115
|
#
|
3106
3116
|
# </note>
|
3107
3117
|
#
|
3118
|
+
#
|
3119
|
+
#
|
3120
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html
|
3121
|
+
#
|
3108
3122
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3109
3123
|
#
|
3110
3124
|
# @example Request syntax with placeholder values
|
@@ -3478,7 +3492,9 @@ module Aws::Backup
|
|
3478
3492
|
#
|
3479
3493
|
# @option params [required, Hash<String,String>] :tags
|
3480
3494
|
# Key-value pairs that are used to help organize your resources. You can
|
3481
|
-
# assign your own metadata to the resources you create.
|
3495
|
+
# assign your own metadata to the resources you create. For clarity,
|
3496
|
+
# this is the structure to assign tags:
|
3497
|
+
# `[\{"Key":"string","Value":"string"\}]`.
|
3482
3498
|
#
|
3483
3499
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3484
3500
|
#
|
@@ -3799,6 +3815,14 @@ module Aws::Backup
|
|
3799
3815
|
# Updates the list of services along with the opt-in preferences for the
|
3800
3816
|
# Region.
|
3801
3817
|
#
|
3818
|
+
# @option params [Hash<String,Boolean>] :resource_type_management_preference
|
3819
|
+
# Enables or disables [ Backup's advanced DynamoDB backup features][1]
|
3820
|
+
# for the Region.
|
3821
|
+
#
|
3822
|
+
#
|
3823
|
+
#
|
3824
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html
|
3825
|
+
#
|
3802
3826
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3803
3827
|
#
|
3804
3828
|
# @example Request syntax with placeholder values
|
@@ -3807,6 +3831,9 @@ module Aws::Backup
|
|
3807
3831
|
# resource_type_opt_in_preference: {
|
3808
3832
|
# "ResourceType" => false,
|
3809
3833
|
# },
|
3834
|
+
# resource_type_management_preference: {
|
3835
|
+
# "ResourceType" => false,
|
3836
|
+
# },
|
3810
3837
|
# })
|
3811
3838
|
#
|
3812
3839
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UpdateRegionSettings AWS API Documentation
|
@@ -3907,7 +3934,7 @@ module Aws::Backup
|
|
3907
3934
|
params: params,
|
3908
3935
|
config: config)
|
3909
3936
|
context[:gem_name] = 'aws-sdk-backup'
|
3910
|
-
context[:gem_version] = '1.
|
3937
|
+
context[:gem_version] = '1.41.0'
|
3911
3938
|
Seahorse::Client::Request.new(handlers, context)
|
3912
3939
|
end
|
3913
3940
|
|
@@ -211,6 +211,7 @@ module Aws::Backup
|
|
211
211
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
212
212
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
213
213
|
ResourceTypeList = Shapes::ListShape.new(name: 'ResourceTypeList')
|
214
|
+
ResourceTypeManagementPreference = Shapes::MapShape.new(name: 'ResourceTypeManagementPreference')
|
214
215
|
ResourceTypeOptInPreference = Shapes::MapShape.new(name: 'ResourceTypeOptInPreference')
|
215
216
|
ResourceTypes = Shapes::ListShape.new(name: 'ResourceTypes')
|
216
217
|
RestoreJobId = Shapes::StringShape.new(name: 'RestoreJobId')
|
@@ -650,6 +651,7 @@ module Aws::Backup
|
|
650
651
|
DescribeRegionSettingsInput.struct_class = Types::DescribeRegionSettingsInput
|
651
652
|
|
652
653
|
DescribeRegionSettingsOutput.add_member(:resource_type_opt_in_preference, Shapes::ShapeRef.new(shape: ResourceTypeOptInPreference, location_name: "ResourceTypeOptInPreference"))
|
654
|
+
DescribeRegionSettingsOutput.add_member(:resource_type_management_preference, Shapes::ShapeRef.new(shape: ResourceTypeManagementPreference, location_name: "ResourceTypeManagementPreference"))
|
653
655
|
DescribeRegionSettingsOutput.struct_class = Types::DescribeRegionSettingsOutput
|
654
656
|
|
655
657
|
DescribeReportJobInput.add_member(:report_job_id, Shapes::ShapeRef.new(shape: ReportJobId, required: true, location: "uri", location_name: "reportJobId"))
|
@@ -1083,6 +1085,9 @@ module Aws::Backup
|
|
1083
1085
|
|
1084
1086
|
ResourceTypeList.member = Shapes::ShapeRef.new(shape: ARN)
|
1085
1087
|
|
1088
|
+
ResourceTypeManagementPreference.key = Shapes::ShapeRef.new(shape: ResourceType)
|
1089
|
+
ResourceTypeManagementPreference.value = Shapes::ShapeRef.new(shape: IsEnabled)
|
1090
|
+
|
1086
1091
|
ResourceTypeOptInPreference.key = Shapes::ShapeRef.new(shape: ResourceType)
|
1087
1092
|
ResourceTypeOptInPreference.value = Shapes::ShapeRef.new(shape: IsEnabled)
|
1088
1093
|
|
@@ -1209,6 +1214,7 @@ module Aws::Backup
|
|
1209
1214
|
UpdateRecoveryPointLifecycleOutput.struct_class = Types::UpdateRecoveryPointLifecycleOutput
|
1210
1215
|
|
1211
1216
|
UpdateRegionSettingsInput.add_member(:resource_type_opt_in_preference, Shapes::ShapeRef.new(shape: ResourceTypeOptInPreference, location_name: "ResourceTypeOptInPreference"))
|
1217
|
+
UpdateRegionSettingsInput.add_member(:resource_type_management_preference, Shapes::ShapeRef.new(shape: ResourceTypeManagementPreference, location_name: "ResourceTypeManagementPreference"))
|
1212
1218
|
UpdateRegionSettingsInput.struct_class = Types::UpdateRegionSettingsInput
|
1213
1219
|
|
1214
1220
|
UpdateReportPlanInput.add_member(:report_plan_name, Shapes::ShapeRef.new(shape: ReportPlanName, required: true, location: "uri", location_name: "reportPlanName"))
|
@@ -2105,6 +2111,7 @@ module Aws::Backup
|
|
2105
2111
|
o.output = Shapes::ShapeRef.new(shape: UpdateRecoveryPointLifecycleOutput)
|
2106
2112
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2107
2113
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2114
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
2108
2115
|
o.errors << Shapes::ShapeRef.new(shape: MissingParameterValueException)
|
2109
2116
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
2110
2117
|
end)
|
data/lib/aws-sdk-backup/types.rb
CHANGED
@@ -261,7 +261,8 @@ module Aws::Backup
|
|
261
261
|
# different selection of Amazon Web Services resources.
|
262
262
|
#
|
263
263
|
# @!attribute [rw] backup_plan_name
|
264
|
-
# The display name of a backup plan.
|
264
|
+
# The display name of a backup plan. Must contain 1 to 50 alphanumeric
|
265
|
+
# or '-\_.' characters.
|
265
266
|
# @return [String]
|
266
267
|
#
|
267
268
|
# @!attribute [rw] rules
|
@@ -329,7 +330,8 @@ module Aws::Backup
|
|
329
330
|
# }
|
330
331
|
#
|
331
332
|
# @!attribute [rw] backup_plan_name
|
332
|
-
# The
|
333
|
+
# The display name of a backup plan. Must contain 1 to 50 alphanumeric
|
334
|
+
# or '-\_.' characters.
|
333
335
|
# @return [String]
|
334
336
|
#
|
335
337
|
# @!attribute [rw] rules
|
@@ -410,7 +412,10 @@ module Aws::Backup
|
|
410
412
|
# @!attribute [rw] creator_request_id
|
411
413
|
# A unique string that identifies the request and allows failed
|
412
414
|
# requests to be retried without the risk of running the operation
|
413
|
-
# twice.
|
415
|
+
# twice. This parameter is optional.
|
416
|
+
#
|
417
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or
|
418
|
+
# '-\_.' characters.
|
414
419
|
# @return [String]
|
415
420
|
#
|
416
421
|
# @!attribute [rw] last_execution_date
|
@@ -444,7 +449,8 @@ module Aws::Backup
|
|
444
449
|
# Specifies a scheduled task used to back up a selection of resources.
|
445
450
|
#
|
446
451
|
# @!attribute [rw] rule_name
|
447
|
-
#
|
452
|
+
# A display name for a backup rule. Must contain 1 to 50 alphanumeric
|
453
|
+
# or '-\_.' characters.
|
448
454
|
# @return [String]
|
449
455
|
#
|
450
456
|
# @!attribute [rw] target_backup_vault_name
|
@@ -456,11 +462,13 @@ module Aws::Backup
|
|
456
462
|
#
|
457
463
|
# @!attribute [rw] schedule_expression
|
458
464
|
# A cron expression in UTC specifying when Backup initiates a backup
|
459
|
-
# job. For more information about
|
460
|
-
# Expressions for Rules][1] in the *Amazon
|
461
|
-
#
|
462
|
-
#
|
463
|
-
#
|
465
|
+
# job. For more information about Amazon Web Services cron
|
466
|
+
# expressions, see [Schedule Expressions for Rules][1] in the *Amazon
|
467
|
+
# CloudWatch Events User Guide.*. Two examples of Amazon Web Services
|
468
|
+
# cron expressions are ` 15 * ? * * *` (take a backup every hour at 15
|
469
|
+
# minutes past the hour) and `0 12 * * ? *` (take a backup every day
|
470
|
+
# at 12 noon UTC). For a table of examples, click the preceding link
|
471
|
+
# and scroll down the page.
|
464
472
|
#
|
465
473
|
#
|
466
474
|
#
|
@@ -563,7 +571,8 @@ module Aws::Backup
|
|
563
571
|
# }
|
564
572
|
#
|
565
573
|
# @!attribute [rw] rule_name
|
566
|
-
#
|
574
|
+
# A display name for a backup rule. Must contain 1 to 50 alphanumeric
|
575
|
+
# or '-\_.' characters.
|
567
576
|
# @return [String]
|
568
577
|
#
|
569
578
|
# @!attribute [rw] target_backup_vault_name
|
@@ -683,7 +692,8 @@ module Aws::Backup
|
|
683
692
|
# }
|
684
693
|
#
|
685
694
|
# @!attribute [rw] selection_name
|
686
|
-
# The display name of a resource selection document.
|
695
|
+
# The display name of a resource selection document. Must contain 1 to
|
696
|
+
# 50 alphanumeric or '-\_.' characters.
|
687
697
|
# @return [String]
|
688
698
|
#
|
689
699
|
# @!attribute [rw] iam_role_arn
|
@@ -693,21 +703,56 @@ module Aws::Backup
|
|
693
703
|
# @return [String]
|
694
704
|
#
|
695
705
|
# @!attribute [rw] resources
|
696
|
-
#
|
697
|
-
#
|
706
|
+
# A list of Amazon Resource Names (ARNs) to assign to a backup plan.
|
707
|
+
# The maximum number of ARNs is 500 without wildcards, or 30 ARNs with
|
708
|
+
# wildcards.
|
709
|
+
#
|
710
|
+
# If you need to assign many resources to a backup plan, consider a
|
711
|
+
# different resource selection strategy, such as assigning all
|
712
|
+
# resources of a resource type or refining your resource selection
|
713
|
+
# using tags.
|
698
714
|
# @return [Array<String>]
|
699
715
|
#
|
700
716
|
# @!attribute [rw] list_of_tags
|
701
|
-
#
|
702
|
-
#
|
703
|
-
# \{"
|
704
|
-
#
|
717
|
+
# A list of conditions that you define to assign resources to your
|
718
|
+
# backup plans using tags. For example, `"StringEquals":
|
719
|
+
# \{"Department": "accounting"`. Condition operators are case
|
720
|
+
# sensitive.
|
721
|
+
#
|
722
|
+
# `ListOfTags` differs from `Conditions` as follows:
|
723
|
+
#
|
724
|
+
# * When you specify more than one condition, you assign all resources
|
725
|
+
# that match AT LEAST ONE condition (using OR logic).
|
726
|
+
#
|
727
|
+
# * `ListOfTags` only supports `StringEquals`. `Conditions` supports
|
728
|
+
# `StringEquals`, `StringLike`, `StringNotEquals`, and
|
729
|
+
# `StringNotLike`.
|
705
730
|
# @return [Array<Types::Condition>]
|
706
731
|
#
|
707
732
|
# @!attribute [rw] not_resources
|
733
|
+
# A list of Amazon Resource Names (ARNs) to exclude from a backup
|
734
|
+
# plan. The maximum number of ARNs is 500 without wildcards, or 30
|
735
|
+
# ARNs with wildcards.
|
736
|
+
#
|
737
|
+
# If you need to exclude many resources from a backup plan, consider a
|
738
|
+
# different resource selection strategy, such as assigning only one or
|
739
|
+
# a few resource types or refining your resource selection using tags.
|
708
740
|
# @return [Array<String>]
|
709
741
|
#
|
710
742
|
# @!attribute [rw] conditions
|
743
|
+
# A list of conditions that you define to assign resources to your
|
744
|
+
# backup plans using tags. For example, `"StringEquals":
|
745
|
+
# \{"Department": "accounting"`. Condition operators are case
|
746
|
+
# sensitive.
|
747
|
+
#
|
748
|
+
# `Conditions` differs from `ListOfTags` as follows:
|
749
|
+
#
|
750
|
+
# * When you specify more than one condition, you only assign the
|
751
|
+
# resources that match ALL conditions (using AND logic).
|
752
|
+
#
|
753
|
+
# * `Conditions` supports `StringEquals`, `StringLike`,
|
754
|
+
# `StringNotEquals`, and `StringNotLike`. `ListOfTags` only supports
|
755
|
+
# `StringEquals`.
|
711
756
|
# @return [Types::Conditions]
|
712
757
|
#
|
713
758
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/BackupSelection AWS API Documentation
|
@@ -748,7 +793,10 @@ module Aws::Backup
|
|
748
793
|
# @!attribute [rw] creator_request_id
|
749
794
|
# A unique string that identifies the request and allows failed
|
750
795
|
# requests to be retried without the risk of running the operation
|
751
|
-
# twice.
|
796
|
+
# twice. This parameter is optional.
|
797
|
+
#
|
798
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or
|
799
|
+
# '-\_.' characters.
|
752
800
|
# @return [String]
|
753
801
|
#
|
754
802
|
# @!attribute [rw] iam_role_arn
|
@@ -801,7 +849,10 @@ module Aws::Backup
|
|
801
849
|
# @!attribute [rw] creator_request_id
|
802
850
|
# A unique string that identifies the request and allows failed
|
803
851
|
# requests to be retried without the risk of running the operation
|
804
|
-
# twice.
|
852
|
+
# twice. This parameter is optional.
|
853
|
+
#
|
854
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or
|
855
|
+
# '-\_.' characters.
|
805
856
|
# @return [String]
|
806
857
|
#
|
807
858
|
# @!attribute [rw] number_of_recovery_points
|
@@ -910,8 +961,8 @@ module Aws::Backup
|
|
910
961
|
end
|
911
962
|
|
912
963
|
# Contains an array of triplets made up of a condition type (such as
|
913
|
-
# `StringEquals`), a key, and a value.
|
914
|
-
#
|
964
|
+
# `StringEquals`), a key, and a value. Used to filter resources using
|
965
|
+
# their tags and assign them to a backup plan. Case sensitive.
|
915
966
|
#
|
916
967
|
# @note When making an API call, you may pass Condition
|
917
968
|
# data as a hash:
|
@@ -923,20 +974,25 @@ module Aws::Backup
|
|
923
974
|
# }
|
924
975
|
#
|
925
976
|
# @!attribute [rw] condition_type
|
926
|
-
# An operation
|
927
|
-
#
|
977
|
+
# An operation applied to a key-value pair used to assign resources to
|
978
|
+
# your backup plan. Condition only supports `StringEquals`. For more
|
979
|
+
# flexible assignment options, incluidng `StringLike` and the ability
|
980
|
+
# to exclude resources from your backup plan, use `Conditions` (with
|
981
|
+
# an "s" on the end) for your [ `BackupSelection` ][1].
|
982
|
+
#
|
983
|
+
#
|
984
|
+
#
|
985
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/API_BackupSelection.html
|
928
986
|
# @return [String]
|
929
987
|
#
|
930
988
|
# @!attribute [rw] condition_key
|
931
|
-
# The key in a key-value pair. For example, in
|
932
|
-
# `
|
933
|
-
# `"ec2:ResourceTag/Department"` is the key.
|
989
|
+
# The key in a key-value pair. For example, in the tag `Department:
|
990
|
+
# Accounting`, `Department` is the key.
|
934
991
|
# @return [String]
|
935
992
|
#
|
936
993
|
# @!attribute [rw] condition_value
|
937
|
-
# The value in a key-value pair. For example, in
|
938
|
-
#
|
939
|
-
# value.
|
994
|
+
# The value in a key-value pair. For example, in the tag `Department:
|
995
|
+
# Accounting`, `Accounting` is the value.
|
940
996
|
# @return [String]
|
941
997
|
#
|
942
998
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/Condition AWS API Documentation
|
@@ -949,6 +1005,9 @@ module Aws::Backup
|
|
949
1005
|
include Aws::Structure
|
950
1006
|
end
|
951
1007
|
|
1008
|
+
# Includes information about tags you define to assign tagged resources
|
1009
|
+
# to a backup plan.
|
1010
|
+
#
|
952
1011
|
# @note When making an API call, you may pass ConditionParameter
|
953
1012
|
# data as a hash:
|
954
1013
|
#
|
@@ -958,9 +1017,13 @@ module Aws::Backup
|
|
958
1017
|
# }
|
959
1018
|
#
|
960
1019
|
# @!attribute [rw] condition_key
|
1020
|
+
# The key in a key-value pair. For example, in the tag `Department:
|
1021
|
+
# Accounting`, `Department` is the key.
|
961
1022
|
# @return [String]
|
962
1023
|
#
|
963
1024
|
# @!attribute [rw] condition_value
|
1025
|
+
# The value in a key-value pair. For example, in the tag `Department:
|
1026
|
+
# Accounting`, `Accounting` is the value.
|
964
1027
|
# @return [String]
|
965
1028
|
#
|
966
1029
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ConditionParameter AWS API Documentation
|
@@ -972,6 +1035,9 @@ module Aws::Backup
|
|
972
1035
|
include Aws::Structure
|
973
1036
|
end
|
974
1037
|
|
1038
|
+
# Contains information about which resources to include or exclude from
|
1039
|
+
# a backup plan using their tags. Conditions are case sensitive.
|
1040
|
+
#
|
975
1041
|
# @note When making an API call, you may pass Conditions
|
976
1042
|
# data as a hash:
|
977
1043
|
#
|
@@ -1003,15 +1069,27 @@ module Aws::Backup
|
|
1003
1069
|
# }
|
1004
1070
|
#
|
1005
1071
|
# @!attribute [rw] string_equals
|
1072
|
+
# Filters the values of your tagged resources for only those resources
|
1073
|
+
# that you tagged with the same value. Also called "exact matching."
|
1006
1074
|
# @return [Array<Types::ConditionParameter>]
|
1007
1075
|
#
|
1008
1076
|
# @!attribute [rw] string_not_equals
|
1077
|
+
# Filters the values of your tagged resources for only those resources
|
1078
|
+
# that you tagged that do not have the same value. Also called
|
1079
|
+
# "negated matching."
|
1009
1080
|
# @return [Array<Types::ConditionParameter>]
|
1010
1081
|
#
|
1011
1082
|
# @!attribute [rw] string_like
|
1083
|
+
# Filters the values of your tagged resources for matching tag values
|
1084
|
+
# with the use of a wildcard character (*) anywhere in the string.
|
1085
|
+
# For example, "prod*" or "*rod*" matches the tag value
|
1086
|
+
# "production".
|
1012
1087
|
# @return [Array<Types::ConditionParameter>]
|
1013
1088
|
#
|
1014
1089
|
# @!attribute [rw] string_not_like
|
1090
|
+
# Filters the values of your tagged resources for non-matching tag
|
1091
|
+
# values with the use of a wildcard character (*) anywhere in the
|
1092
|
+
# string.
|
1015
1093
|
# @return [Array<Types::ConditionParameter>]
|
1016
1094
|
#
|
1017
1095
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/Conditions AWS API Documentation
|
@@ -1083,9 +1161,11 @@ module Aws::Backup
|
|
1083
1161
|
end
|
1084
1162
|
|
1085
1163
|
# A framework consists of one or more controls. Each control has its own
|
1086
|
-
# control scope. The control scope
|
1087
|
-
#
|
1088
|
-
#
|
1164
|
+
# control scope. The control scope can include one or more resource
|
1165
|
+
# types, a combination of a tag key and value, or a combination of one
|
1166
|
+
# resource type and one resource ID. If no scope is specified,
|
1167
|
+
# evaluations for the rule are triggered when any resource in your
|
1168
|
+
# recording group changes in configuration.
|
1089
1169
|
#
|
1090
1170
|
# <note markdown="1"> To set a control scope that includes all of a particular resource,
|
1091
1171
|
# leave the `ControlScope` empty or do not pass it when calling
|
@@ -1115,8 +1195,11 @@ module Aws::Backup
|
|
1115
1195
|
# @return [Array<String>]
|
1116
1196
|
#
|
1117
1197
|
# @!attribute [rw] tags
|
1118
|
-
#
|
1119
|
-
#
|
1198
|
+
# The tag key-value pair applied to those Amazon Web Services
|
1199
|
+
# resources that you want to trigger an evaluation for a rule. A
|
1200
|
+
# maximum of one key-value pair can be provided. The tag value is
|
1201
|
+
# optional, but it cannot be an empty string. The structure to assign
|
1202
|
+
# a tag is: `[\{"Key":"string","Value":"string"\}]`.
|
1120
1203
|
# @return [Hash<String,String>]
|
1121
1204
|
#
|
1122
1205
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ControlScope AWS API Documentation
|
@@ -1341,6 +1424,9 @@ module Aws::Backup
|
|
1341
1424
|
# without the risk of running the operation twice. If the request
|
1342
1425
|
# includes a `CreatorRequestId` that matches an existing backup plan,
|
1343
1426
|
# that plan is returned. This parameter is optional.
|
1427
|
+
#
|
1428
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or
|
1429
|
+
# '-\_.' characters.
|
1344
1430
|
# @return [String]
|
1345
1431
|
#
|
1346
1432
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupPlanInput AWS API Documentation
|
@@ -1453,7 +1539,10 @@ module Aws::Backup
|
|
1453
1539
|
# @!attribute [rw] creator_request_id
|
1454
1540
|
# A unique string that identifies the request and allows failed
|
1455
1541
|
# requests to be retried without the risk of running the operation
|
1456
|
-
# twice.
|
1542
|
+
# twice. This parameter is optional.
|
1543
|
+
#
|
1544
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or
|
1545
|
+
# '-\_.' characters.
|
1457
1546
|
# @return [String]
|
1458
1547
|
#
|
1459
1548
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupSelectionInput AWS API Documentation
|
@@ -1525,7 +1614,10 @@ module Aws::Backup
|
|
1525
1614
|
# @!attribute [rw] creator_request_id
|
1526
1615
|
# A unique string that identifies the request and allows failed
|
1527
1616
|
# requests to be retried without the risk of running the operation
|
1528
|
-
# twice.
|
1617
|
+
# twice. This parameter is optional.
|
1618
|
+
#
|
1619
|
+
# If used, this parameter must contain 1 to 50 alphanumeric or
|
1620
|
+
# '-\_.' characters.
|
1529
1621
|
# @return [String]
|
1530
1622
|
#
|
1531
1623
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupVaultInput AWS API Documentation
|
@@ -2715,10 +2807,20 @@ module Aws::Backup
|
|
2715
2807
|
# the Region.
|
2716
2808
|
# @return [Hash<String,Boolean>]
|
2717
2809
|
#
|
2810
|
+
# @!attribute [rw] resource_type_management_preference
|
2811
|
+
# Returns whether a DynamoDB recovery point was taken using [
|
2812
|
+
# Backup's advanced DynamoDB backup features][1].
|
2813
|
+
#
|
2814
|
+
#
|
2815
|
+
#
|
2816
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html
|
2817
|
+
# @return [Hash<String,Boolean>]
|
2818
|
+
#
|
2718
2819
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeRegionSettingsOutput AWS API Documentation
|
2719
2820
|
#
|
2720
2821
|
class DescribeRegionSettingsOutput < Struct.new(
|
2721
|
-
:resource_type_opt_in_preference
|
2822
|
+
:resource_type_opt_in_preference,
|
2823
|
+
:resource_type_management_preference)
|
2722
2824
|
SENSITIVE = []
|
2723
2825
|
include Aws::Structure
|
2724
2826
|
end
|
@@ -4833,21 +4935,26 @@ module Aws::Backup
|
|
4833
4935
|
# An array of events that indicate the status of jobs to back up
|
4834
4936
|
# resources to the backup vault.
|
4835
4937
|
#
|
4836
|
-
#
|
4938
|
+
# For common use cases and code samples, see [Using Amazon SNS to
|
4939
|
+
# track Backup events][1].
|
4837
4940
|
#
|
4838
|
-
#
|
4941
|
+
# The following events are supported:
|
4839
4942
|
#
|
4840
|
-
#
|
4943
|
+
# * `BACKUP_JOB_STARTED` \| `BACKUP_JOB_COMPLETED`
|
4841
4944
|
#
|
4842
|
-
#
|
4843
|
-
# `RECOVERY_POINT_MODIFIED`.
|
4945
|
+
# * `COPY_JOB_STARTED` \| `COPY_JOB_SUCCESSFUL` \| `COPY_JOB_FAILED`
|
4844
4946
|
#
|
4845
|
-
#
|
4846
|
-
#
|
4947
|
+
# * `RESTORE_JOB_STARTED` \| `RESTORE_JOB_COMPLETED` \|
|
4948
|
+
# `RECOVERY_POINT_MODIFIED`
|
4847
4949
|
#
|
4848
|
-
#
|
4950
|
+
# <note markdown="1"> Ignore the list below because it includes deprecated events. Refer
|
4951
|
+
# to the list above.
|
4849
4952
|
#
|
4850
4953
|
# </note>
|
4954
|
+
#
|
4955
|
+
#
|
4956
|
+
#
|
4957
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html
|
4851
4958
|
# @return [Array<String>]
|
4852
4959
|
#
|
4853
4960
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultNotificationsInput AWS API Documentation
|
@@ -5910,7 +6017,9 @@ module Aws::Backup
|
|
5910
6017
|
#
|
5911
6018
|
# @!attribute [rw] tags
|
5912
6019
|
# Key-value pairs that are used to help organize your resources. You
|
5913
|
-
# can assign your own metadata to the resources you create.
|
6020
|
+
# can assign your own metadata to the resources you create. For
|
6021
|
+
# clarity, this is the structure to assign tags:
|
6022
|
+
# `[\{"Key":"string","Value":"string"\}]`.
|
5914
6023
|
# @return [Hash<String,String>]
|
5915
6024
|
#
|
5916
6025
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/TagResourceInput AWS API Documentation
|
@@ -6260,6 +6369,9 @@ module Aws::Backup
|
|
6260
6369
|
# resource_type_opt_in_preference: {
|
6261
6370
|
# "ResourceType" => false,
|
6262
6371
|
# },
|
6372
|
+
# resource_type_management_preference: {
|
6373
|
+
# "ResourceType" => false,
|
6374
|
+
# },
|
6263
6375
|
# }
|
6264
6376
|
#
|
6265
6377
|
# @!attribute [rw] resource_type_opt_in_preference
|
@@ -6267,10 +6379,20 @@ module Aws::Backup
|
|
6267
6379
|
# the Region.
|
6268
6380
|
# @return [Hash<String,Boolean>]
|
6269
6381
|
#
|
6382
|
+
# @!attribute [rw] resource_type_management_preference
|
6383
|
+
# Enables or disables [ Backup's advanced DynamoDB backup
|
6384
|
+
# features][1] for the Region.
|
6385
|
+
#
|
6386
|
+
#
|
6387
|
+
#
|
6388
|
+
# [1]: https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html
|
6389
|
+
# @return [Hash<String,Boolean>]
|
6390
|
+
#
|
6270
6391
|
# @see http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UpdateRegionSettingsInput AWS API Documentation
|
6271
6392
|
#
|
6272
6393
|
class UpdateRegionSettingsInput < Struct.new(
|
6273
|
-
:resource_type_opt_in_preference
|
6394
|
+
:resource_type_opt_in_preference,
|
6395
|
+
:resource_type_management_preference)
|
6274
6396
|
SENSITIVE = []
|
6275
6397
|
include Aws::Structure
|
6276
6398
|
end
|
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.41.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:
|
11
|
+
date: 2022-02-03 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.126.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.126.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|