@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingGroup extends Object implements Serializable, Cloneable
Describes an Auto Scaling group.
Constructor and Description |
---|
AutoScalingGroup() |
Modifier and Type | Method and Description |
---|---|
AutoScalingGroup |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
List<String> |
getAvailabilityZones()
One or more Availability Zones for the group.
|
Date |
getCreatedTime()
The date and time the group was created.
|
Integer |
getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
Integer |
getDesiredCapacity()
The desired size of the group.
|
List<EnabledMetric> |
getEnabledMetrics()
The metrics enabled for the group.
|
Integer |
getHealthCheckGracePeriod()
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 |
getHealthCheckType()
The service to use for the health checks.
|
List<Instance> |
getInstances()
The EC2 instances associated with the group.
|
String |
getLaunchConfigurationName()
The name of the associated launch configuration.
|
LaunchTemplateSpecification |
getLaunchTemplate()
The launch template for the group.
|
List<String> |
getLoadBalancerNames()
One or more load balancers associated with the group.
|
Integer |
getMaxInstanceLifetime()
The maximum amount of time, in seconds, that an instance can be in service.
|
Integer |
getMaxSize()
The maximum size of the group.
|
Integer |
getMinSize()
The minimum size of the group.
|
MixedInstancesPolicy |
getMixedInstancesPolicy()
The mixed instances policy for the group.
|
Boolean |
getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
String |
getPlacementGroup()
The name of the placement group into which to launch your instances, if any.
|
String |
getServiceLinkedRoleARN()
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS
services on your behalf.
|
String |
getStatus()
The current state of the group when DeleteAutoScalingGroup is in progress.
|
List<SuspendedProcess> |
getSuspendedProcesses()
The suspended processes associated with the group.
|
List<TagDescription> |
getTags()
The tags for the group.
|
List<String> |
getTargetGroupARNs()
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
List<String> |
getTerminationPolicies()
The termination policies for the group.
|
String |
getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
|
int |
hashCode() |
Boolean |
isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
void |
setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
|
void |
setCreatedTime(Date createdTime)
The date and time the group was created.
|
void |
setDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
void |
setDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
|
void |
setEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
void |
setHealthCheckGracePeriod(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.
|
void |
setHealthCheckType(String healthCheckType)
The service to use for the health checks.
|
void |
setInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
|
void |
setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
|
void |
setLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
|
void |
setMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
|
void |
setMaxSize(Integer maxSize)
The maximum size of the group.
|
void |
setMinSize(Integer minSize)
The minimum size of the group.
|
void |
setMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
|
void |
setNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
void |
setPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
|
void |
setServiceLinkedRoleARN(String serviceLinkedRoleARN)
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS
services on your behalf.
|
void |
setStatus(String status)
The current state of the group when DeleteAutoScalingGroup is in progress.
|
void |
setSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
|
void |
setTags(Collection<TagDescription> tags)
The tags for the group.
|
void |
setTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
void |
setTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
|
void |
setVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
String |
toString()
Returns a string representation of this object.
|
AutoScalingGroup |
withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
AutoScalingGroup |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
AutoScalingGroup |
withAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup |
withAvailabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup |
withCreatedTime(Date createdTime)
The date and time the group was created.
|
AutoScalingGroup |
withDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
AutoScalingGroup |
withDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
|
AutoScalingGroup |
withEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup |
withEnabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup |
withHealthCheckGracePeriod(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.
|
AutoScalingGroup |
withHealthCheckType(String healthCheckType)
The service to use for the health checks.
|
AutoScalingGroup |
withInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
|
AutoScalingGroup |
withInstances(Instance... instances)
The EC2 instances associated with the group.
|
AutoScalingGroup |
withLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
|
AutoScalingGroup |
withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
|
AutoScalingGroup |
withLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup |
withLoadBalancerNames(String... loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup |
withMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
|
AutoScalingGroup |
withMaxSize(Integer maxSize)
The maximum size of the group.
|
AutoScalingGroup |
withMinSize(Integer minSize)
The minimum size of the group.
|
AutoScalingGroup |
withMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
|
AutoScalingGroup |
withNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
AutoScalingGroup |
withPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
|
AutoScalingGroup |
withServiceLinkedRoleARN(String serviceLinkedRoleARN)
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS
services on your behalf.
|
AutoScalingGroup |
withStatus(String status)
The current state of the group when DeleteAutoScalingGroup is in progress.
|
AutoScalingGroup |
withSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup |
withSuspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup |
withTags(Collection<TagDescription> tags)
The tags for the group.
|
AutoScalingGroup |
withTags(TagDescription... tags)
The tags for the group.
|
AutoScalingGroup |
withTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup |
withTargetGroupARNs(String... targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup |
withTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup |
withTerminationPolicies(String... terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup |
withVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public String getAutoScalingGroupName()
The name of the Auto Scaling group.
public AutoScalingGroup withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public void setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.public String getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
public AutoScalingGroup withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.public void setLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.public String getLaunchConfigurationName()
The name of the associated launch configuration.
public AutoScalingGroup withLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.public void setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
launchTemplate
- The launch template for the group.public LaunchTemplateSpecification getLaunchTemplate()
The launch template for the group.
public AutoScalingGroup withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
launchTemplate
- The launch template for the group.public void setMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
mixedInstancesPolicy
- The mixed instances policy for the group.public MixedInstancesPolicy getMixedInstancesPolicy()
The mixed instances policy for the group.
public AutoScalingGroup withMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
mixedInstancesPolicy
- The mixed instances policy for the group.public void setMinSize(Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.public Integer getMinSize()
The minimum size of the group.
public AutoScalingGroup withMinSize(Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.public void setMaxSize(Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.public Integer getMaxSize()
The maximum size of the group.
public AutoScalingGroup withMaxSize(Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.public void setDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.public Integer getDesiredCapacity()
The desired size of the group.
public AutoScalingGroup withDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.public void setDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
defaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can
start.public Integer getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
public AutoScalingGroup withDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
defaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can
start.public List<String> getAvailabilityZones()
One or more Availability Zones for the group.
public void setAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.public AutoScalingGroup withAvailabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
or withAvailabilityZones(java.util.Collection)
if
you want to override the existing values.
availabilityZones
- One or more Availability Zones for the group.public AutoScalingGroup withAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.public List<String> getLoadBalancerNames()
One or more load balancers associated with the group.
public void setLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.public AutoScalingGroup withLoadBalancerNames(String... loadBalancerNames)
One or more load balancers associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
setLoadBalancerNames(java.util.Collection)
or withLoadBalancerNames(java.util.Collection)
if
you want to override the existing values.
loadBalancerNames
- One or more load balancers associated with the group.public AutoScalingGroup withLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.public List<String> getTargetGroupARNs()
The Amazon Resource Names (ARN) of the target groups for your load balancer.
public void setTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.public AutoScalingGroup withTargetGroupARNs(String... targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
NOTE: This method appends the values to the existing list (if any). Use
setTargetGroupARNs(java.util.Collection)
or withTargetGroupARNs(java.util.Collection)
if you
want to override the existing values.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.public AutoScalingGroup withTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.public void setHealthCheckType(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.
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.public String getHealthCheckType()
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 AutoScalingGroup withHealthCheckType(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.
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.public void setHealthCheckGracePeriod(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.
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 Integer getHealthCheckGracePeriod()
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 AutoScalingGroup withHealthCheckGracePeriod(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.
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 List<Instance> getInstances()
The EC2 instances associated with the group.
public void setInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.public AutoScalingGroup withInstances(Instance... instances)
The EC2 instances associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- The EC2 instances associated with the group.public AutoScalingGroup withInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.public void setCreatedTime(Date createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.public Date getCreatedTime()
The date and time the group was created.
public AutoScalingGroup withCreatedTime(Date createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.public List<SuspendedProcess> getSuspendedProcesses()
The suspended processes associated with the group.
public void setSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.public AutoScalingGroup withSuspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
setSuspendedProcesses(java.util.Collection)
or withSuspendedProcesses(java.util.Collection)
if
you want to override the existing values.
suspendedProcesses
- The suspended processes associated with the group.public AutoScalingGroup withSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.public void setPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
placementGroup
- The name of the placement group into which to launch your instances, if any.public String getPlacementGroup()
The name of the placement group into which to launch your instances, if any.
public AutoScalingGroup withPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
placementGroup
- The name of the placement group into which to launch your instances, if any.public void setVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
vPCZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.public String getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
public AutoScalingGroup withVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
vPCZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.public List<EnabledMetric> getEnabledMetrics()
The metrics enabled for the group.
public void setEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.public AutoScalingGroup withEnabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
NOTE: This method appends the values to the existing list (if any). Use
setEnabledMetrics(java.util.Collection)
or withEnabledMetrics(java.util.Collection)
if you want
to override the existing values.
enabledMetrics
- The metrics enabled for the group.public AutoScalingGroup withEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.public void setStatus(String status)
The current state of the group when DeleteAutoScalingGroup is in progress.
status
- The current state of the group when DeleteAutoScalingGroup is in progress.public String getStatus()
The current state of the group when DeleteAutoScalingGroup is in progress.
public AutoScalingGroup withStatus(String status)
The current state of the group when DeleteAutoScalingGroup is in progress.
status
- The current state of the group when DeleteAutoScalingGroup is in progress.public List<TagDescription> getTags()
The tags for the group.
public void setTags(Collection<TagDescription> tags)
The tags for the group.
tags
- The tags for the group.public AutoScalingGroup withTags(TagDescription... tags)
The tags for the group.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the group.public AutoScalingGroup withTags(Collection<TagDescription> tags)
The tags for the group.
tags
- The tags for the group.public List<String> getTerminationPolicies()
The termination policies for the group.
public void setTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.public AutoScalingGroup withTerminationPolicies(String... terminationPolicies)
The termination policies for the group.
NOTE: This method appends the values to the existing list (if any). Use
setTerminationPolicies(java.util.Collection)
or withTerminationPolicies(java.util.Collection)
if you want to override the existing values.
terminationPolicies
- The termination policies for the group.public AutoScalingGroup withTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.public void setNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when
scaling in.public Boolean getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
public AutoScalingGroup withNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when
scaling in.public Boolean isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
public void setServiceLinkedRoleARN(String serviceLinkedRoleARN)
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.
serviceLinkedRoleARN
- The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other
AWS services on your behalf.public String getServiceLinkedRoleARN()
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.
public AutoScalingGroup withServiceLinkedRoleARN(String serviceLinkedRoleARN)
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.
serviceLinkedRoleARN
- The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other
AWS services on your behalf.public void setMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 604800.
maxInstanceLifetime
- The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 604800.
public Integer getMaxInstanceLifetime()
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 604800.
Valid Range: Minimum value of 604800.
public AutoScalingGroup withMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 604800.
maxInstanceLifetime
- The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 604800.
public String toString()
toString
in class Object
Object.toString()
public AutoScalingGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.