@Generated(value="software.amazon.awssdk:codegen") public final class AutoScalingGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoScalingGroup.Builder,AutoScalingGroup>
Describes an Auto Scaling group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AutoScalingGroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
autoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
String |
autoScalingGroupName()
The name of the Auto Scaling group.
|
List<String> |
availabilityZones()
One or more Availability Zones for the group.
|
static AutoScalingGroup.Builder |
builder() |
Boolean |
capacityRebalance()
Indicates whether Capacity Rebalancing is enabled.
|
Instant |
createdTime()
The date and time the group was created.
|
Integer |
defaultCooldown()
The duration of the default cooldown period, in seconds.
|
Integer |
desiredCapacity()
The desired size of the group.
|
List<EnabledMetric> |
enabledMetrics()
The metrics enabled for the group.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAvailabilityZones()
Returns true if the AvailabilityZones property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasEnabledMetrics()
Returns true if the EnabledMetrics property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasInstances()
Returns true if the Instances property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasLoadBalancerNames()
Returns true if the LoadBalancerNames property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSuspendedProcesses()
Returns true if the SuspendedProcesses property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasTargetGroupARNs()
Returns true if the TargetGroupARNs property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasTerminationPolicies()
Returns true if the TerminationPolicies property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
Integer |
healthCheckGracePeriod()
The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2
instance that has come into service.
|
String |
healthCheckType()
The service to use for the health checks.
|
List<Instance> |
instances()
The EC2 instances associated with the group.
|
String |
launchConfigurationName()
The name of the associated launch configuration.
|
LaunchTemplateSpecification |
launchTemplate()
The launch template for the group.
|
List<String> |
loadBalancerNames()
One or more load balancers associated with the group.
|
Integer |
maxInstanceLifetime()
The maximum amount of time, in seconds, that an instance can be in service.
|
Integer |
maxSize()
The maximum size of the group.
|
Integer |
minSize()
The minimum size of the group.
|
MixedInstancesPolicy |
mixedInstancesPolicy()
The mixed instances policy for the group.
|
Boolean |
newInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
String |
placementGroup()
The name of the placement group into which to launch your instances, if any.
|
Integer |
predictedCapacity()
The predicted capacity of the group when it has a predictive scaling policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutoScalingGroup.Builder> |
serializableBuilderClass() |
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.
|
String |
status()
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
|
List<SuspendedProcess> |
suspendedProcesses()
The suspended processes associated with the group.
|
List<TagDescription> |
tags()
The tags for the group.
|
List<String> |
targetGroupARNs()
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
List<String> |
terminationPolicies()
The termination policies for the group.
|
AutoScalingGroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
|
WarmPoolConfiguration |
warmPoolConfiguration()
The warm pool for the group.
|
Integer |
warmPoolSize()
The current size of the warm pool.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String autoScalingGroupName()
The name of the Auto Scaling group.
public final String autoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
public final String launchConfigurationName()
The name of the associated launch configuration.
public final LaunchTemplateSpecification launchTemplate()
The launch template for the group.
public final MixedInstancesPolicy mixedInstancesPolicy()
The mixed instances policy for the group.
public final Integer minSize()
The minimum size of the group.
public final Integer maxSize()
The maximum size of the group.
public final Integer desiredCapacity()
The desired size of the group.
public final Integer predictedCapacity()
The predicted capacity of the group when it has a predictive scaling policy.
public final Integer defaultCooldown()
The duration of the default cooldown period, in seconds.
public final boolean hasAvailabilityZones()
public final List<String> availabilityZones()
One or more Availability Zones for the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAvailabilityZones() to see if a value was sent in this field.
public final boolean hasLoadBalancerNames()
public final List<String> loadBalancerNames()
One or more load balancers associated with the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLoadBalancerNames() to see if a value was sent in this field.
public final boolean hasTargetGroupARNs()
public final List<String> targetGroupARNs()
The Amazon Resource Names (ARN) of the target groups for your load balancer.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTargetGroupARNs() to see if a value was sent in this field.
public final String healthCheckType()
The service to use for the health checks. The valid values are EC2 and ELB. If you
configure an Auto Scaling group to use ELB health checks, it considers the instance unhealthy if it
fails either the EC2 status checks or the load balancer health checks.
EC2 and ELB. If
you configure an Auto Scaling group to use ELB health checks, it considers the instance
unhealthy if it fails either the EC2 status checks or the load balancer health checks.public final Integer healthCheckGracePeriod()
The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
public final boolean hasInstances()
public final List<Instance> instances()
The EC2 instances associated with the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInstances() to see if a value was sent in this field.
public final Instant createdTime()
The date and time the group was created.
public final boolean hasSuspendedProcesses()
public final List<SuspendedProcess> suspendedProcesses()
The suspended processes associated with the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSuspendedProcesses() to see if a value was sent in this field.
public final String placementGroup()
The name of the placement group into which to launch your instances, if any.
public final String vpcZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
public final boolean hasEnabledMetrics()
public final List<EnabledMetric> enabledMetrics()
The metrics enabled for the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEnabledMetrics() to see if a value was sent in this field.
public final String status()
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
public final boolean hasTags()
public final List<TagDescription> tags()
The tags for the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final boolean hasTerminationPolicies()
public final List<String> terminationPolicies()
The termination policies for the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTerminationPolicies() to see if a value was sent in this field.
public final Boolean newInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
public final 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.
public final Integer maxInstanceLifetime()
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
Valid Range: Minimum value of 0.
public final Boolean capacityRebalance()
Indicates whether Capacity Rebalancing is enabled.
public final WarmPoolConfiguration warmPoolConfiguration()
The warm pool for the group.
public final Integer warmPoolSize()
The current size of the warm pool.
public AutoScalingGroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutoScalingGroup.Builder,AutoScalingGroup>public static AutoScalingGroup.Builder builder()
public static Class<? extends AutoScalingGroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.