Class InstanceCpuOptionsArgs.Builder

  • Enclosing class:
    InstanceCpuOptionsArgs

    public static final class InstanceCpuOptionsArgs.Builder
    extends java.lang.Object
    • Method Detail

      • amdSevSnp

        public InstanceCpuOptionsArgs.Builder amdSevSnp​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> amdSevSnp)
        Parameters:
        amdSevSnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are `enabled` and `disabled`.
        Returns:
        builder
      • amdSevSnp

        public InstanceCpuOptionsArgs.Builder amdSevSnp​(java.lang.String amdSevSnp)
        Parameters:
        amdSevSnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are `enabled` and `disabled`.
        Returns:
        builder
      • coreCount

        public InstanceCpuOptionsArgs.Builder coreCount​(@Nullable
                                                        com.pulumi.core.Output<java.lang.Integer> coreCount)
        Parameters:
        coreCount - Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options [CPU Cores and Threads Per CPU Core Per Instance Type](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html#cpu-options-supported-instances-values) - specifying this option for unsupported instance types will return an error from the EC2 API.
        Returns:
        builder
      • coreCount

        public InstanceCpuOptionsArgs.Builder coreCount​(java.lang.Integer coreCount)
        Parameters:
        coreCount - Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options [CPU Cores and Threads Per CPU Core Per Instance Type](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html#cpu-options-supported-instances-values) - specifying this option for unsupported instance types will return an error from the EC2 API.
        Returns:
        builder
      • nestedVirtualization

        public InstanceCpuOptionsArgs.Builder nestedVirtualization​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.String> nestedVirtualization)
        Parameters:
        nestedVirtualization - Indicates whether to enable the instance for nested virtualization. Nested virtualization is supported on 8th generation Intel-based instance types (C8i, M8i, R8i, and their flex variants) only. When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance. Valid values are `enabled` and `disabled`.
        Returns:
        builder
      • nestedVirtualization

        public InstanceCpuOptionsArgs.Builder nestedVirtualization​(java.lang.String nestedVirtualization)
        Parameters:
        nestedVirtualization - Indicates whether to enable the instance for nested virtualization. Nested virtualization is supported on 8th generation Intel-based instance types (C8i, M8i, R8i, and their flex variants) only. When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance. Valid values are `enabled` and `disabled`.
        Returns:
        builder
      • threadsPerCore

        public InstanceCpuOptionsArgs.Builder threadsPerCore​(@Nullable
                                                             com.pulumi.core.Output<java.lang.Integer> threadsPerCore)
        Parameters:
        threadsPerCore - If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See [Optimizing CPU Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) for more information. For more information, see the documentation on [Optimizing CPU options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html).
        Returns:
        builder
      • threadsPerCore

        public InstanceCpuOptionsArgs.Builder threadsPerCore​(java.lang.Integer threadsPerCore)
        Parameters:
        threadsPerCore - If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See [Optimizing CPU Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) for more information. For more information, see the documentation on [Optimizing CPU options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html).
        Returns:
        builder