aws-sdk-kms 1.77.0 → 1.79.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/client.rbs CHANGED
@@ -265,7 +265,8 @@ module Aws
265
265
 
266
266
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#enable_key_rotation-instance_method
267
267
  def enable_key_rotation: (
268
- key_id: ::String
268
+ key_id: ::String,
269
+ ?rotation_period_in_days: ::Integer
269
270
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
270
271
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
271
272
 
@@ -399,17 +400,22 @@ module Aws
399
400
  interface _GetKeyPolicyResponseSuccess
400
401
  include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyPolicyResponse]
401
402
  def policy: () -> ::String
403
+ def policy_name: () -> ::String
402
404
  end
403
405
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_policy-instance_method
404
406
  def get_key_policy: (
405
407
  key_id: ::String,
406
- policy_name: ::String
408
+ ?policy_name: ::String
407
409
  ) -> _GetKeyPolicyResponseSuccess
408
410
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetKeyPolicyResponseSuccess
409
411
 
410
412
  interface _GetKeyRotationStatusResponseSuccess
411
413
  include ::Seahorse::Client::_ResponseSuccess[Types::GetKeyRotationStatusResponse]
412
414
  def key_rotation_enabled: () -> bool
415
+ def key_id: () -> ::String
416
+ def rotation_period_in_days: () -> ::Integer
417
+ def next_rotation_date: () -> ::Time
418
+ def on_demand_rotation_start_date: () -> ::Time
413
419
  end
414
420
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#get_key_rotation_status-instance_method
415
421
  def get_key_rotation_status: (
@@ -506,6 +512,20 @@ module Aws
506
512
  ) -> _ListKeyPoliciesResponseSuccess
507
513
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeyPoliciesResponseSuccess
508
514
 
515
+ interface _ListKeyRotationsResponseSuccess
516
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListKeyRotationsResponse]
517
+ def rotations: () -> ::Array[Types::RotationsListEntry]
518
+ def next_marker: () -> ::String
519
+ def truncated: () -> bool
520
+ end
521
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#list_key_rotations-instance_method
522
+ def list_key_rotations: (
523
+ key_id: ::String,
524
+ ?limit: ::Integer,
525
+ ?marker: ::String
526
+ ) -> _ListKeyRotationsResponseSuccess
527
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListKeyRotationsResponseSuccess
528
+
509
529
  interface _ListKeysResponseSuccess
510
530
  include ::Seahorse::Client::_ResponseSuccess[Types::ListKeysResponse]
511
531
  def keys: () -> ::Array[Types::KeyListEntry]
@@ -550,7 +570,7 @@ module Aws
550
570
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#put_key_policy-instance_method
551
571
  def put_key_policy: (
552
572
  key_id: ::String,
553
- policy_name: ::String,
573
+ ?policy_name: ::String,
554
574
  policy: ::String,
555
575
  ?bypass_policy_lockout_safety_check: bool
556
576
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
@@ -617,6 +637,16 @@ module Aws
617
637
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
618
638
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
619
639
 
640
+ interface _RotateKeyOnDemandResponseSuccess
641
+ include ::Seahorse::Client::_ResponseSuccess[Types::RotateKeyOnDemandResponse]
642
+ def key_id: () -> ::String
643
+ end
644
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KMS/Client.html#rotate_key_on_demand-instance_method
645
+ def rotate_key_on_demand: (
646
+ key_id: ::String
647
+ ) -> _RotateKeyOnDemandResponseSuccess
648
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RotateKeyOnDemandResponseSuccess
649
+
620
650
  interface _ScheduleKeyDeletionResponseSuccess
621
651
  include ::Seahorse::Client::_ResponseSuccess[Types::ScheduleKeyDeletionResponse]
622
652
  def key_id: () -> ::String
data/sig/errors.rbs CHANGED
@@ -29,6 +29,9 @@ module Aws
29
29
  class CloudHsmClusterNotRelatedException < ::Aws::Errors::ServiceError
30
30
  def message: () -> ::String
31
31
  end
32
+ class ConflictException < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
32
35
  class CustomKeyStoreHasCMKsException < ::Aws::Errors::ServiceError
33
36
  def message: () -> ::String
34
37
  end
data/sig/types.rbs CHANGED
@@ -57,6 +57,11 @@ module Aws::KMS
57
57
  SENSITIVE: []
58
58
  end
59
59
 
60
+ class ConflictException
61
+ attr_accessor message: ::String
62
+ SENSITIVE: []
63
+ end
64
+
60
65
  class ConnectCustomKeyStoreRequest
61
66
  attr_accessor custom_key_store_id: ::String
62
67
  SENSITIVE: []
@@ -264,6 +269,7 @@ module Aws::KMS
264
269
 
265
270
  class EnableKeyRotationRequest
266
271
  attr_accessor key_id: ::String
272
+ attr_accessor rotation_period_in_days: ::Integer
267
273
  SENSITIVE: []
268
274
  end
269
275
 
@@ -398,6 +404,7 @@ module Aws::KMS
398
404
 
399
405
  class GetKeyPolicyResponse
400
406
  attr_accessor policy: ::String
407
+ attr_accessor policy_name: ::String
401
408
  SENSITIVE: []
402
409
  end
403
410
 
@@ -408,6 +415,10 @@ module Aws::KMS
408
415
 
409
416
  class GetKeyRotationStatusResponse
410
417
  attr_accessor key_rotation_enabled: bool
418
+ attr_accessor key_id: ::String
419
+ attr_accessor rotation_period_in_days: ::Integer
420
+ attr_accessor next_rotation_date: ::Time
421
+ attr_accessor on_demand_rotation_start_date: ::Time
411
422
  SENSITIVE: []
412
423
  end
413
424
 
@@ -637,6 +648,20 @@ module Aws::KMS
637
648
  SENSITIVE: []
638
649
  end
639
650
 
651
+ class ListKeyRotationsRequest
652
+ attr_accessor key_id: ::String
653
+ attr_accessor limit: ::Integer
654
+ attr_accessor marker: ::String
655
+ SENSITIVE: []
656
+ end
657
+
658
+ class ListKeyRotationsResponse
659
+ attr_accessor rotations: ::Array[Types::RotationsListEntry]
660
+ attr_accessor next_marker: ::String
661
+ attr_accessor truncated: bool
662
+ SENSITIVE: []
663
+ end
664
+
640
665
  class ListKeysRequest
641
666
  attr_accessor limit: ::Integer
642
667
  attr_accessor marker: ::String
@@ -762,6 +787,23 @@ module Aws::KMS
762
787
  SENSITIVE: []
763
788
  end
764
789
 
790
+ class RotateKeyOnDemandRequest
791
+ attr_accessor key_id: ::String
792
+ SENSITIVE: []
793
+ end
794
+
795
+ class RotateKeyOnDemandResponse
796
+ attr_accessor key_id: ::String
797
+ SENSITIVE: []
798
+ end
799
+
800
+ class RotationsListEntry
801
+ attr_accessor key_id: ::String
802
+ attr_accessor rotation_date: ::Time
803
+ attr_accessor rotation_type: ("AUTOMATIC" | "ON_DEMAND")
804
+ SENSITIVE: []
805
+ end
806
+
765
807
  class ScheduleKeyDeletionRequest
766
808
  attr_accessor key_id: ::String
767
809
  attr_accessor pending_window_in_days: ::Integer
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.77.0
4
+ version: 1.79.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: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core