Class ComputeEnvironmentComputeResourcesArgs.Builder

    • Method Detail

      • allocationStrategy

        public ComputeEnvironmentComputeResourcesArgs.Builder allocationStrategy​(@Nullable
                                                                                 com.pulumi.core.Output<java.lang.String> allocationStrategy)
        Parameters:
        allocationStrategy - Allocation strategy to use for the compute resource in case not enough instances of the best fitting instance type can be allocated. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-allocationStrategy). Defaults to `BEST_FIT`. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • allocationStrategy

        public ComputeEnvironmentComputeResourcesArgs.Builder allocationStrategy​(java.lang.String allocationStrategy)
        Parameters:
        allocationStrategy - Allocation strategy to use for the compute resource in case not enough instances of the best fitting instance type can be allocated. For valid values, refer to the [AWS documentation](https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-allocationStrategy). Defaults to `BEST_FIT`. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • bidPercentage

        public ComputeEnvironmentComputeResourcesArgs.Builder bidPercentage​(@Nullable
                                                                            com.pulumi.core.Output<java.lang.Integer> bidPercentage)
        Parameters:
        bidPercentage - Integer of maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your bid percentage is 20% (`20`), then the Spot price must be below 20% of the current On-Demand price for that EC2 instance. If you leave this field empty, the default value is 100% of the On-Demand price. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • bidPercentage

        public ComputeEnvironmentComputeResourcesArgs.Builder bidPercentage​(java.lang.Integer bidPercentage)
        Parameters:
        bidPercentage - Integer of maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your bid percentage is 20% (`20`), then the Spot price must be below 20% of the current On-Demand price for that EC2 instance. If you leave this field empty, the default value is 100% of the On-Demand price. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • desiredVcpus

        public ComputeEnvironmentComputeResourcesArgs.Builder desiredVcpus​(@Nullable
                                                                           com.pulumi.core.Output<java.lang.Integer> desiredVcpus)
        Parameters:
        desiredVcpus - Desired number of EC2 vCPUS in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • desiredVcpus

        public ComputeEnvironmentComputeResourcesArgs.Builder desiredVcpus​(java.lang.Integer desiredVcpus)
        Parameters:
        desiredVcpus - Desired number of EC2 vCPUS in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • ec2Configurations

        public ComputeEnvironmentComputeResourcesArgs.Builder ec2Configurations​(@Nullable
                                                                                com.pulumi.core.Output<java.util.List<ComputeEnvironmentComputeResourcesEc2ConfigurationArgs>> ec2Configurations)
        Parameters:
        ec2Configurations - Provides information used to select AMIs for EC2 instances in the compute environment. If Ec2Configuration isn't specified, the default is ECS_AL2. This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • ec2KeyPair

        public ComputeEnvironmentComputeResourcesArgs.Builder ec2KeyPair​(@Nullable
                                                                         com.pulumi.core.Output<java.lang.String> ec2KeyPair)
        Parameters:
        ec2KeyPair - EC2 key pair that is used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • ec2KeyPair

        public ComputeEnvironmentComputeResourcesArgs.Builder ec2KeyPair​(java.lang.String ec2KeyPair)
        Parameters:
        ec2KeyPair - EC2 key pair that is used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • imageId

        public ComputeEnvironmentComputeResourcesArgs.Builder imageId​(@Nullable
                                                                      com.pulumi.core.Output<java.lang.String> imageId)
        Parameters:
        imageId - AMI ID used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. (Deprecated, use `ec2Configuration` `imageIdOverride` instead)
        Returns:
        builder
      • imageId

        public ComputeEnvironmentComputeResourcesArgs.Builder imageId​(java.lang.String imageId)
        Parameters:
        imageId - AMI ID used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. (Deprecated, use `ec2Configuration` `imageIdOverride` instead)
        Returns:
        builder
      • instanceRole

        public ComputeEnvironmentComputeResourcesArgs.Builder instanceRole​(@Nullable
                                                                           com.pulumi.core.Output<java.lang.String> instanceRole)
        Parameters:
        instanceRole - Amazon ECS instance role applied to Amazon EC2 instances in a compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • instanceRole

        public ComputeEnvironmentComputeResourcesArgs.Builder instanceRole​(java.lang.String instanceRole)
        Parameters:
        instanceRole - Amazon ECS instance role applied to Amazon EC2 instances in a compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • instanceTypes

        public ComputeEnvironmentComputeResourcesArgs.Builder instanceTypes​(@Nullable
                                                                            com.pulumi.core.Output<java.util.List<java.lang.String>> instanceTypes)
        Parameters:
        instanceTypes - List of instance types that may be launched. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • instanceTypes

        public ComputeEnvironmentComputeResourcesArgs.Builder instanceTypes​(java.util.List<java.lang.String> instanceTypes)
        Parameters:
        instanceTypes - List of instance types that may be launched. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • instanceTypes

        public ComputeEnvironmentComputeResourcesArgs.Builder instanceTypes​(java.lang.String... instanceTypes)
        Parameters:
        instanceTypes - List of instance types that may be launched. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • maxVcpus

        public ComputeEnvironmentComputeResourcesArgs.Builder maxVcpus​(com.pulumi.core.Output<java.lang.Integer> maxVcpus)
        Parameters:
        maxVcpus - Maximum number of EC2 vCPUs that an environment can reach.
        Returns:
        builder
      • minVcpus

        public ComputeEnvironmentComputeResourcesArgs.Builder minVcpus​(@Nullable
                                                                       com.pulumi.core.Output<java.lang.Integer> minVcpus)
        Parameters:
        minVcpus - Minimum number of EC2 vCPUs that an environment should maintain. For `EC2` or `SPOT` compute environments, if the parameter is not explicitly defined, a `0` default value will be set. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • minVcpus

        public ComputeEnvironmentComputeResourcesArgs.Builder minVcpus​(java.lang.Integer minVcpus)
        Parameters:
        minVcpus - Minimum number of EC2 vCPUs that an environment should maintain. For `EC2` or `SPOT` compute environments, if the parameter is not explicitly defined, a `0` default value will be set. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • placementGroup

        public ComputeEnvironmentComputeResourcesArgs.Builder placementGroup​(@Nullable
                                                                             com.pulumi.core.Output<java.lang.String> placementGroup)
        Parameters:
        placementGroup - Amazon EC2 placement group to associate with your compute resources.
        Returns:
        builder
      • placementGroup

        public ComputeEnvironmentComputeResourcesArgs.Builder placementGroup​(java.lang.String placementGroup)
        Parameters:
        placementGroup - Amazon EC2 placement group to associate with your compute resources.
        Returns:
        builder
      • securityGroupIds

        public ComputeEnvironmentComputeResourcesArgs.Builder securityGroupIds​(@Nullable
                                                                               com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds)
        Parameters:
        securityGroupIds - List of EC2 security group that are associated with instances launched in the compute environment. This parameter is required for Fargate compute environments.
        Returns:
        builder
      • securityGroupIds

        public ComputeEnvironmentComputeResourcesArgs.Builder securityGroupIds​(java.util.List<java.lang.String> securityGroupIds)
        Parameters:
        securityGroupIds - List of EC2 security group that are associated with instances launched in the compute environment. This parameter is required for Fargate compute environments.
        Returns:
        builder
      • securityGroupIds

        public ComputeEnvironmentComputeResourcesArgs.Builder securityGroupIds​(java.lang.String... securityGroupIds)
        Parameters:
        securityGroupIds - List of EC2 security group that are associated with instances launched in the compute environment. This parameter is required for Fargate compute environments.
        Returns:
        builder
      • spotIamFleetRole

        public ComputeEnvironmentComputeResourcesArgs.Builder spotIamFleetRole​(@Nullable
                                                                               com.pulumi.core.Output<java.lang.String> spotIamFleetRole)
        Parameters:
        spotIamFleetRole - ARN of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This parameter is required for SPOT compute environments. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • spotIamFleetRole

        public ComputeEnvironmentComputeResourcesArgs.Builder spotIamFleetRole​(java.lang.String spotIamFleetRole)
        Parameters:
        spotIamFleetRole - ARN of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This parameter is required for SPOT compute environments. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • subnets

        public ComputeEnvironmentComputeResourcesArgs.Builder subnets​(com.pulumi.core.Output<java.util.List<java.lang.String>> subnets)
        Parameters:
        subnets - List of VPC subnets into which the compute resources are launched.
        Returns:
        builder
      • tags

        public ComputeEnvironmentComputeResourcesArgs.Builder tags​(@Nullable
                                                                   com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Key-value pair tags to be applied to resources that are launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • tags

        public ComputeEnvironmentComputeResourcesArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Key-value pair tags to be applied to resources that are launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
        Returns:
        builder
      • type

        public ComputeEnvironmentComputeResourcesArgs.Builder type​(com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - Type of compute environment. Valid items are `EC2`, `SPOT`, `FARGATE` or `FARGATE_SPOT`.
        Returns:
        builder