Class FleetArgs.Builder

  • Enclosing class:
    FleetArgs

    public static final class FleetArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(FleetArgs defaults)
    • Method Detail

      • context

        public FleetArgs.Builder context​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> context)
        Parameters:
        context - Reserved.
        Returns:
        builder
      • context

        public FleetArgs.Builder context​(java.lang.String context)
        Parameters:
        context - Reserved.
        Returns:
        builder
      • excessCapacityTerminationPolicy

        public FleetArgs.Builder excessCapacityTerminationPolicy​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> excessCapacityTerminationPolicy)
        Parameters:
        excessCapacityTerminationPolicy - 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`.
        Returns:
        builder
      • excessCapacityTerminationPolicy

        public FleetArgs.Builder excessCapacityTerminationPolicy​(java.lang.String excessCapacityTerminationPolicy)
        Parameters:
        excessCapacityTerminationPolicy - 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`.
        Returns:
        builder
      • fleetInstanceSets

        public FleetArgs.Builder fleetInstanceSets​(@Nullable
                                                   com.pulumi.core.Output<java.util.List<FleetFleetInstanceSetArgs>> fleetInstanceSets)
        Parameters:
        fleetInstanceSets - Information about the instances that were launched by the fleet. Available only when `type` is set to `instant`.
        Returns:
        builder
      • fleetInstanceSets

        public FleetArgs.Builder fleetInstanceSets​(java.util.List<FleetFleetInstanceSetArgs> fleetInstanceSets)
        Parameters:
        fleetInstanceSets - Information about the instances that were launched by the fleet. Available only when `type` is set to `instant`.
        Returns:
        builder
      • fleetInstanceSets

        public FleetArgs.Builder fleetInstanceSets​(FleetFleetInstanceSetArgs... fleetInstanceSets)
        Parameters:
        fleetInstanceSets - Information about the instances that were launched by the fleet. Available only when `type` is set to `instant`.
        Returns:
        builder
      • fleetState

        public FleetArgs.Builder fleetState​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> fleetState)
        Parameters:
        fleetState - The state of the EC2 Fleet.
        Returns:
        builder
      • fleetState

        public FleetArgs.Builder fleetState​(java.lang.String fleetState)
        Parameters:
        fleetState - The state of the EC2 Fleet.
        Returns:
        builder
      • fulfilledCapacity

        public FleetArgs.Builder fulfilledCapacity​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Double> fulfilledCapacity)
        Parameters:
        fulfilledCapacity - The number of units fulfilled by this request compared to the set target capacity.
        Returns:
        builder
      • fulfilledCapacity

        public FleetArgs.Builder fulfilledCapacity​(java.lang.Double fulfilledCapacity)
        Parameters:
        fulfilledCapacity - The number of units fulfilled by this request compared to the set target capacity.
        Returns:
        builder
      • fulfilledOnDemandCapacity

        public FleetArgs.Builder fulfilledOnDemandCapacity​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Double> fulfilledOnDemandCapacity)
        Parameters:
        fulfilledOnDemandCapacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
        Returns:
        builder
      • fulfilledOnDemandCapacity

        public FleetArgs.Builder fulfilledOnDemandCapacity​(java.lang.Double fulfilledOnDemandCapacity)
        Parameters:
        fulfilledOnDemandCapacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
        Returns:
        builder
      • launchTemplateConfigs

        public FleetArgs.Builder launchTemplateConfigs​(com.pulumi.core.Output<java.util.List<FleetLaunchTemplateConfigArgs>> launchTemplateConfigs)
        Parameters:
        launchTemplateConfigs - Nested argument containing EC2 Launch Template configurations. Defined below.
        Returns:
        builder
      • launchTemplateConfigs

        public FleetArgs.Builder launchTemplateConfigs​(java.util.List<FleetLaunchTemplateConfigArgs> launchTemplateConfigs)
        Parameters:
        launchTemplateConfigs - Nested argument containing EC2 Launch Template configurations. Defined below.
        Returns:
        builder
      • launchTemplateConfigs

        public FleetArgs.Builder launchTemplateConfigs​(FleetLaunchTemplateConfigArgs... launchTemplateConfigs)
        Parameters:
        launchTemplateConfigs - Nested argument containing EC2 Launch Template configurations. Defined below.
        Returns:
        builder
      • onDemandOptions

        public FleetArgs.Builder onDemandOptions​(@Nullable
                                                 com.pulumi.core.Output<FleetOnDemandOptionsArgs> onDemandOptions)
        Parameters:
        onDemandOptions - Nested argument containing On-Demand configurations. Defined below.
        Returns:
        builder
      • onDemandOptions

        public FleetArgs.Builder onDemandOptions​(FleetOnDemandOptionsArgs onDemandOptions)
        Parameters:
        onDemandOptions - Nested argument containing On-Demand configurations. Defined below.
        Returns:
        builder
      • region

        public FleetArgs.Builder region​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - 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.
        Returns:
        builder
      • region

        public FleetArgs.Builder region​(java.lang.String region)
        Parameters:
        region - 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.
        Returns:
        builder
      • replaceUnhealthyInstances

        public FleetArgs.Builder replaceUnhealthyInstances​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Boolean> replaceUnhealthyInstances)
        Parameters:
        replaceUnhealthyInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to `false`. Supported only for fleets of type `maintain`.
        Returns:
        builder
      • replaceUnhealthyInstances

        public FleetArgs.Builder replaceUnhealthyInstances​(java.lang.Boolean replaceUnhealthyInstances)
        Parameters:
        replaceUnhealthyInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to `false`. Supported only for fleets of type `maintain`.
        Returns:
        builder
      • spotOptions

        public FleetArgs.Builder spotOptions​(@Nullable
                                             com.pulumi.core.Output<FleetSpotOptionsArgs> spotOptions)
        Parameters:
        spotOptions - Nested argument containing Spot configurations. Defined below.
        Returns:
        builder
      • spotOptions

        public FleetArgs.Builder spotOptions​(FleetSpotOptionsArgs spotOptions)
        Parameters:
        spotOptions - Nested argument containing Spot configurations. Defined below.
        Returns:
        builder
      • tags

        public FleetArgs.Builder tags​(@Nullable
                                      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - 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.
        Returns:
        builder
      • tags

        public FleetArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - 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.
        Returns:
        builder
      • targetCapacitySpecification

        public FleetArgs.Builder targetCapacitySpecification​(com.pulumi.core.Output<FleetTargetCapacitySpecificationArgs> targetCapacitySpecification)
        Parameters:
        targetCapacitySpecification - Nested argument containing target capacity configurations. Defined below.
        Returns:
        builder
      • targetCapacitySpecification

        public FleetArgs.Builder targetCapacitySpecification​(FleetTargetCapacitySpecificationArgs targetCapacitySpecification)
        Parameters:
        targetCapacitySpecification - Nested argument containing target capacity configurations. Defined below.
        Returns:
        builder
      • terminateInstances

        public FleetArgs.Builder terminateInstances​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Boolean> terminateInstances)
        Parameters:
        terminateInstances - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to `false`.
        Returns:
        builder
      • terminateInstances

        public FleetArgs.Builder terminateInstances​(java.lang.Boolean terminateInstances)
        Parameters:
        terminateInstances - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to `false`.
        Returns:
        builder
      • terminateInstancesWithExpiration

        public FleetArgs.Builder terminateInstancesWithExpiration​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.Boolean> terminateInstancesWithExpiration)
        Parameters:
        terminateInstancesWithExpiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to `false`.
        Returns:
        builder
      • terminateInstancesWithExpiration

        public FleetArgs.Builder terminateInstancesWithExpiration​(java.lang.Boolean terminateInstancesWithExpiration)
        Parameters:
        terminateInstancesWithExpiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to `false`.
        Returns:
        builder
      • type

        public FleetArgs.Builder type​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - 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`.
        Returns:
        builder
      • type

        public FleetArgs.Builder type​(java.lang.String type)
        Parameters:
        type - 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`.
        Returns:
        builder
      • validFrom

        public FleetArgs.Builder validFrom​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> validFrom)
        Parameters:
        validFrom - 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.
        Returns:
        builder
      • validFrom

        public FleetArgs.Builder validFrom​(java.lang.String validFrom)
        Parameters:
        validFrom - 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.
        Returns:
        builder
      • validUntil

        public FleetArgs.Builder validUntil​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> validUntil)
        Parameters:
        validUntil - 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.
        Returns:
        builder
      • validUntil

        public FleetArgs.Builder validUntil​(java.lang.String validUntil)
        Parameters:
        validUntil - 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.
        Returns:
        builder