[][src]Struct rusoto_batch::ComputeResource

pub struct ComputeResource {
    pub bid_percentage: Option<i64>,
    pub desiredv_cpus: Option<i64>,
    pub ec_2_key_pair: Option<String>,
    pub image_id: Option<String>,
    pub instance_role: String,
    pub instance_types: Vec<String>,
    pub maxv_cpus: i64,
    pub minv_cpus: i64,
    pub security_group_ids: Vec<String>,
    pub spot_iam_fleet_role: Option<String>,
    pub subnets: Vec<String>,
    pub tags: Option<HashMap<String, String>>,
    pub type_: String,
}

An object representing an AWS Batch compute resource.

Fields

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.

The desired number of EC2 vCPUS in the compute environment.

The EC2 key pair that is used for instances launched in the compute environment.

The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.

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.

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.

The maximum number of EC2 vCPUs that an environment can reach.

The minimum number of EC2 vCPUs that an environment should maintain.

The EC2 security group that is associated with instances launched in the compute environment.

The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment.

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.

The type of compute environment.

Trait Implementations

impl Clone for ComputeResource
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq<ComputeResource> for ComputeResource
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for ComputeResource
[src]

Returns the "default value" for a type. Read more

impl Debug for ComputeResource
[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for ComputeResource
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for ComputeResource
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 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> Erased for T

impl<T> Same for T

Should always be Self