Ec2FleetArgs

data class Ec2FleetArgs(val context: Output<String>? = null, val excessCapacityTerminationPolicy: Output<Ec2FleetExcessCapacityTerminationPolicy>? = null, val launchTemplateConfigs: Output<List<Ec2FleetFleetLaunchTemplateConfigRequestArgs>>? = null, val onDemandOptions: Output<Ec2FleetOnDemandOptionsRequestArgs>? = null, val replaceUnhealthyInstances: Output<Boolean>? = null, val spotOptions: Output<Ec2FleetSpotOptionsRequestArgs>? = null, val tagSpecifications: Output<List<Ec2FleetTagSpecificationArgs>>? = null, val targetCapacitySpecification: Output<Ec2FleetTargetCapacitySpecificationRequestArgs>? = null, val terminateInstancesWithExpiration: Output<Boolean>? = null, val type: Output<Ec2FleetType>? = null, val validFrom: Output<String>? = null, val validUntil: Output<String>? = null) : ConvertibleToJava<Ec2FleetArgs>

Resource Type definition for AWS::EC2::EC2Fleet

Constructors

Link copied to clipboard
constructor(context: Output<String>? = null, excessCapacityTerminationPolicy: Output<Ec2FleetExcessCapacityTerminationPolicy>? = null, launchTemplateConfigs: Output<List<Ec2FleetFleetLaunchTemplateConfigRequestArgs>>? = null, onDemandOptions: Output<Ec2FleetOnDemandOptionsRequestArgs>? = null, replaceUnhealthyInstances: Output<Boolean>? = null, spotOptions: Output<Ec2FleetSpotOptionsRequestArgs>? = null, tagSpecifications: Output<List<Ec2FleetTagSpecificationArgs>>? = null, targetCapacitySpecification: Output<Ec2FleetTargetCapacitySpecificationRequestArgs>? = null, terminateInstancesWithExpiration: Output<Boolean>? = null, type: Output<Ec2FleetType>? = null, validFrom: Output<String>? = null, validUntil: Output<String>? = null)

Properties

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

Reserved.

Link copied to clipboard

Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. Supported only for fleets of type maintain .

Link copied to clipboard

The configuration for the EC2 Fleet.

Link copied to clipboard

Describes the configuration of On-Demand Instances in an EC2 Fleet.

Link copied to clipboard
val replaceUnhealthyInstances: Output<Boolean>? = null

Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type maintain . For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide .

Link copied to clipboard

Describes the configuration of Spot Instances in an EC2 Fleet.

Link copied to clipboard

The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your resources . If the fleet type is instant , specify a resource type of fleet to tag the fleet or instance to tag the instances at launch. If the fleet type is maintain or request , specify a resource type of fleet to tag the fleet. You cannot specify a resource type of instance . To tag instances at launch, specify the tags in a launch template .

Link copied to clipboard

The number of units to request.

Link copied to clipboard

Indicates whether running instances should be terminated when the EC2 Fleet expires.

Link copied to clipboard
val type: Output<Ec2FleetType>? = null

The fleet type. The default value is maintain .

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

The start date and time of the request, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). The default is to start fulfilling the request immediately.

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

The end date and time of the request, in UTC format (for example, YYYY - MM - DD T HH : MM : SS Z). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.

Functions

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