pub struct UpdateVmRequest {Show 14 fields
pub actions_on_next_boot: Option<Box<ActionsOnNextBoot>>,
pub block_device_mappings: Option<Vec<BlockDeviceMappingVmUpdate>>,
pub bsu_optimized: Option<bool>,
pub deletion_protection: Option<bool>,
pub dry_run: Option<bool>,
pub is_source_dest_checked: Option<bool>,
pub keypair_name: Option<String>,
pub nested_virtualization: Option<bool>,
pub performance: Option<Performance>,
pub security_group_ids: Option<Vec<String>>,
pub user_data: Option<String>,
pub vm_id: String,
pub vm_initiated_shutdown_behavior: Option<String>,
pub vm_type: Option<String>,
}Fields§
§actions_on_next_boot: Option<Box<ActionsOnNextBoot>>§block_device_mappings: Option<Vec<BlockDeviceMappingVmUpdate>>One or more block device mappings of the VM.
bsu_optimized: Option<bool>This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
deletion_protection: Option<bool>If true, you cannot delete the VM unless you change this parameter back to false.
dry_run: Option<bool>If true, checks whether you have the required permissions to perform the action.
is_source_dest_checked: Option<bool>(Net only) If true, the source/destination check is enabled. If false, it is disabled.
keypair_name: Option<String>The name of a keypair you want to associate with the VM.
When you replace the keypair of a VM with another one, the metadata of the VM is modified to reflect the new public key, but the replacement is still not effective in the operating system of the VM. To complete the replacement and effectively apply the new keypair, you need to perform other actions inside the VM. For more information, see Modifying the Keypair of a VM.
nested_virtualization: Option<bool>(dedicated tenancy only) If true, nested virtualization is enabled. If false, it is disabled.
performance: Option<Performance>The performance of the VM.
security_group_ids: Option<Vec<String>>One or more IDs of security groups for the VM.
user_data: Option<String>The Base64-encoded MIME user data, limited to 500 kibibytes (KiB).
vm_id: StringThe ID of the VM.
vm_initiated_shutdown_behavior: Option<String>The VM behavior when you stop it. If set to stop, the VM stops. If set to restart, the VM stops then automatically restarts. If set to terminate, the VM stops and is terminated.
vm_type: Option<String>The type of VM. For more information, see VM Types.
Implementations§
Source§impl UpdateVmRequest
impl UpdateVmRequest
pub fn new(vm_id: String) -> UpdateVmRequest
Trait Implementations§
Source§impl Clone for UpdateVmRequest
impl Clone for UpdateVmRequest
Source§fn clone(&self) -> UpdateVmRequest
fn clone(&self) -> UpdateVmRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateVmRequest
impl Debug for UpdateVmRequest
Source§impl Default for UpdateVmRequest
impl Default for UpdateVmRequest
Source§fn default() -> UpdateVmRequest
fn default() -> UpdateVmRequest
Source§impl<'de> Deserialize<'de> for UpdateVmRequest
impl<'de> Deserialize<'de> for UpdateVmRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for UpdateVmRequest
impl PartialEq for UpdateVmRequest
Source§impl Serialize for UpdateVmRequest
impl Serialize for UpdateVmRequest
impl StructuralPartialEq for UpdateVmRequest
Auto Trait Implementations§
impl Freeze for UpdateVmRequest
impl RefUnwindSafe for UpdateVmRequest
impl Send for UpdateVmRequest
impl Sync for UpdateVmRequest
impl Unpin for UpdateVmRequest
impl UnwindSafe for UpdateVmRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more