Interface AutoScalingGroup.Builder

  • Method Details

    • autoScalingGroupName

      AutoScalingGroup.Builder autoScalingGroupName(String autoScalingGroupName)

      The name of the Auto Scaling group.

      Parameters:
      autoScalingGroupName - The name of the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • autoScalingGroupARN

      AutoScalingGroup.Builder autoScalingGroupARN(String autoScalingGroupARN)

      The Amazon Resource Name (ARN) of the Auto Scaling group.

      Parameters:
      autoScalingGroupARN - The Amazon Resource Name (ARN) of the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchConfigurationName

      AutoScalingGroup.Builder launchConfigurationName(String launchConfigurationName)

      The name of the associated launch configuration for the Auto Scaling group.

      Parameters:
      launchConfigurationName - The name of the associated launch configuration for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchTemplate

      AutoScalingGroup.Builder launchTemplate(LaunchTemplateSpecification launchTemplate)

      The launch template for the Auto Scaling group.

      Parameters:
      launchTemplate - The launch template for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchTemplate

      default AutoScalingGroup.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate)

      The launch template for the Auto Scaling group.

      This is a convenience method that creates an instance of the LaunchTemplateSpecification.Builder avoiding the need to create one manually via LaunchTemplateSpecification.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to launchTemplate(LaunchTemplateSpecification).

      Parameters:
      launchTemplate - a consumer that will call methods on LaunchTemplateSpecification.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mixedInstancesPolicy

      AutoScalingGroup.Builder mixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)

      The mixed instances policy for the group.

      Parameters:
      mixedInstancesPolicy - The mixed instances policy for the group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mixedInstancesPolicy

      default AutoScalingGroup.Builder mixedInstancesPolicy(Consumer<MixedInstancesPolicy.Builder> mixedInstancesPolicy)

      The mixed instances policy for the group.

      This is a convenience method that creates an instance of the MixedInstancesPolicy.Builder avoiding the need to create one manually via MixedInstancesPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to mixedInstancesPolicy(MixedInstancesPolicy).

      Parameters:
      mixedInstancesPolicy - a consumer that will call methods on MixedInstancesPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • minSize

      The minimum size of the Auto Scaling group.

      Parameters:
      minSize - The minimum size of the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxSize

      The maximum size of the Auto Scaling group.

      Parameters:
      maxSize - The maximum size of the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • desiredCapacity

      AutoScalingGroup.Builder desiredCapacity(Integer desiredCapacity)

      The desired size of the Auto Scaling group.

      Parameters:
      desiredCapacity - The desired size of the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • predictedCapacity

      AutoScalingGroup.Builder predictedCapacity(Integer predictedCapacity)

      The predicted capacity of the group when it has a predictive scaling policy.

      Parameters:
      predictedCapacity - The predicted capacity of the group when it has a predictive scaling policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultCooldown

      AutoScalingGroup.Builder defaultCooldown(Integer defaultCooldown)

      The duration of the default cooldown period, in seconds, for the Auto Scaling group.

      Parameters:
      defaultCooldown - The duration of the default cooldown period, in seconds, for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZones

      AutoScalingGroup.Builder availabilityZones(Collection<String> availabilityZones)

      One or more Availability Zones for the Auto Scaling group.

      Parameters:
      availabilityZones - One or more Availability Zones for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZones

      AutoScalingGroup.Builder availabilityZones(String... availabilityZones)

      One or more Availability Zones for the Auto Scaling group.

      Parameters:
      availabilityZones - One or more Availability Zones for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneIds

      AutoScalingGroup.Builder availabilityZoneIds(Collection<String> availabilityZoneIds)

      The Availability Zone IDs where the Auto Scaling group can launch instances.

      Parameters:
      availabilityZoneIds - The Availability Zone IDs where the Auto Scaling group can launch instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneIds

      AutoScalingGroup.Builder availabilityZoneIds(String... availabilityZoneIds)

      The Availability Zone IDs where the Auto Scaling group can launch instances.

      Parameters:
      availabilityZoneIds - The Availability Zone IDs where the Auto Scaling group can launch instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • loadBalancerNames

      AutoScalingGroup.Builder loadBalancerNames(Collection<String> loadBalancerNames)

      One or more load balancers associated with the group.

      Parameters:
      loadBalancerNames - One or more load balancers associated with the group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • loadBalancerNames

      AutoScalingGroup.Builder loadBalancerNames(String... loadBalancerNames)

      One or more load balancers associated with the group.

      Parameters:
      loadBalancerNames - One or more load balancers associated with the group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetGroupARNs

      AutoScalingGroup.Builder targetGroupARNs(Collection<String> targetGroupARNs)

      The Amazon Resource Names (ARN) of the target groups for your load balancer.

      Parameters:
      targetGroupARNs - The Amazon Resource Names (ARN) of the target groups for your load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetGroupARNs

      AutoScalingGroup.Builder targetGroupARNs(String... targetGroupARNs)

      The Amazon Resource Names (ARN) of the target groups for your load balancer.

      Parameters:
      targetGroupARNs - The Amazon Resource Names (ARN) of the target groups for your load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthCheckType

      AutoScalingGroup.Builder healthCheckType(String healthCheckType)

      One or more comma-separated health check types for the Auto Scaling group.

      Parameters:
      healthCheckType - One or more comma-separated health check types for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthCheckGracePeriod

      AutoScalingGroup.Builder healthCheckGracePeriod(Integer healthCheckGracePeriod)

      The duration of the health check grace period, in seconds, for the Auto Scaling group.

      Parameters:
      healthCheckGracePeriod - The duration of the health check grace period, in seconds, for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      The EC2 instances associated with the Auto Scaling group.

      Parameters:
      instances - The EC2 instances associated with the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      AutoScalingGroup.Builder instances(Instance... instances)

      The EC2 instances associated with the Auto Scaling group.

      Parameters:
      instances - The EC2 instances associated with the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      The EC2 instances associated with the Auto Scaling group.

      This is a convenience method that creates an instance of the Instance.Builder avoiding the need to create one manually via Instance.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instances(List<Instance>).

      Parameters:
      instances - a consumer that will call methods on Instance.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTime

      AutoScalingGroup.Builder createdTime(Instant createdTime)

      The date and time the Auto Scaling group was created.

      Parameters:
      createdTime - The date and time the Auto Scaling group was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suspendedProcesses

      AutoScalingGroup.Builder suspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)

      The suspended processes associated with the Auto Scaling group.

      Parameters:
      suspendedProcesses - The suspended processes associated with the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suspendedProcesses

      AutoScalingGroup.Builder suspendedProcesses(SuspendedProcess... suspendedProcesses)

      The suspended processes associated with the Auto Scaling group.

      Parameters:
      suspendedProcesses - The suspended processes associated with the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suspendedProcesses

      AutoScalingGroup.Builder suspendedProcesses(Consumer<SuspendedProcess.Builder>... suspendedProcesses)

      The suspended processes associated with the Auto Scaling group.

      This is a convenience method that creates an instance of the SuspendedProcess.Builder avoiding the need to create one manually via SuspendedProcess.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to suspendedProcesses(List<SuspendedProcess>).

      Parameters:
      suspendedProcesses - a consumer that will call methods on SuspendedProcess.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • placementGroup

      AutoScalingGroup.Builder placementGroup(String placementGroup)

      The name of the placement group into which to launch EC2 instances for the Auto Scaling group.

      Parameters:
      placementGroup - The name of the placement group into which to launch EC2 instances for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vpcZoneIdentifier

      AutoScalingGroup.Builder vpcZoneIdentifier(String vpcZoneIdentifier)

      One or more comma-separated subnet IDs for the Auto Scaling group.

      Parameters:
      vpcZoneIdentifier - One or more comma-separated subnet IDs for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledMetrics

      AutoScalingGroup.Builder enabledMetrics(Collection<EnabledMetric> enabledMetrics)

      The metrics enabled for the Auto Scaling group.

      Parameters:
      enabledMetrics - The metrics enabled for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledMetrics

      AutoScalingGroup.Builder enabledMetrics(EnabledMetric... enabledMetrics)

      The metrics enabled for the Auto Scaling group.

      Parameters:
      enabledMetrics - The metrics enabled for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledMetrics

      AutoScalingGroup.Builder enabledMetrics(Consumer<EnabledMetric.Builder>... enabledMetrics)

      The metrics enabled for the Auto Scaling group.

      This is a convenience method that creates an instance of the EnabledMetric.Builder avoiding the need to create one manually via EnabledMetric.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to enabledMetrics(List<EnabledMetric>).

      Parameters:
      enabledMetrics - a consumer that will call methods on EnabledMetric.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current state of the Auto Scaling group when the DeleteAutoScalingGroup operation is in progress.

      Parameters:
      status - The current state of the Auto Scaling group when the DeleteAutoScalingGroup operation is in progress.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags for the Auto Scaling group.

      Parameters:
      tags - The tags for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags for the Auto Scaling group.

      Parameters:
      tags - The tags for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags for the Auto Scaling group.

      This is a convenience method that creates an instance of the TagDescription.Builder avoiding the need to create one manually via TagDescription.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<TagDescription>).

      Parameters:
      tags - a consumer that will call methods on TagDescription.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • terminationPolicies

      AutoScalingGroup.Builder terminationPolicies(Collection<String> terminationPolicies)

      The termination policies for the Auto Scaling group.

      Parameters:
      terminationPolicies - The termination policies for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • terminationPolicies

      AutoScalingGroup.Builder terminationPolicies(String... terminationPolicies)

      The termination policies for the Auto Scaling group.

      Parameters:
      terminationPolicies - The termination policies for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • newInstancesProtectedFromScaleIn

      AutoScalingGroup.Builder newInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)

      Indicates whether newly launched EC2 instances are protected from termination when scaling in for the Auto Scaling group.

      For more information about preventing instances from terminating on scale in, see Use instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

      Parameters:
      newInstancesProtectedFromScaleIn - Indicates whether newly launched EC2 instances are protected from termination when scaling in for the Auto Scaling group.

      For more information about preventing instances from terminating on scale in, see Use instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceLinkedRoleARN

      AutoScalingGroup.Builder serviceLinkedRoleARN(String serviceLinkedRoleARN)

      The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other Amazon Web Services on your behalf.

      Parameters:
      serviceLinkedRoleARN - The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other Amazon Web Services on your behalf.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxInstanceLifetime

      AutoScalingGroup.Builder maxInstanceLifetime(Integer maxInstanceLifetime)

      The maximum amount of time, in seconds, that an EC2 instance can be in service for the Auto Scaling group.

      Parameters:
      maxInstanceLifetime - The maximum amount of time, in seconds, that an EC2 instance can be in service for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityRebalance

      AutoScalingGroup.Builder capacityRebalance(Boolean capacityRebalance)

      Indicates whether Capacity Rebalancing is enabled.

      Parameters:
      capacityRebalance - Indicates whether Capacity Rebalancing is enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warmPoolConfiguration

      AutoScalingGroup.Builder warmPoolConfiguration(WarmPoolConfiguration warmPoolConfiguration)

      The warm pool for the group.

      Parameters:
      warmPoolConfiguration - The warm pool for the group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warmPoolConfiguration

      default AutoScalingGroup.Builder warmPoolConfiguration(Consumer<WarmPoolConfiguration.Builder> warmPoolConfiguration)

      The warm pool for the group.

      This is a convenience method that creates an instance of the WarmPoolConfiguration.Builder avoiding the need to create one manually via WarmPoolConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to warmPoolConfiguration(WarmPoolConfiguration).

      Parameters:
      warmPoolConfiguration - a consumer that will call methods on WarmPoolConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • warmPoolSize

      AutoScalingGroup.Builder warmPoolSize(Integer warmPoolSize)

      The current size of the warm pool.

      Parameters:
      warmPoolSize - The current size of the warm pool.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • context

      AutoScalingGroup.Builder context(String context)

      Reserved.

      Parameters:
      context - Reserved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • desiredCapacityType

      AutoScalingGroup.Builder desiredCapacityType(String desiredCapacityType)

      The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType for attribute-based instance type selection only.

      Parameters:
      desiredCapacityType - The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType for attribute-based instance type selection only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultInstanceWarmup

      AutoScalingGroup.Builder defaultInstanceWarmup(Integer defaultInstanceWarmup)

      The duration of the default EC2 instance warmup time, in seconds, for the Auto Scaling group.

      Parameters:
      defaultInstanceWarmup - The duration of the default EC2 instance warmup time, in seconds, for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficSources

      The traffic sources associated with this Auto Scaling group.

      Parameters:
      trafficSources - The traffic sources associated with this Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficSources

      AutoScalingGroup.Builder trafficSources(TrafficSourceIdentifier... trafficSources)

      The traffic sources associated with this Auto Scaling group.

      Parameters:
      trafficSources - The traffic sources associated with this Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficSources

      The traffic sources associated with this Auto Scaling group.

      This is a convenience method that creates an instance of the TrafficSourceIdentifier.Builder avoiding the need to create one manually via TrafficSourceIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trafficSources(List<TrafficSourceIdentifier>).

      Parameters:
      trafficSources - a consumer that will call methods on TrafficSourceIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceMaintenancePolicy

      AutoScalingGroup.Builder instanceMaintenancePolicy(InstanceMaintenancePolicy instanceMaintenancePolicy)

      An instance maintenance policy.

      Parameters:
      instanceMaintenancePolicy - An instance maintenance policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceMaintenancePolicy

      default AutoScalingGroup.Builder instanceMaintenancePolicy(Consumer<InstanceMaintenancePolicy.Builder> instanceMaintenancePolicy)

      An instance maintenance policy.

      This is a convenience method that creates an instance of the InstanceMaintenancePolicy.Builder avoiding the need to create one manually via InstanceMaintenancePolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instanceMaintenancePolicy(InstanceMaintenancePolicy).

      Parameters:
      instanceMaintenancePolicy - a consumer that will call methods on InstanceMaintenancePolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deletionProtection

      AutoScalingGroup.Builder deletionProtection(String deletionProtection)

      The deletion protection setting for the Auto Scaling group.

      Parameters:
      deletionProtection - The deletion protection setting for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deletionProtection

      AutoScalingGroup.Builder deletionProtection(DeletionProtection deletionProtection)

      The deletion protection setting for the Auto Scaling group.

      Parameters:
      deletionProtection - The deletion protection setting for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • availabilityZoneDistribution

      AutoScalingGroup.Builder availabilityZoneDistribution(AvailabilityZoneDistribution availabilityZoneDistribution)

      The EC2 instance capacity distribution across Availability Zones for the Auto Scaling group.

      Parameters:
      availabilityZoneDistribution - The EC2 instance capacity distribution across Availability Zones for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneDistribution

      default AutoScalingGroup.Builder availabilityZoneDistribution(Consumer<AvailabilityZoneDistribution.Builder> availabilityZoneDistribution)

      The EC2 instance capacity distribution across Availability Zones for the Auto Scaling group.

      This is a convenience method that creates an instance of the AvailabilityZoneDistribution.Builder avoiding the need to create one manually via AvailabilityZoneDistribution.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to availabilityZoneDistribution(AvailabilityZoneDistribution).

      Parameters:
      availabilityZoneDistribution - a consumer that will call methods on AvailabilityZoneDistribution.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • availabilityZoneImpairmentPolicy

      AutoScalingGroup.Builder availabilityZoneImpairmentPolicy(AvailabilityZoneImpairmentPolicy availabilityZoneImpairmentPolicy)

      The Availability Zone impairment policy for the Auto Scaling group.

      Parameters:
      availabilityZoneImpairmentPolicy - The Availability Zone impairment policy for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneImpairmentPolicy

      default AutoScalingGroup.Builder availabilityZoneImpairmentPolicy(Consumer<AvailabilityZoneImpairmentPolicy.Builder> availabilityZoneImpairmentPolicy)

      The Availability Zone impairment policy for the Auto Scaling group.

      This is a convenience method that creates an instance of the AvailabilityZoneImpairmentPolicy.Builder avoiding the need to create one manually via AvailabilityZoneImpairmentPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to availabilityZoneImpairmentPolicy(AvailabilityZoneImpairmentPolicy).

      Parameters:
      availabilityZoneImpairmentPolicy - a consumer that will call methods on AvailabilityZoneImpairmentPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • capacityReservationSpecification

      AutoScalingGroup.Builder capacityReservationSpecification(CapacityReservationSpecification capacityReservationSpecification)

      The capacity reservation specification for the Auto Scaling group.

      Parameters:
      capacityReservationSpecification - The capacity reservation specification for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservationSpecification

      default AutoScalingGroup.Builder capacityReservationSpecification(Consumer<CapacityReservationSpecification.Builder> capacityReservationSpecification)

      The capacity reservation specification for the Auto Scaling group.

      This is a convenience method that creates an instance of the CapacityReservationSpecification.Builder avoiding the need to create one manually via CapacityReservationSpecification.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to capacityReservationSpecification(CapacityReservationSpecification).

      Parameters:
      capacityReservationSpecification - a consumer that will call methods on CapacityReservationSpecification.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceLifecyclePolicy

      AutoScalingGroup.Builder instanceLifecyclePolicy(InstanceLifecyclePolicy instanceLifecyclePolicy)

      The instance lifecycle policy for the Auto Scaling group.

      Parameters:
      instanceLifecyclePolicy - The instance lifecycle policy for the Auto Scaling group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceLifecyclePolicy

      default AutoScalingGroup.Builder instanceLifecyclePolicy(Consumer<InstanceLifecyclePolicy.Builder> instanceLifecyclePolicy)

      The instance lifecycle policy for the Auto Scaling group.

      This is a convenience method that creates an instance of the InstanceLifecyclePolicy.Builder avoiding the need to create one manually via InstanceLifecyclePolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instanceLifecyclePolicy(InstanceLifecyclePolicy).

      Parameters:
      instanceLifecyclePolicy - a consumer that will call methods on InstanceLifecyclePolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: