aws-sdk-backup 1.44.0 → 1.46.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.
@@ -0,0 +1,200 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::Backup
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Backup::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::Backup::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Backup::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_backup_plan
60
+ Aws::Backup::Endpoints::CreateBackupPlan.build(context)
61
+ when :create_backup_selection
62
+ Aws::Backup::Endpoints::CreateBackupSelection.build(context)
63
+ when :create_backup_vault
64
+ Aws::Backup::Endpoints::CreateBackupVault.build(context)
65
+ when :create_framework
66
+ Aws::Backup::Endpoints::CreateFramework.build(context)
67
+ when :create_report_plan
68
+ Aws::Backup::Endpoints::CreateReportPlan.build(context)
69
+ when :delete_backup_plan
70
+ Aws::Backup::Endpoints::DeleteBackupPlan.build(context)
71
+ when :delete_backup_selection
72
+ Aws::Backup::Endpoints::DeleteBackupSelection.build(context)
73
+ when :delete_backup_vault
74
+ Aws::Backup::Endpoints::DeleteBackupVault.build(context)
75
+ when :delete_backup_vault_access_policy
76
+ Aws::Backup::Endpoints::DeleteBackupVaultAccessPolicy.build(context)
77
+ when :delete_backup_vault_lock_configuration
78
+ Aws::Backup::Endpoints::DeleteBackupVaultLockConfiguration.build(context)
79
+ when :delete_backup_vault_notifications
80
+ Aws::Backup::Endpoints::DeleteBackupVaultNotifications.build(context)
81
+ when :delete_framework
82
+ Aws::Backup::Endpoints::DeleteFramework.build(context)
83
+ when :delete_recovery_point
84
+ Aws::Backup::Endpoints::DeleteRecoveryPoint.build(context)
85
+ when :delete_report_plan
86
+ Aws::Backup::Endpoints::DeleteReportPlan.build(context)
87
+ when :describe_backup_job
88
+ Aws::Backup::Endpoints::DescribeBackupJob.build(context)
89
+ when :describe_backup_vault
90
+ Aws::Backup::Endpoints::DescribeBackupVault.build(context)
91
+ when :describe_copy_job
92
+ Aws::Backup::Endpoints::DescribeCopyJob.build(context)
93
+ when :describe_framework
94
+ Aws::Backup::Endpoints::DescribeFramework.build(context)
95
+ when :describe_global_settings
96
+ Aws::Backup::Endpoints::DescribeGlobalSettings.build(context)
97
+ when :describe_protected_resource
98
+ Aws::Backup::Endpoints::DescribeProtectedResource.build(context)
99
+ when :describe_recovery_point
100
+ Aws::Backup::Endpoints::DescribeRecoveryPoint.build(context)
101
+ when :describe_region_settings
102
+ Aws::Backup::Endpoints::DescribeRegionSettings.build(context)
103
+ when :describe_report_job
104
+ Aws::Backup::Endpoints::DescribeReportJob.build(context)
105
+ when :describe_report_plan
106
+ Aws::Backup::Endpoints::DescribeReportPlan.build(context)
107
+ when :describe_restore_job
108
+ Aws::Backup::Endpoints::DescribeRestoreJob.build(context)
109
+ when :disassociate_recovery_point
110
+ Aws::Backup::Endpoints::DisassociateRecoveryPoint.build(context)
111
+ when :export_backup_plan_template
112
+ Aws::Backup::Endpoints::ExportBackupPlanTemplate.build(context)
113
+ when :get_backup_plan
114
+ Aws::Backup::Endpoints::GetBackupPlan.build(context)
115
+ when :get_backup_plan_from_json
116
+ Aws::Backup::Endpoints::GetBackupPlanFromJSON.build(context)
117
+ when :get_backup_plan_from_template
118
+ Aws::Backup::Endpoints::GetBackupPlanFromTemplate.build(context)
119
+ when :get_backup_selection
120
+ Aws::Backup::Endpoints::GetBackupSelection.build(context)
121
+ when :get_backup_vault_access_policy
122
+ Aws::Backup::Endpoints::GetBackupVaultAccessPolicy.build(context)
123
+ when :get_backup_vault_notifications
124
+ Aws::Backup::Endpoints::GetBackupVaultNotifications.build(context)
125
+ when :get_recovery_point_restore_metadata
126
+ Aws::Backup::Endpoints::GetRecoveryPointRestoreMetadata.build(context)
127
+ when :get_supported_resource_types
128
+ Aws::Backup::Endpoints::GetSupportedResourceTypes.build(context)
129
+ when :list_backup_jobs
130
+ Aws::Backup::Endpoints::ListBackupJobs.build(context)
131
+ when :list_backup_plan_templates
132
+ Aws::Backup::Endpoints::ListBackupPlanTemplates.build(context)
133
+ when :list_backup_plan_versions
134
+ Aws::Backup::Endpoints::ListBackupPlanVersions.build(context)
135
+ when :list_backup_plans
136
+ Aws::Backup::Endpoints::ListBackupPlans.build(context)
137
+ when :list_backup_selections
138
+ Aws::Backup::Endpoints::ListBackupSelections.build(context)
139
+ when :list_backup_vaults
140
+ Aws::Backup::Endpoints::ListBackupVaults.build(context)
141
+ when :list_copy_jobs
142
+ Aws::Backup::Endpoints::ListCopyJobs.build(context)
143
+ when :list_frameworks
144
+ Aws::Backup::Endpoints::ListFrameworks.build(context)
145
+ when :list_protected_resources
146
+ Aws::Backup::Endpoints::ListProtectedResources.build(context)
147
+ when :list_recovery_points_by_backup_vault
148
+ Aws::Backup::Endpoints::ListRecoveryPointsByBackupVault.build(context)
149
+ when :list_recovery_points_by_resource
150
+ Aws::Backup::Endpoints::ListRecoveryPointsByResource.build(context)
151
+ when :list_report_jobs
152
+ Aws::Backup::Endpoints::ListReportJobs.build(context)
153
+ when :list_report_plans
154
+ Aws::Backup::Endpoints::ListReportPlans.build(context)
155
+ when :list_restore_jobs
156
+ Aws::Backup::Endpoints::ListRestoreJobs.build(context)
157
+ when :list_tags
158
+ Aws::Backup::Endpoints::ListTags.build(context)
159
+ when :put_backup_vault_access_policy
160
+ Aws::Backup::Endpoints::PutBackupVaultAccessPolicy.build(context)
161
+ when :put_backup_vault_lock_configuration
162
+ Aws::Backup::Endpoints::PutBackupVaultLockConfiguration.build(context)
163
+ when :put_backup_vault_notifications
164
+ Aws::Backup::Endpoints::PutBackupVaultNotifications.build(context)
165
+ when :start_backup_job
166
+ Aws::Backup::Endpoints::StartBackupJob.build(context)
167
+ when :start_copy_job
168
+ Aws::Backup::Endpoints::StartCopyJob.build(context)
169
+ when :start_report_job
170
+ Aws::Backup::Endpoints::StartReportJob.build(context)
171
+ when :start_restore_job
172
+ Aws::Backup::Endpoints::StartRestoreJob.build(context)
173
+ when :stop_backup_job
174
+ Aws::Backup::Endpoints::StopBackupJob.build(context)
175
+ when :tag_resource
176
+ Aws::Backup::Endpoints::TagResource.build(context)
177
+ when :untag_resource
178
+ Aws::Backup::Endpoints::UntagResource.build(context)
179
+ when :update_backup_plan
180
+ Aws::Backup::Endpoints::UpdateBackupPlan.build(context)
181
+ when :update_framework
182
+ Aws::Backup::Endpoints::UpdateFramework.build(context)
183
+ when :update_global_settings
184
+ Aws::Backup::Endpoints::UpdateGlobalSettings.build(context)
185
+ when :update_recovery_point_lifecycle
186
+ Aws::Backup::Endpoints::UpdateRecoveryPointLifecycle.build(context)
187
+ when :update_region_settings
188
+ Aws::Backup::Endpoints::UpdateRegionSettings.build(context)
189
+ when :update_report_plan
190
+ Aws::Backup::Endpoints::UpdateReportPlan.build(context)
191
+ end
192
+ end
193
+ end
194
+
195
+ def add_handlers(handlers, _config)
196
+ handlers.add(Handler, step: :build, priority: 75)
197
+ end
198
+ end
199
+ end
200
+ end
@@ -497,9 +497,8 @@ module Aws::Backup
497
497
  # The “transition to cold after days” setting cannot be changed after
498
498
  # a backup has been transitioned to cold.
499
499
  #
500
- # Only resource types that support full Backup management can
501
- # transition their backups to cold storage. Those resource types are
502
- # listed in the "Full Backup management" section of the [ Feature
500
+ # Resource types that are able to be transitioned to cold storage are
501
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
503
502
  # availability by resource][1] table. Backup ignores this expression
504
503
  # for other resource types.
505
504
  #
@@ -616,9 +615,8 @@ module Aws::Backup
616
615
  # The “transition to cold after days” setting cannot be changed after
617
616
  # a backup has been transitioned to cold.
618
617
  #
619
- # Only resource types that support full Backup management can
620
- # transition their backups to cold storage. Those resource types are
621
- # listed in the "Full Backup management" section of the [ Feature
618
+ # Resource types that are able to be transitioned to cold storage are
619
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
622
620
  # availability by resource][1] table. Backup ignores this expression
623
621
  # for other resource types.
624
622
  #
@@ -662,6 +660,11 @@ module Aws::Backup
662
660
 
663
661
  # Used to specify a set of resources to a backup plan.
664
662
  #
663
+ # Specifying your desired `Conditions`, `ListOfTags`, `NotResources`,
664
+ # and/or `Resources` is recommended. If none of these are specified,
665
+ # Backup will attempt to select all supported and opted-in storage
666
+ # resources, which could have unintended cost implications.
667
+ #
665
668
  # @note When making an API call, you may pass BackupSelection
666
669
  # data as a hash:
667
670
  #
@@ -729,9 +732,9 @@ module Aws::Backup
729
732
  #
730
733
  # @!attribute [rw] list_of_tags
731
734
  # A list of conditions that you define to assign resources to your
732
- # backup plans using tags. For example, `"StringEquals":
733
- # \{"Department": "accounting"`. Condition operators are case
734
- # sensitive.
735
+ # backup plans using tags. For example, `"StringEquals": \{
736
+ # "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue":
737
+ # "true" \},`. Condition operators are case sensitive.
735
738
  #
736
739
  # `ListOfTags` differs from `Conditions` as follows:
737
740
  #
@@ -755,9 +758,9 @@ module Aws::Backup
755
758
  #
756
759
  # @!attribute [rw] conditions
757
760
  # A list of conditions that you define to assign resources to your
758
- # backup plans using tags. For example, `"StringEquals":
759
- # \{"Department": "accounting"`. Condition operators are case
760
- # sensitive.
761
+ # backup plans using tags. For example, `"StringEquals": \{
762
+ # "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue":
763
+ # "true" \},`. Condition operators are case sensitive.
761
764
  #
762
765
  # `Conditions` differs from `ListOfTags` as follows:
763
766
  #
@@ -964,11 +967,10 @@ module Aws::Backup
964
967
  # “transition to cold after days” setting cannot be changed after a
965
968
  # backup has been transitioned to cold.
966
969
  #
967
- # Only resource types that support full Backup management can transition
968
- # their backups to cold storage. Those resource types are listed in the
969
- # "Full Backup management" section of the [ Feature availability by
970
- # resource][1] table. Backup ignores this expression for other resource
971
- # types.
970
+ # Resource types that are able to be transitioned to cold storage are
971
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
972
+ # availability by resource][1] table. Backup ignores this expression for
973
+ # other resource types.
972
974
  #
973
975
  #
974
976
  #
@@ -1268,9 +1270,8 @@ module Aws::Backup
1268
1270
  # days” setting. The “transition to cold after days” setting cannot be
1269
1271
  # changed after a backup has been transitioned to cold.
1270
1272
  #
1271
- # Only resource types that support full Backup management can
1272
- # transition their backups to cold storage. Those resource types are
1273
- # listed in the "Full Backup management" section of the [ Feature
1273
+ # Resource types that are able to be transitioned to cold storage are
1274
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
1274
1275
  # availability by resource][1] table. Backup ignores this expression
1275
1276
  # for other resource types.
1276
1277
  #
@@ -2779,9 +2780,8 @@ module Aws::Backup
2779
2780
  # setting. The “transition to cold after days” setting cannot be
2780
2781
  # changed after a backup has been transitioned to cold.
2781
2782
  #
2782
- # Only resource types that support full Backup management can
2783
- # transition their backups to cold storage. Those resource types are
2784
- # listed in the "Full Backup management" section of the [ Feature
2783
+ # Resource types that are able to be transitioned to cold storage are
2784
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
2785
2785
  # availability by resource][1] table. Backup ignores this expression
2786
2786
  # for other resource types.
2787
2787
  #
@@ -3726,11 +3726,10 @@ module Aws::Backup
3726
3726
  # days” setting. The “transition to cold after days” setting cannot be
3727
3727
  # changed after a backup has been transitioned to cold.
3728
3728
  #
3729
- # Only resource types that support full Backup management can transition
3730
- # their backups to cold storage. Those resource types are listed in the
3731
- # "Full Backup management" section of the [ Feature availability by
3732
- # resource][1] table. Backup ignores this expression for other resource
3733
- # types.
3729
+ # Resource types that are able to be transitioned to cold storage are
3730
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
3731
+ # availability by resource][1] table. Backup ignores this expression for
3732
+ # other resource types.
3734
3733
  #
3735
3734
  #
3736
3735
  #
@@ -5198,9 +5197,8 @@ module Aws::Backup
5198
5197
  # The “transition to cold after days” setting cannot be changed after
5199
5198
  # a backup has been transitioned to cold.
5200
5199
  #
5201
- # Only resource types that support full Backup management can
5202
- # transition their backups to cold storage. Those resource types are
5203
- # listed in the "Full Backup management" section of the [ Feature
5200
+ # Resource types that are able to be transitioned to cold storage are
5201
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
5204
5202
  # availability by resource][1] table. Backup ignores this expression
5205
5203
  # for other resource types.
5206
5204
  #
@@ -5804,9 +5802,8 @@ module Aws::Backup
5804
5802
  # The “transition to cold after days” setting cannot be changed after
5805
5803
  # a backup has been transitioned to cold.
5806
5804
  #
5807
- # Only resource types that support full Backup management can
5808
- # transition their backups to cold storage. Those resource types are
5809
- # listed in the "Full Backup management" section of the [ Feature
5805
+ # Resource types that are able to be transitioned to cold storage are
5806
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
5810
5807
  # availability by resource][1] table. Backup ignores this expression
5811
5808
  # for other resource types.
5812
5809
  #
@@ -5931,9 +5928,8 @@ module Aws::Backup
5931
5928
  # days” setting. The “transition to cold after days” setting cannot be
5932
5929
  # changed after a backup has been transitioned to cold.
5933
5930
  #
5934
- # Only resource types that support full Backup management can
5935
- # transition their backups to cold storage. Those resource types are
5936
- # listed in the "Full Backup management" section of the [ Feature
5931
+ # Resource types that are able to be transitioned to cold storage are
5932
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
5937
5933
  # availability by resource][1] table. Backup ignores this expression
5938
5934
  # for other resource types.
5939
5935
  #
@@ -6028,7 +6024,7 @@ module Aws::Backup
6028
6024
  # metadata: { # required
6029
6025
  # "MetadataKey" => "MetadataValue",
6030
6026
  # },
6031
- # iam_role_arn: "IAMRoleArn", # required
6027
+ # iam_role_arn: "IAMRoleArn",
6032
6028
  # idempotency_token: "string",
6033
6029
  # resource_type: "ResourceType",
6034
6030
  # }
@@ -6508,9 +6504,8 @@ module Aws::Backup
6508
6504
  # The “transition to cold after days” setting cannot be changed after
6509
6505
  # a backup has been transitioned to cold.
6510
6506
  #
6511
- # Only resource types that support full Backup management can
6512
- # transition their backups to cold storage. Those resource types are
6513
- # listed in the "Full Backup management" section of the [ Feature
6507
+ # Resource types that are able to be transitioned to cold storage are
6508
+ # listed in the "Lifecycle to cold storage" section of the [ Feature
6514
6509
  # availability by resource][1] table. Backup ignores this expression
6515
6510
  # for other resource types.
6516
6511
  #
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-backup/types'
15
15
  require_relative 'aws-sdk-backup/client_api'
16
+ require_relative 'aws-sdk-backup/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-backup/client'
17
18
  require_relative 'aws-sdk-backup/errors'
18
19
  require_relative 'aws-sdk-backup/resource'
20
+ require_relative 'aws-sdk-backup/endpoint_parameters'
21
+ require_relative 'aws-sdk-backup/endpoint_provider'
22
+ require_relative 'aws-sdk-backup/endpoints'
19
23
  require_relative 'aws-sdk-backup/customizations'
20
24
 
21
25
  # This module provides support for AWS Backup. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-backup/customizations'
48
52
  # @!group service
49
53
  module Aws::Backup
50
54
 
51
- GEM_VERSION = '1.44.0'
55
+ GEM_VERSION = '1.46.0'
52
56
 
53
57
  end
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.44.0
4
+ version: 1.46.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: 2022-05-04 00:00:00.000000000 Z
11
+ date: 2022-10-25 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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-backup/client.rb
60
60
  - lib/aws-sdk-backup/client_api.rb
61
61
  - lib/aws-sdk-backup/customizations.rb
62
+ - lib/aws-sdk-backup/endpoint_parameters.rb
63
+ - lib/aws-sdk-backup/endpoint_provider.rb
64
+ - lib/aws-sdk-backup/endpoints.rb
62
65
  - lib/aws-sdk-backup/errors.rb
66
+ - lib/aws-sdk-backup/plugins/endpoints.rb
63
67
  - lib/aws-sdk-backup/resource.rb
64
68
  - lib/aws-sdk-backup/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby