#[non_exhaustive]pub enum LaunchPermission {
Allowed,
AllowedThen {
code: String,
},
Denied,
Unconfirmed(Failure),
NoAnswer,
}Expand description
Whether the account may create EC2 instances, as a dry run of one said.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Allowed
AWS said the instance would have been created (DryRunOperation).
AllowedThen
AWS checked the permission, then stopped at an error about the probe itself (its image, the account’s network): the permission is there.
Denied
ec2:RunInstances is denied (UnauthorizedOperation).
Unconfirmed(Failure)
AWS stopped before it looked at the permission (throttled, a sign-in run out, a malformed parameter, AWS itself), or gave no answer: what it said.
NoAnswer
The dry run printed nothing and exited 0: it says nothing.
Trait Implementations§
Source§impl Clone for LaunchPermission
impl Clone for LaunchPermission
Source§impl Debug for LaunchPermission
impl Debug for LaunchPermission
impl Eq for LaunchPermission
Source§impl PartialEq for LaunchPermission
impl PartialEq for LaunchPermission
impl StructuralPartialEq for LaunchPermission
Auto Trait Implementations§
impl Forget for LaunchPermission
impl Freeze for LaunchPermission
impl Move for LaunchPermission
impl RefUnwindSafe for LaunchPermission
impl Send for LaunchPermissionwhere
RawVecInner: Send,
impl Sync for LaunchPermissionwhere
RawVecInner: Sync,
impl Unpin for LaunchPermission
impl UnsafeUnpin for LaunchPermission
impl UnwindSafe for LaunchPermissionwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.