pub enum CreatePolicyError {
InternalFailure(String),
InvalidRequest(String),
MalformedPolicy(String),
ResourceAlreadyExists(String),
ServiceUnavailable(String),
Throttling(String),
Unauthorized(String),
}Expand description
Errors returned by CreatePolicy
Variants§
InternalFailure(String)
An unexpected error has occurred.
InvalidRequest(String)
The request is not valid.
MalformedPolicy(String)
The policy documentation is not valid.
ResourceAlreadyExists(String)
The resource already exists.
The service is temporarily unavailable.
Throttling(String)
The rate exceeds the limit.
You are not authorized to perform this operation.
Implementations§
Source§impl CreatePolicyError
impl CreatePolicyError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CreatePolicyError>
Trait Implementations§
Source§impl Debug for CreatePolicyError
impl Debug for CreatePolicyError
Source§impl Display for CreatePolicyError
impl Display for CreatePolicyError
Source§impl Error for CreatePolicyError
impl Error for CreatePolicyError
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 CreatePolicyError
impl PartialEq for CreatePolicyError
impl StructuralPartialEq for CreatePolicyError
Auto Trait Implementations§
impl Freeze for CreatePolicyError
impl RefUnwindSafe for CreatePolicyError
impl Send for CreatePolicyError
impl Sync for CreatePolicyError
impl Unpin for CreatePolicyError
impl UnwindSafe for CreatePolicyError
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