Class FleetState.Builder

  • Enclosing class:
    FleetState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(FleetState defaults)
    • Method Detail

      • arn

        public FleetState.Builder arn​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The ARN of the fleet
        Returns:
        builder
      • arn

        public FleetState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - The ARN of the fleet
        Returns:
        builder
      • context

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

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

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

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

        public FleetState.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 FleetState.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 FleetState.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 FleetState.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 FleetState.Builder launchTemplateConfigs​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<FleetLaunchTemplateConfigArgs>> launchTemplateConfigs)
        Parameters:
        launchTemplateConfigs - Nested argument containing EC2 Launch Template configurations. Defined below.
        Returns:
        builder
      • launchTemplateConfigs

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

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

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

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

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

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

        public FleetState.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 `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public FleetState.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 `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public FleetState.Builder tagsAll​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public FleetState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • targetCapacitySpecification

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

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

        public FleetState.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 FleetState.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 FleetState.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 FleetState.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 FleetState.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 FleetState.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 FleetState.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 FleetState.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 FleetState.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 FleetState.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