@Generated(value="software.amazon.awssdk:codegen") public class AutoScalingGroup extends Object implements 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 group.
|
String |
autoScalingGroupName()
The name of the group.
|
List<String> |
availabilityZones()
One or more Availability Zones for the group.
|
static AutoScalingGroup.Builder |
builder() |
Instant |
createdTime()
The date and time the group was created.
|
Integer |
defaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
Integer |
desiredCapacity()
The desired size of the group.
|
List<EnabledMetric> |
enabledMetrics()
The metrics enabled for the group.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
healthCheckGracePeriod()
The amount of time, in seconds, that 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.
|
List<String> |
loadBalancerNames()
One or more load balancers associated with the group.
|
Integer |
maxSize()
The maximum size of the group.
|
Integer |
minSize()
The minimum size of the group.
|
Boolean |
newInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
|
String |
placementGroup()
The name of the placement group into which you'll launch your instances, if any.
|
static Class<? extends AutoScalingGroup.Builder> |
serializableBuilderClass() |
String |
status()
The current state of the group when DeleteAutoScalingGroup 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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
vpcZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
|
copy
public String autoScalingGroupName()
The name of the group.
public String autoScalingGroupARN()
The Amazon Resource Name (ARN) of the group.
public String launchConfigurationName()
The name of the associated launch configuration.
public Integer minSize()
The minimum size of the group.
public Integer maxSize()
The maximum size of the group.
public Integer desiredCapacity()
The desired size of the group.
public Integer defaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
public 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.
public 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.
public 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.
public String healthCheckType()
The service to use for the health checks. The valid values are EC2
and ELB
.
EC2
and ELB
.public Integer healthCheckGracePeriod()
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
public List<Instance> instances()
The EC2 instances associated with the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Instant createdTime()
The date and time the group was created.
public List<SuspendedProcess> suspendedProcesses()
The suspended processes associated with the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String placementGroup()
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
public String vpcZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the Availability
Zones of the subnets match the values for AvailabilityZones
.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the
Availability Zones of the subnets match the values for AvailabilityZones
.
public List<EnabledMetric> enabledMetrics()
The metrics enabled for the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String status()
The current state of the group when DeleteAutoScalingGroup is in progress.
public List<TagDescription> tags()
The tags for the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> terminationPolicies()
The termination policies for the group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Boolean newInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public AutoScalingGroup.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AutoScalingGroup.Builder,AutoScalingGroup>
public static AutoScalingGroup.Builder builder()
public static Class<? extends AutoScalingGroup.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.