Packages

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.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComputeResources
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val BidPercentage: Option[Token[Int]]
  5. val DesiredvCpus: Option[Token[Int]]
  6. val Ec2KeyPair: Option[Token[String]]
  7. val ImageId: Option[Token[String]]
  8. val InstanceRole: Token[String]
  9. val InstanceTypes: TokenSeq[String]
  10. val MaxvCpus: Token[Int]
  11. val MinvCpus: Token[Int]
  12. val SecurityGroupIds: Seq[ResourceRef[AWS::EC2::SecurityGroup]]
  13. val SpotIamFleetRole: Option[Token[String]]
  14. val Subnets: Seq[ResourceRef[AWS::EC2::Subnet]]
  15. val Tags: Option[Seq[AmazonTag]]
  16. val Type: ComputeResourcesType
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped