Skip to content

Commit 04bd7b9

Browse files
feat(aws-android-sdk-kms): update models to latest (#3349)
Co-authored-by: Thomas Leing <[email protected]>
1 parent 0b5a905 commit 04bd7b9

33 files changed

+2103
-32
lines changed

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMS.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ CreateCustomKeyStoreResult createCustomKeyStore(
838838
* @throws InvalidGrantTokenException
839839
* @throws LimitExceededException
840840
* @throws KMSInvalidStateException
841+
* @throws DryRunOperationException
841842
* @throws AmazonClientException If any internal errors are encountered
842843
* inside the client while attempting to make the request or
843844
* handle the response. For example if a network connection is
@@ -1305,6 +1306,7 @@ CreateKeyResult createKey(CreateKeyRequest createKeyRequest) throws AmazonClient
13051306
* @throws InvalidGrantTokenException
13061307
* @throws KMSInternalException
13071308
* @throws KMSInvalidStateException
1309+
* @throws DryRunOperationException
13081310
* @throws AmazonClientException If any internal errors are encountered
13091311
* inside the client while attempting to make the request or
13101312
* handle the response. For example if a network connection is
@@ -2396,6 +2398,7 @@ void enableKeyRotation(EnableKeyRotationRequest enableKeyRotationRequest)
23962398
* @throws InvalidGrantTokenException
23972399
* @throws KMSInternalException
23982400
* @throws KMSInvalidStateException
2401+
* @throws DryRunOperationException
23992402
* @throws AmazonClientException If any internal errors are encountered
24002403
* inside the client while attempting to make the request or
24012404
* handle the response. For example if a network connection is
@@ -2587,6 +2590,7 @@ EncryptResult encrypt(EncryptRequest encryptRequest) throws AmazonClientExceptio
25872590
* @throws InvalidGrantTokenException
25882591
* @throws KMSInternalException
25892592
* @throws KMSInvalidStateException
2593+
* @throws DryRunOperationException
25902594
* @throws AmazonClientException If any internal errors are encountered
25912595
* inside the client while attempting to make the request or
25922596
* handle the response. For example if a network connection is
@@ -2744,6 +2748,7 @@ GenerateDataKeyResult generateDataKey(GenerateDataKeyRequest generateDataKeyRequ
27442748
* @throws KMSInternalException
27452749
* @throws KMSInvalidStateException
27462750
* @throws UnsupportedOperationException
2751+
* @throws DryRunOperationException
27472752
* @throws AmazonClientException If any internal errors are encountered
27482753
* inside the client while attempting to make the request or
27492754
* handle the response. For example if a network connection is
@@ -2868,6 +2873,7 @@ GenerateDataKeyPairResult generateDataKeyPair(
28682873
* @throws KMSInternalException
28692874
* @throws KMSInvalidStateException
28702875
* @throws UnsupportedOperationException
2876+
* @throws DryRunOperationException
28712877
* @throws AmazonClientException If any internal errors are encountered
28722878
* inside the client while attempting to make the request or
28732879
* handle the response. For example if a network connection is
@@ -3007,6 +3013,7 @@ GenerateDataKeyPairWithoutPlaintextResult generateDataKeyPairWithoutPlaintext(
30073013
* @throws InvalidGrantTokenException
30083014
* @throws KMSInternalException
30093015
* @throws KMSInvalidStateException
3016+
* @throws DryRunOperationException
30103017
* @throws AmazonClientException If any internal errors are encountered
30113018
* inside the client while attempting to make the request or
30123019
* handle the response. For example if a network connection is
@@ -3080,6 +3087,7 @@ GenerateDataKeyWithoutPlaintextResult generateDataKeyWithoutPlaintext(
30803087
* @throws InvalidGrantTokenException
30813088
* @throws KMSInternalException
30823089
* @throws KMSInvalidStateException
3090+
* @throws DryRunOperationException
30833091
* @throws AmazonClientException If any internal errors are encountered
30843092
* inside the client while attempting to make the request or
30853093
* handle the response. For example if a network connection is
@@ -4417,6 +4425,7 @@ void putKeyPolicy(PutKeyPolicyRequest putKeyPolicyRequest) throws AmazonClientEx
44174425
* @throws InvalidGrantTokenException
44184426
* @throws KMSInternalException
44194427
* @throws KMSInvalidStateException
4428+
* @throws DryRunOperationException
44204429
* @throws AmazonClientException If any internal errors are encountered
44214430
* inside the client while attempting to make the request or
44224431
* handle the response. For example if a network connection is
@@ -4668,6 +4677,7 @@ ReplicateKeyResult replicateKey(ReplicateKeyRequest replicateKeyRequest)
46684677
* @throws DependencyTimeoutException
46694678
* @throws KMSInternalException
46704679
* @throws KMSInvalidStateException
4680+
* @throws DryRunOperationException
46714681
* @throws AmazonClientException If any internal errors are encountered
46724682
* inside the client while attempting to make the request or
46734683
* handle the response. For example if a network connection is
@@ -4749,6 +4759,7 @@ void retireGrant(RetireGrantRequest retireGrantRequest) throws AmazonClientExcep
47494759
* @throws InvalidGrantIdException
47504760
* @throws KMSInternalException
47514761
* @throws KMSInvalidStateException
4762+
* @throws DryRunOperationException
47524763
* @throws AmazonClientException If any internal errors are encountered
47534764
* inside the client while attempting to make the request or
47544765
* handle the response. For example if a network connection is
@@ -4778,10 +4789,10 @@ void revokeGrant(RevokeGrantRequest revokeGrantRequest) throws AmazonClientExcep
47784789
* When a KMS key is deleted, all data that was encrypted under the KMS key
47794790
* is unrecoverable. (The only exception is a <a
47804791
* href="kms/latest/developerguide/multi-region-keys-delete.html"
4781-
* >multi-Region replica key</a>, or an asymmetric or HMAC KMS key with
4782-
* imported key material[BUGBUG-link to
4783-
* importing-keys-managing.html#import-delete-key.) To prevent the use of a
4784-
* KMS key without deleting it, use <a>DisableKey</a>.
4792+
* >multi-Region replica key</a>, or an <a href=
4793+
* "kms/latest/developerguide/importing-keys-managing.html#import-delete-key"
4794+
* >asymmetric or HMAC KMS key with imported key material</a>.) To prevent
4795+
* the use of a KMS key without deleting it, use <a>DisableKey</a>.
47854796
* </p>
47864797
* </important>
47874798
* <p>
@@ -4978,6 +4989,7 @@ ScheduleKeyDeletionResult scheduleKeyDeletion(
49784989
* @throws InvalidGrantTokenException
49794990
* @throws KMSInternalException
49804991
* @throws KMSInvalidStateException
4992+
* @throws DryRunOperationException
49814993
* @throws AmazonClientException If any internal errors are encountered
49824994
* inside the client while attempting to make the request or
49834995
* handle the response. For example if a network connection is
@@ -5742,6 +5754,7 @@ void updatePrimaryRegion(UpdatePrimaryRegionRequest updatePrimaryRegionRequest)
57425754
* @throws KMSInternalException
57435755
* @throws KMSInvalidStateException
57445756
* @throws KMSInvalidSignatureException
5757+
* @throws DryRunOperationException
57455758
* @throws AmazonClientException If any internal errors are encountered
57465759
* inside the client while attempting to make the request or
57475760
* handle the response. For example if a network connection is
@@ -5808,6 +5821,7 @@ VerifyResult verify(VerifyRequest verifyRequest) throws AmazonClientException,
58085821
* @throws KMSInternalException
58095822
* @throws KMSInvalidMacException
58105823
* @throws KMSInvalidStateException
5824+
* @throws DryRunOperationException
58115825
* @throws AmazonClientException If any internal errors are encountered
58125826
* inside the client while attempting to make the request or
58135827
* handle the response. For example if a network connection is
@@ -6328,6 +6342,7 @@ VerifyMacResult verifyMac(VerifyMacRequest verifyMacRequest) throws AmazonClient
63286342
* @throws DependencyTimeoutException
63296343
* @throws KMSInternalException
63306344
* @throws KMSInvalidStateException
6345+
* @throws DryRunOperationException
63316346
* @throws AmazonClientException If any internal errors are encountered
63326347
* inside the client while attempting to make the request or
63336348
* handle the response. For example if a network connection is

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMSClient.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ private void init() {
474474
jsonErrorUnmarshallers.add(new CustomKeyStoreNotFoundExceptionUnmarshaller());
475475
jsonErrorUnmarshallers.add(new DependencyTimeoutExceptionUnmarshaller());
476476
jsonErrorUnmarshallers.add(new DisabledExceptionUnmarshaller());
477+
jsonErrorUnmarshallers.add(new DryRunOperationExceptionUnmarshaller());
477478
jsonErrorUnmarshallers.add(new ExpiredImportTokenExceptionUnmarshaller());
478479
jsonErrorUnmarshallers.add(new IncorrectKeyExceptionUnmarshaller());
479480
jsonErrorUnmarshallers.add(new IncorrectKeyMaterialExceptionUnmarshaller());
@@ -1247,6 +1248,7 @@ public CreateCustomKeyStoreResult createCustomKeyStore(
12471248
* @throws InvalidGrantTokenException
12481249
* @throws LimitExceededException
12491250
* @throws KMSInvalidStateException
1251+
* @throws DryRunOperationException
12501252
* @throws AmazonClientException If any internal errors are encountered
12511253
* inside the client while attempting to make the request or
12521254
* handle the response. For example if a network connection is
@@ -1766,6 +1768,7 @@ public CreateKeyResult createKey(CreateKeyRequest createKeyRequest)
17661768
* @throws InvalidGrantTokenException
17671769
* @throws KMSInternalException
17681770
* @throws KMSInvalidStateException
1771+
* @throws DryRunOperationException
17691772
* @throws AmazonClientException If any internal errors are encountered
17701773
* inside the client while attempting to make the request or
17711774
* handle the response. For example if a network connection is
@@ -3120,6 +3123,7 @@ public void enableKeyRotation(EnableKeyRotationRequest enableKeyRotationRequest)
31203123
* @throws InvalidGrantTokenException
31213124
* @throws KMSInternalException
31223125
* @throws KMSInvalidStateException
3126+
* @throws DryRunOperationException
31233127
* @throws AmazonClientException If any internal errors are encountered
31243128
* inside the client while attempting to make the request or
31253129
* handle the response. For example if a network connection is
@@ -3337,6 +3341,7 @@ public EncryptResult encrypt(EncryptRequest encryptRequest)
33373341
* @throws InvalidGrantTokenException
33383342
* @throws KMSInternalException
33393343
* @throws KMSInvalidStateException
3344+
* @throws DryRunOperationException
33403345
* @throws AmazonClientException If any internal errors are encountered
33413346
* inside the client while attempting to make the request or
33423347
* handle the response. For example if a network connection is
@@ -3520,6 +3525,7 @@ public GenerateDataKeyResult generateDataKey(GenerateDataKeyRequest generateData
35203525
* @throws KMSInternalException
35213526
* @throws KMSInvalidStateException
35223527
* @throws UnsupportedOperationException
3528+
* @throws DryRunOperationException
35233529
* @throws AmazonClientException If any internal errors are encountered
35243530
* inside the client while attempting to make the request or
35253531
* handle the response. For example if a network connection is
@@ -3671,6 +3677,7 @@ public GenerateDataKeyPairResult generateDataKeyPair(
36713677
* @throws KMSInternalException
36723678
* @throws KMSInvalidStateException
36733679
* @throws UnsupportedOperationException
3680+
* @throws DryRunOperationException
36743681
* @throws AmazonClientException If any internal errors are encountered
36753682
* inside the client while attempting to make the request or
36763683
* handle the response. For example if a network connection is
@@ -3837,6 +3844,7 @@ public GenerateDataKeyPairWithoutPlaintextResult generateDataKeyPairWithoutPlain
38373844
* @throws InvalidGrantTokenException
38383845
* @throws KMSInternalException
38393846
* @throws KMSInvalidStateException
3847+
* @throws DryRunOperationException
38403848
* @throws AmazonClientException If any internal errors are encountered
38413849
* inside the client while attempting to make the request or
38423850
* handle the response. For example if a network connection is
@@ -3937,6 +3945,7 @@ public GenerateDataKeyWithoutPlaintextResult generateDataKeyWithoutPlaintext(
39373945
* @throws InvalidGrantTokenException
39383946
* @throws KMSInternalException
39393947
* @throws KMSInvalidStateException
3948+
* @throws DryRunOperationException
39403949
* @throws AmazonClientException If any internal errors are encountered
39413950
* inside the client while attempting to make the request or
39423951
* handle the response. For example if a network connection is
@@ -5638,6 +5647,7 @@ public void putKeyPolicy(PutKeyPolicyRequest putKeyPolicyRequest)
56385647
* @throws InvalidGrantTokenException
56395648
* @throws KMSInternalException
56405649
* @throws KMSInvalidStateException
5650+
* @throws DryRunOperationException
56415651
* @throws AmazonClientException If any internal errors are encountered
56425652
* inside the client while attempting to make the request or
56435653
* handle the response. For example if a network connection is
@@ -5941,6 +5951,7 @@ public ReplicateKeyResult replicateKey(ReplicateKeyRequest replicateKeyRequest)
59415951
* @throws DependencyTimeoutException
59425952
* @throws KMSInternalException
59435953
* @throws KMSInvalidStateException
5954+
* @throws DryRunOperationException
59445955
* @throws AmazonClientException If any internal errors are encountered
59455956
* inside the client while attempting to make the request or
59465957
* handle the response. For example if a network connection is
@@ -6043,6 +6054,7 @@ public void retireGrant(RetireGrantRequest retireGrantRequest)
60436054
* @throws InvalidGrantIdException
60446055
* @throws KMSInternalException
60456056
* @throws KMSInvalidStateException
6057+
* @throws DryRunOperationException
60466058
* @throws AmazonClientException If any internal errors are encountered
60476059
* inside the client while attempting to make the request or
60486060
* handle the response. For example if a network connection is
@@ -6093,10 +6105,10 @@ public void revokeGrant(RevokeGrantRequest revokeGrantRequest)
60936105
* When a KMS key is deleted, all data that was encrypted under the KMS key
60946106
* is unrecoverable. (The only exception is a <a
60956107
* href="kms/latest/developerguide/multi-region-keys-delete.html"
6096-
* >multi-Region replica key</a>, or an asymmetric or HMAC KMS key with
6097-
* imported key material[BUGBUG-link to
6098-
* importing-keys-managing.html#import-delete-key.) To prevent the use of a
6099-
* KMS key without deleting it, use <a>DisableKey</a>.
6108+
* >multi-Region replica key</a>, or an <a href=
6109+
* "kms/latest/developerguide/importing-keys-managing.html#import-delete-key"
6110+
* >asymmetric or HMAC KMS key with imported key material</a>.) To prevent
6111+
* the use of a KMS key without deleting it, use <a>DisableKey</a>.
61006112
* </p>
61016113
* </important>
61026114
* <p>
@@ -6320,6 +6332,7 @@ public ScheduleKeyDeletionResult scheduleKeyDeletion(
63206332
* @throws InvalidGrantTokenException
63216333
* @throws KMSInternalException
63226334
* @throws KMSInvalidStateException
6335+
* @throws DryRunOperationException
63236336
* @throws AmazonClientException If any internal errors are encountered
63246337
* inside the client while attempting to make the request or
63256338
* handle the response. For example if a network connection is
@@ -7245,6 +7258,7 @@ public void updatePrimaryRegion(UpdatePrimaryRegionRequest updatePrimaryRegionRe
72457258
* @throws KMSInternalException
72467259
* @throws KMSInvalidStateException
72477260
* @throws KMSInvalidSignatureException
7261+
* @throws DryRunOperationException
72487262
* @throws AmazonClientException If any internal errors are encountered
72497263
* inside the client while attempting to make the request or
72507264
* handle the response. For example if a network connection is
@@ -7337,6 +7351,7 @@ public VerifyResult verify(VerifyRequest verifyRequest)
73377351
* @throws KMSInternalException
73387352
* @throws KMSInvalidMacException
73397353
* @throws KMSInvalidStateException
7354+
* @throws DryRunOperationException
73407355
* @throws AmazonClientException If any internal errors are encountered
73417356
* inside the client while attempting to make the request or
73427357
* handle the response. For example if a network connection is
@@ -7895,6 +7910,7 @@ public ListAliasesResult listAliases()
78957910
* @throws DependencyTimeoutException
78967911
* @throws KMSInternalException
78977912
* @throws KMSInvalidStateException
7913+
* @throws DryRunOperationException
78987914
* @throws AmazonClientException If any internal errors are encountered
78997915
* inside the client while attempting to make the request or
79007916
* handle the response. For example if a network connection is

0 commit comments

Comments
 (0)