[−][src]Struct rusoto_batch::ComputeResource
An object representing an AWS Batch compute resource.
Fields
bid_percentage: Option<i64>
The minimum percentage that a Spot Instance price must be when compared with the On-Demand price for that instance type before instances are launched. For example, if your bid percentage is 20%, then the Spot price must be below 20% of the current On-Demand price for that EC2 instance.
desiredv_cpus: Option<i64>
The desired number of EC2 vCPUS in the compute environment.
ec_2_key_pair: Option<String>
The EC2 key pair that is used for instances launched in the compute environment.
image_id: Option<String>
The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
instance_role: String
The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ecsInstanceRole
or arn:aws:iam::<aws_account_id>:instance-profile/ecsInstanceRole
. For more information, see Amazon ECS Instance Role in the AWS Batch User Guide.
instance_types: Vec<String>
The instances types that may be launched. You can specify instance families to launch any instance type within those families (for example, c4
or p3
), or you can specify specific sizes within a family (such as c4.8xlarge
). You can also choose optimal
to pick instance types (from the latest C, M, and R instance families) on the fly that match the demand of your job queues.
maxv_cpus: i64
The maximum number of EC2 vCPUs that an environment can reach.
minv_cpus: i64
The minimum number of EC2 vCPUs that an environment should maintain.
security_group_ids: Vec<String>
The EC2 security group that is associated with instances launched in the compute environment.
spot_iam_fleet_role: Option<String>
The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT
compute environment.
subnets: Vec<String>
The VPC subnets into which the compute resources are launched.
Key-value pair tags to be applied to resources that are launched in the compute environment.
type_: String
The type of compute environment.
Trait Implementations
impl Clone for ComputeResource
[src]
impl Clone for ComputeResource
fn clone(&self) -> ComputeResource
[src]
fn clone(&self) -> ComputeResource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq<ComputeResource> for ComputeResource
[src]
impl PartialEq<ComputeResource> for ComputeResource
fn eq(&self, other: &ComputeResource) -> bool
[src]
fn eq(&self, other: &ComputeResource) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ComputeResource) -> bool
[src]
fn ne(&self, other: &ComputeResource) -> bool
This method tests for !=
.
impl Default for ComputeResource
[src]
impl Default for ComputeResource
fn default() -> ComputeResource
[src]
fn default() -> ComputeResource
Returns the "default value" for a type. Read more
impl Debug for ComputeResource
[src]
impl Debug for ComputeResource
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for ComputeResource
[src]
impl<'de> Deserialize<'de> for ComputeResource
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for ComputeResource
[src]
impl Serialize for ComputeResource
Auto Trait Implementations
impl Send for ComputeResource
impl Send for ComputeResource
impl Sync for ComputeResource
impl Sync for ComputeResource
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Erased for T
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self