Interface UpdateComputeNodeGroupRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateComputeNodeGroupRequest.Builder,,UpdateComputeNodeGroupRequest> PcsRequest.Builder,SdkBuilder<UpdateComputeNodeGroupRequest.Builder,,UpdateComputeNodeGroupRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateComputeNodeGroupRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Amazon Machine Image (AMI) that PCS uses to launch instances.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.clusterIdentifier(String clusterIdentifier) The name or ID of the cluster of the compute node group.computeNodeGroupIdentifier(String computeNodeGroupIdentifier) The name or ID of the compute node group.customLaunchTemplate(Consumer<CustomLaunchTemplate.Builder> customLaunchTemplate) The custom Amazon EC2 launch template to associate with the compute node group.customLaunchTemplate(CustomLaunchTemplate customLaunchTemplate) The custom Amazon EC2 launch template to associate with the compute node group.iamInstanceProfileArn(String iamInstanceProfileArn) The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances.instanceHealthChecks(Consumer<UpdateInstanceHealthChecksRequest.Builder> instanceHealthChecks) The instance health check settings for the compute node group.instanceHealthChecks(UpdateInstanceHealthChecksRequest instanceHealthChecks) The instance health check settings for the compute node group.launchTemplateMode(String launchTemplateMode) Specifies whether the compute node group uses a custom launch template or a launch template that PCS manages.launchTemplateMode(LaunchTemplateMode launchTemplateMode) Specifies whether the compute node group uses a custom launch template or a launch template that PCS manages.nodeLifecycleActions(Consumer<UpdateNodeLifecycleActionsRequest.Builder> nodeLifecycleActions) The lifecycle actions to run on compute nodes in the compute node group.nodeLifecycleActions(UpdateNodeLifecycleActionsRequest nodeLifecycleActions) The lifecycle actions to run on compute nodes in the compute node group.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.purchaseOption(String purchaseOption) Specifies how EC2 instances are purchased on your behalf.purchaseOption(PurchaseOption purchaseOption) Specifies how EC2 instances are purchased on your behalf.scalingConfiguration(Consumer<ScalingConfigurationRequest.Builder> scalingConfiguration) Specifies the boundaries of the compute node group auto scaling.scalingConfiguration(ScalingConfigurationRequest scalingConfiguration) Specifies the boundaries of the compute node group auto scaling.securityGroupIds(String... securityGroupIds) The IDs of the EC2 security groups to configure directly on the compute node group.securityGroupIds(Collection<String> securityGroupIds) The IDs of the EC2 security groups to configure directly on the compute node group.slurmConfiguration(Consumer<UpdateComputeNodeGroupSlurmConfigurationRequest.Builder> slurmConfiguration) Additional options related to the Slurm scheduler.slurmConfiguration(UpdateComputeNodeGroupSlurmConfigurationRequest slurmConfiguration) Additional options related to the Slurm scheduler.spotOptions(Consumer<SpotOptions.Builder> spotOptions) Sets the value of the SpotOptions property for this object.spotOptions(SpotOptions spotOptions) Sets the value of the SpotOptions property for this object.sshKeyName(String sshKeyName) The name of the EC2 key pair to configure directly on the compute node group.The list of subnet IDs where the compute node group provisions instances.subnetIds(Collection<String> subnetIds) The list of subnet IDs where the compute node group provisions instances.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.pcs.model.PcsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
amiId
The ID of the Amazon Machine Image (AMI) that PCS uses to launch instances. This value overrides the AMI ID in the custom launch template. Specify an empty string (
"") to remove the AMI ID from the compute node group and use the AMI ID specified in the custom launch template. Omit this value to leave the current setting unchanged.- Parameters:
amiId- The ID of the Amazon Machine Image (AMI) that PCS uses to launch instances. This value overrides the AMI ID in the custom launch template. Specify an empty string ("") to remove the AMI ID from the compute node group and use the AMI ID specified in the custom launch template. Omit this value to leave the current setting unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The IDs of the EC2 security groups to configure directly on the compute node group. The security groups must be in the same VPC as the cluster. PCS uses these security groups instead of the security groups in the custom launch template. You can't specify this value if the custom launch template defines network interfaces. Specify an empty list (
[]) to remove the security groups from the compute node group and use the security groups in the custom launch template. Omit this value to leave the current setting unchanged.- Parameters:
securityGroupIds- The IDs of the EC2 security groups to configure directly on the compute node group. The security groups must be in the same VPC as the cluster. PCS uses these security groups instead of the security groups in the custom launch template. You can't specify this value if the custom launch template defines network interfaces. Specify an empty list ([]) to remove the security groups from the compute node group and use the security groups in the custom launch template. Omit this value to leave the current setting unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The IDs of the EC2 security groups to configure directly on the compute node group. The security groups must be in the same VPC as the cluster. PCS uses these security groups instead of the security groups in the custom launch template. You can't specify this value if the custom launch template defines network interfaces. Specify an empty list (
[]) to remove the security groups from the compute node group and use the security groups in the custom launch template. Omit this value to leave the current setting unchanged.- Parameters:
securityGroupIds- The IDs of the EC2 security groups to configure directly on the compute node group. The security groups must be in the same VPC as the cluster. PCS uses these security groups instead of the security groups in the custom launch template. You can't specify this value if the custom launch template defines network interfaces. Specify an empty list ([]) to remove the security groups from the compute node group and use the security groups in the custom launch template. Omit this value to leave the current setting unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sshKeyName
The name of the EC2 key pair to configure directly on the compute node group. The key pair must exist in your account and Amazon Web Services Region. PCS uses this key pair instead of the key pair in the custom launch template. Specify an empty string (
"") to remove the key pair from the compute node group and use the key pair in the custom launch template. Omit this value to leave the current setting unchanged. You must have permission forec2:DescribeKeyPairsto specify a key pair. If you delete the key pair later, future instance launches can fail.- Parameters:
sshKeyName- The name of the EC2 key pair to configure directly on the compute node group. The key pair must exist in your account and Amazon Web Services Region. PCS uses this key pair instead of the key pair in the custom launch template. Specify an empty string ("") to remove the key pair from the compute node group and use the key pair in the custom launch template. Omit this value to leave the current setting unchanged. You must have permission forec2:DescribeKeyPairsto specify a key pair. If you delete the key pair later, future instance launches can fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterIdentifier
The name or ID of the cluster of the compute node group.
- Parameters:
clusterIdentifier- The name or ID of the cluster of the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeNodeGroupIdentifier
The name or ID of the compute node group.
- Parameters:
computeNodeGroupIdentifier- The name or ID of the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The list of subnet IDs where the compute node group provisions instances. The subnets must be in the same VPC as the cluster.
- Parameters:
subnetIds- The list of subnet IDs where the compute node group provisions instances. The subnets must be in the same VPC as the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The list of subnet IDs where the compute node group provisions instances. The subnets must be in the same VPC as the cluster.
- Parameters:
subnetIds- The list of subnet IDs where the compute node group provisions instances. The subnets must be in the same VPC as the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateMode
Specifies whether the compute node group uses a custom launch template or a launch template that PCS manages. Omit this value to keep the current mode.
Valid values:
-
CUSTOM– Use a custom launch template. To switch fromMANAGED, also providecustomLaunchTemplate. If the compute node group already usesCUSTOMand you omitcustomLaunchTemplate, the existing launch template is unchanged. -
MANAGED– Use a launch template created and managed by PCS. OmitcustomLaunchTemplate. Switching to this mode removes the custom launch template association but doesn't delete the launch template.
When switching to
MANAGED, the compute node group must haveamiIdandsecurityGroupIdsconfigured. You can set these values in the same request.- Parameters:
launchTemplateMode- Specifies whether the compute node group uses a custom launch template or a launch template that PCS manages. Omit this value to keep the current mode.Valid values:
-
CUSTOM– Use a custom launch template. To switch fromMANAGED, also providecustomLaunchTemplate. If the compute node group already usesCUSTOMand you omitcustomLaunchTemplate, the existing launch template is unchanged. -
MANAGED– Use a launch template created and managed by PCS. OmitcustomLaunchTemplate. Switching to this mode removes the custom launch template association but doesn't delete the launch template.
When switching to
MANAGED, the compute node group must haveamiIdandsecurityGroupIdsconfigured. You can set these values in the same request.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
launchTemplateMode
Specifies whether the compute node group uses a custom launch template or a launch template that PCS manages. Omit this value to keep the current mode.
Valid values:
-
CUSTOM– Use a custom launch template. To switch fromMANAGED, also providecustomLaunchTemplate. If the compute node group already usesCUSTOMand you omitcustomLaunchTemplate, the existing launch template is unchanged. -
MANAGED– Use a launch template created and managed by PCS. OmitcustomLaunchTemplate. Switching to this mode removes the custom launch template association but doesn't delete the launch template.
When switching to
MANAGED, the compute node group must haveamiIdandsecurityGroupIdsconfigured. You can set these values in the same request.- Parameters:
launchTemplateMode- Specifies whether the compute node group uses a custom launch template or a launch template that PCS manages. Omit this value to keep the current mode.Valid values:
-
CUSTOM– Use a custom launch template. To switch fromMANAGED, also providecustomLaunchTemplate. If the compute node group already usesCUSTOMand you omitcustomLaunchTemplate, the existing launch template is unchanged. -
MANAGED– Use a launch template created and managed by PCS. OmitcustomLaunchTemplate. Switching to this mode removes the custom launch template association but doesn't delete the launch template.
When switching to
MANAGED, the compute node group must haveamiIdandsecurityGroupIdsconfigured. You can set these values in the same request.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
customLaunchTemplate
UpdateComputeNodeGroupRequest.Builder customLaunchTemplate(CustomLaunchTemplate customLaunchTemplate) The custom Amazon EC2 launch template to associate with the compute node group. To set or change the custom launch template, specify
idandversion. If you provide this value and omitlaunchTemplateMode, the compute node group must already useCUSTOMmode. To switch fromMANAGEDtoCUSTOM, specifylaunchTemplateModeasCUSTOMand provide this value. If the compute node group already usesCUSTOM, omit this value while also omittinglaunchTemplateMode, or while specifyingCUSTOM, to keep the existing custom launch template. For more information, see Migrating a compute node group from a custom launch template in the PCS User Guide.- Parameters:
customLaunchTemplate- The custom Amazon EC2 launch template to associate with the compute node group. To set or change the custom launch template, specifyidandversion. If you provide this value and omitlaunchTemplateMode, the compute node group must already useCUSTOMmode. To switch fromMANAGEDtoCUSTOM, specifylaunchTemplateModeasCUSTOMand provide this value. If the compute node group already usesCUSTOM, omit this value while also omittinglaunchTemplateMode, or while specifyingCUSTOM, to keep the existing custom launch template. For more information, see Migrating a compute node group from a custom launch template in the PCS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customLaunchTemplate
default UpdateComputeNodeGroupRequest.Builder customLaunchTemplate(Consumer<CustomLaunchTemplate.Builder> customLaunchTemplate) The custom Amazon EC2 launch template to associate with the compute node group. To set or change the custom launch template, specify
This is a convenience method that creates an instance of theidandversion. If you provide this value and omitlaunchTemplateMode, the compute node group must already useCUSTOMmode. To switch fromMANAGEDtoCUSTOM, specifylaunchTemplateModeasCUSTOMand provide this value. If the compute node group already usesCUSTOM, omit this value while also omittinglaunchTemplateMode, or while specifyingCUSTOM, to keep the existing custom launch template. For more information, see Migrating a compute node group from a custom launch template in the PCS User Guide.CustomLaunchTemplate.Builderavoiding the need to create one manually viaCustomLaunchTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomLaunchTemplate(CustomLaunchTemplate).- Parameters:
customLaunchTemplate- a consumer that will call methods onCustomLaunchTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
purchaseOption
Specifies how EC2 instances are purchased on your behalf. PCS supports On-Demand Instances, Spot Instances, Interruptible Capacity Reservations, On-Demand Capacity Reservations, and Amazon EC2 Capacity Blocks for ML. For more information, see Amazon EC2 billing and purchasing options in the Amazon Elastic Compute Cloud User Guide. For more information about PCS support for Capacity Blocks, see Using Amazon EC2 Capacity Blocks for ML with PCS in the PCS User Guide. For more information about PCS support for interruptible capacity reservations, see Using I-ODCRs with PCS in the PCS User Guide. Choose On-Demand if you plan to use an On-Demand Capacity Reservation (ODCR). For more information, see Using ODCRs with PCS. If you don't provide this option, it defaults to On-Demand.
- Parameters:
purchaseOption- Specifies how EC2 instances are purchased on your behalf. PCS supports On-Demand Instances, Spot Instances, Interruptible Capacity Reservations, On-Demand Capacity Reservations, and Amazon EC2 Capacity Blocks for ML. For more information, see Amazon EC2 billing and purchasing options in the Amazon Elastic Compute Cloud User Guide. For more information about PCS support for Capacity Blocks, see Using Amazon EC2 Capacity Blocks for ML with PCS in the PCS User Guide. For more information about PCS support for interruptible capacity reservations, see Using I-ODCRs with PCS in the PCS User Guide. Choose On-Demand if you plan to use an On-Demand Capacity Reservation (ODCR). For more information, see Using ODCRs with PCS. If you don't provide this option, it defaults to On-Demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
purchaseOption
Specifies how EC2 instances are purchased on your behalf. PCS supports On-Demand Instances, Spot Instances, Interruptible Capacity Reservations, On-Demand Capacity Reservations, and Amazon EC2 Capacity Blocks for ML. For more information, see Amazon EC2 billing and purchasing options in the Amazon Elastic Compute Cloud User Guide. For more information about PCS support for Capacity Blocks, see Using Amazon EC2 Capacity Blocks for ML with PCS in the PCS User Guide. For more information about PCS support for interruptible capacity reservations, see Using I-ODCRs with PCS in the PCS User Guide. Choose On-Demand if you plan to use an On-Demand Capacity Reservation (ODCR). For more information, see Using ODCRs with PCS. If you don't provide this option, it defaults to On-Demand.
- Parameters:
purchaseOption- Specifies how EC2 instances are purchased on your behalf. PCS supports On-Demand Instances, Spot Instances, Interruptible Capacity Reservations, On-Demand Capacity Reservations, and Amazon EC2 Capacity Blocks for ML. For more information, see Amazon EC2 billing and purchasing options in the Amazon Elastic Compute Cloud User Guide. For more information about PCS support for Capacity Blocks, see Using Amazon EC2 Capacity Blocks for ML with PCS in the PCS User Guide. For more information about PCS support for interruptible capacity reservations, see Using I-ODCRs with PCS in the PCS User Guide. Choose On-Demand if you plan to use an On-Demand Capacity Reservation (ODCR). For more information, see Using ODCRs with PCS. If you don't provide this option, it defaults to On-Demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spotOptions
Sets the value of the SpotOptions property for this object.- Parameters:
spotOptions- The new value for the SpotOptions property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotOptions
default UpdateComputeNodeGroupRequest.Builder spotOptions(Consumer<SpotOptions.Builder> spotOptions) Sets the value of the SpotOptions property for this object. This is a convenience method that creates an instance of theSpotOptions.Builderavoiding the need to create one manually viaSpotOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospotOptions(SpotOptions).- Parameters:
spotOptions- a consumer that will call methods onSpotOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scalingConfiguration
UpdateComputeNodeGroupRequest.Builder scalingConfiguration(ScalingConfigurationRequest scalingConfiguration) Specifies the boundaries of the compute node group auto scaling.
- Parameters:
scalingConfiguration- Specifies the boundaries of the compute node group auto scaling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingConfiguration
default UpdateComputeNodeGroupRequest.Builder scalingConfiguration(Consumer<ScalingConfigurationRequest.Builder> scalingConfiguration) Specifies the boundaries of the compute node group auto scaling.
This is a convenience method that creates an instance of theScalingConfigurationRequest.Builderavoiding the need to create one manually viaScalingConfigurationRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscalingConfiguration(ScalingConfigurationRequest).- Parameters:
scalingConfiguration- a consumer that will call methods onScalingConfigurationRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
iamInstanceProfileArn
The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have the
pcs:RegisterComputeNodeGroupInstancepermission and the role name must start withAWSPCSor must have the path/aws-pcs/. For more information, see IAM instance profiles for PCS in the PCS User Guide.- Parameters:
iamInstanceProfileArn- The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have thepcs:RegisterComputeNodeGroupInstancepermission and the role name must start withAWSPCSor must have the path/aws-pcs/. For more information, see IAM instance profiles for PCS in the PCS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slurmConfiguration
UpdateComputeNodeGroupRequest.Builder slurmConfiguration(UpdateComputeNodeGroupSlurmConfigurationRequest slurmConfiguration) Additional options related to the Slurm scheduler.
- Parameters:
slurmConfiguration- Additional options related to the Slurm scheduler.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slurmConfiguration
default UpdateComputeNodeGroupRequest.Builder slurmConfiguration(Consumer<UpdateComputeNodeGroupSlurmConfigurationRequest.Builder> slurmConfiguration) Additional options related to the Slurm scheduler.
This is a convenience method that creates an instance of theUpdateComputeNodeGroupSlurmConfigurationRequest.Builderavoiding the need to create one manually viaUpdateComputeNodeGroupSlurmConfigurationRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toslurmConfiguration(UpdateComputeNodeGroupSlurmConfigurationRequest).- Parameters:
slurmConfiguration- a consumer that will call methods onUpdateComputeNodeGroupSlurmConfigurationRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nodeLifecycleActions
UpdateComputeNodeGroupRequest.Builder nodeLifecycleActions(UpdateNodeLifecycleActionsRequest nodeLifecycleActions) The lifecycle actions to run on compute nodes in the compute node group. Use lifecycle actions to run custom scripts at defined stages of a compute node's lifecycle, such as when a compute node finishes bootstrapping or becomes ready to accept jobs.
- Parameters:
nodeLifecycleActions- The lifecycle actions to run on compute nodes in the compute node group. Use lifecycle actions to run custom scripts at defined stages of a compute node's lifecycle, such as when a compute node finishes bootstrapping or becomes ready to accept jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeLifecycleActions
default UpdateComputeNodeGroupRequest.Builder nodeLifecycleActions(Consumer<UpdateNodeLifecycleActionsRequest.Builder> nodeLifecycleActions) The lifecycle actions to run on compute nodes in the compute node group. Use lifecycle actions to run custom scripts at defined stages of a compute node's lifecycle, such as when a compute node finishes bootstrapping or becomes ready to accept jobs.
This is a convenience method that creates an instance of theUpdateNodeLifecycleActionsRequest.Builderavoiding the need to create one manually viaUpdateNodeLifecycleActionsRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonodeLifecycleActions(UpdateNodeLifecycleActionsRequest).- Parameters:
nodeLifecycleActions- a consumer that will call methods onUpdateNodeLifecycleActionsRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceHealthChecks
UpdateComputeNodeGroupRequest.Builder instanceHealthChecks(UpdateInstanceHealthChecksRequest instanceHealthChecks) The instance health check settings for the compute node group. Instance health checks detect faults on instances in the compute node group and respond with the repair action that you choose. You can configure health monitoring, deep health checks, or both. You can't specify an empty object (
{}). Instance health checks require Slurm version 26.05 or later.The settings that you specify replace all of the current instance health check settings of the compute node group. Include every setting that you want to keep. If you omit this member, the current settings don't change. If you omit
healthMonitoringordeepHealthChecks, that check is turned off. You can also turn off a check: sethealthMonitoring.modeordeepHealthChecks.onStart.profiletoNONEand omit itsrepairAction. When you change these settings, PCS drains and replaces the instances in the compute node group.- Parameters:
instanceHealthChecks- The instance health check settings for the compute node group. Instance health checks detect faults on instances in the compute node group and respond with the repair action that you choose. You can configure health monitoring, deep health checks, or both. You can't specify an empty object ({}). Instance health checks require Slurm version 26.05 or later.The settings that you specify replace all of the current instance health check settings of the compute node group. Include every setting that you want to keep. If you omit this member, the current settings don't change. If you omit
healthMonitoringordeepHealthChecks, that check is turned off. You can also turn off a check: sethealthMonitoring.modeordeepHealthChecks.onStart.profiletoNONEand omit itsrepairAction. When you change these settings, PCS drains and replaces the instances in the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceHealthChecks
default UpdateComputeNodeGroupRequest.Builder instanceHealthChecks(Consumer<UpdateInstanceHealthChecksRequest.Builder> instanceHealthChecks) The instance health check settings for the compute node group. Instance health checks detect faults on instances in the compute node group and respond with the repair action that you choose. You can configure health monitoring, deep health checks, or both. You can't specify an empty object (
{}). Instance health checks require Slurm version 26.05 or later.The settings that you specify replace all of the current instance health check settings of the compute node group. Include every setting that you want to keep. If you omit this member, the current settings don't change. If you omit
This is a convenience method that creates an instance of thehealthMonitoringordeepHealthChecks, that check is turned off. You can also turn off a check: sethealthMonitoring.modeordeepHealthChecks.onStart.profiletoNONEand omit itsrepairAction. When you change these settings, PCS drains and replaces the instances in the compute node group.UpdateInstanceHealthChecksRequest.Builderavoiding the need to create one manually viaUpdateInstanceHealthChecksRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceHealthChecks(UpdateInstanceHealthChecksRequest).- Parameters:
instanceHealthChecks- a consumer that will call methods onUpdateInstanceHealthChecksRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate one for you.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate one for you.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateComputeNodeGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateComputeNodeGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-