@@ -105,31 +105,31 @@ class SecretsManagerClient extends AbstractApi
105
105
* '@region'?: string|null,
106
106
* }|CreateSecretRequest $input
107
107
*
108
+ * @throws DecryptionFailureException
109
+ * @throws EncryptionFailureException
110
+ * @throws InternalServiceErrorException
108
111
* @throws InvalidParameterException
109
112
* @throws InvalidRequestException
110
113
* @throws LimitExceededException
111
- * @throws EncryptionFailureException
112
- * @throws ResourceExistsException
113
- * @throws ResourceNotFoundException
114
114
* @throws MalformedPolicyDocumentException
115
- * @throws InternalServiceErrorException
116
115
* @throws PreconditionNotMetException
117
- * @throws DecryptionFailureException
116
+ * @throws ResourceExistsException
117
+ * @throws ResourceNotFoundException
118
118
*/
119
119
public function createSecret ($ input ): CreateSecretResponse
120
120
{
121
121
$ input = CreateSecretRequest::create ($ input );
122
122
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'CreateSecret ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
123
+ 'DecryptionFailure ' => DecryptionFailureException::class,
124
+ 'EncryptionFailure ' => EncryptionFailureException::class,
125
+ 'InternalServiceError ' => InternalServiceErrorException::class,
123
126
'InvalidParameterException ' => InvalidParameterException::class,
124
127
'InvalidRequestException ' => InvalidRequestException::class,
125
128
'LimitExceededException ' => LimitExceededException::class,
126
- 'EncryptionFailure ' => EncryptionFailureException::class,
127
- 'ResourceExistsException ' => ResourceExistsException::class,
128
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
129
129
'MalformedPolicyDocumentException ' => MalformedPolicyDocumentException::class,
130
- 'InternalServiceError ' => InternalServiceErrorException::class,
131
130
'PreconditionNotMetException ' => PreconditionNotMetException::class,
132
- 'DecryptionFailure ' => DecryptionFailureException::class,
131
+ 'ResourceExistsException ' => ResourceExistsException::class,
132
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
133
133
]]));
134
134
135
135
return new CreateSecretResponse ($ response );
@@ -184,19 +184,19 @@ public function createSecret($input): CreateSecretResponse
184
184
* '@region'?: string|null,
185
185
* }|DeleteSecretRequest $input
186
186
*
187
- * @throws ResourceNotFoundException
187
+ * @throws InternalServiceErrorException
188
188
* @throws InvalidParameterException
189
189
* @throws InvalidRequestException
190
- * @throws InternalServiceErrorException
190
+ * @throws ResourceNotFoundException
191
191
*/
192
192
public function deleteSecret ($ input ): DeleteSecretResponse
193
193
{
194
194
$ input = DeleteSecretRequest::create ($ input );
195
195
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteSecret ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
196
- 'ResourceNotFoundException ' => ResourceNotFoundException ::class,
196
+ 'InternalServiceError ' => InternalServiceErrorException ::class,
197
197
'InvalidParameterException ' => InvalidParameterException::class,
198
198
'InvalidRequestException ' => InvalidRequestException::class,
199
- 'InternalServiceError ' => InternalServiceErrorException ::class,
199
+ 'ResourceNotFoundException ' => ResourceNotFoundException ::class,
200
200
]]));
201
201
202
202
return new DeleteSecretResponse ($ response );
@@ -239,21 +239,21 @@ public function deleteSecret($input): DeleteSecretResponse
239
239
* '@region'?: string|null,
240
240
* }|GetSecretValueRequest $input
241
241
*
242
- * @throws ResourceNotFoundException
243
- * @throws InvalidParameterException
244
- * @throws InvalidRequestException
245
242
* @throws DecryptionFailureException
246
243
* @throws InternalServiceErrorException
244
+ * @throws InvalidParameterException
245
+ * @throws InvalidRequestException
246
+ * @throws ResourceNotFoundException
247
247
*/
248
248
public function getSecretValue ($ input ): GetSecretValueResponse
249
249
{
250
250
$ input = GetSecretValueRequest::create ($ input );
251
251
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetSecretValue ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
252
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
253
- 'InvalidParameterException ' => InvalidParameterException::class,
254
- 'InvalidRequestException ' => InvalidRequestException::class,
255
252
'DecryptionFailure ' => DecryptionFailureException::class,
256
253
'InternalServiceError ' => InternalServiceErrorException::class,
254
+ 'InvalidParameterException ' => InvalidParameterException::class,
255
+ 'InvalidRequestException ' => InvalidRequestException::class,
256
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
257
257
]]));
258
258
259
259
return new GetSecretValueResponse ($ response );
@@ -296,19 +296,19 @@ public function getSecretValue($input): GetSecretValueResponse
296
296
* '@region'?: string|null,
297
297
* }|ListSecretsRequest $input
298
298
*
299
+ * @throws InternalServiceErrorException
300
+ * @throws InvalidNextTokenException
299
301
* @throws InvalidParameterException
300
302
* @throws InvalidRequestException
301
- * @throws InvalidNextTokenException
302
- * @throws InternalServiceErrorException
303
303
*/
304
304
public function listSecrets ($ input = []): ListSecretsResponse
305
305
{
306
306
$ input = ListSecretsRequest::create ($ input );
307
307
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListSecrets ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
308
+ 'InternalServiceError ' => InternalServiceErrorException::class,
309
+ 'InvalidNextTokenException ' => InvalidNextTokenException::class,
308
310
'InvalidParameterException ' => InvalidParameterException::class,
309
311
'InvalidRequestException ' => InvalidRequestException::class,
310
- 'InvalidNextTokenException ' => InvalidNextTokenException::class,
311
- 'InternalServiceError ' => InternalServiceErrorException::class,
312
312
]]));
313
313
314
314
return new ListSecretsResponse ($ response , $ this , $ input );
@@ -365,27 +365,27 @@ public function listSecrets($input = []): ListSecretsResponse
365
365
* '@region'?: string|null,
366
366
* }|PutSecretValueRequest $input
367
367
*
368
+ * @throws DecryptionFailureException
369
+ * @throws EncryptionFailureException
370
+ * @throws InternalServiceErrorException
368
371
* @throws InvalidParameterException
369
372
* @throws InvalidRequestException
370
373
* @throws LimitExceededException
371
- * @throws EncryptionFailureException
372
374
* @throws ResourceExistsException
373
375
* @throws ResourceNotFoundException
374
- * @throws InternalServiceErrorException
375
- * @throws DecryptionFailureException
376
376
*/
377
377
public function putSecretValue ($ input ): PutSecretValueResponse
378
378
{
379
379
$ input = PutSecretValueRequest::create ($ input );
380
380
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'PutSecretValue ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
381
+ 'DecryptionFailure ' => DecryptionFailureException::class,
382
+ 'EncryptionFailure ' => EncryptionFailureException::class,
383
+ 'InternalServiceError ' => InternalServiceErrorException::class,
381
384
'InvalidParameterException ' => InvalidParameterException::class,
382
385
'InvalidRequestException ' => InvalidRequestException::class,
383
386
'LimitExceededException ' => LimitExceededException::class,
384
- 'EncryptionFailure ' => EncryptionFailureException::class,
385
387
'ResourceExistsException ' => ResourceExistsException::class,
386
388
'ResourceNotFoundException ' => ResourceNotFoundException::class,
387
- 'InternalServiceError ' => InternalServiceErrorException::class,
388
- 'DecryptionFailure ' => DecryptionFailureException::class,
389
389
]]));
390
390
391
391
return new PutSecretValueResponse ($ response );
@@ -448,31 +448,31 @@ public function putSecretValue($input): PutSecretValueResponse
448
448
* '@region'?: string|null,
449
449
* }|UpdateSecretRequest $input
450
450
*
451
+ * @throws DecryptionFailureException
452
+ * @throws EncryptionFailureException
453
+ * @throws InternalServiceErrorException
451
454
* @throws InvalidParameterException
452
455
* @throws InvalidRequestException
453
456
* @throws LimitExceededException
454
- * @throws EncryptionFailureException
455
- * @throws ResourceExistsException
456
- * @throws ResourceNotFoundException
457
457
* @throws MalformedPolicyDocumentException
458
- * @throws InternalServiceErrorException
459
458
* @throws PreconditionNotMetException
460
- * @throws DecryptionFailureException
459
+ * @throws ResourceExistsException
460
+ * @throws ResourceNotFoundException
461
461
*/
462
462
public function updateSecret ($ input ): UpdateSecretResponse
463
463
{
464
464
$ input = UpdateSecretRequest::create ($ input );
465
465
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'UpdateSecret ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
466
+ 'DecryptionFailure ' => DecryptionFailureException::class,
467
+ 'EncryptionFailure ' => EncryptionFailureException::class,
468
+ 'InternalServiceError ' => InternalServiceErrorException::class,
466
469
'InvalidParameterException ' => InvalidParameterException::class,
467
470
'InvalidRequestException ' => InvalidRequestException::class,
468
471
'LimitExceededException ' => LimitExceededException::class,
469
- 'EncryptionFailure ' => EncryptionFailureException::class,
470
- 'ResourceExistsException ' => ResourceExistsException::class,
471
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
472
472
'MalformedPolicyDocumentException ' => MalformedPolicyDocumentException::class,
473
- 'InternalServiceError ' => InternalServiceErrorException::class,
474
473
'PreconditionNotMetException ' => PreconditionNotMetException::class,
475
- 'DecryptionFailure ' => DecryptionFailureException::class,
474
+ 'ResourceExistsException ' => ResourceExistsException::class,
475
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
476
476
]]));
477
477
478
478
return new UpdateSecretResponse ($ response );
0 commit comments