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

Performs copy-assignment from source. Read more

impl Default for ComputeResource
[src]

impl PartialEq<ComputeResource> for ComputeResource
[src]

impl Debug for ComputeResource
[src]

impl Serialize for ComputeResource
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

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.

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

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.

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same for T

Should always be Self

impl<T> Erased for T