ComputeEnvironmentComputeResources constructor

const ComputeEnvironmentComputeResources({
  1. Input<String?>? allocationStrategy,
  2. Input<int?>? bidPercentage,
  3. Input<int?>? desiredVcpus,
  4. Input<List<ComputeEnvironmentComputeResourcesEc2Configuration>?>? ec2Configurations,
  5. Input<String?>? ec2KeyPair,
  6. Input<String?>? imageId,
  7. Input<String?>? instanceRole,
  8. Input<List<String>?>? instanceTypes,
  9. Input<ComputeEnvironmentComputeResourcesLaunchTemplate?>? launchTemplate,
  10. required Input<int> maxVcpus,
  11. Input<int?>? minVcpus,
  12. Input<String?>? placementGroup,
  13. Input<List<String>?>? securityGroupIds,
  14. Input<String?>? spotIamFleetRole,
  15. required Input<List<String>> subnets,
  16. Input<Map<String, String>?>? tags,
  17. required Input<String> type,
})

Creates a new ComputeEnvironmentComputeResources. allocationStrategy The allocation strategy to use for the compute resource in case not enough instances of the best fitting instance type can be allocated. For valid values, refer to the AWS documentation. Defaults to BEST_FIT. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. bidPercentage Integer of 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 bid percentage is 20% (20), then the Spot price must be below 20% of the current On-Demand price for that EC2 instance. If you leave this field empty, the default value is 100% of the On-Demand price. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. desiredVcpus The desired number of EC2 vCPUS in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. ec2Configurations Provides information used to select AMIs for EC2 instances in the compute environment. If Ec2Configuration isn't specified, the default is ECS_AL2. This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified. ec2KeyPair The EC2 key pair that is used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. imageId AMI ID used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. (Deprecated, use ec2Configuration imageIdOverride instead) instanceRole The Amazon ECS instance role applied to Amazon EC2 instances in a compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. instanceTypes A list of instance types that may be launched. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. launchTemplate The launch template to use for your compute resources. See details below. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. maxVcpus The maximum number of EC2 vCPUs that an environment can reach. minVcpus The minimum number of EC2 vCPUs that an environment should maintain. For EC2 or SPOT compute environments, if the parameter is not explicitly defined, a 0 default value will be set. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. placementGroup The Amazon EC2 placement group to associate with your compute resources. securityGroupIds A list of EC2 security group that are associated with instances launched in the compute environment. This parameter is required for Fargate compute environments. spotIamFleetRole ARN of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This parameter is required for SPOT compute environments. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. subnets A list of VPC subnets into which the compute resources are launched. tags Key-value pair tags to be applied to resources that are launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. type The type of compute environment. Valid items are EC2, SPOT, FARGATE or FARGATE_SPOT.

Implementation

const ComputeEnvironmentComputeResources({
  this.allocationStrategy,
  this.bidPercentage,
  this.desiredVcpus,
  this.ec2Configurations,
  this.ec2KeyPair,
  this.imageId,
  this.instanceRole,
  this.instanceTypes,
  this.launchTemplate,
  required this.maxVcpus,
  this.minVcpus,
  this.placementGroup,
  this.securityGroupIds,
  this.spotIamFleetRole,
  required this.subnets,
  this.tags,
  required this.type,
});