aws-sdk-cloudhsmv2 1.30.0 → 1.34.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7324a55d0570f982e1801db0f6436f1a871ed699ef2cbb450612485f585c6d84
4
- data.tar.gz: d85811438bd8b5fe12b1d67700849a487cea2841ca1e786b15ef5cfc4918ccfa
3
+ metadata.gz: fdf615888ba087efa92a5a53a3a094155af2875e82727e52b5356ee4db4e6a77
4
+ data.tar.gz: 6018eff192a9087966b4087d0cab7082cd7e2fabc9274dabac5751bf03e7e371
5
5
  SHA512:
6
- metadata.gz: 33b9a1076d6d84dc544390642670ff7e548078ba30e5264847a1e2df2587527c2034976a9cb8c91eb7391cc69e3f7912252c508b0e14e18f81bccb2784074031
7
- data.tar.gz: 1da2a0613928b9350d8c562f6434cc1417343451d652b7acdc9845d342bd707468c17ac28b09a842f0eb1419d8ec77c94564a5cc40485eca918db472a2021830
6
+ metadata.gz: bbbb57c454325b78b2a3206fda60170e81dcfd76a5382a3253d7b6e860a2c66e3b05ba7082a293cd89bbfe12368c654355c9d887781d4ad17b46fb3d83a2ac67
7
+ data.tar.gz: ac01d758c50741d3c2bff6b1ddf62e1ae9e85b3f7cc7ac6be3364920268082f18c0646e047113986aeffe87db1cd02ac359a0e82800631b892d8782a5b4c3a25
data/CHANGELOG.md ADDED
@@ -0,0 +1,188 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.34.0 (2021-07-28)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.33.0 (2021-03-10)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.32.0 (2021-02-02)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.31.0 (2020-11-20)
20
+ ------------------
21
+
22
+ * Feature - Added managed backup retention, a feature that enables customers to retain backups for a configurable period after which CloudHSM service will automatically delete them.
23
+
24
+ 1.30.0 (2020-09-30)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.29.0 (2020-09-15)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.28.0 (2020-08-25)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.27.0 (2020-07-09)
40
+ ------------------
41
+
42
+ * Feature - Documentation updates for cloudhsmv2
43
+
44
+ 1.26.0 (2020-07-02)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
49
+ 1.25.0 (2020-06-23)
50
+ ------------------
51
+
52
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
53
+
54
+ 1.24.1 (2020-06-11)
55
+ ------------------
56
+
57
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
58
+
59
+ 1.24.0 (2020-06-10)
60
+ ------------------
61
+
62
+ * Issue - This version has been yanked. (#2327).
63
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
64
+
65
+ 1.23.0 (2020-05-28)
66
+ ------------------
67
+
68
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
69
+
70
+ 1.22.0 (2020-05-07)
71
+ ------------------
72
+
73
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
74
+
75
+ 1.21.0 (2020-03-09)
76
+ ------------------
77
+
78
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
79
+
80
+ 1.20.0 (2020-01-17)
81
+ ------------------
82
+
83
+ * Feature - This release introduces resource-level and tag-based access control for AWS CloudHSM resources. You can now tag CloudHSM backups, tag CloudHSM clusters on creation, and tag a backup as you copy it to another region.
84
+
85
+ 1.19.0 (2019-10-23)
86
+ ------------------
87
+
88
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
89
+
90
+ 1.18.0 (2019-07-25)
91
+ ------------------
92
+
93
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
94
+
95
+ 1.17.0 (2019-07-01)
96
+ ------------------
97
+
98
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
99
+
100
+ 1.16.0 (2019-06-17)
101
+ ------------------
102
+
103
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
104
+
105
+ 1.15.0 (2019-05-21)
106
+ ------------------
107
+
108
+ * Feature - API update.
109
+
110
+ 1.14.0 (2019-05-15)
111
+ ------------------
112
+
113
+ * Feature - API update.
114
+
115
+ 1.13.0 (2019-05-14)
116
+ ------------------
117
+
118
+ * Feature - API update.
119
+
120
+ 1.12.0 (2019-03-21)
121
+ ------------------
122
+
123
+ * Feature - API update.
124
+
125
+ 1.11.0 (2019-03-18)
126
+ ------------------
127
+
128
+ * Feature - API update.
129
+
130
+ 1.10.0 (2019-03-14)
131
+ ------------------
132
+
133
+ * Feature - API update.
134
+
135
+ 1.9.0 (2018-11-20)
136
+ ------------------
137
+
138
+ * Feature - API update.
139
+
140
+ 1.8.0 (2018-10-24)
141
+ ------------------
142
+
143
+ * Feature - API update.
144
+
145
+ 1.7.0 (2018-10-23)
146
+ ------------------
147
+
148
+ * Feature - API update.
149
+
150
+ 1.6.0 (2018-09-10)
151
+ ------------------
152
+
153
+ * Feature - API update.
154
+
155
+ 1.5.0 (2018-09-06)
156
+ ------------------
157
+
158
+ * Feature - Adds code paths and plugins for future SDK instrumentation and telemetry.
159
+
160
+ 1.4.0 (2018-09-05)
161
+ ------------------
162
+
163
+ * Feature - API update.
164
+
165
+ 1.3.0 (2018-07-30)
166
+ ------------------
167
+
168
+ * Feature - API update.
169
+
170
+ 1.2.0 (2018-06-26)
171
+ ------------------
172
+
173
+ * Feature - API update.
174
+
175
+ 1.1.0 (2017-11-01)
176
+ ------------------
177
+
178
+ * Feature - API update.
179
+
180
+ * Issue - Update `aws-sdk-cloudhsmv2` gemspec metadata.
181
+
182
+ 1.0.0 (2017-08-29)
183
+ ------------------
184
+
185
+ 1.0.0.rc1 (2017-08-14)
186
+ ------------------
187
+
188
+ * Feature - Initial release of `aws-sdk-cloudhsmv2`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.34.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudhsmv2/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudHSMV2
50
50
 
51
- GEM_VERSION = '1.30.0'
51
+ GEM_VERSION = '1.34.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -386,14 +386,8 @@ module Aws::CloudHSMV2
386
386
 
387
387
  # Creates a new AWS CloudHSM cluster.
388
388
  #
389
- # @option params [required, Array<String>] :subnet_ids
390
- # The identifiers (IDs) of the subnets where you are creating the
391
- # cluster. You must specify at least one subnet. If you specify multiple
392
- # subnets, they must meet the following criteria:
393
- #
394
- # * All subnets must be in the same virtual private cloud (VPC).
395
- #
396
- # * You can specify only one subnet per Availability Zone.
389
+ # @option params [Types::BackupRetentionPolicy] :backup_retention_policy
390
+ # A policy that defines how the service retains backups.
397
391
  #
398
392
  # @option params [required, String] :hsm_type
399
393
  # The type of HSM to use in the cluster. Currently the only allowed
@@ -404,6 +398,15 @@ module Aws::CloudHSMV2
404
398
  # to restore the cluster from a backup instead of creating a new
405
399
  # cluster. To find the backup ID, use DescribeBackups.
406
400
  #
401
+ # @option params [required, Array<String>] :subnet_ids
402
+ # The identifiers (IDs) of the subnets where you are creating the
403
+ # cluster. You must specify at least one subnet. If you specify multiple
404
+ # subnets, they must meet the following criteria:
405
+ #
406
+ # * All subnets must be in the same virtual private cloud (VPC).
407
+ #
408
+ # * You can specify only one subnet per Availability Zone.
409
+ #
407
410
  # @option params [Array<Types::Tag>] :tag_list
408
411
  # Tags to apply to the CloudHSM cluster during creation.
409
412
  #
@@ -414,9 +417,13 @@ module Aws::CloudHSMV2
414
417
  # @example Request syntax with placeholder values
415
418
  #
416
419
  # resp = client.create_cluster({
417
- # subnet_ids: ["SubnetId"], # required
420
+ # backup_retention_policy: {
421
+ # type: "DAYS", # accepts DAYS
422
+ # value: "BackupRetentionValue",
423
+ # },
418
424
  # hsm_type: "HsmType", # required
419
425
  # source_backup_id: "BackupId",
426
+ # subnet_ids: ["SubnetId"], # required
420
427
  # tag_list: [
421
428
  # {
422
429
  # key: "TagKey", # required
@@ -428,6 +435,8 @@ module Aws::CloudHSMV2
428
435
  # @example Response structure
429
436
  #
430
437
  # resp.cluster.backup_policy #=> String, one of "DEFAULT"
438
+ # resp.cluster.backup_retention_policy.type #=> String, one of "DAYS"
439
+ # resp.cluster.backup_retention_policy.value #=> String
431
440
  # resp.cluster.cluster_id #=> String
432
441
  # resp.cluster.create_timestamp #=> Time
433
442
  # resp.cluster.hsms #=> Array
@@ -540,6 +549,7 @@ module Aws::CloudHSMV2
540
549
  # resp.backup.cluster_id #=> String
541
550
  # resp.backup.create_timestamp #=> Time
542
551
  # resp.backup.copy_timestamp #=> Time
552
+ # resp.backup.never_expires #=> Boolean
543
553
  # resp.backup.source_region #=> String
544
554
  # resp.backup.source_backup #=> String
545
555
  # resp.backup.source_cluster #=> String
@@ -579,6 +589,8 @@ module Aws::CloudHSMV2
579
589
  # @example Response structure
580
590
  #
581
591
  # resp.cluster.backup_policy #=> String, one of "DEFAULT"
592
+ # resp.cluster.backup_retention_policy.type #=> String, one of "DAYS"
593
+ # resp.cluster.backup_retention_policy.value #=> String
582
594
  # resp.cluster.cluster_id #=> String
583
595
  # resp.cluster.create_timestamp #=> Time
584
596
  # resp.cluster.hsms #=> Array
@@ -697,6 +709,11 @@ module Aws::CloudHSMV2
697
709
  # Use the `states` filter to return only backups that match the
698
710
  # specified state.
699
711
  #
712
+ # Use the `neverExpires` filter to return backups filtered by the value
713
+ # in the `neverExpires` parameter. `True` returns all backups exempt
714
+ # from the backup retention policy. `False` returns all backups with a
715
+ # backup retention policy defined at the cluster.
716
+ #
700
717
  # @option params [Boolean] :sort_ascending
701
718
  # Designates whether or not to sort the return backups by ascending
702
719
  # chronological order of generation.
@@ -727,6 +744,7 @@ module Aws::CloudHSMV2
727
744
  # resp.backups[0].cluster_id #=> String
728
745
  # resp.backups[0].create_timestamp #=> Time
729
746
  # resp.backups[0].copy_timestamp #=> Time
747
+ # resp.backups[0].never_expires #=> Boolean
730
748
  # resp.backups[0].source_region #=> String
731
749
  # resp.backups[0].source_backup #=> String
732
750
  # resp.backups[0].source_cluster #=> String
@@ -797,6 +815,8 @@ module Aws::CloudHSMV2
797
815
  #
798
816
  # resp.clusters #=> Array
799
817
  # resp.clusters[0].backup_policy #=> String, one of "DEFAULT"
818
+ # resp.clusters[0].backup_retention_policy.type #=> String, one of "DAYS"
819
+ # resp.clusters[0].backup_retention_policy.value #=> String
800
820
  # resp.clusters[0].cluster_id #=> String
801
821
  # resp.clusters[0].create_timestamp #=> Time
802
822
  # resp.clusters[0].hsms #=> Array
@@ -938,6 +958,120 @@ module Aws::CloudHSMV2
938
958
  req.send_request(options)
939
959
  end
940
960
 
961
+ # Modifies attributes for AWS CloudHSM backup.
962
+ #
963
+ # @option params [required, String] :backup_id
964
+ # The identifier (ID) of the backup to modify. To find the ID of a
965
+ # backup, use the DescribeBackups operation.
966
+ #
967
+ # @option params [required, Boolean] :never_expires
968
+ # Specifies whether the service should exempt a backup from the
969
+ # retention policy for the cluster. `True` exempts a backup from the
970
+ # retention policy. `False` means the service applies the backup
971
+ # retention policy defined at the cluster.
972
+ #
973
+ # @return [Types::ModifyBackupAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
974
+ #
975
+ # * {Types::ModifyBackupAttributesResponse#backup #backup} => Types::Backup
976
+ #
977
+ # @example Request syntax with placeholder values
978
+ #
979
+ # resp = client.modify_backup_attributes({
980
+ # backup_id: "BackupId", # required
981
+ # never_expires: false, # required
982
+ # })
983
+ #
984
+ # @example Response structure
985
+ #
986
+ # resp.backup.backup_id #=> String
987
+ # resp.backup.backup_state #=> String, one of "CREATE_IN_PROGRESS", "READY", "DELETED", "PENDING_DELETION"
988
+ # resp.backup.cluster_id #=> String
989
+ # resp.backup.create_timestamp #=> Time
990
+ # resp.backup.copy_timestamp #=> Time
991
+ # resp.backup.never_expires #=> Boolean
992
+ # resp.backup.source_region #=> String
993
+ # resp.backup.source_backup #=> String
994
+ # resp.backup.source_cluster #=> String
995
+ # resp.backup.delete_timestamp #=> Time
996
+ # resp.backup.tag_list #=> Array
997
+ # resp.backup.tag_list[0].key #=> String
998
+ # resp.backup.tag_list[0].value #=> String
999
+ #
1000
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyBackupAttributes AWS API Documentation
1001
+ #
1002
+ # @overload modify_backup_attributes(params = {})
1003
+ # @param [Hash] params ({})
1004
+ def modify_backup_attributes(params = {}, options = {})
1005
+ req = build_request(:modify_backup_attributes, params)
1006
+ req.send_request(options)
1007
+ end
1008
+
1009
+ # Modifies AWS CloudHSM cluster.
1010
+ #
1011
+ # @option params [required, Types::BackupRetentionPolicy] :backup_retention_policy
1012
+ # A policy that defines how the service retains backups.
1013
+ #
1014
+ # @option params [required, String] :cluster_id
1015
+ # The identifier (ID) of the cluster that you want to modify. To find
1016
+ # the cluster ID, use DescribeClusters.
1017
+ #
1018
+ # @return [Types::ModifyClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1019
+ #
1020
+ # * {Types::ModifyClusterResponse#cluster #cluster} => Types::Cluster
1021
+ #
1022
+ # @example Request syntax with placeholder values
1023
+ #
1024
+ # resp = client.modify_cluster({
1025
+ # backup_retention_policy: { # required
1026
+ # type: "DAYS", # accepts DAYS
1027
+ # value: "BackupRetentionValue",
1028
+ # },
1029
+ # cluster_id: "ClusterId", # required
1030
+ # })
1031
+ #
1032
+ # @example Response structure
1033
+ #
1034
+ # resp.cluster.backup_policy #=> String, one of "DEFAULT"
1035
+ # resp.cluster.backup_retention_policy.type #=> String, one of "DAYS"
1036
+ # resp.cluster.backup_retention_policy.value #=> String
1037
+ # resp.cluster.cluster_id #=> String
1038
+ # resp.cluster.create_timestamp #=> Time
1039
+ # resp.cluster.hsms #=> Array
1040
+ # resp.cluster.hsms[0].availability_zone #=> String
1041
+ # resp.cluster.hsms[0].cluster_id #=> String
1042
+ # resp.cluster.hsms[0].subnet_id #=> String
1043
+ # resp.cluster.hsms[0].eni_id #=> String
1044
+ # resp.cluster.hsms[0].eni_ip #=> String
1045
+ # resp.cluster.hsms[0].hsm_id #=> String
1046
+ # resp.cluster.hsms[0].state #=> String, one of "CREATE_IN_PROGRESS", "ACTIVE", "DEGRADED", "DELETE_IN_PROGRESS", "DELETED"
1047
+ # resp.cluster.hsms[0].state_message #=> String
1048
+ # resp.cluster.hsm_type #=> String
1049
+ # resp.cluster.pre_co_password #=> String
1050
+ # resp.cluster.security_group #=> String
1051
+ # resp.cluster.source_backup_id #=> String
1052
+ # resp.cluster.state #=> String, one of "CREATE_IN_PROGRESS", "UNINITIALIZED", "INITIALIZE_IN_PROGRESS", "INITIALIZED", "ACTIVE", "UPDATE_IN_PROGRESS", "DELETE_IN_PROGRESS", "DELETED", "DEGRADED"
1053
+ # resp.cluster.state_message #=> String
1054
+ # resp.cluster.subnet_mapping #=> Hash
1055
+ # resp.cluster.subnet_mapping["ExternalAz"] #=> String
1056
+ # resp.cluster.vpc_id #=> String
1057
+ # resp.cluster.certificates.cluster_csr #=> String
1058
+ # resp.cluster.certificates.hsm_certificate #=> String
1059
+ # resp.cluster.certificates.aws_hardware_certificate #=> String
1060
+ # resp.cluster.certificates.manufacturer_hardware_certificate #=> String
1061
+ # resp.cluster.certificates.cluster_certificate #=> String
1062
+ # resp.cluster.tag_list #=> Array
1063
+ # resp.cluster.tag_list[0].key #=> String
1064
+ # resp.cluster.tag_list[0].value #=> String
1065
+ #
1066
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyCluster AWS API Documentation
1067
+ #
1068
+ # @overload modify_cluster(params = {})
1069
+ # @param [Hash] params ({})
1070
+ def modify_cluster(params = {}, options = {})
1071
+ req = build_request(:modify_cluster, params)
1072
+ req.send_request(options)
1073
+ end
1074
+
941
1075
  # Restores a specified AWS CloudHSM backup that is in the
942
1076
  # `PENDING_DELETION` state. For mor information on deleting a backup,
943
1077
  # see DeleteBackup.
@@ -963,6 +1097,7 @@ module Aws::CloudHSMV2
963
1097
  # resp.backup.cluster_id #=> String
964
1098
  # resp.backup.create_timestamp #=> Time
965
1099
  # resp.backup.copy_timestamp #=> Time
1100
+ # resp.backup.never_expires #=> Boolean
966
1101
  # resp.backup.source_region #=> String
967
1102
  # resp.backup.source_backup #=> String
968
1103
  # resp.backup.source_cluster #=> String
@@ -1055,7 +1190,7 @@ module Aws::CloudHSMV2
1055
1190
  params: params,
1056
1191
  config: config)
1057
1192
  context[:gem_name] = 'aws-sdk-cloudhsmv2'
1058
- context[:gem_version] = '1.30.0'
1193
+ context[:gem_version] = '1.34.0'
1059
1194
  Seahorse::Client::Request.new(handlers, context)
1060
1195
  end
1061
1196
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -16,8 +16,12 @@ module Aws::CloudHSMV2
16
16
  Backup = Shapes::StructureShape.new(name: 'Backup')
17
17
  BackupId = Shapes::StringShape.new(name: 'BackupId')
18
18
  BackupPolicy = Shapes::StringShape.new(name: 'BackupPolicy')
19
+ BackupRetentionPolicy = Shapes::StructureShape.new(name: 'BackupRetentionPolicy')
20
+ BackupRetentionType = Shapes::StringShape.new(name: 'BackupRetentionType')
21
+ BackupRetentionValue = Shapes::StringShape.new(name: 'BackupRetentionValue')
19
22
  BackupState = Shapes::StringShape.new(name: 'BackupState')
20
23
  Backups = Shapes::ListShape.new(name: 'Backups')
24
+ BackupsMaxSize = Shapes::IntegerShape.new(name: 'BackupsMaxSize')
21
25
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
22
26
  Cert = Shapes::StringShape.new(name: 'Cert')
23
27
  Certificates = Shapes::StructureShape.new(name: 'Certificates')
@@ -31,6 +35,7 @@ module Aws::CloudHSMV2
31
35
  ClusterId = Shapes::StringShape.new(name: 'ClusterId')
32
36
  ClusterState = Shapes::StringShape.new(name: 'ClusterState')
33
37
  Clusters = Shapes::ListShape.new(name: 'Clusters')
38
+ ClustersMaxSize = Shapes::IntegerShape.new(name: 'ClustersMaxSize')
34
39
  CopyBackupToRegionRequest = Shapes::StructureShape.new(name: 'CopyBackupToRegionRequest')
35
40
  CopyBackupToRegionResponse = Shapes::StructureShape.new(name: 'CopyBackupToRegionResponse')
36
41
  CreateClusterRequest = Shapes::StructureShape.new(name: 'CreateClusterRequest')
@@ -64,6 +69,10 @@ module Aws::CloudHSMV2
64
69
  ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest')
65
70
  ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
66
71
  MaxSize = Shapes::IntegerShape.new(name: 'MaxSize')
72
+ ModifyBackupAttributesRequest = Shapes::StructureShape.new(name: 'ModifyBackupAttributesRequest')
73
+ ModifyBackupAttributesResponse = Shapes::StructureShape.new(name: 'ModifyBackupAttributesResponse')
74
+ ModifyClusterRequest = Shapes::StructureShape.new(name: 'ModifyClusterRequest')
75
+ ModifyClusterResponse = Shapes::StructureShape.new(name: 'ModifyClusterResponse')
67
76
  NextToken = Shapes::StringShape.new(name: 'NextToken')
68
77
  PreCoPassword = Shapes::StringShape.new(name: 'PreCoPassword')
69
78
  Region = Shapes::StringShape.new(name: 'Region')
@@ -94,6 +103,7 @@ module Aws::CloudHSMV2
94
103
  Backup.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, location_name: "ClusterId"))
95
104
  Backup.add_member(:create_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTimestamp"))
96
105
  Backup.add_member(:copy_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CopyTimestamp"))
106
+ Backup.add_member(:never_expires, Shapes::ShapeRef.new(shape: Boolean, location_name: "NeverExpires"))
97
107
  Backup.add_member(:source_region, Shapes::ShapeRef.new(shape: Region, location_name: "SourceRegion"))
98
108
  Backup.add_member(:source_backup, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackup"))
99
109
  Backup.add_member(:source_cluster, Shapes::ShapeRef.new(shape: ClusterId, location_name: "SourceCluster"))
@@ -101,6 +111,10 @@ module Aws::CloudHSMV2
101
111
  Backup.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
102
112
  Backup.struct_class = Types::Backup
103
113
 
114
+ BackupRetentionPolicy.add_member(:type, Shapes::ShapeRef.new(shape: BackupRetentionType, location_name: "Type"))
115
+ BackupRetentionPolicy.add_member(:value, Shapes::ShapeRef.new(shape: BackupRetentionValue, location_name: "Value"))
116
+ BackupRetentionPolicy.struct_class = Types::BackupRetentionPolicy
117
+
104
118
  Backups.member = Shapes::ShapeRef.new(shape: Backup)
105
119
 
106
120
  Certificates.add_member(:cluster_csr, Shapes::ShapeRef.new(shape: Cert, location_name: "ClusterCsr"))
@@ -129,6 +143,7 @@ module Aws::CloudHSMV2
129
143
  CloudHsmTagException.struct_class = Types::CloudHsmTagException
130
144
 
131
145
  Cluster.add_member(:backup_policy, Shapes::ShapeRef.new(shape: BackupPolicy, location_name: "BackupPolicy"))
146
+ Cluster.add_member(:backup_retention_policy, Shapes::ShapeRef.new(shape: BackupRetentionPolicy, location_name: "BackupRetentionPolicy"))
132
147
  Cluster.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, location_name: "ClusterId"))
133
148
  Cluster.add_member(:create_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTimestamp"))
134
149
  Cluster.add_member(:hsms, Shapes::ShapeRef.new(shape: Hsms, location_name: "Hsms"))
@@ -154,9 +169,10 @@ module Aws::CloudHSMV2
154
169
  CopyBackupToRegionResponse.add_member(:destination_backup, Shapes::ShapeRef.new(shape: DestinationBackup, location_name: "DestinationBackup"))
155
170
  CopyBackupToRegionResponse.struct_class = Types::CopyBackupToRegionResponse
156
171
 
157
- CreateClusterRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
172
+ CreateClusterRequest.add_member(:backup_retention_policy, Shapes::ShapeRef.new(shape: BackupRetentionPolicy, location_name: "BackupRetentionPolicy"))
158
173
  CreateClusterRequest.add_member(:hsm_type, Shapes::ShapeRef.new(shape: HsmType, required: true, location_name: "HsmType"))
159
174
  CreateClusterRequest.add_member(:source_backup_id, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackupId"))
175
+ CreateClusterRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
160
176
  CreateClusterRequest.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
161
177
  CreateClusterRequest.struct_class = Types::CreateClusterRequest
162
178
 
@@ -193,7 +209,7 @@ module Aws::CloudHSMV2
193
209
  DeleteHsmResponse.struct_class = Types::DeleteHsmResponse
194
210
 
195
211
  DescribeBackupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
196
- DescribeBackupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxResults"))
212
+ DescribeBackupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BackupsMaxSize, location_name: "MaxResults"))
197
213
  DescribeBackupsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
198
214
  DescribeBackupsRequest.add_member(:sort_ascending, Shapes::ShapeRef.new(shape: Boolean, location_name: "SortAscending"))
199
215
  DescribeBackupsRequest.struct_class = Types::DescribeBackupsRequest
@@ -204,7 +220,7 @@ module Aws::CloudHSMV2
204
220
 
205
221
  DescribeClustersRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
206
222
  DescribeClustersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
207
- DescribeClustersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxResults"))
223
+ DescribeClustersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ClustersMaxSize, location_name: "MaxResults"))
208
224
  DescribeClustersRequest.struct_class = Types::DescribeClustersRequest
209
225
 
210
226
  DescribeClustersResponse.add_member(:clusters, Shapes::ShapeRef.new(shape: Clusters, location_name: "Clusters"))
@@ -253,6 +269,20 @@ module Aws::CloudHSMV2
253
269
  ListTagsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
254
270
  ListTagsResponse.struct_class = Types::ListTagsResponse
255
271
 
272
+ ModifyBackupAttributesRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
273
+ ModifyBackupAttributesRequest.add_member(:never_expires, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "NeverExpires"))
274
+ ModifyBackupAttributesRequest.struct_class = Types::ModifyBackupAttributesRequest
275
+
276
+ ModifyBackupAttributesResponse.add_member(:backup, Shapes::ShapeRef.new(shape: Backup, location_name: "Backup"))
277
+ ModifyBackupAttributesResponse.struct_class = Types::ModifyBackupAttributesResponse
278
+
279
+ ModifyClusterRequest.add_member(:backup_retention_policy, Shapes::ShapeRef.new(shape: BackupRetentionPolicy, required: true, location_name: "BackupRetentionPolicy"))
280
+ ModifyClusterRequest.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ClusterId"))
281
+ ModifyClusterRequest.struct_class = Types::ModifyClusterRequest
282
+
283
+ ModifyClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "Cluster"))
284
+ ModifyClusterResponse.struct_class = Types::ModifyClusterResponse
285
+
256
286
  RestoreBackupRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
257
287
  RestoreBackupRequest.struct_class = Types::RestoreBackupRequest
258
288
 
@@ -456,6 +486,32 @@ module Aws::CloudHSMV2
456
486
  )
457
487
  end)
458
488
 
489
+ api.add_operation(:modify_backup_attributes, Seahorse::Model::Operation.new.tap do |o|
490
+ o.name = "ModifyBackupAttributes"
491
+ o.http_method = "POST"
492
+ o.http_request_uri = "/"
493
+ o.input = Shapes::ShapeRef.new(shape: ModifyBackupAttributesRequest)
494
+ o.output = Shapes::ShapeRef.new(shape: ModifyBackupAttributesResponse)
495
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
496
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
497
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
498
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
499
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
500
+ end)
501
+
502
+ api.add_operation(:modify_cluster, Seahorse::Model::Operation.new.tap do |o|
503
+ o.name = "ModifyCluster"
504
+ o.http_method = "POST"
505
+ o.http_request_uri = "/"
506
+ o.input = Shapes::ShapeRef.new(shape: ModifyClusterRequest)
507
+ o.output = Shapes::ShapeRef.new(shape: ModifyClusterResponse)
508
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
509
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
510
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
511
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
512
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
513
+ end)
514
+
459
515
  api.add_operation(:restore_backup, Seahorse::Model::Operation.new.tap do |o|
460
516
  o.name = "RestoreBackup"
461
517
  o.http_method = "POST"
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -11,11 +11,12 @@ module Aws::CloudHSMV2
11
11
  module Types
12
12
 
13
13
  # Contains information about a backup of an AWS CloudHSM cluster. All
14
- # backup objects contain the BackupId, BackupState, ClusterId, and
15
- # CreateTimestamp parameters. Backups that were copied into a
16
- # destination region additionally contain the CopyTimestamp,
17
- # SourceBackup, SourceCluster, and SourceRegion paramters. A backup that
18
- # is pending deletion will include the DeleteTimestamp parameter.
14
+ # backup objects contain the `BackupId`, `BackupState`, `ClusterId`, and
15
+ # `CreateTimestamp` parameters. Backups that were copied into a
16
+ # destination region additionally contain the `CopyTimestamp`,
17
+ # `SourceBackup`, `SourceCluster`, and `SourceRegion` parameters. A
18
+ # backup that is pending deletion will include the `DeleteTimestamp`
19
+ # parameter.
19
20
  #
20
21
  # @!attribute [rw] backup_id
21
22
  # The identifier (ID) of the backup.
@@ -37,6 +38,13 @@ module Aws::CloudHSMV2
37
38
  # The date and time when the backup was copied from a source backup.
38
39
  # @return [Time]
39
40
  #
41
+ # @!attribute [rw] never_expires
42
+ # Specifies whether the service should exempt a backup from the
43
+ # retention policy for the cluster. `True` exempts a backup from the
44
+ # retention policy. `False` means the service applies the backup
45
+ # retention policy defined at the cluster.
46
+ # @return [Boolean]
47
+ #
40
48
  # @!attribute [rw] source_region
41
49
  # The AWS Region that contains the source backup from which the new
42
50
  # backup was copied.
@@ -68,6 +76,7 @@ module Aws::CloudHSMV2
68
76
  :cluster_id,
69
77
  :create_timestamp,
70
78
  :copy_timestamp,
79
+ :never_expires,
71
80
  :source_region,
72
81
  :source_backup,
73
82
  :source_cluster,
@@ -77,6 +86,34 @@ module Aws::CloudHSMV2
77
86
  include Aws::Structure
78
87
  end
79
88
 
89
+ # A policy that defines the number of days to retain backups.
90
+ #
91
+ # @note When making an API call, you may pass BackupRetentionPolicy
92
+ # data as a hash:
93
+ #
94
+ # {
95
+ # type: "DAYS", # accepts DAYS
96
+ # value: "BackupRetentionValue",
97
+ # }
98
+ #
99
+ # @!attribute [rw] type
100
+ # The type of backup retention policy. For the `DAYS` type, the value
101
+ # is the number of days to retain backups.
102
+ # @return [String]
103
+ #
104
+ # @!attribute [rw] value
105
+ # Use a value between 7 - 379.
106
+ # @return [String]
107
+ #
108
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/BackupRetentionPolicy AWS API Documentation
109
+ #
110
+ class BackupRetentionPolicy < Struct.new(
111
+ :type,
112
+ :value)
113
+ SENSITIVE = []
114
+ include Aws::Structure
115
+ end
116
+
80
117
  # Contains one or more certificates or a certificate signing request
81
118
  # (CSR).
82
119
  #
@@ -203,6 +240,10 @@ module Aws::CloudHSMV2
203
240
  # The cluster's backup policy.
204
241
  # @return [String]
205
242
  #
243
+ # @!attribute [rw] backup_retention_policy
244
+ # A policy that defines how the service retains backups.
245
+ # @return [Types::BackupRetentionPolicy]
246
+ #
206
247
  # @!attribute [rw] cluster_id
207
248
  # The cluster's identifier (ID).
208
249
  # @return [String]
@@ -264,6 +305,7 @@ module Aws::CloudHSMV2
264
305
  #
265
306
  class Cluster < Struct.new(
266
307
  :backup_policy,
308
+ :backup_retention_policy,
267
309
  :cluster_id,
268
310
  :create_timestamp,
269
311
  :hsms,
@@ -344,9 +386,13 @@ module Aws::CloudHSMV2
344
386
  # data as a hash:
345
387
  #
346
388
  # {
347
- # subnet_ids: ["SubnetId"], # required
389
+ # backup_retention_policy: {
390
+ # type: "DAYS", # accepts DAYS
391
+ # value: "BackupRetentionValue",
392
+ # },
348
393
  # hsm_type: "HsmType", # required
349
394
  # source_backup_id: "BackupId",
395
+ # subnet_ids: ["SubnetId"], # required
350
396
  # tag_list: [
351
397
  # {
352
398
  # key: "TagKey", # required
@@ -355,15 +401,9 @@ module Aws::CloudHSMV2
355
401
  # ],
356
402
  # }
357
403
  #
358
- # @!attribute [rw] subnet_ids
359
- # The identifiers (IDs) of the subnets where you are creating the
360
- # cluster. You must specify at least one subnet. If you specify
361
- # multiple subnets, they must meet the following criteria:
362
- #
363
- # * All subnets must be in the same virtual private cloud (VPC).
364
- #
365
- # * You can specify only one subnet per Availability Zone.
366
- # @return [Array<String>]
404
+ # @!attribute [rw] backup_retention_policy
405
+ # A policy that defines how the service retains backups.
406
+ # @return [Types::BackupRetentionPolicy]
367
407
  #
368
408
  # @!attribute [rw] hsm_type
369
409
  # The type of HSM to use in the cluster. Currently the only allowed
@@ -376,6 +416,16 @@ module Aws::CloudHSMV2
376
416
  # cluster. To find the backup ID, use DescribeBackups.
377
417
  # @return [String]
378
418
  #
419
+ # @!attribute [rw] subnet_ids
420
+ # The identifiers (IDs) of the subnets where you are creating the
421
+ # cluster. You must specify at least one subnet. If you specify
422
+ # multiple subnets, they must meet the following criteria:
423
+ #
424
+ # * All subnets must be in the same virtual private cloud (VPC).
425
+ #
426
+ # * You can specify only one subnet per Availability Zone.
427
+ # @return [Array<String>]
428
+ #
379
429
  # @!attribute [rw] tag_list
380
430
  # Tags to apply to the CloudHSM cluster during creation.
381
431
  # @return [Array<Types::Tag>]
@@ -383,9 +433,10 @@ module Aws::CloudHSMV2
383
433
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateClusterRequest AWS API Documentation
384
434
  #
385
435
  class CreateClusterRequest < Struct.new(
386
- :subnet_ids,
436
+ :backup_retention_policy,
387
437
  :hsm_type,
388
438
  :source_backup_id,
439
+ :subnet_ids,
389
440
  :tag_list)
390
441
  SENSITIVE = []
391
442
  include Aws::Structure
@@ -606,6 +657,11 @@ module Aws::CloudHSMV2
606
657
  #
607
658
  # Use the `states` filter to return only backups that match the
608
659
  # specified state.
660
+ #
661
+ # Use the `neverExpires` filter to return backups filtered by the
662
+ # value in the `neverExpires` parameter. `True` returns all backups
663
+ # exempt from the backup retention policy. `False` returns all backups
664
+ # with a backup retention policy defined at the cluster.
609
665
  # @return [Hash<String,Array<String>>]
610
666
  #
611
667
  # @!attribute [rw] sort_ascending
@@ -901,6 +957,94 @@ module Aws::CloudHSMV2
901
957
  include Aws::Structure
902
958
  end
903
959
 
960
+ # @note When making an API call, you may pass ModifyBackupAttributesRequest
961
+ # data as a hash:
962
+ #
963
+ # {
964
+ # backup_id: "BackupId", # required
965
+ # never_expires: false, # required
966
+ # }
967
+ #
968
+ # @!attribute [rw] backup_id
969
+ # The identifier (ID) of the backup to modify. To find the ID of a
970
+ # backup, use the DescribeBackups operation.
971
+ # @return [String]
972
+ #
973
+ # @!attribute [rw] never_expires
974
+ # Specifies whether the service should exempt a backup from the
975
+ # retention policy for the cluster. `True` exempts a backup from the
976
+ # retention policy. `False` means the service applies the backup
977
+ # retention policy defined at the cluster.
978
+ # @return [Boolean]
979
+ #
980
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyBackupAttributesRequest AWS API Documentation
981
+ #
982
+ class ModifyBackupAttributesRequest < Struct.new(
983
+ :backup_id,
984
+ :never_expires)
985
+ SENSITIVE = []
986
+ include Aws::Structure
987
+ end
988
+
989
+ # @!attribute [rw] backup
990
+ # Contains information about a backup of an AWS CloudHSM cluster. All
991
+ # backup objects contain the `BackupId`, `BackupState`, `ClusterId`,
992
+ # and `CreateTimestamp` parameters. Backups that were copied into a
993
+ # destination region additionally contain the `CopyTimestamp`,
994
+ # `SourceBackup`, `SourceCluster`, and `SourceRegion` parameters. A
995
+ # backup that is pending deletion will include the `DeleteTimestamp`
996
+ # parameter.
997
+ # @return [Types::Backup]
998
+ #
999
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyBackupAttributesResponse AWS API Documentation
1000
+ #
1001
+ class ModifyBackupAttributesResponse < Struct.new(
1002
+ :backup)
1003
+ SENSITIVE = []
1004
+ include Aws::Structure
1005
+ end
1006
+
1007
+ # @note When making an API call, you may pass ModifyClusterRequest
1008
+ # data as a hash:
1009
+ #
1010
+ # {
1011
+ # backup_retention_policy: { # required
1012
+ # type: "DAYS", # accepts DAYS
1013
+ # value: "BackupRetentionValue",
1014
+ # },
1015
+ # cluster_id: "ClusterId", # required
1016
+ # }
1017
+ #
1018
+ # @!attribute [rw] backup_retention_policy
1019
+ # A policy that defines how the service retains backups.
1020
+ # @return [Types::BackupRetentionPolicy]
1021
+ #
1022
+ # @!attribute [rw] cluster_id
1023
+ # The identifier (ID) of the cluster that you want to modify. To find
1024
+ # the cluster ID, use DescribeClusters.
1025
+ # @return [String]
1026
+ #
1027
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyClusterRequest AWS API Documentation
1028
+ #
1029
+ class ModifyClusterRequest < Struct.new(
1030
+ :backup_retention_policy,
1031
+ :cluster_id)
1032
+ SENSITIVE = []
1033
+ include Aws::Structure
1034
+ end
1035
+
1036
+ # @!attribute [rw] cluster
1037
+ # Contains information about an AWS CloudHSM cluster.
1038
+ # @return [Types::Cluster]
1039
+ #
1040
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyClusterResponse AWS API Documentation
1041
+ #
1042
+ class ModifyClusterResponse < Struct.new(
1043
+ :cluster)
1044
+ SENSITIVE = []
1045
+ include Aws::Structure
1046
+ end
1047
+
904
1048
  # @note When making an API call, you may pass RestoreBackupRequest
905
1049
  # data as a hash:
906
1050
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudhsmv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.0
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2021-07-28 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.109.0
22
+ version: 3.118.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.109.0
32
+ version: 3.118.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for AWS CloudHSM V2 (CloudHSM V2). This gem is
48
48
  part of the AWS SDK for Ruby.
49
49
  email:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-cloudhsmv2.rb
56
59
  - lib/aws-sdk-cloudhsmv2/client.rb
57
60
  - lib/aws-sdk-cloudhsmv2/client_api.rb
@@ -63,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
63
66
  licenses:
64
67
  - Apache-2.0
65
68
  metadata:
66
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-cloudhsmv2
67
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-cloudhsmv2/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudhsmv2
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudhsmv2/CHANGELOG.md
68
71
  post_install_message:
69
72
  rdoc_options: []
70
73
  require_paths:
@@ -80,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
83
  - !ruby/object:Gem::Version
81
84
  version: '0'
82
85
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.7.6.2
86
+ rubygems_version: 3.1.6
85
87
  signing_key:
86
88
  specification_version: 4
87
89
  summary: AWS SDK for Ruby - CloudHSM V2