ComputeEnvironmentComputeResources class

Constructors

ComputeEnvironmentComputeResources({Input<String?>? allocationStrategy, Input<int?>? bidPercentage, Input<int?>? desiredVcpus, Input<List<ComputeEnvironmentComputeResourcesEc2Configuration>?>? ec2Configurations, Input<String?>? ec2KeyPair, Input<String?>? imageId, Input<String?>? instanceRole, Input<List<String>?>? instanceTypes, Input<ComputeEnvironmentComputeResourcesLaunchTemplate?>? launchTemplate, required Input<int> maxVcpus, Input<int?>? minVcpus, Input<String?>? placementGroup, Input<List<String>?>? securityGroupIds, Input<String?>? spotIamFleetRole, required Input<List<String>> subnets, Input<Map<String, String>?>? tags, 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.
const
ComputeEnvironmentComputeResources.fromMap(Map<String, dynamic> map)
factory

Properties

allocationStrategy → Input<String?>?
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.
final
bidPercentage → Input<int?>?
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.
final
desiredVcpus → Input<int?>?
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.
final
ec2Configurations → Input<List<ComputeEnvironmentComputeResourcesEc2Configuration>?>?
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.
final
ec2KeyPair → Input<String?>?
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.
final
hashCode → int
The hash code for this object.
no setterinherited
imageId → Input<String?>?
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)
final
instanceRole → Input<String?>?
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.
final
instanceTypes → Input<List<String>?>?
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.
final
launchTemplate → Input<ComputeEnvironmentComputeResourcesLaunchTemplate?>?
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.
final
maxVcpus → Input<int>
The maximum number of EC2 vCPUs that an environment can reach.
final
minVcpus → Input<int?>?
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.
final
placementGroup → Input<String?>?
The Amazon EC2 placement group to associate with your compute resources.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
securityGroupIds → Input<List<String>?>?
A list of EC2 security group that are associated with instances launched in the compute environment. This parameter is required for Fargate compute environments.
final
spotIamFleetRole → Input<String?>?
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.
final
subnets → Input<List<String>>
A list of VPC subnets into which the compute resources are launched.
final
tags → Input<Map<String, String>?>?
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.
final
type → Input<String>
The type of compute environment. Valid items are EC2, SPOT, FARGATE or FARGATE_SPOT.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited