public static interface AutoScalingGroup.Builder extends SdkPojo, CopyableBuilder<AutoScalingGroup.Builder,AutoScalingGroup>
Modifier and Type | Method and Description |
---|---|
AutoScalingGroup.Builder |
autoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
AutoScalingGroup.Builder |
autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
AutoScalingGroup.Builder |
availabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup.Builder |
availabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup.Builder |
capacityRebalance(Boolean capacityRebalance)
Indicates whether Capacity Rebalancing is enabled.
|
AutoScalingGroup.Builder |
context(String context)
Reserved.
|
AutoScalingGroup.Builder |
createdTime(Instant createdTime)
The date and time the group was created.
|
AutoScalingGroup.Builder |
defaultCooldown(Integer defaultCooldown)
The duration of the default cooldown period, in seconds.
|
AutoScalingGroup.Builder |
defaultInstanceWarmup(Integer defaultInstanceWarmup)
The duration of the default instance warmup, in seconds.
|
AutoScalingGroup.Builder |
desiredCapacity(Integer desiredCapacity)
The desired size of the group.
|
AutoScalingGroup.Builder |
desiredCapacityType(String desiredCapacityType)
The unit of measurement for the value specified for desired capacity.
|
AutoScalingGroup.Builder |
enabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup.Builder |
enabledMetrics(Consumer<EnabledMetric.Builder>... enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup.Builder |
enabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup.Builder |
healthCheckGracePeriod(Integer healthCheckGracePeriod)
The duration of the health check grace period, in seconds.
|
AutoScalingGroup.Builder |
healthCheckType(String healthCheckType)
A comma-separated value string of one or more health check types.
|
AutoScalingGroup.Builder |
instances(Collection<Instance> instances)
The EC2 instances associated with the group.
|
AutoScalingGroup.Builder |
instances(Consumer<Instance.Builder>... instances)
The EC2 instances associated with the group.
|
AutoScalingGroup.Builder |
instances(Instance... instances)
The EC2 instances associated with the group.
|
AutoScalingGroup.Builder |
launchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
|
default AutoScalingGroup.Builder |
launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate)
The launch template for the group.
|
AutoScalingGroup.Builder |
launchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
|
AutoScalingGroup.Builder |
loadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup.Builder |
loadBalancerNames(String... loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup.Builder |
maxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
|
AutoScalingGroup.Builder |
maxSize(Integer maxSize)
The maximum size of the group.
|
AutoScalingGroup.Builder |
minSize(Integer minSize)
The minimum size of the group.
|
default AutoScalingGroup.Builder |
mixedInstancesPolicy(Consumer<MixedInstancesPolicy.Builder> mixedInstancesPolicy)
The mixed instances policy for the group.
|
AutoScalingGroup.Builder |
mixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
|
AutoScalingGroup.Builder |
newInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when
scaling in.
|
AutoScalingGroup.Builder |
placementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
|
AutoScalingGroup.Builder |
predictedCapacity(Integer predictedCapacity)
The predicted capacity of the group when it has a predictive scaling policy.
|
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.
|
AutoScalingGroup.Builder |
status(String status)
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
|
AutoScalingGroup.Builder |
suspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup.Builder |
suspendedProcesses(Consumer<SuspendedProcess.Builder>... suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup.Builder |
suspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup.Builder |
tags(Collection<TagDescription> tags)
The tags for the group.
|
AutoScalingGroup.Builder |
tags(Consumer<TagDescription.Builder>... tags)
The tags for the group.
|
AutoScalingGroup.Builder |
tags(TagDescription... tags)
The tags for the group.
|
AutoScalingGroup.Builder |
targetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup.Builder |
targetGroupARNs(String... targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup.Builder |
terminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup.Builder |
terminationPolicies(String... terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup.Builder |
trafficSources(Collection<TrafficSourceIdentifier> trafficSources)
The traffic sources associated with this Auto Scaling group.
|
AutoScalingGroup.Builder |
trafficSources(Consumer<TrafficSourceIdentifier.Builder>... trafficSources)
The traffic sources associated with this Auto Scaling group.
|
AutoScalingGroup.Builder |
trafficSources(TrafficSourceIdentifier... trafficSources)
The traffic sources associated with this Auto Scaling group.
|
AutoScalingGroup.Builder |
vpcZoneIdentifier(String vpcZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
default AutoScalingGroup.Builder |
warmPoolConfiguration(Consumer<WarmPoolConfiguration.Builder> warmPoolConfiguration)
The warm pool for the group.
|
AutoScalingGroup.Builder |
warmPoolConfiguration(WarmPoolConfiguration warmPoolConfiguration)
The warm pool for the group.
|
AutoScalingGroup.Builder |
warmPoolSize(Integer warmPoolSize)
The current size of the warm pool.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
AutoScalingGroup.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.AutoScalingGroup.Builder autoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.AutoScalingGroup.Builder launchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.AutoScalingGroup.Builder launchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
launchTemplate
- The launch template for the group.default AutoScalingGroup.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate)
The launch template for the group.
This is a convenience method that creates an instance of theLaunchTemplateSpecification.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)
.
launchTemplate
- a consumer that will call methods on LaunchTemplateSpecification.Builder
launchTemplate(LaunchTemplateSpecification)
AutoScalingGroup.Builder mixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
mixedInstancesPolicy
- The mixed instances policy for the group.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 theMixedInstancesPolicy.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)
.
mixedInstancesPolicy
- a consumer that will call methods on MixedInstancesPolicy.Builder
mixedInstancesPolicy(MixedInstancesPolicy)
AutoScalingGroup.Builder minSize(Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.AutoScalingGroup.Builder maxSize(Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.AutoScalingGroup.Builder desiredCapacity(Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.AutoScalingGroup.Builder predictedCapacity(Integer predictedCapacity)
The predicted capacity of the group when it has a predictive scaling policy.
predictedCapacity
- The predicted capacity of the group when it has a predictive scaling policy.AutoScalingGroup.Builder defaultCooldown(Integer defaultCooldown)
The duration of the default cooldown period, in seconds.
defaultCooldown
- The duration of the default cooldown period, in seconds.AutoScalingGroup.Builder availabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.AutoScalingGroup.Builder availabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.AutoScalingGroup.Builder loadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.AutoScalingGroup.Builder loadBalancerNames(String... loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.AutoScalingGroup.Builder targetGroupARNs(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.AutoScalingGroup.Builder targetGroupARNs(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.AutoScalingGroup.Builder healthCheckType(String healthCheckType)
A comma-separated value string of one or more health check types.
healthCheckType
- A comma-separated value string of one or more health check types.AutoScalingGroup.Builder healthCheckGracePeriod(Integer healthCheckGracePeriod)
The duration of the health check grace period, in seconds.
healthCheckGracePeriod
- The duration of the health check grace period, in seconds.AutoScalingGroup.Builder instances(Collection<Instance> instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.AutoScalingGroup.Builder instances(Instance... instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.AutoScalingGroup.Builder instances(Consumer<Instance.Builder>... instances)
The EC2 instances associated with the group.
This is a convenience method that creates an instance of theInstance.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
.
instances
- a consumer that will call methods on
Instance.Builder
#instances(java.util.Collection)
AutoScalingGroup.Builder createdTime(Instant createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.AutoScalingGroup.Builder suspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.AutoScalingGroup.Builder suspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.AutoScalingGroup.Builder suspendedProcesses(Consumer<SuspendedProcess.Builder>... suspendedProcesses)
The suspended processes associated with the group.
This is a convenience method that creates an instance of theSuspendedProcess.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
.
suspendedProcesses
- a consumer that will call methods on
SuspendedProcess.Builder
#suspendedProcesses(java.util.Collection)
AutoScalingGroup.Builder placementGroup(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.AutoScalingGroup.Builder vpcZoneIdentifier(String vpcZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
vpcZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.AutoScalingGroup.Builder enabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.AutoScalingGroup.Builder enabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.AutoScalingGroup.Builder enabledMetrics(Consumer<EnabledMetric.Builder>... enabledMetrics)
The metrics enabled for the group.
This is a convenience method that creates an instance of theEnabledMetric.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
.
enabledMetrics
- a consumer that will call methods on
EnabledMetric.Builder
#enabledMetrics(java.util.Collection)
AutoScalingGroup.Builder status(String status)
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
status
- The current state of the group when the DeleteAutoScalingGroup operation is in progress.AutoScalingGroup.Builder tags(Collection<TagDescription> tags)
The tags for the group.
tags
- The tags for the group.AutoScalingGroup.Builder tags(TagDescription... tags)
The tags for the group.
tags
- The tags for the group.AutoScalingGroup.Builder tags(Consumer<TagDescription.Builder>... tags)
The tags for the group.
This is a convenience method that creates an instance of theTagDescription.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
.
tags
- a consumer that will call methods on
TagDescription.Builder
#tags(java.util.Collection)
AutoScalingGroup.Builder terminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.AutoScalingGroup.Builder terminationPolicies(String... terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.AutoScalingGroup.Builder newInstancesProtectedFromScaleIn(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.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.
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.AutoScalingGroup.Builder maxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
maxInstanceLifetime
- The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
AutoScalingGroup.Builder capacityRebalance(Boolean capacityRebalance)
Indicates whether Capacity Rebalancing is enabled.
capacityRebalance
- Indicates whether Capacity Rebalancing is enabled.AutoScalingGroup.Builder warmPoolConfiguration(WarmPoolConfiguration warmPoolConfiguration)
The warm pool for the group.
warmPoolConfiguration
- The warm pool for the group.default AutoScalingGroup.Builder warmPoolConfiguration(Consumer<WarmPoolConfiguration.Builder> warmPoolConfiguration)
The warm pool for the group.
This is a convenience method that creates an instance of theWarmPoolConfiguration.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)
.
warmPoolConfiguration
- a consumer that will call methods on WarmPoolConfiguration.Builder
warmPoolConfiguration(WarmPoolConfiguration)
AutoScalingGroup.Builder warmPoolSize(Integer warmPoolSize)
The current size of the warm pool.
warmPoolSize
- The current size of the warm pool.AutoScalingGroup.Builder context(String context)
Reserved.
context
- Reserved.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.
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.AutoScalingGroup.Builder defaultInstanceWarmup(Integer defaultInstanceWarmup)
The duration of the default instance warmup, in seconds.
defaultInstanceWarmup
- The duration of the default instance warmup, in seconds.AutoScalingGroup.Builder trafficSources(Collection<TrafficSourceIdentifier> trafficSources)
The traffic sources associated with this Auto Scaling group.
trafficSources
- The traffic sources associated with this Auto Scaling group.AutoScalingGroup.Builder trafficSources(TrafficSourceIdentifier... trafficSources)
The traffic sources associated with this Auto Scaling group.
trafficSources
- The traffic sources associated with this Auto Scaling group.AutoScalingGroup.Builder trafficSources(Consumer<TrafficSourceIdentifier.Builder>... trafficSources)
The traffic sources associated with this Auto Scaling group.
This is a convenience method that creates an instance of theTrafficSourceIdentifier.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
.
trafficSources
- a consumer that will call methods on
TrafficSourceIdentifier.Builder
#trafficSources(java.util.Collection)
Copyright © 2023. All rights reserved.