aws-sdk-kms 1.58.0 → 1.60.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,6 +47,7 @@ module Aws::KMS
47
47
  CustomKeyStoreNameInUseException = Shapes::StructureShape.new(name: 'CustomKeyStoreNameInUseException')
48
48
  CustomKeyStoreNameType = Shapes::StringShape.new(name: 'CustomKeyStoreNameType')
49
49
  CustomKeyStoreNotFoundException = Shapes::StructureShape.new(name: 'CustomKeyStoreNotFoundException')
50
+ CustomKeyStoreType = Shapes::StringShape.new(name: 'CustomKeyStoreType')
50
51
  CustomKeyStoresList = Shapes::ListShape.new(name: 'CustomKeyStoresList')
51
52
  CustomKeyStoresListEntry = Shapes::StructureShape.new(name: 'CustomKeyStoresListEntry')
52
53
  CustomerMasterKeySpec = Shapes::StringShape.new(name: 'CustomerMasterKeySpec')
@@ -205,6 +206,28 @@ module Aws::KMS
205
206
  VerifyRequest = Shapes::StructureShape.new(name: 'VerifyRequest')
206
207
  VerifyResponse = Shapes::StructureShape.new(name: 'VerifyResponse')
207
208
  WrappingKeySpec = Shapes::StringShape.new(name: 'WrappingKeySpec')
209
+ XksKeyAlreadyInUseException = Shapes::StructureShape.new(name: 'XksKeyAlreadyInUseException')
210
+ XksKeyConfigurationType = Shapes::StructureShape.new(name: 'XksKeyConfigurationType')
211
+ XksKeyIdType = Shapes::StringShape.new(name: 'XksKeyIdType')
212
+ XksKeyInvalidConfigurationException = Shapes::StructureShape.new(name: 'XksKeyInvalidConfigurationException')
213
+ XksKeyNotFoundException = Shapes::StructureShape.new(name: 'XksKeyNotFoundException')
214
+ XksProxyAuthenticationAccessKeyIdType = Shapes::StringShape.new(name: 'XksProxyAuthenticationAccessKeyIdType')
215
+ XksProxyAuthenticationCredentialType = Shapes::StructureShape.new(name: 'XksProxyAuthenticationCredentialType')
216
+ XksProxyAuthenticationRawSecretAccessKeyType = Shapes::StringShape.new(name: 'XksProxyAuthenticationRawSecretAccessKeyType')
217
+ XksProxyConfigurationType = Shapes::StructureShape.new(name: 'XksProxyConfigurationType')
218
+ XksProxyConnectivityType = Shapes::StringShape.new(name: 'XksProxyConnectivityType')
219
+ XksProxyIncorrectAuthenticationCredentialException = Shapes::StructureShape.new(name: 'XksProxyIncorrectAuthenticationCredentialException')
220
+ XksProxyInvalidConfigurationException = Shapes::StructureShape.new(name: 'XksProxyInvalidConfigurationException')
221
+ XksProxyInvalidResponseException = Shapes::StructureShape.new(name: 'XksProxyInvalidResponseException')
222
+ XksProxyUriEndpointInUseException = Shapes::StructureShape.new(name: 'XksProxyUriEndpointInUseException')
223
+ XksProxyUriEndpointType = Shapes::StringShape.new(name: 'XksProxyUriEndpointType')
224
+ XksProxyUriInUseException = Shapes::StructureShape.new(name: 'XksProxyUriInUseException')
225
+ XksProxyUriPathType = Shapes::StringShape.new(name: 'XksProxyUriPathType')
226
+ XksProxyUriUnreachableException = Shapes::StructureShape.new(name: 'XksProxyUriUnreachableException')
227
+ XksProxyVpcEndpointServiceInUseException = Shapes::StructureShape.new(name: 'XksProxyVpcEndpointServiceInUseException')
228
+ XksProxyVpcEndpointServiceInvalidConfigurationException = Shapes::StructureShape.new(name: 'XksProxyVpcEndpointServiceInvalidConfigurationException')
229
+ XksProxyVpcEndpointServiceNameType = Shapes::StringShape.new(name: 'XksProxyVpcEndpointServiceNameType')
230
+ XksProxyVpcEndpointServiceNotFoundException = Shapes::StructureShape.new(name: 'XksProxyVpcEndpointServiceNotFoundException')
208
231
 
209
232
  AliasList.member = Shapes::ShapeRef.new(shape: AliasListEntry)
210
233
 
@@ -252,6 +275,12 @@ module Aws::KMS
252
275
  CreateCustomKeyStoreRequest.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
253
276
  CreateCustomKeyStoreRequest.add_member(:trust_anchor_certificate, Shapes::ShapeRef.new(shape: TrustAnchorCertificateType, location_name: "TrustAnchorCertificate"))
254
277
  CreateCustomKeyStoreRequest.add_member(:key_store_password, Shapes::ShapeRef.new(shape: KeyStorePasswordType, location_name: "KeyStorePassword"))
278
+ CreateCustomKeyStoreRequest.add_member(:custom_key_store_type, Shapes::ShapeRef.new(shape: CustomKeyStoreType, location_name: "CustomKeyStoreType"))
279
+ CreateCustomKeyStoreRequest.add_member(:xks_proxy_uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "XksProxyUriEndpoint"))
280
+ CreateCustomKeyStoreRequest.add_member(:xks_proxy_uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "XksProxyUriPath"))
281
+ CreateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "XksProxyVpcEndpointServiceName"))
282
+ CreateCustomKeyStoreRequest.add_member(:xks_proxy_authentication_credential, Shapes::ShapeRef.new(shape: XksProxyAuthenticationCredentialType, location_name: "XksProxyAuthenticationCredential"))
283
+ CreateCustomKeyStoreRequest.add_member(:xks_proxy_connectivity, Shapes::ShapeRef.new(shape: XksProxyConnectivityType, location_name: "XksProxyConnectivity"))
255
284
  CreateCustomKeyStoreRequest.struct_class = Types::CreateCustomKeyStoreRequest
256
285
 
257
286
  CreateCustomKeyStoreResponse.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId"))
@@ -280,6 +309,7 @@ module Aws::KMS
280
309
  CreateKeyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BooleanType, location_name: "BypassPolicyLockoutSafetyCheck"))
281
310
  CreateKeyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
282
311
  CreateKeyRequest.add_member(:multi_region, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "MultiRegion"))
312
+ CreateKeyRequest.add_member(:xks_key_id, Shapes::ShapeRef.new(shape: XksKeyIdType, location_name: "XksKeyId"))
283
313
  CreateKeyRequest.struct_class = Types::CreateKeyRequest
284
314
 
285
315
  CreateKeyResponse.add_member(:key_metadata, Shapes::ShapeRef.new(shape: KeyMetadata, location_name: "KeyMetadata"))
@@ -306,6 +336,8 @@ module Aws::KMS
306
336
  CustomKeyStoresListEntry.add_member(:connection_state, Shapes::ShapeRef.new(shape: ConnectionStateType, location_name: "ConnectionState"))
307
337
  CustomKeyStoresListEntry.add_member(:connection_error_code, Shapes::ShapeRef.new(shape: ConnectionErrorCodeType, location_name: "ConnectionErrorCode"))
308
338
  CustomKeyStoresListEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "CreationDate"))
339
+ CustomKeyStoresListEntry.add_member(:custom_key_store_type, Shapes::ShapeRef.new(shape: CustomKeyStoreType, location_name: "CustomKeyStoreType"))
340
+ CustomKeyStoresListEntry.add_member(:xks_proxy_configuration, Shapes::ShapeRef.new(shape: XksProxyConfigurationType, location_name: "XksProxyConfiguration"))
309
341
  CustomKeyStoresListEntry.struct_class = Types::CustomKeyStoresListEntry
310
342
 
311
343
  DecryptRequest.add_member(:ciphertext_blob, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "CiphertextBlob"))
@@ -599,6 +631,7 @@ module Aws::KMS
599
631
  KeyMetadata.add_member(:multi_region_configuration, Shapes::ShapeRef.new(shape: MultiRegionConfiguration, location_name: "MultiRegionConfiguration"))
600
632
  KeyMetadata.add_member(:pending_deletion_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingDeletionWindowInDays"))
601
633
  KeyMetadata.add_member(:mac_algorithms, Shapes::ShapeRef.new(shape: MacAlgorithmSpecList, location_name: "MacAlgorithms"))
634
+ KeyMetadata.add_member(:xks_key_configuration, Shapes::ShapeRef.new(shape: XksKeyConfigurationType, location_name: "XksKeyConfiguration"))
602
635
  KeyMetadata.struct_class = Types::KeyMetadata
603
636
 
604
637
  KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
@@ -783,6 +816,11 @@ module Aws::KMS
783
816
  UpdateCustomKeyStoreRequest.add_member(:new_custom_key_store_name, Shapes::ShapeRef.new(shape: CustomKeyStoreNameType, location_name: "NewCustomKeyStoreName"))
784
817
  UpdateCustomKeyStoreRequest.add_member(:key_store_password, Shapes::ShapeRef.new(shape: KeyStorePasswordType, location_name: "KeyStorePassword"))
785
818
  UpdateCustomKeyStoreRequest.add_member(:cloud_hsm_cluster_id, Shapes::ShapeRef.new(shape: CloudHsmClusterIdType, location_name: "CloudHsmClusterId"))
819
+ UpdateCustomKeyStoreRequest.add_member(:xks_proxy_uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "XksProxyUriEndpoint"))
820
+ UpdateCustomKeyStoreRequest.add_member(:xks_proxy_uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "XksProxyUriPath"))
821
+ UpdateCustomKeyStoreRequest.add_member(:xks_proxy_vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "XksProxyVpcEndpointServiceName"))
822
+ UpdateCustomKeyStoreRequest.add_member(:xks_proxy_authentication_credential, Shapes::ShapeRef.new(shape: XksProxyAuthenticationCredentialType, location_name: "XksProxyAuthenticationCredential"))
823
+ UpdateCustomKeyStoreRequest.add_member(:xks_proxy_connectivity, Shapes::ShapeRef.new(shape: XksProxyConnectivityType, location_name: "XksProxyConnectivity"))
786
824
  UpdateCustomKeyStoreRequest.struct_class = Types::UpdateCustomKeyStoreRequest
787
825
 
788
826
  UpdateCustomKeyStoreResponse.struct_class = Types::UpdateCustomKeyStoreResponse
@@ -820,6 +858,56 @@ module Aws::KMS
820
858
  VerifyResponse.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: SigningAlgorithmSpec, location_name: "SigningAlgorithm"))
821
859
  VerifyResponse.struct_class = Types::VerifyResponse
822
860
 
861
+ XksKeyAlreadyInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
862
+ XksKeyAlreadyInUseException.struct_class = Types::XksKeyAlreadyInUseException
863
+
864
+ XksKeyConfigurationType.add_member(:id, Shapes::ShapeRef.new(shape: XksKeyIdType, location_name: "Id"))
865
+ XksKeyConfigurationType.struct_class = Types::XksKeyConfigurationType
866
+
867
+ XksKeyInvalidConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
868
+ XksKeyInvalidConfigurationException.struct_class = Types::XksKeyInvalidConfigurationException
869
+
870
+ XksKeyNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
871
+ XksKeyNotFoundException.struct_class = Types::XksKeyNotFoundException
872
+
873
+ XksProxyAuthenticationCredentialType.add_member(:access_key_id, Shapes::ShapeRef.new(shape: XksProxyAuthenticationAccessKeyIdType, required: true, location_name: "AccessKeyId"))
874
+ XksProxyAuthenticationCredentialType.add_member(:raw_secret_access_key, Shapes::ShapeRef.new(shape: XksProxyAuthenticationRawSecretAccessKeyType, required: true, location_name: "RawSecretAccessKey"))
875
+ XksProxyAuthenticationCredentialType.struct_class = Types::XksProxyAuthenticationCredentialType
876
+
877
+ XksProxyConfigurationType.add_member(:connectivity, Shapes::ShapeRef.new(shape: XksProxyConnectivityType, location_name: "Connectivity"))
878
+ XksProxyConfigurationType.add_member(:access_key_id, Shapes::ShapeRef.new(shape: XksProxyAuthenticationAccessKeyIdType, location_name: "AccessKeyId"))
879
+ XksProxyConfigurationType.add_member(:uri_endpoint, Shapes::ShapeRef.new(shape: XksProxyUriEndpointType, location_name: "UriEndpoint"))
880
+ XksProxyConfigurationType.add_member(:uri_path, Shapes::ShapeRef.new(shape: XksProxyUriPathType, location_name: "UriPath"))
881
+ XksProxyConfigurationType.add_member(:vpc_endpoint_service_name, Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNameType, location_name: "VpcEndpointServiceName"))
882
+ XksProxyConfigurationType.struct_class = Types::XksProxyConfigurationType
883
+
884
+ XksProxyIncorrectAuthenticationCredentialException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
885
+ XksProxyIncorrectAuthenticationCredentialException.struct_class = Types::XksProxyIncorrectAuthenticationCredentialException
886
+
887
+ XksProxyInvalidConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
888
+ XksProxyInvalidConfigurationException.struct_class = Types::XksProxyInvalidConfigurationException
889
+
890
+ XksProxyInvalidResponseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
891
+ XksProxyInvalidResponseException.struct_class = Types::XksProxyInvalidResponseException
892
+
893
+ XksProxyUriEndpointInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
894
+ XksProxyUriEndpointInUseException.struct_class = Types::XksProxyUriEndpointInUseException
895
+
896
+ XksProxyUriInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
897
+ XksProxyUriInUseException.struct_class = Types::XksProxyUriInUseException
898
+
899
+ XksProxyUriUnreachableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
900
+ XksProxyUriUnreachableException.struct_class = Types::XksProxyUriUnreachableException
901
+
902
+ XksProxyVpcEndpointServiceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
903
+ XksProxyVpcEndpointServiceInUseException.struct_class = Types::XksProxyVpcEndpointServiceInUseException
904
+
905
+ XksProxyVpcEndpointServiceInvalidConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
906
+ XksProxyVpcEndpointServiceInvalidConfigurationException.struct_class = Types::XksProxyVpcEndpointServiceInvalidConfigurationException
907
+
908
+ XksProxyVpcEndpointServiceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message"))
909
+ XksProxyVpcEndpointServiceNotFoundException.struct_class = Types::XksProxyVpcEndpointServiceNotFoundException
910
+
823
911
 
824
912
  # @api private
825
913
  API = Seahorse::Model::Api.new.tap do |api|
@@ -893,6 +981,16 @@ module Aws::KMS
893
981
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotActiveException)
894
982
  o.errors << Shapes::ShapeRef.new(shape: IncorrectTrustAnchorException)
895
983
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInvalidConfigurationException)
984
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
985
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyUriInUseException)
986
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyUriEndpointInUseException)
987
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyUriUnreachableException)
988
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyIncorrectAuthenticationCredentialException)
989
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceInUseException)
990
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNotFoundException)
991
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceInvalidConfigurationException)
992
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyInvalidResponseException)
993
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyInvalidConfigurationException)
896
994
  end)
897
995
 
898
996
  api.add_operation(:create_grant, Seahorse::Model::Operation.new.tap do |o|
@@ -927,6 +1025,9 @@ module Aws::KMS
927
1025
  o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
928
1026
  o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
929
1027
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInvalidConfigurationException)
1028
+ o.errors << Shapes::ShapeRef.new(shape: XksKeyInvalidConfigurationException)
1029
+ o.errors << Shapes::ShapeRef.new(shape: XksKeyAlreadyInUseException)
1030
+ o.errors << Shapes::ShapeRef.new(shape: XksKeyNotFoundException)
930
1031
  end)
931
1032
 
932
1033
  api.add_operation(:decrypt, Seahorse::Model::Operation.new.tap do |o|
@@ -995,7 +1096,6 @@ module Aws::KMS
995
1096
  o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
996
1097
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
997
1098
  o[:pager] = Aws::Pager.new(
998
- more_results: "truncated",
999
1099
  limit_key: "limit",
1000
1100
  tokens: {
1001
1101
  "next_marker" => "marker"
@@ -1188,6 +1288,7 @@ module Aws::KMS
1188
1288
  o.output = Shapes::ShapeRef.new(shape: GenerateRandomResponse)
1189
1289
  o.errors << Shapes::ShapeRef.new(shape: DependencyTimeoutException)
1190
1290
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1291
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1191
1292
  o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreNotFoundException)
1192
1293
  o.errors << Shapes::ShapeRef.new(shape: CustomKeyStoreInvalidStateException)
1193
1294
  end)
@@ -1281,7 +1382,6 @@ module Aws::KMS
1281
1382
  o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
1282
1383
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1283
1384
  o[:pager] = Aws::Pager.new(
1284
- more_results: "truncated",
1285
1385
  limit_key: "limit",
1286
1386
  tokens: {
1287
1387
  "next_marker" => "marker"
@@ -1303,7 +1403,6 @@ module Aws::KMS
1303
1403
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1304
1404
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1305
1405
  o[:pager] = Aws::Pager.new(
1306
- more_results: "truncated",
1307
1406
  limit_key: "limit",
1308
1407
  tokens: {
1309
1408
  "next_marker" => "marker"
@@ -1323,7 +1422,6 @@ module Aws::KMS
1323
1422
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1324
1423
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
1325
1424
  o[:pager] = Aws::Pager.new(
1326
- more_results: "truncated",
1327
1425
  limit_key: "limit",
1328
1426
  tokens: {
1329
1427
  "next_marker" => "marker"
@@ -1341,7 +1439,6 @@ module Aws::KMS
1341
1439
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1342
1440
  o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
1343
1441
  o[:pager] = Aws::Pager.new(
1344
- more_results: "truncated",
1345
1442
  limit_key: "limit",
1346
1443
  tokens: {
1347
1444
  "next_marker" => "marker"
@@ -1360,7 +1457,6 @@ module Aws::KMS
1360
1457
  o.errors << Shapes::ShapeRef.new(shape: InvalidArnException)
1361
1458
  o.errors << Shapes::ShapeRef.new(shape: InvalidMarkerException)
1362
1459
  o[:pager] = Aws::Pager.new(
1363
- more_results: "truncated",
1364
1460
  limit_key: "limit",
1365
1461
  tokens: {
1366
1462
  "next_marker" => "marker"
@@ -1380,7 +1476,6 @@ module Aws::KMS
1380
1476
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1381
1477
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1382
1478
  o[:pager] = Aws::Pager.new(
1383
- more_results: "truncated",
1384
1479
  limit_key: "limit",
1385
1480
  tokens: {
1386
1481
  "next_marker" => "marker"
@@ -1552,6 +1647,15 @@ module Aws::KMS
1552
1647
  o.errors << Shapes::ShapeRef.new(shape: KMSInternalException)
1553
1648
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterNotActiveException)
1554
1649
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmClusterInvalidConfigurationException)
1650
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyUriInUseException)
1651
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyUriEndpointInUseException)
1652
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyUriUnreachableException)
1653
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyIncorrectAuthenticationCredentialException)
1654
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceInUseException)
1655
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceNotFoundException)
1656
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyVpcEndpointServiceInvalidConfigurationException)
1657
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyInvalidResponseException)
1658
+ o.errors << Shapes::ShapeRef.new(shape: XksProxyInvalidConfigurationException)
1555
1659
  end)
1556
1660
 
1557
1661
  api.add_operation(:update_key_description, Seahorse::Model::Operation.new.tap do |o|
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::KMS
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::KMS
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
+ YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
+ ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcif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