Class ComputeEnvironmentComputeResourcesArgs


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

      • allocationStrategy

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> allocationStrategy()
        Returns:
        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.
      • bidPercentage

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> bidPercentage()
        Returns:
        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.
      • desiredVcpus

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> desiredVcpus()
        Returns:
        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.
      • ec2Configurations

        public java.util.Optional<com.pulumi.core.Output<java.util.List<ComputeEnvironmentComputeResourcesEc2ConfigurationArgs>>> ec2Configurations()
        Returns:
        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.
      • ec2KeyPair

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> ec2KeyPair()
        Returns:
        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.
      • imageId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> imageId()
        Returns:
        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)
      • instanceRole

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> instanceRole()
        Returns:
        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.
      • instanceTypes

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

        public java.util.Optional<com.pulumi.core.Output<ComputeEnvironmentComputeResourcesLaunchTemplateArgs>> launchTemplate()
        Returns:
        Launch template to use for your compute resources. See details below. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
      • maxVcpus

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

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> minVcpus()
        Returns:
        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.
      • placementGroup

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> placementGroup()
        Returns:
        Amazon EC2 placement group to associate with your compute resources.
      • securityGroupIds

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

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> spotIamFleetRole()
        Returns:
        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.
      • subnets

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

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        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.
      • type

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