aws-sdk-ec2 1.420.0 → 1.421.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.
@@ -21453,6 +21453,73 @@ module Aws::EC2
21453
21453
  include Aws::Structure
21454
21454
  end
21455
21455
 
21456
+ # @!attribute [rw] filters
21457
+ # The filters.
21458
+ #
21459
+ # * `lock-state` - The state of the snapshot lock
21460
+ # (`compliance-cooloff` \| `governance` \| `compliance` \|
21461
+ # `expired`).
21462
+ #
21463
+ # ^
21464
+ # @return [Array<Types::Filter>]
21465
+ #
21466
+ # @!attribute [rw] max_results
21467
+ # The maximum number of items to return for this request. To get the
21468
+ # next page of items, make another request with the token returned in
21469
+ # the output. For more information, see [Pagination][1].
21470
+ #
21471
+ #
21472
+ #
21473
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
21474
+ # @return [Integer]
21475
+ #
21476
+ # @!attribute [rw] next_token
21477
+ # The token returned from a previous paginated request. Pagination
21478
+ # continues from the end of the items returned by the previous
21479
+ # request.
21480
+ # @return [String]
21481
+ #
21482
+ # @!attribute [rw] snapshot_ids
21483
+ # The IDs of the snapshots for which to view the lock status.
21484
+ # @return [Array<String>]
21485
+ #
21486
+ # @!attribute [rw] dry_run
21487
+ # Checks whether you have the required permissions for the action,
21488
+ # without actually making the request, and provides an error response.
21489
+ # If you have the required permissions, the error response is
21490
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
21491
+ # @return [Boolean]
21492
+ #
21493
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLockedSnapshotsRequest AWS API Documentation
21494
+ #
21495
+ class DescribeLockedSnapshotsRequest < Struct.new(
21496
+ :filters,
21497
+ :max_results,
21498
+ :next_token,
21499
+ :snapshot_ids,
21500
+ :dry_run)
21501
+ SENSITIVE = []
21502
+ include Aws::Structure
21503
+ end
21504
+
21505
+ # @!attribute [rw] snapshots
21506
+ # Information about the snapshots.
21507
+ # @return [Array<Types::LockedSnapshotsInfo>]
21508
+ #
21509
+ # @!attribute [rw] next_token
21510
+ # The token to include in another request to get the next page of
21511
+ # items. This value is `null` when there are no more items to return.
21512
+ # @return [String]
21513
+ #
21514
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLockedSnapshotsResult AWS API Documentation
21515
+ #
21516
+ class DescribeLockedSnapshotsResult < Struct.new(
21517
+ :snapshots,
21518
+ :next_token)
21519
+ SENSITIVE = []
21520
+ include Aws::Structure
21521
+ end
21522
+
21456
21523
  # @!attribute [rw] dry_run
21457
21524
  # Checks whether you have the required permissions for the action,
21458
21525
  # without actually making the request, and provides an error response.
@@ -44694,6 +44761,251 @@ module Aws::EC2
44694
44761
  include Aws::Structure
44695
44762
  end
44696
44763
 
44764
+ # @!attribute [rw] snapshot_id
44765
+ # The ID of the snapshot to lock.
44766
+ # @return [String]
44767
+ #
44768
+ # @!attribute [rw] dry_run
44769
+ # Checks whether you have the required permissions for the action,
44770
+ # without actually making the request, and provides an error response.
44771
+ # If you have the required permissions, the error response is
44772
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
44773
+ # @return [Boolean]
44774
+ #
44775
+ # @!attribute [rw] lock_mode
44776
+ # The mode in which to lock the snapshot. Specify one of the
44777
+ # following:
44778
+ #
44779
+ # * `governance` - Locks the snapshot in governance mode. Snapshots
44780
+ # locked in governance mode can't be deleted until one of the
44781
+ # following conditions are met:
44782
+ #
44783
+ # * The lock duration expires.
44784
+ #
44785
+ # * The snapshot is unlocked by a user with the appropriate
44786
+ # permissions.
44787
+ #
44788
+ # Users with the appropriate IAM permissions can unlock the
44789
+ # snapshot, increase or decrease the lock duration, and change the
44790
+ # lock mode to `compliance` at any time.
44791
+ #
44792
+ # If you lock a snapshot in `governance` mode, omit <b>
44793
+ # CoolOffPeriod</b>.
44794
+ #
44795
+ # * `compliance` - Locks the snapshot in compliance mode. Snapshots
44796
+ # locked in compliance mode can't be unlocked by any user. They can
44797
+ # be deleted only after the lock duration expires. Users can't
44798
+ # decrease the lock duration or change the lock mode to
44799
+ # `governance`. However, users with appropriate IAM permissions can
44800
+ # increase the lock duration at any time.
44801
+ #
44802
+ # If you lock a snapshot in `compliance` mode, you can optionally
44803
+ # specify **CoolOffPeriod**.
44804
+ # @return [String]
44805
+ #
44806
+ # @!attribute [rw] cool_off_period
44807
+ # The cooling-off period during which you can unlock the snapshot or
44808
+ # modify the lock settings after locking the snapshot in compliance
44809
+ # mode, in hours. After the cooling-off period expires, you can't
44810
+ # unlock or delete the snapshot, decrease the lock duration, or change
44811
+ # the lock mode. You can increase the lock duration after the
44812
+ # cooling-off period expires.
44813
+ #
44814
+ # The cooling-off period is optional when locking a snapshot in
44815
+ # compliance mode. If you are locking the snapshot in governance mode,
44816
+ # omit this parameter.
44817
+ #
44818
+ # To lock the snapshot in compliance mode immediately without a
44819
+ # cooling-off period, omit this parameter.
44820
+ #
44821
+ # If you are extending the lock duration for a snapshot that is locked
44822
+ # in compliance mode after the cooling-off period has expired, omit
44823
+ # this parameter. If you specify a cooling-period in a such a request,
44824
+ # the request fails.
44825
+ #
44826
+ # Allowed values: Min 1, max 72.
44827
+ # @return [Integer]
44828
+ #
44829
+ # @!attribute [rw] lock_duration
44830
+ # The period of time for which to lock the snapshot, in days. The
44831
+ # snapshot lock will automatically expire after this period lapses.
44832
+ #
44833
+ # You must specify either this parameter or **ExpirationDate**, but
44834
+ # not both.
44835
+ #
44836
+ # Allowed values: Min: 1, max 36500
44837
+ # @return [Integer]
44838
+ #
44839
+ # @!attribute [rw] expiration_date
44840
+ # The date and time at which the snapshot lock is to automatically
44841
+ # expire, in the UTC time zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44842
+ #
44843
+ # You must specify either this parameter or **LockDuration**, but not
44844
+ # both.
44845
+ # @return [Time]
44846
+ #
44847
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LockSnapshotRequest AWS API Documentation
44848
+ #
44849
+ class LockSnapshotRequest < Struct.new(
44850
+ :snapshot_id,
44851
+ :dry_run,
44852
+ :lock_mode,
44853
+ :cool_off_period,
44854
+ :lock_duration,
44855
+ :expiration_date)
44856
+ SENSITIVE = []
44857
+ include Aws::Structure
44858
+ end
44859
+
44860
+ # @!attribute [rw] snapshot_id
44861
+ # The ID of the snapshot
44862
+ # @return [String]
44863
+ #
44864
+ # @!attribute [rw] lock_state
44865
+ # The state of the snapshot lock. Valid states include:
44866
+ #
44867
+ # * `compliance-cooloff` - The snapshot has been locked in compliance
44868
+ # mode but it is still within the cooling-off period. The snapshot
44869
+ # can't be deleted, but it can be unlocked and the lock settings
44870
+ # can be modified by users with appropriate permissions.
44871
+ #
44872
+ # * `governance` - The snapshot is locked in governance mode. The
44873
+ # snapshot can't be deleted, but it can be unlocked and the lock
44874
+ # settings can be modified by users with appropriate permissions.
44875
+ #
44876
+ # * `compliance` - The snapshot is locked in compliance mode and the
44877
+ # cooling-off period has expired. The snapshot can't be unlocked or
44878
+ # deleted. The lock duration can only be increased by users with
44879
+ # appropriate permissions.
44880
+ #
44881
+ # * `expired` - The snapshot was locked in compliance or governance
44882
+ # mode but the lock duration has expired. The snapshot is not locked
44883
+ # and can be deleted.
44884
+ # @return [String]
44885
+ #
44886
+ # @!attribute [rw] lock_duration
44887
+ # The period of time for which the snapshot is locked, in days.
44888
+ # @return [Integer]
44889
+ #
44890
+ # @!attribute [rw] cool_off_period
44891
+ # The compliance mode cooling-off period, in hours.
44892
+ # @return [Integer]
44893
+ #
44894
+ # @!attribute [rw] cool_off_period_expires_on
44895
+ # The date and time at which the compliance mode cooling-off period
44896
+ # expires, in the UTC time zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44897
+ # @return [Time]
44898
+ #
44899
+ # @!attribute [rw] lock_created_on
44900
+ # The date and time at which the snapshot was locked, in the UTC time
44901
+ # zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44902
+ # @return [Time]
44903
+ #
44904
+ # @!attribute [rw] lock_expires_on
44905
+ # The date and time at which the lock will expire, in the UTC time
44906
+ # zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44907
+ # @return [Time]
44908
+ #
44909
+ # @!attribute [rw] lock_duration_start_time
44910
+ # The date and time at which the lock duration started, in the UTC
44911
+ # time zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44912
+ # @return [Time]
44913
+ #
44914
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LockSnapshotResult AWS API Documentation
44915
+ #
44916
+ class LockSnapshotResult < Struct.new(
44917
+ :snapshot_id,
44918
+ :lock_state,
44919
+ :lock_duration,
44920
+ :cool_off_period,
44921
+ :cool_off_period_expires_on,
44922
+ :lock_created_on,
44923
+ :lock_expires_on,
44924
+ :lock_duration_start_time)
44925
+ SENSITIVE = []
44926
+ include Aws::Structure
44927
+ end
44928
+
44929
+ # Information about a locked snapshot.
44930
+ #
44931
+ # @!attribute [rw] owner_id
44932
+ # The account ID of the Amazon Web Services account that owns the
44933
+ # snapshot.
44934
+ # @return [String]
44935
+ #
44936
+ # @!attribute [rw] snapshot_id
44937
+ # The ID of the snapshot.
44938
+ # @return [String]
44939
+ #
44940
+ # @!attribute [rw] lock_state
44941
+ # The state of the snapshot lock. Valid states include:
44942
+ #
44943
+ # * `compliance-cooloff` - The snapshot has been locked in compliance
44944
+ # mode but it is still within the cooling-off period. The snapshot
44945
+ # can't be deleted, but it can be unlocked and the lock settings
44946
+ # can be modified by users with appropriate permissions.
44947
+ #
44948
+ # * `governance` - The snapshot is locked in governance mode. The
44949
+ # snapshot can't be deleted, but it can be unlocked and the lock
44950
+ # settings can be modified by users with appropriate permissions.
44951
+ #
44952
+ # * `compliance` - The snapshot is locked in compliance mode and the
44953
+ # cooling-off period has expired. The snapshot can't be unlocked or
44954
+ # deleted. The lock duration can only be increased by users with
44955
+ # appropriate permissions.
44956
+ #
44957
+ # * `expired` - The snapshot was locked in compliance or governance
44958
+ # mode but the lock duration has expired. The snapshot is not locked
44959
+ # and can be deleted.
44960
+ # @return [String]
44961
+ #
44962
+ # @!attribute [rw] lock_duration
44963
+ # The period of time for which the snapshot is locked, in days.
44964
+ # @return [Integer]
44965
+ #
44966
+ # @!attribute [rw] cool_off_period
44967
+ # The compliance mode cooling-off period, in hours.
44968
+ # @return [Integer]
44969
+ #
44970
+ # @!attribute [rw] cool_off_period_expires_on
44971
+ # The date and time at which the compliance mode cooling-off period
44972
+ # expires, in the UTC time zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44973
+ # @return [Time]
44974
+ #
44975
+ # @!attribute [rw] lock_created_on
44976
+ # The date and time at which the snapshot was locked, in the UTC time
44977
+ # zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44978
+ # @return [Time]
44979
+ #
44980
+ # @!attribute [rw] lock_duration_start_time
44981
+ # The date and time at which the lock duration started, in the UTC
44982
+ # time zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44983
+ #
44984
+ # If you lock a snapshot that is in the `pending` state, the lock
44985
+ # duration starts only once the snapshot enters the `completed` state.
44986
+ # @return [Time]
44987
+ #
44988
+ # @!attribute [rw] lock_expires_on
44989
+ # The date and time at which the lock will expire, in the UTC time
44990
+ # zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
44991
+ # @return [Time]
44992
+ #
44993
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LockedSnapshotsInfo AWS API Documentation
44994
+ #
44995
+ class LockedSnapshotsInfo < Struct.new(
44996
+ :owner_id,
44997
+ :snapshot_id,
44998
+ :lock_state,
44999
+ :lock_duration,
45000
+ :cool_off_period,
45001
+ :cool_off_period_expires_on,
45002
+ :lock_created_on,
45003
+ :lock_duration_start_time,
45004
+ :lock_expires_on)
45005
+ SENSITIVE = []
45006
+ include Aws::Structure
45007
+ end
45008
+
44697
45009
  # Details for Site-to-Site VPN tunnel endpoint maintenance events.
44698
45010
  #
44699
45011
  # @!attribute [rw] pending_maintenance
@@ -63938,6 +64250,38 @@ module Aws::EC2
63938
64250
  include Aws::Structure
63939
64251
  end
63940
64252
 
64253
+ # @!attribute [rw] snapshot_id
64254
+ # The ID of the snapshot to unlock.
64255
+ # @return [String]
64256
+ #
64257
+ # @!attribute [rw] dry_run
64258
+ # Checks whether you have the required permissions for the action,
64259
+ # without actually making the request, and provides an error response.
64260
+ # If you have the required permissions, the error response is
64261
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
64262
+ # @return [Boolean]
64263
+ #
64264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnlockSnapshotRequest AWS API Documentation
64265
+ #
64266
+ class UnlockSnapshotRequest < Struct.new(
64267
+ :snapshot_id,
64268
+ :dry_run)
64269
+ SENSITIVE = []
64270
+ include Aws::Structure
64271
+ end
64272
+
64273
+ # @!attribute [rw] snapshot_id
64274
+ # The ID of the snapshot.
64275
+ # @return [String]
64276
+ #
64277
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnlockSnapshotResult AWS API Documentation
64278
+ #
64279
+ class UnlockSnapshotResult < Struct.new(
64280
+ :snapshot_id)
64281
+ SENSITIVE = []
64282
+ include Aws::Structure
64283
+ end
64284
+
63941
64285
  # @!attribute [rw] instance_ids
63942
64286
  # The IDs of the instances.
63943
64287
  # @return [Array<String>]
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.420.0'
79
+ GEM_VERSION = '1.421.0'
80
80
 
81
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.420.0
4
+ version: 1.421.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: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2023-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4