pub enum PutResourcePolicyError {
InternalServiceError(String),
InvalidParameter(String),
InvalidRequest(String),
MalformedPolicyDocument(String),
PublicPolicy(String),
ResourceNotFound(String),
}
Expand description
Errors returned by PutResourcePolicy
Variants§
InternalServiceError(String)
An error occurred on the server side.
InvalidParameter(String)
You provided an invalid value for a parameter.
InvalidRequest(String)
You provided a parameter value that is not valid for the current state of the resource.
Possible causes:
-
You tried to perform the operation on a secret that's currently marked deleted.
-
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.
MalformedPolicyDocument(String)
The policy document that you provided isn't valid.
PublicPolicy(String)
The resource policy did not prevent broad access to the secret.
ResourceNotFound(String)
We can't find the resource that you asked for.
Implementations§
Source§impl PutResourcePolicyError
impl PutResourcePolicyError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<PutResourcePolicyError>
Trait Implementations§
Source§impl Debug for PutResourcePolicyError
impl Debug for PutResourcePolicyError
Source§impl Display for PutResourcePolicyError
impl Display for PutResourcePolicyError
Source§impl Error for PutResourcePolicyError
impl Error for PutResourcePolicyError
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 PutResourcePolicyError
impl PartialEq for PutResourcePolicyError
impl StructuralPartialEq for PutResourcePolicyError
Auto Trait Implementations§
impl Freeze for PutResourcePolicyError
impl RefUnwindSafe for PutResourcePolicyError
impl Send for PutResourcePolicyError
impl Sync for PutResourcePolicyError
impl Unpin for PutResourcePolicyError
impl UnwindSafe for PutResourcePolicyError
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