pub enum CreateApiKeyError {
ApiKeyLimitExceeded(String),
ApiKeyValidityOutOfBounds(String),
BadRequest(String),
InternalFailure(String),
LimitExceeded(String),
NotFound(String),
Unauthorized(String),
}
Expand description
Errors returned by CreateApiKey
Variants§
ApiKeyLimitExceeded(String)
The API key exceeded a limit. Try your request again.
ApiKeyValidityOutOfBounds(String)
The API key expiration must be set to a value between 1 and 365 days from creation (for CreateApiKey
) or from update (for UpdateApiKey
).
BadRequest(String)
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
InternalFailure(String)
An internal AWS AppSync error occurred. Try your request again.
LimitExceeded(String)
The request exceeded a limit. Try your request again.
NotFound(String)
The resource specified in the request was not found. Check the resource, and then try again.
You are not authorized to perform this operation.
Implementations§
Source§impl CreateApiKeyError
impl CreateApiKeyError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CreateApiKeyError>
Trait Implementations§
Source§impl Debug for CreateApiKeyError
impl Debug for CreateApiKeyError
Source§impl Display for CreateApiKeyError
impl Display for CreateApiKeyError
Source§impl Error for CreateApiKeyError
impl Error for CreateApiKeyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for CreateApiKeyError
impl PartialEq for CreateApiKeyError
impl StructuralPartialEq for CreateApiKeyError
Auto Trait Implementations§
impl Freeze for CreateApiKeyError
impl RefUnwindSafe for CreateApiKeyError
impl Send for CreateApiKeyError
impl Sync for CreateApiKeyError
impl Unpin for CreateApiKeyError
impl UnwindSafe for CreateApiKeyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more