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.
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.
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
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
🔬 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
)
Immutably borrows from an owned value. Read more
🔬 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
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static