ComputeEnvironmentComputeResourcesArgs

data class ComputeEnvironmentComputeResourcesArgs(val allocationStrategy: Output<String>? = null, val bidPercentage: Output<Int>? = null, val desiredVcpus: Output<Int>? = null, val ec2Configurations: Output<List<ComputeEnvironmentComputeResourcesEc2ConfigurationArgs>>? = null, val ec2KeyPair: Output<String>? = null, val imageId: Output<String>? = null, val instanceRole: Output<String>? = null, val instanceTypes: Output<List<String>>? = null, val launchTemplate: Output<ComputeEnvironmentComputeResourcesLaunchTemplateArgs>? = null, val maxVcpus: Output<Int>, val minVcpus: Output<Int>? = null, val placementGroup: Output<String>? = null, val securityGroupIds: Output<List<String>>? = null, val spotIamFleetRole: Output<String>? = null, val subnets: Output<List<String>>, val tags: Output<Map<String, String>>? = null, val type: Output<String>) : ConvertibleToJava<ComputeEnvironmentComputeResourcesArgs>

Constructors

Link copied to clipboard
constructor(allocationStrategy: Output<String>? = null, bidPercentage: Output<Int>? = null, desiredVcpus: Output<Int>? = null, ec2Configurations: Output<List<ComputeEnvironmentComputeResourcesEc2ConfigurationArgs>>? = null, ec2KeyPair: Output<String>? = null, imageId: Output<String>? = null, instanceRole: Output<String>? = null, instanceTypes: Output<List<String>>? = null, launchTemplate: Output<ComputeEnvironmentComputeResourcesLaunchTemplateArgs>? = null, maxVcpus: Output<Int>, minVcpus: Output<Int>? = null, placementGroup: Output<String>? = null, securityGroupIds: Output<List<String>>? = null, spotIamFleetRole: Output<String>? = null, subnets: Output<List<String>>, tags: Output<Map<String, String>>? = null, type: Output<String>)

Properties

Link copied to clipboard
val allocationStrategy: Output<String>? = null

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.

Link copied to clipboard
val bidPercentage: Output<Int>? = null

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.

Link copied to clipboard
val desiredVcpus: Output<Int>? = null

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.

Link copied to clipboard

Provides information used to select Amazon Machine Images (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.

Link copied to clipboard
val ec2KeyPair: Output<String>? = null

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.

Link copied to clipboard
val imageId: Output<String>? = null

The Amazon Machine Image (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 ec2_configuration image_id_override instead)

Link copied to clipboard
val instanceRole: Output<String>? = null

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.

Link copied to clipboard
val instanceTypes: Output<List<String>>? = null

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.

Link copied to clipboard

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.

Link copied to clipboard
val maxVcpus: Output<Int>

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

Link copied to clipboard
val minVcpus: Output<Int>? = null

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.

Link copied to clipboard
val placementGroup: Output<String>? = null

The Amazon EC2 placement group to associate with your compute resources.

Link copied to clipboard
val securityGroupIds: Output<List<String>>? = null

A list of EC2 security group that are associated with instances launched in the compute environment. This parameter is required for Fargate compute environments.

Link copied to clipboard
val spotIamFleetRole: Output<String>? = null

The Amazon Resource Name (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.

Link copied to clipboard
val subnets: Output<List<String>>

A list of VPC subnets into which the compute resources are launched.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.

Link copied to clipboard
val type: Output<String>

The type of compute environment. Valid items are EC2, SPOT, FARGATE or FARGATE_SPOT.

Functions

Link copied to clipboard
open override fun toJava(): ComputeEnvironmentComputeResourcesArgs