aws-sdk-verifiedpermissions 1.42.0 → 1.43.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: d2f3a4c766f1de851c078550073199d66298029322121236b34d43d3f8c9e960
4
- data.tar.gz: '0397d99bdf70ef81abebd1f18aec7c2131b10bbcae8f0e23a5d5484a16f382a3'
3
+ metadata.gz: 56c5f37f18f8d6bf00be8d232893d1020f3ecc76a62b4f36bde22fe197fbfb2f
4
+ data.tar.gz: 998c43d49d6eeb4d22b9bcadbf7094048dd3457d9160bf89f7646325757ddfa2
5
5
  SHA512:
6
- metadata.gz: a8c5811ef85bcfade36e0b01c184be98b65b7c82d7d71d6a3420898a7910baa378108b76c7655bdf07b05711f1efb732656402b970bc8d839fdab8007f2478fb
7
- data.tar.gz: 8561a39276f829dde7a6c89d9136f6b7567e52720e3a4e7408754af387adc7a489b6069d026787a575a538557ba317d6df8b78b840b83eb89e558303d34b7d35
6
+ metadata.gz: d8eacdb895cbc9a9cba241581a7939fc5f38ecf068e0cd88b9429fcba1e7ec8efedace5b5f94c53335b36fa8afd5217e21fcaf6402302bfe81b060a393ccc67e
7
+ data.tar.gz: 992a7fa1a993e890e0b4c4632186d14fa1d47b5c954103335ffc16e088c8e9438cfc04b821e0052ca9319d07c0dea8192bae674f3a1282a90b3e83488c1b27e3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2025-04-11)
5
+ ------------------
6
+
7
+ * Feature - Adds deletion protection support to policy stores. Deletion protection is disabled by default, can be enabled via the CreatePolicyStore or UpdatePolicyStore APIs, and is visible in GetPolicyStore.
8
+
4
9
  1.42.0 (2025-02-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.43.0
@@ -1649,6 +1649,12 @@ module Aws::VerifiedPermissions
1649
1649
  # Descriptive text that you can provide to help with identification of
1650
1650
  # the current policy store.
1651
1651
  #
1652
+ # @option params [String] :deletion_protection
1653
+ # Specifies whether the policy store can be deleted. If enabled, the
1654
+ # policy store can't be deleted.
1655
+ #
1656
+ # The default state is `DISABLED`.
1657
+ #
1652
1658
  # @return [Types::CreatePolicyStoreOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1653
1659
  #
1654
1660
  # * {Types::CreatePolicyStoreOutput#policy_store_id #policy_store_id} => String
@@ -1684,6 +1690,7 @@ module Aws::VerifiedPermissions
1684
1690
  # mode: "OFF", # required, accepts OFF, STRICT
1685
1691
  # },
1686
1692
  # description: "PolicyStoreDescription",
1693
+ # deletion_protection: "ENABLED", # accepts ENABLED, DISABLED
1687
1694
  # })
1688
1695
  #
1689
1696
  # @example Response structure
@@ -2182,6 +2189,7 @@ module Aws::VerifiedPermissions
2182
2189
  # * {Types::GetPolicyStoreOutput#created_date #created_date} => Time
2183
2190
  # * {Types::GetPolicyStoreOutput#last_updated_date #last_updated_date} => Time
2184
2191
  # * {Types::GetPolicyStoreOutput#description #description} => String
2192
+ # * {Types::GetPolicyStoreOutput#deletion_protection #deletion_protection} => String
2185
2193
  #
2186
2194
  #
2187
2195
  # @example Example: GetPolicyStore
@@ -2217,6 +2225,7 @@ module Aws::VerifiedPermissions
2217
2225
  # resp.created_date #=> Time
2218
2226
  # resp.last_updated_date #=> Time
2219
2227
  # resp.description #=> String
2228
+ # resp.deletion_protection #=> String, one of "ENABLED", "DISABLED"
2220
2229
  #
2221
2230
  # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/GetPolicyStore AWS API Documentation
2222
2231
  #
@@ -3621,6 +3630,13 @@ module Aws::VerifiedPermissions
3621
3630
  # A structure that defines the validation settings that want to enable
3622
3631
  # for the policy store.
3623
3632
  #
3633
+ # @option params [String] :deletion_protection
3634
+ # Specifies whether the policy store can be deleted. If enabled, the
3635
+ # policy store can't be deleted.
3636
+ #
3637
+ # When you call `UpdatePolicyStore`, this parameter is unchanged unless
3638
+ # explicitly included in the call.
3639
+ #
3624
3640
  # @option params [String] :description
3625
3641
  # Descriptive text that you can provide to help with identification of
3626
3642
  # the current policy store.
@@ -3659,6 +3675,7 @@ module Aws::VerifiedPermissions
3659
3675
  # validation_settings: { # required
3660
3676
  # mode: "OFF", # required, accepts OFF, STRICT
3661
3677
  # },
3678
+ # deletion_protection: "ENABLED", # accepts ENABLED, DISABLED
3662
3679
  # description: "PolicyStoreDescription",
3663
3680
  # })
3664
3681
  #
@@ -3804,7 +3821,7 @@ module Aws::VerifiedPermissions
3804
3821
  tracer: tracer
3805
3822
  )
3806
3823
  context[:gem_name] = 'aws-sdk-verifiedpermissions'
3807
- context[:gem_version] = '1.42.0'
3824
+ context[:gem_version] = '1.43.0'
3808
3825
  Seahorse::Client::Request.new(handlers, context)
3809
3826
  end
3810
3827
 
@@ -79,6 +79,7 @@ module Aws::VerifiedPermissions
79
79
  DeletePolicyStoreOutput = Shapes::StructureShape.new(name: 'DeletePolicyStoreOutput')
80
80
  DeletePolicyTemplateInput = Shapes::StructureShape.new(name: 'DeletePolicyTemplateInput')
81
81
  DeletePolicyTemplateOutput = Shapes::StructureShape.new(name: 'DeletePolicyTemplateOutput')
82
+ DeletionProtection = Shapes::StringShape.new(name: 'DeletionProtection')
82
83
  DeterminingPolicyItem = Shapes::StructureShape.new(name: 'DeterminingPolicyItem')
83
84
  DeterminingPolicyList = Shapes::ListShape.new(name: 'DeterminingPolicyList')
84
85
  DiscoveryUrl = Shapes::StringShape.new(name: 'DiscoveryUrl')
@@ -113,6 +114,7 @@ module Aws::VerifiedPermissions
113
114
  IdentitySourceItemDetails = Shapes::StructureShape.new(name: 'IdentitySourceItemDetails')
114
115
  IdentitySources = Shapes::ListShape.new(name: 'IdentitySources')
115
116
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
117
+ InvalidStateException = Shapes::StructureShape.new(name: 'InvalidStateException')
116
118
  IpAddr = Shapes::StringShape.new(name: 'IpAddr')
117
119
  IsAuthorizedInput = Shapes::StructureShape.new(name: 'IsAuthorizedInput')
118
120
  IsAuthorizedOutput = Shapes::StructureShape.new(name: 'IsAuthorizedOutput')
@@ -428,6 +430,7 @@ module Aws::VerifiedPermissions
428
430
  CreatePolicyStoreInput.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
429
431
  CreatePolicyStoreInput.add_member(:validation_settings, Shapes::ShapeRef.new(shape: ValidationSettings, required: true, location_name: "validationSettings"))
430
432
  CreatePolicyStoreInput.add_member(:description, Shapes::ShapeRef.new(shape: PolicyStoreDescription, location_name: "description"))
433
+ CreatePolicyStoreInput.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "deletionProtection"))
431
434
  CreatePolicyStoreInput.struct_class = Types::CreatePolicyStoreInput
432
435
 
433
436
  CreatePolicyStoreOutput.add_member(:policy_store_id, Shapes::ShapeRef.new(shape: PolicyStoreId, required: true, location_name: "policyStoreId"))
@@ -549,6 +552,7 @@ module Aws::VerifiedPermissions
549
552
  GetPolicyStoreOutput.add_member(:created_date, Shapes::ShapeRef.new(shape: TimestampFormat, required: true, location_name: "createdDate"))
550
553
  GetPolicyStoreOutput.add_member(:last_updated_date, Shapes::ShapeRef.new(shape: TimestampFormat, required: true, location_name: "lastUpdatedDate"))
551
554
  GetPolicyStoreOutput.add_member(:description, Shapes::ShapeRef.new(shape: PolicyStoreDescription, location_name: "description"))
555
+ GetPolicyStoreOutput.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "deletionProtection"))
552
556
  GetPolicyStoreOutput.struct_class = Types::GetPolicyStoreOutput
553
557
 
554
558
  GetPolicyTemplateInput.add_member(:policy_store_id, Shapes::ShapeRef.new(shape: PolicyStoreId, required: true, location_name: "policyStoreId"))
@@ -604,6 +608,9 @@ module Aws::VerifiedPermissions
604
608
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
605
609
  InternalServerException.struct_class = Types::InternalServerException
606
610
 
611
+ InvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
612
+ InvalidStateException.struct_class = Types::InvalidStateException
613
+
607
614
  IsAuthorizedInput.add_member(:policy_store_id, Shapes::ShapeRef.new(shape: PolicyStoreId, required: true, location_name: "policyStoreId"))
608
615
  IsAuthorizedInput.add_member(:principal, Shapes::ShapeRef.new(shape: EntityIdentifier, location_name: "principal"))
609
616
  IsAuthorizedInput.add_member(:action, Shapes::ShapeRef.new(shape: ActionIdentifier, location_name: "action"))
@@ -961,6 +968,7 @@ module Aws::VerifiedPermissions
961
968
 
962
969
  UpdatePolicyStoreInput.add_member(:policy_store_id, Shapes::ShapeRef.new(shape: PolicyStoreId, required: true, location_name: "policyStoreId"))
963
970
  UpdatePolicyStoreInput.add_member(:validation_settings, Shapes::ShapeRef.new(shape: ValidationSettings, required: true, location_name: "validationSettings"))
971
+ UpdatePolicyStoreInput.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtection, location_name: "deletionProtection"))
964
972
  UpdatePolicyStoreInput.add_member(:description, Shapes::ShapeRef.new(shape: PolicyStoreDescription, location_name: "description"))
965
973
  UpdatePolicyStoreInput.struct_class = Types::UpdatePolicyStoreInput
966
974
 
@@ -1152,6 +1160,7 @@ module Aws::VerifiedPermissions
1152
1160
  o.input = Shapes::ShapeRef.new(shape: DeletePolicyStoreInput)
1153
1161
  o.output = Shapes::ShapeRef.new(shape: DeletePolicyStoreOutput)
1154
1162
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1163
+ o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
1155
1164
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1156
1165
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1157
1166
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
@@ -30,6 +30,7 @@ module Aws::VerifiedPermissions
30
30
  # * {AccessDeniedException}
31
31
  # * {ConflictException}
32
32
  # * {InternalServerException}
33
+ # * {InvalidStateException}
33
34
  # * {ResourceNotFoundException}
34
35
  # * {ServiceQuotaExceededException}
35
36
  # * {ThrottlingException}
@@ -95,6 +96,21 @@ module Aws::VerifiedPermissions
95
96
  end
96
97
  end
97
98
 
99
+ class InvalidStateException < ServiceError
100
+
101
+ # @param [Seahorse::Client::RequestContext] context
102
+ # @param [String] message
103
+ # @param [Aws::VerifiedPermissions::Types::InvalidStateException] data
104
+ def initialize(context, message, data = Aws::EmptyStructure.new)
105
+ super(context, message, data)
106
+ end
107
+
108
+ # @return [String]
109
+ def message
110
+ @message || @data[:message]
111
+ end
112
+ end
113
+
98
114
  class ResourceNotFoundException < ServiceError
99
115
 
100
116
  # @param [Seahorse::Client::RequestContext] context
@@ -1300,12 +1300,20 @@ module Aws::VerifiedPermissions
1300
1300
  # the current policy store.
1301
1301
  # @return [String]
1302
1302
  #
1303
+ # @!attribute [rw] deletion_protection
1304
+ # Specifies whether the policy store can be deleted. If enabled, the
1305
+ # policy store can't be deleted.
1306
+ #
1307
+ # The default state is `DISABLED`.
1308
+ # @return [String]
1309
+ #
1303
1310
  # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/CreatePolicyStoreInput AWS API Documentation
1304
1311
  #
1305
1312
  class CreatePolicyStoreInput < Struct.new(
1306
1313
  :client_token,
1307
1314
  :validation_settings,
1308
- :description)
1315
+ :description,
1316
+ :deletion_protection)
1309
1317
  SENSITIVE = [:description]
1310
1318
  include Aws::Structure
1311
1319
  end
@@ -1903,6 +1911,13 @@ module Aws::VerifiedPermissions
1903
1911
  # the current policy store.
1904
1912
  # @return [String]
1905
1913
  #
1914
+ # @!attribute [rw] deletion_protection
1915
+ # Specifies whether the policy store can be deleted. If enabled, the
1916
+ # policy store can't be deleted.
1917
+ #
1918
+ # The default state is `DISABLED`.
1919
+ # @return [String]
1920
+ #
1906
1921
  # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/GetPolicyStoreOutput AWS API Documentation
1907
1922
  #
1908
1923
  class GetPolicyStoreOutput < Struct.new(
@@ -1911,7 +1926,8 @@ module Aws::VerifiedPermissions
1911
1926
  :validation_settings,
1912
1927
  :created_date,
1913
1928
  :last_updated_date,
1914
- :description)
1929
+ :description,
1930
+ :deletion_protection)
1915
1931
  SENSITIVE = [:description]
1916
1932
  include Aws::Structure
1917
1933
  end
@@ -2211,6 +2227,20 @@ module Aws::VerifiedPermissions
2211
2227
  include Aws::Structure
2212
2228
  end
2213
2229
 
2230
+ # The policy store can't be deleted because deletion protection is
2231
+ # enabled. To delete this policy store, disable deletion protection.
2232
+ #
2233
+ # @!attribute [rw] message
2234
+ # @return [String]
2235
+ #
2236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/InvalidStateException AWS API Documentation
2237
+ #
2238
+ class InvalidStateException < Struct.new(
2239
+ :message)
2240
+ SENSITIVE = []
2241
+ include Aws::Structure
2242
+ end
2243
+
2214
2244
  # @!attribute [rw] policy_store_id
2215
2245
  # Specifies the ID of the policy store. Policies in this policy store
2216
2246
  # will be used to make an authorization decision for the input.
@@ -4383,6 +4413,14 @@ module Aws::VerifiedPermissions
4383
4413
  # for the policy store.
4384
4414
  # @return [Types::ValidationSettings]
4385
4415
  #
4416
+ # @!attribute [rw] deletion_protection
4417
+ # Specifies whether the policy store can be deleted. If enabled, the
4418
+ # policy store can't be deleted.
4419
+ #
4420
+ # When you call `UpdatePolicyStore`, this parameter is unchanged
4421
+ # unless explicitly included in the call.
4422
+ # @return [String]
4423
+ #
4386
4424
  # @!attribute [rw] description
4387
4425
  # Descriptive text that you can provide to help with identification of
4388
4426
  # the current policy store.
@@ -4393,6 +4431,7 @@ module Aws::VerifiedPermissions
4393
4431
  class UpdatePolicyStoreInput < Struct.new(
4394
4432
  :policy_store_id,
4395
4433
  :validation_settings,
4434
+ :deletion_protection,
4396
4435
  :description)
4397
4436
  SENSITIVE = [:description]
4398
4437
  include Aws::Structure
@@ -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.42.0'
58
+ GEM_VERSION = '1.43.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -280,7 +280,8 @@ module Aws
280
280
  validation_settings: {
281
281
  mode: ("OFF" | "STRICT")
282
282
  },
283
- ?description: ::String
283
+ ?description: ::String,
284
+ ?deletion_protection: ("ENABLED" | "DISABLED")
284
285
  ) -> _CreatePolicyStoreResponseSuccess
285
286
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePolicyStoreResponseSuccess
286
287
 
@@ -384,6 +385,7 @@ module Aws
384
385
  def created_date: () -> ::Time
385
386
  def last_updated_date: () -> ::Time
386
387
  def description: () -> ::String
388
+ def deletion_protection: () -> ("ENABLED" | "DISABLED")
387
389
  end
388
390
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/VerifiedPermissions/Client.html#get_policy_store-instance_method
389
391
  def get_policy_store: (
@@ -682,6 +684,7 @@ module Aws
682
684
  validation_settings: {
683
685
  mode: ("OFF" | "STRICT")
684
686
  },
687
+ ?deletion_protection: ("ENABLED" | "DISABLED"),
685
688
  ?description: ::String
686
689
  ) -> _UpdatePolicyStoreResponseSuccess
687
690
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePolicyStoreResponseSuccess
data/sig/errors.rbs CHANGED
@@ -21,6 +21,9 @@ module Aws
21
21
  class InternalServerException < ::Aws::Errors::ServiceError
22
22
  def message: () -> ::String
23
23
  end
24
+ class InvalidStateException < ::Aws::Errors::ServiceError
25
+ def message: () -> ::String
26
+ end
24
27
  class ResourceNotFoundException < ::Aws::Errors::ServiceError
25
28
  def message: () -> ::String
26
29
  def resource_id: () -> ::String
data/sig/types.rbs CHANGED
@@ -284,6 +284,7 @@ module Aws::VerifiedPermissions
284
284
  attr_accessor client_token: ::String
285
285
  attr_accessor validation_settings: Types::ValidationSettings
286
286
  attr_accessor description: ::String
287
+ attr_accessor deletion_protection: ("ENABLED" | "DISABLED")
287
288
  SENSITIVE: [:description]
288
289
  end
289
290
 
@@ -446,6 +447,7 @@ module Aws::VerifiedPermissions
446
447
  attr_accessor created_date: ::Time
447
448
  attr_accessor last_updated_date: ::Time
448
449
  attr_accessor description: ::String
450
+ attr_accessor deletion_protection: ("ENABLED" | "DISABLED")
449
451
  SENSITIVE: [:description]
450
452
  end
451
453
 
@@ -516,6 +518,11 @@ module Aws::VerifiedPermissions
516
518
  SENSITIVE: []
517
519
  end
518
520
 
521
+ class InvalidStateException
522
+ attr_accessor message: ::String
523
+ SENSITIVE: []
524
+ end
525
+
519
526
  class IsAuthorizedInput
520
527
  attr_accessor policy_store_id: ::String
521
528
  attr_accessor principal: Types::EntityIdentifier
@@ -1015,6 +1022,7 @@ module Aws::VerifiedPermissions
1015
1022
  class UpdatePolicyStoreInput
1016
1023
  attr_accessor policy_store_id: ::String
1017
1024
  attr_accessor validation_settings: Types::ValidationSettings
1025
+ attr_accessor deletion_protection: ("ENABLED" | "DISABLED")
1018
1026
  attr_accessor description: ::String
1019
1027
  SENSITIVE: [:description]
1020
1028
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-verifiedpermissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.43.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: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core