aws-sdk-verifiedpermissions 1.59.0 → 1.61.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: b51c114131935530e6f7487064d9fbdc4ede768b7c238087777173181a2ac3ca
4
- data.tar.gz: 0da1f4ea5c942a1d5ea8893fa54a952f366af5705ab1000761fbe5103e93473d
3
+ metadata.gz: 6d7062d0ef46aeb0cb74340bf6476f1f1fdfcdcd4ed1680a4186bf41a75532e5
4
+ data.tar.gz: 5b26e5080175ef9c35758eca7365cdddbac4b8505e9abad5168d89058d392a23
5
5
  SHA512:
6
- metadata.gz: e53bfd5bddbad02652ea974785281711ec79d25b24e6442f7b9837babcf8e93a8d268cde7b2590d6e440aff8a045e18b5c57096e9e54b973645eeb32bfa9cc01
7
- data.tar.gz: f990bf9087b072176dfbde66b104e0ede8d87b793c1df8b9f84cb953f7cf8ee58e3d1d642f1a94a1e2d375dafc6fb406b8fcdcdd5a589eb04ee63bf7a4d785de
6
+ metadata.gz: 1fd9eaa372df351052ad251a8327685bad3f462b8e71400d73297606009275de38c7f5c922708062e28d2de991139a1e919b4df9e57a4c690c7376829e6f4e38
7
+ data.tar.gz: 99c90ee2370a94836262643441cf84e4acf157da39f903edd226a2e69ce7a4f24ad99cb10ffedf817c9072c49782015111a3abbc0efd8158f6386bdc65f2d1f8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.61.0 (2026-01-22)
5
+ ------------------
6
+
7
+ * Feature - Adding documentation to user guide and API documentation for how customers can create new encrypted policy stores by passing in their customer managed key during policy store creation.
8
+
9
+ 1.60.0 (2026-01-20)
10
+ ------------------
11
+
12
+ * 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.
13
+
4
14
  1.59.0 (2026-01-16)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.59.0
1
+ 1.61.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.59.0'
4197
+ context[:gem_version] = '1.61.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,82 @@ 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
+ # This is the default encryption setting. The policy store uses an
1752
+ # Amazon Web Services owned key for encrypting data.
1753
+ # @return [Types::Unit]
1754
+ #
1755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/EncryptionSettings AWS API Documentation
1756
+ #
1757
+ class EncryptionSettings < Struct.new(
1758
+ :kms_encryption_settings,
1759
+ :default,
1760
+ :unknown)
1761
+ SENSITIVE = []
1762
+ include Aws::Structure
1763
+ include Aws::Structure::Union
1764
+
1765
+ class KmsEncryptionSettings < EncryptionSettings; end
1766
+ class Default < EncryptionSettings; end
1767
+ class Unknown < EncryptionSettings; end
1768
+ end
1769
+
1770
+ # A structure that contains the encryption configuration for the policy
1771
+ # store and child resources.
1772
+ #
1773
+ # This data type is used as a response parameter field for the
1774
+ # [GetPolicyStore][1] operation.
1775
+ #
1776
+ #
1777
+ #
1778
+ # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetPolicyStore.html
1779
+ #
1780
+ # @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.
1781
+ #
1782
+ # @!attribute [rw] kms_encryption_state
1783
+ # The KMS encryption settings currently configured for this policy
1784
+ # store to encrypt data with. It contains the customer-managed KMS
1785
+ # key, and a user-defined encryption context.
1786
+ # @return [Types::KmsEncryptionState]
1787
+ #
1788
+ # @!attribute [rw] default
1789
+ # This is the default encryption state. The policy store is encrypted
1790
+ # using an Amazon Web Services owned key.
1791
+ # @return [Types::Unit]
1792
+ #
1793
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/EncryptionState AWS API Documentation
1794
+ #
1795
+ class EncryptionState < Struct.new(
1796
+ :kms_encryption_state,
1797
+ :default,
1798
+ :unknown)
1799
+ SENSITIVE = []
1800
+ include Aws::Structure
1801
+ include Aws::Structure::Union
1802
+
1803
+ class KmsEncryptionState < EncryptionState; end
1804
+ class Default < EncryptionState; end
1805
+ class Unknown < EncryptionState; end
1806
+ end
1807
+
1722
1808
  # Contains the list of entities to be considered during an authorization
1723
1809
  # request. This includes all principals, resources, and actions required
1724
1810
  # to successfully evaluate the request.
@@ -2119,6 +2205,11 @@ module Aws::VerifiedPermissions
2119
2205
  # The default state is `DISABLED`.
2120
2206
  # @return [String]
2121
2207
  #
2208
+ # @!attribute [rw] encryption_state
2209
+ # A structure that contains the encryption configuration for the
2210
+ # policy store.
2211
+ # @return [Types::EncryptionState]
2212
+ #
2122
2213
  # @!attribute [rw] cedar_version
2123
2214
  # The version of the Cedar language used with policies, policy
2124
2215
  # templates, and schemas in this policy store. For more information,
@@ -2143,6 +2234,7 @@ module Aws::VerifiedPermissions
2143
2234
  :last_updated_date,
2144
2235
  :description,
2145
2236
  :deletion_protection,
2237
+ :encryption_state,
2146
2238
  :cedar_version,
2147
2239
  :tags)
2148
2240
  SENSITIVE = [:description]
@@ -2653,6 +2745,81 @@ module Aws::VerifiedPermissions
2653
2745
  include Aws::Structure
2654
2746
  end
2655
2747
 
2748
+ # A structure that contains the KMS encryption configuration for the
2749
+ # policy store. The encryption settings determine what customer-managed
2750
+ # KMS key will be used to encrypt all resources within the policy store,
2751
+ # and any user-defined context key-value pairs to append during
2752
+ # encryption processes.
2753
+ #
2754
+ # This data type is used as a field that is part of the
2755
+ # [EncryptionSettings][1] type.
2756
+ #
2757
+ #
2758
+ #
2759
+ # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_EncryptionSettings.html
2760
+ #
2761
+ # @!attribute [rw] key
2762
+ # The customer-managed KMS key [Amazon Resource Name (ARN)][1], alias
2763
+ # or ID to be used for encryption processes.
2764
+ #
2765
+ # Users can provide the full KMS key ARN, a KMS key alias, or a KMS
2766
+ # key ID, but it will be mapped to the full KMS key ARN after policy
2767
+ # store creation, and referenced when encrypting child resources.
2768
+ #
2769
+ #
2770
+ #
2771
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2772
+ # @return [String]
2773
+ #
2774
+ # @!attribute [rw] encryption_context
2775
+ # User-defined, additional context to be added to encryption
2776
+ # processes.
2777
+ # @return [Hash<String,String>]
2778
+ #
2779
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/KmsEncryptionSettings AWS API Documentation
2780
+ #
2781
+ class KmsEncryptionSettings < Struct.new(
2782
+ :key,
2783
+ :encryption_context)
2784
+ SENSITIVE = []
2785
+ include Aws::Structure
2786
+ end
2787
+
2788
+ # A structure that contains the KMS encryption configuration for the
2789
+ # policy store. The encryption state shows what customer-managed KMS key
2790
+ # is being used to encrypt all resources within the policy store, and
2791
+ # any user-defined context key-value pairs added during encryption
2792
+ # processes.
2793
+ #
2794
+ # This data type is used as a field that is part of the
2795
+ # [EncryptionState][1] type.
2796
+ #
2797
+ #
2798
+ #
2799
+ # [1]: https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_EncryptionState.html
2800
+ #
2801
+ # @!attribute [rw] key
2802
+ # The customer-managed KMS key [Amazon Resource Name (ARN)][1] being
2803
+ # used for encryption processes.
2804
+ #
2805
+ #
2806
+ #
2807
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2808
+ # @return [String]
2809
+ #
2810
+ # @!attribute [rw] encryption_context
2811
+ # User-defined, additional context added to encryption processes.
2812
+ # @return [Hash<String,String>]
2813
+ #
2814
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/KmsEncryptionState AWS API Documentation
2815
+ #
2816
+ class KmsEncryptionState < Struct.new(
2817
+ :key,
2818
+ :encryption_context)
2819
+ SENSITIVE = []
2820
+ include Aws::Structure
2821
+ end
2822
+
2656
2823
  # @!attribute [rw] policy_store_id
2657
2824
  # Specifies the ID of the policy store that contains the identity
2658
2825
  # sources that you want to list.
@@ -4220,6 +4387,12 @@ module Aws::VerifiedPermissions
4220
4387
  include Aws::Structure
4221
4388
  end
4222
4389
 
4390
+ # @api private
4391
+ #
4392
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/Unit AWS API Documentation
4393
+ #
4394
+ class Unit < Aws::EmptyStructure; end
4395
+
4223
4396
  # @!attribute [rw] resource_arn
4224
4397
  # The ARN of the resource from which you are removing tags.
4225
4398
  # @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.59.0'
58
+ GEM_VERSION = '1.61.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.59.0
4
+ version: 1.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services