com.monsanto.arch.cloudformation.model.resource
ComputeResources
Companion object ComputeResources
case class ComputeResources(Type: ComputeResourcesType, InstanceTypes: TokenSeq[String], MinvCpus: Token[Int], MaxvCpus: Token[Int], SecurityGroupIds: Seq[ResourceRef[AWS::EC2::SecurityGroup]], Subnets: Seq[ResourceRef[AWS::EC2::Subnet]], ImageId: Option[Token[String]] = None, Ec2KeyPair: Option[Token[String]] = None, InstanceRole: Token[String], DesiredvCpus: Option[Token[Int]] = None, SpotIamFleetRole: Option[Token[String]] = None, BidPercentage: Option[Token[Int]] = None, Tags: Option[Seq[AmazonTag]] = None) extends Product with Serializable
The ComputeResources
property type specifies details of the compute resources managed by the compute environment.
This parameter is required for managed compute environments. For more information, see
Compute Environments
in the AWS Batch User Guide.
ComputeResources is a property of the com.monsanto.arch.cloudformation.model.resource.`AWS::Batch::ComputeEnvironment` resource.
- Type
The type of compute environment: EC2 or SPOT.
- InstanceTypes
The instances types that may launched.
- MinvCpus
The minimum number of EC2 vCPUs that an environment should maintain.
- MaxvCpus
The maximum number of EC2 vCPUs that an environment can reach.
- SecurityGroupIds
The EC2 security group that is associated with instances launched in the compute environment.
- Subnets
The VPC subnets into which the compute resources are launched.
- ImageId
The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
- Ec2KeyPair
The EC2 key pair that is used for instances launched in the compute environment.
- InstanceRole
The Amazon ECS instance profile ARN applied to Amazon EC2 instances in a compute environment.
- DesiredvCpus
The desired number of EC2 vCPUS in the compute environment.
- SpotIamFleetRole
The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment.
- 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.
- Tags
Key-value pair tags to be applied to resources that are launched in the compute environment.
- Alphabetic
- By Inheritance
- ComputeResources
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ComputeResources(Type: ComputeResourcesType, InstanceTypes: TokenSeq[String], MinvCpus: Token[Int], MaxvCpus: Token[Int], SecurityGroupIds: Seq[ResourceRef[AWS::EC2::SecurityGroup]], Subnets: Seq[ResourceRef[AWS::EC2::Subnet]], ImageId: Option[Token[String]] = None, Ec2KeyPair: Option[Token[String]] = None, InstanceRole: Token[String], DesiredvCpus: Option[Token[Int]] = None, SpotIamFleetRole: Option[Token[String]] = None, BidPercentage: Option[Token[Int]] = None, Tags: Option[Seq[AmazonTag]] = None)
- Type
The type of compute environment: EC2 or SPOT.
- InstanceTypes
The instances types that may launched.
- MinvCpus
The minimum number of EC2 vCPUs that an environment should maintain.
- MaxvCpus
The maximum number of EC2 vCPUs that an environment can reach.
- SecurityGroupIds
The EC2 security group that is associated with instances launched in the compute environment.
- Subnets
The VPC subnets into which the compute resources are launched.
- ImageId
The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
- Ec2KeyPair
The EC2 key pair that is used for instances launched in the compute environment.
- InstanceRole
The Amazon ECS instance profile ARN applied to Amazon EC2 instances in a compute environment.
- DesiredvCpus
The desired number of EC2 vCPUS in the compute environment.
- SpotIamFleetRole
The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment.
- 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.
- Tags
Key-value pair tags to be applied to resources that are launched in the compute environment.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val BidPercentage: Option[Token[Int]]
- val DesiredvCpus: Option[Token[Int]]
- val Ec2KeyPair: Option[Token[String]]
- val ImageId: Option[Token[String]]
- val InstanceRole: Token[String]
- val InstanceTypes: TokenSeq[String]
- val MaxvCpus: Token[Int]
- val MinvCpus: Token[Int]
- val SecurityGroupIds: Seq[ResourceRef[AWS::EC2::SecurityGroup]]
- val SpotIamFleetRole: Option[Token[String]]
- val Subnets: Seq[ResourceRef[AWS::EC2::Subnet]]
- val Tags: Option[Seq[AmazonTag]]
- val Type: ComputeResourcesType
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )