Class FleetArgs


  • public final class FleetArgs
    extends com.pulumi.resources.ResourceArgs
    • Field Detail

    • Method Detail

      • context

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> context()
        Returns:
        Reserved.
      • excessCapacityTerminationPolicy

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> excessCapacityTerminationPolicy()
        Returns:
        Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: `no-termination`, `termination`. Defaults to `termination`. Supported only for fleets of type `maintain`.
      • fleetInstanceSets

        public java.util.Optional<com.pulumi.core.Output<java.util.List<FleetFleetInstanceSetArgs>>> fleetInstanceSets()
        Returns:
        Information about the instances that were launched by the fleet. Available only when `type` is set to `instant`.
      • fleetState

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> fleetState()
        Returns:
        The state of the EC2 Fleet.
      • fulfilledCapacity

        public java.util.Optional<com.pulumi.core.Output<java.lang.Double>> fulfilledCapacity()
        Returns:
        The number of units fulfilled by this request compared to the set target capacity.
      • fulfilledOnDemandCapacity

        public java.util.Optional<com.pulumi.core.Output<java.lang.Double>> fulfilledOnDemandCapacity()
        Returns:
        The number of units fulfilled by this request compared to the set target On-Demand capacity.
      • launchTemplateConfigs

        public com.pulumi.core.Output<java.util.List<FleetLaunchTemplateConfigArgs>> launchTemplateConfigs()
        Returns:
        Nested argument containing EC2 Launch Template configurations. Defined below.
      • onDemandOptions

        public java.util.Optional<com.pulumi.core.Output<FleetOnDemandOptionsArgs>> onDemandOptions()
        Returns:
        Nested argument containing On-Demand configurations. Defined below.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • replaceUnhealthyInstances

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> replaceUnhealthyInstances()
        Returns:
        Whether EC2 Fleet should replace unhealthy instances. Defaults to `false`. Supported only for fleets of type `maintain`.
      • spotOptions

        public java.util.Optional<com.pulumi.core.Output<FleetSpotOptionsArgs>> spotOptions()
        Returns:
        Nested argument containing Spot configurations. Defined below.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • targetCapacitySpecification

        public com.pulumi.core.Output<FleetTargetCapacitySpecificationArgs> targetCapacitySpecification()
        Returns:
        Nested argument containing target capacity configurations. Defined below.
      • terminateInstances

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> terminateInstances()
        Returns:
        Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to `false`.
      • terminateInstancesWithExpiration

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> terminateInstancesWithExpiration()
        Returns:
        Whether running instances should be terminated when the EC2 Fleet expires. Defaults to `false`.
      • type

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> type()
        Returns:
        The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: `maintain`, `request`, `instant`. Defaults to `maintain`.
      • validFrom

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> validFrom()
        Returns:
        The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
      • validUntil

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> validUntil()
        Returns:
        The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). 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.