AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

An object representing an AWS Batch compute resource.

Inheritance Hierarchy

System.Object
  Amazon.Batch.Model.ComputeResource

Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z

Syntax

C#
public class ComputeResource

The ComputeResource type exposes the following members

Constructors

NameDescription
Public Method ComputeResource()

Properties

NameTypeDescription
Public Property BidPercentage System.Int32

Gets and sets the property BidPercentage.

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.

Public Property DesiredvCpus System.Int32

Gets and sets the property DesiredvCpus.

The desired number of EC2 vCPUS in the compute environment.

Public Property Ec2KeyPair System.String

Gets and sets the property Ec2KeyPair.

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

Public Property ImageId System.String

Gets and sets the property ImageId.

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

Public Property InstanceRole System.String

Gets and sets the property InstanceRole.

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:::instance-profile/ecsInstanceRole. For more information, see Amazon ECS Instance Role in the AWS Batch User Guide.

Public Property InstanceTypes System.Collections.Generic.List<System.String>

Gets and sets the property InstanceTypes.

The instances types that may launched.

Public Property MaxvCpus System.Int32

Gets and sets the property MaxvCpus.

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

Public Property MinvCpus System.Int32

Gets and sets the property MinvCpus.

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

Public Property SecurityGroupIds System.Collections.Generic.List<System.String>

Gets and sets the property SecurityGroupIds.

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

Public Property SpotIamFleetRole System.String

Gets and sets the property SpotIamFleetRole.

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

Public Property Subnets System.Collections.Generic.List<System.String>

Gets and sets the property Subnets.

The VPC subnets into which the compute resources are launched.

Public Property Tags System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property Tags.

Key-value pair tags to be applied to resources that are launched in the compute environment.

Public Property Type Amazon.Batch.CRType

Gets and sets the property Type.

The type of compute environment.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms