aws-sdk-verifiedpermissions 1.58.0 → 1.60.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7414d4b37b5836682dbe6b4d8c267075716789eca8b4ca558a5e5624fbede811
4
- data.tar.gz: 0d625605203d49f0ace5943fe8dc9591673a8833e7b13a774891973dd28e1890
3
+ metadata.gz: 7c8767d8889bd680826e0ad0d3ecaebe31d03925b05ac3c56af10df551f4c40a
4
+ data.tar.gz: 73a644f8486a8eb83e49906877728893da0f49d7f3ef220ed0ed93576b011c8d
5
5
  SHA512:
6
- metadata.gz: 971d1f6816822b250aa353b2ed701a871a21e8a5c99f86b1c788c00924bdfd0ec17c21fcd5d9061d641aa49c525eb12007579fcbdd5404c913057ad754439a04
7
- data.tar.gz: c53dc617dfc8c69c8cd2298bc04eb83434d45ecabc9933cd5f3d02fab4df2cf3d13c97d1e9705b96f40dc9af6c630810624f5512de0161442987e2e2d9196ab3
6
+ metadata.gz: f90aee36d7c4afd5c01aba2e601bea8c361de9c35456626104c47cad5225c1a521b51ab5c300cdb363c67e216a008e9f35971c5d8c7c1a6b871fb51a53d4c633
7
+ data.tar.gz: 314751fae11b179274a585a7444890b50294c70760981fbe83270ec0ef3b6351f812e4c1fbac106ee664f77c8d0ded99dc5b52ad95e6d923a9d6b9015160331e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.60.0 (2026-01-20)
5
+ ------------------
6
+
7
+ * Feature - Amazon Verified Permissions now supports encryption of resources by a customer managed KMS key. Customers can now create new encrypted policy stores by passing in their customer managed key during policy store creation.
8
+
9
+ 1.59.0 (2026-01-16)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.58.0 (2026-01-08)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.58.0
1
+ 1.60.0
@@ -1716,6 +1716,14 @@ module Aws::VerifiedPermissions
1716
1716
  #
1717
1717
  # The default state is `DISABLED`.
1718
1718
  #
1719
+ # @option params [Types::EncryptionSettings] :encryption_settings
1720
+ # Specifies the encryption settings used to encrypt the policy store and
1721
+ # their child resources. Allows for the ability to use a customer owned
1722
+ # KMS key for encryption of data.
1723
+ #
1724
+ # This is an optional field to be used when providing a customer-managed
1725
+ # KMS key for encryption.
1726
+ #
1719
1727
  # @option params [Hash<String,String>] :tags
1720
1728
  # The list of key-value pairs to associate with the policy store.
1721
1729
  #
@@ -1746,6 +1754,33 @@ module Aws::VerifiedPermissions
1746
1754
  # policy_store_id: "C7v5xMplfFH3i3e4Jrzb1a",
1747
1755
  # }
1748
1756
  #
1757
+ # @example Example: To create an encrypted policy store
1758
+ #
1759
+ # # The following example creates a new policy store with encryption settings based on a provided KMS key.
1760
+ #
1761
+ # resp = client.create_policy_store({
1762
+ # client_token: "a1b2c3d4-e5f6-a1b2-c3d4-TOKEN1111111",
1763
+ # encryption_settings: {
1764
+ # kms_encryption_settings: {
1765
+ # key: "arn:aws:kms:us-east-1:123456789012:key/abcdefgh-ijkl-mnop-qrst-uvwxyz123456",
1766
+ # encryption_context: {
1767
+ # "policy_store_owner" => "Tim",
1768
+ # },
1769
+ # },
1770
+ # },
1771
+ # validation_settings: {
1772
+ # mode: "STRICT",
1773
+ # },
1774
+ # })
1775
+ #
1776
+ # resp.to_h outputs the following:
1777
+ # {
1778
+ # arn: "arn:aws:verifiedpermissions::123456789012:policy-store/C7v5xMplfFH3i3e4Jrzb1a",
1779
+ # created_date: Time.parse("2024-08-12T18:20:50.99Z"),
1780
+ # last_updated_date: Time.parse("2024-08-12T18:20:50.99Z"),
1781
+ # policy_store_id: "C7v5xMplfFH3i3e4Jrzb1a",
1782
+ # }
1783
+ #
1749
1784
  # @example Request syntax with placeholder values
1750
1785
  #
1751
1786
  # resp = client.create_policy_store({
@@ -1755,6 +1790,16 @@ module Aws::VerifiedPermissions
1755
1790
  # },
1756
1791
  # description: "PolicyStoreDescription",
1757
1792
  # deletion_protection: "ENABLED", # accepts ENABLED, DISABLED
1793
+ # encryption_settings: {
1794
+ # kms_encryption_settings: {
1795
+ # key: "KmsKey", # required
1796
+ # encryption_context: {
1797
+ # "EncryptionContextKey" => "EncryptionContextValue",
1798
+ # },
1799
+ # },
1800
+ # default: {
1801
+ # },
1802
+ # },
1758
1803
  # tags: {
1759
1804
  # "TagKey" => "TagValue",
1760
1805
  # },
@@ -2268,6 +2313,7 @@ module Aws::VerifiedPermissions
2268
2313
  # * {Types::GetPolicyStoreOutput#last_updated_date #last_updated_date} => Time
2269
2314
  # * {Types::GetPolicyStoreOutput#description #description} => String
2270
2315
  # * {Types::GetPolicyStoreOutput#deletion_protection #deletion_protection} => String
2316
+ # * {Types::GetPolicyStoreOutput#encryption_state #encryption_state} => Types::EncryptionState
2271
2317
  # * {Types::GetPolicyStoreOutput#cedar_version #cedar_version} => String
2272
2318
  # * {Types::GetPolicyStoreOutput#tags #tags} => Hash&lt;String,String&gt;
2273
2319
  #
@@ -2284,6 +2330,37 @@ module Aws::VerifiedPermissions
2284
2330
  # {
2285
2331
  # arn: "arn:aws:verifiedpermissions::123456789012:policy-store/C7v5xMplfFH3i3e4Jrzb1a",
2286
2332
  # created_date: Time.parse("2024-08-12T18:20:50.99Z"),
2333
+ # encryption_state: {
2334
+ # default: {
2335
+ # },
2336
+ # },
2337
+ # last_updated_date: Time.parse("2024-08-12T18:20:50.99Z"),
2338
+ # policy_store_id: "C7v5xMplfFH3i3e4Jrzb1a",
2339
+ # validation_settings: {
2340
+ # mode: "STRICT",
2341
+ # },
2342
+ # }
2343
+ #
2344
+ # @example Example: GetPolicyStore that is encrypted
2345
+ #
2346
+ # # The following example retrieves details about the specified encrypted policy store.
2347
+ #
2348
+ # resp = client.get_policy_store({
2349
+ # policy_store_id: "C7v5xMplfFH3i3e4Jrzb1a",
2350
+ # })
2351
+ #
2352
+ # resp.to_h outputs the following:
2353
+ # {
2354
+ # arn: "arn:aws:verifiedpermissions::123456789012:policy-store/C7v5xMplfFH3i3e4Jrzb1a",
2355
+ # created_date: Time.parse("2024-08-12T18:20:50.99Z"),
2356
+ # encryption_state: {
2357
+ # kms_encryption_state: {
2358
+ # key: "arn:aws:kms:us-east-1:123456789012:key/abcdefgh-ijkl-mnop-qrst-uvwxyz123456",
2359
+ # encryption_context: {
2360
+ # "policy_store_owner" => "Tim",
2361
+ # },
2362
+ # },
2363
+ # },
2287
2364
  # last_updated_date: Time.parse("2024-08-12T18:20:50.99Z"),
2288
2365
  # policy_store_id: "C7v5xMplfFH3i3e4Jrzb1a",
2289
2366
  # validation_settings: {
@@ -2307,6 +2384,9 @@ module Aws::VerifiedPermissions
2307
2384
  # resp.last_updated_date #=> Time
2308
2385
  # resp.description #=> String
2309
2386
  # resp.deletion_protection #=> String, one of "ENABLED", "DISABLED"
2387
+ # resp.encryption_state.kms_encryption_state.key #=> String
2388
+ # resp.encryption_state.kms_encryption_state.encryption_context #=> Hash
2389
+ # resp.encryption_state.kms_encryption_state.encryption_context["EncryptionContextKey"] #=> String
2310
2390
  # resp.cedar_version #=> String, one of "CEDAR_2", "CEDAR_4"
2311
2391
  # resp.tags #=> Hash
2312
2392
  # resp.tags["TagKey"] #=> String
@@ -3807,7 +3887,7 @@ module Aws::VerifiedPermissions
3807
3887
  #
3808
3888
  # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListPolicies.html
3809
3889
  #
3810
- # @option params [required, Types::UpdatePolicyDefinition] :definition
3890
+ # @option params [Types::UpdatePolicyDefinition] :definition
3811
3891
  # Specifies the updated policy content that you want to replace on the
3812
3892
  # specified policy. The content must be valid Cedar policy language
3813
3893
  # text.
@@ -3873,7 +3953,7 @@ module Aws::VerifiedPermissions
3873
3953
  # resp = client.update_policy({
3874
3954
  # policy_store_id: "PolicyStoreId", # required
3875
3955
  # policy_id: "PolicyId", # required
3876
- # definition: { # required
3956
+ # definition: {
3877
3957
  # static: {
3878
3958
  # description: "StaticPolicyDescription",
3879
3959
  # statement: "PolicyStatement", # required
@@ -4114,7 +4194,7 @@ module Aws::VerifiedPermissions
4114
4194
  tracer: tracer
4115
4195
  )
4116
4196
  context[:gem_name] = 'aws-sdk-verifiedpermissions'
4117
- context[:gem_version] = '1.58.0'
4197
+ context[:gem_version] = '1.60.0'
4118
4198
  Seahorse::Client::Request.new(handlers, context)
4119
4199
  end
4120
4200
 
@@ -90,6 +90,11 @@ module Aws::VerifiedPermissions
90
90
  DeterminingPolicyList = Shapes::ListShape.new(name: 'DeterminingPolicyList')
91
91
  DiscoveryUrl = Shapes::StringShape.new(name: 'DiscoveryUrl')
92
92
  Duration = Shapes::StringShape.new(name: 'Duration')
93
+ EncryptionContext = Shapes::MapShape.new(name: 'EncryptionContext')
94
+ EncryptionContextKey = Shapes::StringShape.new(name: 'EncryptionContextKey')
95
+ EncryptionContextValue = Shapes::StringShape.new(name: 'EncryptionContextValue')
96
+ EncryptionSettings = Shapes::UnionShape.new(name: 'EncryptionSettings')
97
+ EncryptionState = Shapes::UnionShape.new(name: 'EncryptionState')
93
98
  EntitiesDefinition = Shapes::UnionShape.new(name: 'EntitiesDefinition')
94
99
  EntityAttributes = Shapes::MapShape.new(name: 'EntityAttributes')
95
100
  EntityCedarTags = Shapes::MapShape.new(name: 'EntityCedarTags')
@@ -129,6 +134,9 @@ module Aws::VerifiedPermissions
129
134
  IsAuthorizedWithTokenInput = Shapes::StructureShape.new(name: 'IsAuthorizedWithTokenInput')
130
135
  IsAuthorizedWithTokenOutput = Shapes::StructureShape.new(name: 'IsAuthorizedWithTokenOutput')
131
136
  Issuer = Shapes::StringShape.new(name: 'Issuer')
137
+ KmsEncryptionSettings = Shapes::StructureShape.new(name: 'KmsEncryptionSettings')
138
+ KmsEncryptionState = Shapes::StructureShape.new(name: 'KmsEncryptionState')
139
+ KmsKey = Shapes::StringShape.new(name: 'KmsKey')
132
140
  ListIdentitySourcesInput = Shapes::StructureShape.new(name: 'ListIdentitySourcesInput')
133
141
  ListIdentitySourcesMaxResults = Shapes::IntegerShape.new(name: 'ListIdentitySourcesMaxResults')
134
142
  ListIdentitySourcesOutput = Shapes::StructureShape.new(name: 'ListIdentitySourcesOutput')
@@ -212,6 +220,7 @@ module Aws::VerifiedPermissions
212
220
  TimestampFormat = Shapes::TimestampShape.new(name: 'TimestampFormat', timestampFormat: "iso8601")
213
221
  Token = Shapes::StringShape.new(name: 'Token')
214
222
  TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
223
+ Unit = Shapes::StructureShape.new(name: 'Unit')
215
224
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
216
225
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
217
226
  UpdateCognitoGroupConfiguration = Shapes::StructureShape.new(name: 'UpdateCognitoGroupConfiguration')
@@ -483,6 +492,7 @@ module Aws::VerifiedPermissions
483
492
  CreatePolicyStoreInput.add_member(:validation_settings, Shapes::ShapeRef.new(shape: ValidationSettings, required: true, location_name: "validationSettings"))
484
493
  CreatePolicyStoreInput.add_member(:description, Shapes::ShapeRef.new(shape: PolicyStoreDescription, location_name: "description"))
485
494
  CreatePolicyStoreInput.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "deletionProtection"))
495
+ CreatePolicyStoreInput.add_member(:encryption_settings, Shapes::ShapeRef.new(shape: EncryptionSettings, location_name: "encryptionSettings"))
486
496
  CreatePolicyStoreInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
487
497
  CreatePolicyStoreInput.struct_class = Types::CreatePolicyStoreInput
488
498
 
@@ -532,6 +542,25 @@ module Aws::VerifiedPermissions
532
542
 
533
543
  DeterminingPolicyList.member = Shapes::ShapeRef.new(shape: DeterminingPolicyItem)
534
544
 
545
+ EncryptionContext.key = Shapes::ShapeRef.new(shape: EncryptionContextKey)
546
+ EncryptionContext.value = Shapes::ShapeRef.new(shape: EncryptionContextValue)
547
+
548
+ EncryptionSettings.add_member(:kms_encryption_settings, Shapes::ShapeRef.new(shape: KmsEncryptionSettings, location_name: "kmsEncryptionSettings"))
549
+ EncryptionSettings.add_member(:default, Shapes::ShapeRef.new(shape: Unit, location_name: "default"))
550
+ EncryptionSettings.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
551
+ EncryptionSettings.add_member_subclass(:kms_encryption_settings, Types::EncryptionSettings::KmsEncryptionSettings)
552
+ EncryptionSettings.add_member_subclass(:default, Types::EncryptionSettings::Default)
553
+ EncryptionSettings.add_member_subclass(:unknown, Types::EncryptionSettings::Unknown)
554
+ EncryptionSettings.struct_class = Types::EncryptionSettings
555
+
556
+ EncryptionState.add_member(:kms_encryption_state, Shapes::ShapeRef.new(shape: KmsEncryptionState, location_name: "kmsEncryptionState"))
557
+ EncryptionState.add_member(:default, Shapes::ShapeRef.new(shape: Unit, location_name: "default"))
558
+ EncryptionState.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
559
+ EncryptionState.add_member_subclass(:kms_encryption_state, Types::EncryptionState::KmsEncryptionState)
560
+ EncryptionState.add_member_subclass(:default, Types::EncryptionState::Default)
561
+ EncryptionState.add_member_subclass(:unknown, Types::EncryptionState::Unknown)
562
+ EncryptionState.struct_class = Types::EncryptionState
563
+
535
564
  EntitiesDefinition.add_member(:entity_list, Shapes::ShapeRef.new(shape: EntityList, location_name: "entityList"))
536
565
  EntitiesDefinition.add_member(:cedar_json, Shapes::ShapeRef.new(shape: CedarJson, location_name: "cedarJson"))
537
566
  EntitiesDefinition.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
@@ -611,6 +640,7 @@ module Aws::VerifiedPermissions
611
640
  GetPolicyStoreOutput.add_member(:last_updated_date, Shapes::ShapeRef.new(shape: TimestampFormat, required: true, location_name: "lastUpdatedDate"))
612
641
  GetPolicyStoreOutput.add_member(:description, Shapes::ShapeRef.new(shape: PolicyStoreDescription, location_name: "description"))
613
642
  GetPolicyStoreOutput.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "deletionProtection"))
643
+ GetPolicyStoreOutput.add_member(:encryption_state, Shapes::ShapeRef.new(shape: EncryptionState, location_name: "encryptionState"))
614
644
  GetPolicyStoreOutput.add_member(:cedar_version, Shapes::ShapeRef.new(shape: CedarVersion, location_name: "cedarVersion"))
615
645
  GetPolicyStoreOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
616
646
  GetPolicyStoreOutput.struct_class = Types::GetPolicyStoreOutput
@@ -699,6 +729,14 @@ module Aws::VerifiedPermissions
699
729
  IsAuthorizedWithTokenOutput.add_member(:principal, Shapes::ShapeRef.new(shape: EntityIdentifier, location_name: "principal"))
700
730
  IsAuthorizedWithTokenOutput.struct_class = Types::IsAuthorizedWithTokenOutput
701
731
 
732
+ KmsEncryptionSettings.add_member(:key, Shapes::ShapeRef.new(shape: KmsKey, required: true, location_name: "key"))
733
+ KmsEncryptionSettings.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContext, location_name: "encryptionContext"))
734
+ KmsEncryptionSettings.struct_class = Types::KmsEncryptionSettings
735
+
736
+ KmsEncryptionState.add_member(:key, Shapes::ShapeRef.new(shape: KmsKey, required: true, location_name: "key"))
737
+ KmsEncryptionState.add_member(:encryption_context, Shapes::ShapeRef.new(shape: EncryptionContext, required: true, location_name: "encryptionContext"))
738
+ KmsEncryptionState.struct_class = Types::KmsEncryptionState
739
+
702
740
  ListIdentitySourcesInput.add_member(:policy_store_id, Shapes::ShapeRef.new(shape: PolicyStoreId, required: true, location_name: "policyStoreId"))
703
741
  ListIdentitySourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
704
742
  ListIdentitySourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListIdentitySourcesMaxResults, location_name: "maxResults"))
@@ -971,6 +1009,8 @@ module Aws::VerifiedPermissions
971
1009
  TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "resourceName"))
972
1010
  TooManyTagsException.struct_class = Types::TooManyTagsException
973
1011
 
1012
+ Unit.struct_class = Types::Unit
1013
+
974
1014
  UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "resourceArn"))
975
1015
  UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
976
1016
  UntagResourceInput.struct_class = Types::UntagResourceInput
@@ -1039,7 +1079,7 @@ module Aws::VerifiedPermissions
1039
1079
 
1040
1080
  UpdatePolicyInput.add_member(:policy_store_id, Shapes::ShapeRef.new(shape: PolicyStoreId, required: true, location_name: "policyStoreId"))
1041
1081
  UpdatePolicyInput.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "policyId"))
1042
- UpdatePolicyInput.add_member(:definition, Shapes::ShapeRef.new(shape: UpdatePolicyDefinition, required: true, location_name: "definition"))
1082
+ UpdatePolicyInput.add_member(:definition, Shapes::ShapeRef.new(shape: UpdatePolicyDefinition, location_name: "definition"))
1043
1083
  UpdatePolicyInput.struct_class = Types::UpdatePolicyInput
1044
1084
 
1045
1085
  UpdatePolicyOutput.add_member(:policy_store_id, Shapes::ShapeRef.new(shape: PolicyStoreId, required: true, location_name: "policyStoreId"))
@@ -1485,6 +1485,15 @@ module Aws::VerifiedPermissions
1485
1485
  # The default state is `DISABLED`.
1486
1486
  # @return [String]
1487
1487
  #
1488
+ # @!attribute [rw] encryption_settings
1489
+ # Specifies the encryption settings used to encrypt the policy store
1490
+ # and their child resources. Allows for the ability to use a customer
1491
+ # owned KMS key for encryption of data.
1492
+ #
1493
+ # This is an optional field to be used when providing a
1494
+ # customer-managed KMS key for encryption.
1495
+ # @return [Types::EncryptionSettings]
1496
+ #
1488
1497
  # @!attribute [rw] tags
1489
1498
  # The list of key-value pairs to associate with the policy store.
1490
1499
  # @return [Hash<String,String>]
@@ -1496,6 +1505,7 @@ module Aws::VerifiedPermissions
1496
1505
  :validation_settings,
1497
1506
  :description,
1498
1507
  :deletion_protection,
1508
+ :encryption_settings,
1499
1509
  :tags)
1500
1510
  SENSITIVE = [:description]
1501
1511
  include Aws::Structure
@@ -1719,6 +1729,80 @@ module Aws::VerifiedPermissions
1719
1729
  include Aws::Structure
1720
1730
  end
1721
1731
 
1732
+ # A structure that contains the encryption configuration for the policy
1733
+ # store and child resources.
1734
+ #
1735
+ # This data type is used as a request parameter in the
1736
+ # [CreatePolicyStore][1] operation.
1737
+ #
1738
+ #
1739
+ #
1740
+ # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicyStore.html
1741
+ #
1742
+ # @note EncryptionSettings is a union - when making an API calls you must set exactly one of the members.
1743
+ #
1744
+ # @!attribute [rw] kms_encryption_settings
1745
+ # The KMS encryption settings for this policy store to encrypt data
1746
+ # with. It will contain the customer-managed KMS key, and a
1747
+ # user-defined encryption context.
1748
+ # @return [Types::KmsEncryptionSettings]
1749
+ #
1750
+ # @!attribute [rw] default
1751
+ # Use AWS owned encryption keys for encrypting policy store data.
1752
+ # @return [Types::Unit]
1753
+ #
1754
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/EncryptionSettings AWS API Documentation
1755
+ #
1756
+ class EncryptionSettings < Struct.new(
1757
+ :kms_encryption_settings,
1758
+ :default,
1759
+ :unknown)
1760
+ SENSITIVE = []
1761
+ include Aws::Structure
1762
+ include Aws::Structure::Union
1763
+
1764
+ class KmsEncryptionSettings < EncryptionSettings; end
1765
+ class Default < EncryptionSettings; end
1766
+ class Unknown < EncryptionSettings; end
1767
+ end
1768
+
1769
+ # A structure that contains the encryption configuration for the policy
1770
+ # store and child resources.
1771
+ #
1772
+ # This data type is used as a response parameter field for the
1773
+ # [GetPolicyStore][1] operation.
1774
+ #
1775
+ #
1776
+ #
1777
+ # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetPolicyStore.html
1778
+ #
1779
+ # @note EncryptionState is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of EncryptionState corresponding to the set member.
1780
+ #
1781
+ # @!attribute [rw] kms_encryption_state
1782
+ # The KMS encryption settings currently configured for this policy
1783
+ # store to encrypt data with. It contains the customer-managed KMS
1784
+ # key, and a user-defined encryption context.
1785
+ # @return [Types::KmsEncryptionState]
1786
+ #
1787
+ # @!attribute [rw] default
1788
+ # Policy store data is encrypted using AWS owned encryption keys.
1789
+ # @return [Types::Unit]
1790
+ #
1791
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/EncryptionState AWS API Documentation
1792
+ #
1793
+ class EncryptionState < Struct.new(
1794
+ :kms_encryption_state,
1795
+ :default,
1796
+ :unknown)
1797
+ SENSITIVE = []
1798
+ include Aws::Structure
1799
+ include Aws::Structure::Union
1800
+
1801
+ class KmsEncryptionState < EncryptionState; end
1802
+ class Default < EncryptionState; end
1803
+ class Unknown < EncryptionState; end
1804
+ end
1805
+
1722
1806
  # Contains the list of entities to be considered during an authorization
1723
1807
  # request. This includes all principals, resources, and actions required
1724
1808
  # to successfully evaluate the request.
@@ -2119,6 +2203,11 @@ module Aws::VerifiedPermissions
2119
2203
  # The default state is `DISABLED`.
2120
2204
  # @return [String]
2121
2205
  #
2206
+ # @!attribute [rw] encryption_state
2207
+ # A structure that contains the encryption configuration for the
2208
+ # policy store.
2209
+ # @return [Types::EncryptionState]
2210
+ #
2122
2211
  # @!attribute [rw] cedar_version
2123
2212
  # The version of the Cedar language used with policies, policy
2124
2213
  # templates, and schemas in this policy store. For more information,
@@ -2143,6 +2232,7 @@ module Aws::VerifiedPermissions
2143
2232
  :last_updated_date,
2144
2233
  :description,
2145
2234
  :deletion_protection,
2235
+ :encryption_state,
2146
2236
  :cedar_version,
2147
2237
  :tags)
2148
2238
  SENSITIVE = [:description]
@@ -2653,6 +2743,81 @@ module Aws::VerifiedPermissions
2653
2743
  include Aws::Structure
2654
2744
  end
2655
2745
 
2746
+ # A structure that contains the KMS encryption configuration for the
2747
+ # policy store. The encryption settings determine what customer-managed
2748
+ # KMS key will be used to encrypt all resources within the policy store,
2749
+ # and any user-defined context key-value pairs to append during
2750
+ # encryption processes.
2751
+ #
2752
+ # This data type is used as a field that is part of the
2753
+ # [EncryptionSettings][1] type.
2754
+ #
2755
+ #
2756
+ #
2757
+ # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_EncryptionSettings.html
2758
+ #
2759
+ # @!attribute [rw] key
2760
+ # The customer-managed KMS key [Amazon Resource Name (ARN)][1], alias
2761
+ # or ID to be used for encryption processes.
2762
+ #
2763
+ # Users can provide the full KMS key ARN, a KMS key alias, or a KMS
2764
+ # key ID, but it will be mapped to the full KMS key ARN after policy
2765
+ # store creation, and referenced when encrypting child resources.
2766
+ #
2767
+ #
2768
+ #
2769
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2770
+ # @return [String]
2771
+ #
2772
+ # @!attribute [rw] encryption_context
2773
+ # User-defined, additional context to be added to encryption
2774
+ # processes.
2775
+ # @return [Hash<String,String>]
2776
+ #
2777
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/KmsEncryptionSettings AWS API Documentation
2778
+ #
2779
+ class KmsEncryptionSettings < Struct.new(
2780
+ :key,
2781
+ :encryption_context)
2782
+ SENSITIVE = []
2783
+ include Aws::Structure
2784
+ end
2785
+
2786
+ # A structure that contains the KMS encryption configuration for the
2787
+ # policy store. The encryption state shows what customer-managed KMS key
2788
+ # is being used to encrypt all resources within the policy store, and
2789
+ # any user-defined context key-value pairs added during encryption
2790
+ # processes.
2791
+ #
2792
+ # This data type is used as a field that is part of the
2793
+ # [EncryptionState][1] type.
2794
+ #
2795
+ #
2796
+ #
2797
+ # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_EncryptionState.html
2798
+ #
2799
+ # @!attribute [rw] key
2800
+ # The customer-managed KMS key [Amazon Resource Name (ARN)][1] being
2801
+ # used for encryption processes.
2802
+ #
2803
+ #
2804
+ #
2805
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2806
+ # @return [String]
2807
+ #
2808
+ # @!attribute [rw] encryption_context
2809
+ # User-defined, additional context added to encryption processes.
2810
+ # @return [Hash<String,String>]
2811
+ #
2812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/KmsEncryptionState AWS API Documentation
2813
+ #
2814
+ class KmsEncryptionState < Struct.new(
2815
+ :key,
2816
+ :encryption_context)
2817
+ SENSITIVE = []
2818
+ include Aws::Structure
2819
+ end
2820
+
2656
2821
  # @!attribute [rw] policy_store_id
2657
2822
  # Specifies the ID of the policy store that contains the identity
2658
2823
  # sources that you want to list.
@@ -4220,6 +4385,12 @@ module Aws::VerifiedPermissions
4220
4385
  include Aws::Structure
4221
4386
  end
4222
4387
 
4388
+ # @api private
4389
+ #
4390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/Unit AWS API Documentation
4391
+ #
4392
+ class Unit < Aws::EmptyStructure; end
4393
+
4223
4394
  # @!attribute [rw] resource_arn
4224
4395
  # The ARN of the resource from which you are removing tags.
4225
4396
  # @return [String]
@@ -55,7 +55,7 @@ module Aws::VerifiedPermissions
55
55
  autoload :EndpointProvider, 'aws-sdk-verifiedpermissions/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-verifiedpermissions/endpoints'
57
57
 
58
- GEM_VERSION = '1.58.0'
58
+ GEM_VERSION = '1.60.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -317,6 +317,14 @@ module Aws
317
317
  },
318
318
  ?description: ::String,
319
319
  ?deletion_protection: ("ENABLED" | "DISABLED"),
320
+ ?encryption_settings: {
321
+ kms_encryption_settings: {
322
+ key: ::String,
323
+ encryption_context: Hash[::String, ::String]?
324
+ }?,
325
+ default: {
326
+ }?
327
+ },
320
328
  ?tags: Hash[::String, ::String]
321
329
  ) -> _CreatePolicyStoreResponseSuccess
322
330
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePolicyStoreResponseSuccess
@@ -422,6 +430,7 @@ module Aws
422
430
  def last_updated_date: () -> ::Time
423
431
  def description: () -> ::String
424
432
  def deletion_protection: () -> ("ENABLED" | "DISABLED")
433
+ def encryption_state: () -> Types::EncryptionState
425
434
  def cedar_version: () -> ("CEDAR_2" | "CEDAR_4")
426
435
  def tags: () -> ::Hash[::String, ::String]
427
436
  end
@@ -765,7 +774,7 @@ module Aws
765
774
  def update_policy: (
766
775
  policy_store_id: ::String,
767
776
  policy_id: ::String,
768
- definition: {
777
+ ?definition: {
769
778
  static: {
770
779
  description: ::String?,
771
780
  statement: ::String
data/sig/types.rbs CHANGED
@@ -329,6 +329,7 @@ module Aws::VerifiedPermissions
329
329
  attr_accessor validation_settings: Types::ValidationSettings
330
330
  attr_accessor description: ::String
331
331
  attr_accessor deletion_protection: ("ENABLED" | "DISABLED")
332
+ attr_accessor encryption_settings: Types::EncryptionSettings
332
333
  attr_accessor tags: ::Hash[::String, ::String]
333
334
  SENSITIVE: [:description]
334
335
  end
@@ -397,6 +398,34 @@ module Aws::VerifiedPermissions
397
398
  SENSITIVE: []
398
399
  end
399
400
 
401
+ class EncryptionSettings
402
+ attr_accessor kms_encryption_settings: Types::KmsEncryptionSettings
403
+ attr_accessor default: Types::Unit
404
+ attr_accessor unknown: untyped
405
+ SENSITIVE: []
406
+
407
+ class KmsEncryptionSettings < EncryptionSettings
408
+ end
409
+ class Default < EncryptionSettings
410
+ end
411
+ class Unknown < EncryptionSettings
412
+ end
413
+ end
414
+
415
+ class EncryptionState
416
+ attr_accessor kms_encryption_state: Types::KmsEncryptionState
417
+ attr_accessor default: Types::Unit
418
+ attr_accessor unknown: untyped
419
+ SENSITIVE: []
420
+
421
+ class KmsEncryptionState < EncryptionState
422
+ end
423
+ class Default < EncryptionState
424
+ end
425
+ class Unknown < EncryptionState
426
+ end
427
+ end
428
+
400
429
  class EntitiesDefinition
401
430
  attr_accessor entity_list: ::Array[Types::EntityItem]
402
431
  attr_accessor cedar_json: ::String
@@ -495,6 +524,7 @@ module Aws::VerifiedPermissions
495
524
  attr_accessor last_updated_date: ::Time
496
525
  attr_accessor description: ::String
497
526
  attr_accessor deletion_protection: ("ENABLED" | "DISABLED")
527
+ attr_accessor encryption_state: Types::EncryptionState
498
528
  attr_accessor cedar_version: ("CEDAR_2" | "CEDAR_4")
499
529
  attr_accessor tags: ::Hash[::String, ::String]
500
530
  SENSITIVE: [:description]
@@ -608,6 +638,18 @@ module Aws::VerifiedPermissions
608
638
  SENSITIVE: []
609
639
  end
610
640
 
641
+ class KmsEncryptionSettings
642
+ attr_accessor key: ::String
643
+ attr_accessor encryption_context: ::Hash[::String, ::String]
644
+ SENSITIVE: []
645
+ end
646
+
647
+ class KmsEncryptionState
648
+ attr_accessor key: ::String
649
+ attr_accessor encryption_context: ::Hash[::String, ::String]
650
+ SENSITIVE: []
651
+ end
652
+
611
653
  class ListIdentitySourcesInput
612
654
  attr_accessor policy_store_id: ::String
613
655
  attr_accessor next_token: ::String
@@ -980,6 +1022,9 @@ module Aws::VerifiedPermissions
980
1022
  SENSITIVE: []
981
1023
  end
982
1024
 
1025
+ class Unit < Aws::EmptyStructure
1026
+ end
1027
+
983
1028
  class UntagResourceInput
984
1029
  attr_accessor resource_arn: ::String
985
1030
  attr_accessor tag_keys: ::Array[::String]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-verifiedpermissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.58.0
4
+ version: 1.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.241.3
21
+ version: 3.241.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.241.3
31
+ version: 3.241.4
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement