[][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 launch_template: Option<LaunchTemplateSpecification>,
    pub maxv_cpus: i64,
    pub minv_cpus: i64,
    pub placement_group: Option<String>,
    pub security_group_ids: Option<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

bid_percentage: Option<i64>

The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must be below 20% of the current On-Demand price for that EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand price.

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 C, M, and R instance families) on the fly that match the demand of your job queues.

launch_template: Option<LaunchTemplateSpecification>

The launch template to use for your compute resources. Any other compute resource parameters that you specify in a CreateComputeEnvironment API operation override the same parameters in the launch template. You must specify either the launch template ID or launch template name in the request, but not both. For more information, see Launch Template Support in the AWS Batch User Guide.

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 (even if the compute environment is DISABLED).

placement_group: Option<String>

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel jobs to your compute environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential. For more information, see Placement Groups in the Amazon EC2 User Guide for Linux Instances.

security_group_ids: Option<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. For more information, see Amazon EC2 Spot Fleet Role in the AWS Batch User Guide.

subnets: Vec<String>

The VPC subnets into which the compute resources are launched.

tags: Option<HashMap<String, String>>

Key-value pair tags to be applied to resources that are launched in the compute environment. For AWS Batch, these take the form of "String1": "String2", where String1 is the tag key and String2 is the tag value—for example, { "Name": "AWS Batch Instance - C4OnDemand" }.

type_: String

The type of compute environment: EC2 or SPOT.

Trait Implementations

impl PartialEq<ComputeResource> for ComputeResource[src]

impl Default for ComputeResource[src]

impl Clone for ComputeResource[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ComputeResource[src]

impl Serialize for ComputeResource[src]

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

Auto Trait Implementations

impl Send for ComputeResource

impl Sync for ComputeResource

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]

type Owned = T

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

type Error = !

🔬 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> BorrowMut for T where
    T: ?Sized
[src]

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

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self