Class SecretsManagerException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\SecretsManager\Exception\SecretsManagerException
- Namespace: Aws\SecretsManager\Exception
- Located at SecretsManager/Exception/SecretsManagerException.php
Represents an error interacting with the AWS Secrets Manager service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
DecryptionFailure
[ 'Message' => '<string>', ]
Description
Secrets Manager can't decrypt the protected secret text using the provided KMS key.
Members
- Message
-
- Type: string
EncryptionFailure
[ 'Message' => '<string>', ]
Description
Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the KMS key is available, enabled, and not in an invalid state. For more information, see Key state: Effect on your KMS key.
Members
- Message
-
- Type: string
InternalServiceError
[ 'Message' => '<string>', ]
Description
An error occurred on the server side.
Members
- Message
-
- Type: string
InvalidNextTokenException
[ 'Message' => '<string>', ]
Description
The NextToken
value is invalid.
Members
- Message
-
- Type: string
InvalidParameterException
[ 'Message' => '<string>', ]
Description
The parameter name or value is invalid.
Members
- Message
-
- Type: string
InvalidRequestException
[ 'Message' => '<string>', ]
Description
A parameter value is not valid for the current state of the resource.
Possible causes:
-
The secret is scheduled for deletion.
-
You tried to enable rotation on a secret that doesn't already have a Lambda function ARN configured and you didn't include such an ARN as a parameter in this call.
-
The secret is managed by another service, and you must use that service to update it. For more information, see Secrets managed by other Amazon Web Services services.
Members
- Message
-
- Type: string
LimitExceededException
[ 'Message' => '<string>', ]
Description
The request failed because it would exceed one of the Secrets Manager quotas.
Members
- Message
-
- Type: string
MalformedPolicyDocumentException
[ 'Message' => '<string>', ]
Description
The resource policy has syntax errors.
Members
- Message
-
- Type: string
PreconditionNotMetException
[ 'Message' => '<string>', ]
Description
The request failed because you did not complete all the prerequisite steps.
Members
- Message
-
- Type: string
PublicPolicyException
[ 'Message' => '<string>', ]
Description
The BlockPublicPolicy
parameter is set to true, and the resource policy did not prevent broad access to the secret.
Members
- Message
-
- Type: string
ResourceExistsException
[ 'Message' => '<string>', ]
Description
A resource with the ID you requested already exists.
Members
- Message
-
- Type: string
ResourceNotFoundException
[ 'Message' => '<string>', ]
Description
Secrets Manager can't find the resource that you asked for.
Members
- Message
-
- Type: string