Class SpotFleetRequestArgs


  • public final class SpotFleetRequestArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • allocationStrategy

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> allocationStrategy()
        Returns:
        Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. Valid values: `lowestPrice`, `diversified`, `capacityOptimized`, `capacityOptimizedPrioritized`, and `priceCapacityOptimized`. The default is `lowestPrice`.
      • 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:
        Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
      • fleetType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> fleetType()
        Returns:
        The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is `maintain`.
      • iamFleetRole

        public com.pulumi.core.Output<java.lang.String> iamFleetRole()
        Returns:
        Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.
      • instanceInterruptionBehaviour

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> instanceInterruptionBehaviour()
        Returns:
        Indicates whether a Spot instance stops or terminates when it is interrupted. Default is `terminate`.
      • instancePoolsToUseCount

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> instancePoolsToUseCount()
        Returns:
        The number of Spot pools across which to allocate your target Spot capacity. Valid only when `allocationStrategy` is set to `lowestPrice`. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.
      • launchSpecifications

        public java.util.Optional<com.pulumi.core.Output<java.util.List<SpotFleetRequestLaunchSpecificationArgs>>> launchSpecifications()
        Returns:
        Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with `launchTemplateConfig`. At least one of `launchSpecification` or `launchTemplateConfig` is required. **Note**: This takes in similar but not identical inputs as `aws.ec2.Instance`. There are limitations on what you can specify. See the list of officially supported inputs in the [reference documentation](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetLaunchSpecification.html). Any normal `aws.ec2.Instance` parameter that corresponds to those inputs may be used and it have a additional parameter `iamInstanceProfileArn` takes `aws.iam.InstanceProfile` attribute `arn` as input.
      • launchTemplateConfigs

        public java.util.Optional<com.pulumi.core.Output<java.util.List<SpotFleetRequestLaunchTemplateConfigArgs>>> launchTemplateConfigs()
        Returns:
        Launch template configuration block. See Launch Template Configs below for more details. Conflicts with `launchSpecification`. At least one of `launchSpecification` or `launchTemplateConfig` is required.
      • loadBalancers

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> loadBalancers()
        Returns:
        A list of elastic load balancer names to add to the Spot fleet.
      • onDemandAllocationStrategy

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> onDemandAllocationStrategy()
        Returns:
        The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: `lowestPrice` and `prioritized`. the default is `lowestPrice`.
      • onDemandMaxTotalPrice

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> onDemandMaxTotalPrice()
        Returns:
        The maximum amount per hour for On-Demand Instances that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.
      • onDemandTargetCapacity

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> onDemandTargetCapacity()
        Returns:
        The number of On-Demand units to request. If the request type is `maintain`, you can specify a target capacity of 0 and add capacity later.
      • 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:
        Indicates whether Spot fleet should replace unhealthy instances. Default `false`.
      • spotMaintenanceStrategies

        public java.util.Optional<com.pulumi.core.Output<SpotFleetRequestSpotMaintenanceStrategiesArgs>> spotMaintenanceStrategies()
        Returns:
        Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
      • spotPrice

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> spotPrice()
        Returns:
        The maximum bid price per unit hour.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • targetCapacity

        public com.pulumi.core.Output<java.lang.Integer> targetCapacity()
        Returns:
        The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.
      • targetCapacityUnitType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> targetCapacityUnitType()
        Returns:
        The unit for the target capacity. This can only be done with `instanceRequirements` defined
      • targetGroupArns

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> targetGroupArns()
        Returns:
        A list of `aws.alb.TargetGroup` ARNs, for use with Application Load Balancing.
      • terminateInstancesOnDelete

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> terminateInstancesOnDelete()
        Returns:
        Indicates whether running Spot instances should be terminated when the resource is deleted (and the Spot fleet request cancelled). If no value is specified, the value of the `terminateInstancesWithExpiration` argument is used.
      • terminateInstancesWithExpiration

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> terminateInstancesWithExpiration()
        Returns:
        Indicates whether running Spot instances should be terminated when the Spot fleet request expires.
      • validFrom

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> validFrom()
        Returns:
        The start date and time of the request, in UTC [RFC3339](https://tools.ietf.org/html/rfc3339#section-5.8) 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 [RFC3339](https://tools.ietf.org/html/rfc3339#section-5.8) format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.
      • waitForFulfillment

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> waitForFulfillment()
        Returns:
        If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.