pub struct RunInstances<'a> {
pub region: &'a str,
pub image_id: &'a str,
pub instance_type: &'a str,
pub instance_name: Option<&'a str>,
pub instance_count: Option<u32>,
pub client_token: Option<&'a str>,
pub subnet_id: Option<&'a str>,
pub vpc_id: Option<&'a str>,
pub security_group_ids: Option<Vec<&'a str>>,
}Expand description
Request payload for RunInstances.
Fieldsยง
ยงregion: &'a strยงimage_id: &'a strยงinstance_type: &'a strยงinstance_name: Option<&'a str>ยงinstance_count: Option<u32>ยงclient_token: Option<&'a str>ยงsubnet_id: Option<&'a str>ยงvpc_id: Option<&'a str>ยงsecurity_group_ids: Option<Vec<&'a str>>Implementationsยง
Sourceยงimpl<'a> RunInstances<'a>
impl<'a> RunInstances<'a>
pub fn new(region: &'a str, image_id: &'a str, instance_type: &'a str) -> Self
pub fn with_instance_name(self, name: &'a str) -> Self
pub fn with_instance_count(self, count: u32) -> Self
pub fn with_client_token(self, token: &'a str) -> Self
pub fn with_subnet(self, subnet_id: &'a str) -> Self
pub fn with_vpc(self, vpc_id: &'a str) -> Self
pub fn with_security_groups<I>(self, groups: I) -> Selfwhere
I: IntoIterator<Item = &'a str>,
Trait Implementationsยง
Sourceยงimpl<'a> Endpoint for RunInstances<'a>
impl<'a> Endpoint for RunInstances<'a>
type Output = RunInstancesResponse
fn service(&self) -> Cow<'static, str>
fn action(&self) -> Cow<'static, str>
fn version(&self) -> Cow<'static, str>
fn region(&self) -> Option<Cow<'_, str>>
fn payload(&self) -> Value
fn scheme(&self) -> Cow<'static, str>
fn host(&self) -> Cow<'_, str>
fn path(&self) -> Cow<'_, str>
fn extra_headers(&self) -> Option<Vec<(Cow<'_, str>, Cow<'_, str>)>>
fn parse(&self, body: Value) -> Result<Self::Output, TencentCloudError>
Auto Trait Implementationsยง
impl<'a> Freeze for RunInstances<'a>
impl<'a> RefUnwindSafe for RunInstances<'a>
impl<'a> Send for RunInstances<'a>
impl<'a> Sync for RunInstances<'a>
impl<'a> Unpin for RunInstances<'a>
impl<'a> UnwindSafe for RunInstances<'a>
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