@Generated(value="software.amazon.awssdk:codegen") public final class AutoScalingConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>
Describes an App Runner automatic scaling configuration resource.
A higher MinSize increases the spread of your App Runner service over more Availability Zones in the
Amazon Web Services Region. The tradeoff is a higher minimal cost.
A lower MaxSize controls your cost. The tradeoff is lower responsiveness during peak demand.
Multiple revisions of a configuration might have the same AutoScalingConfigurationName and different
AutoScalingConfigurationRevision values.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AutoScalingConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
autoScalingConfigurationArn()
The Amazon Resource Name (ARN) of this auto scaling configuration.
|
String |
autoScalingConfigurationName()
The customer-provided auto scaling configuration name.
|
Integer |
autoScalingConfigurationRevision()
The revision of this auto scaling configuration.
|
static AutoScalingConfiguration.Builder |
builder() |
Instant |
createdAt()
The time when the auto scaling configuration was created.
|
Instant |
deletedAt()
The time when the auto scaling configuration was deleted.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
latest()
It's set to
true for the configuration with the highest Revision among all
configurations that share the same AutoScalingConfigurationName. |
Integer |
maxConcurrency()
The maximum number of concurrent requests that an instance processes.
|
Integer |
maxSize()
The maximum number of instances that a service scales up to.
|
Integer |
minSize()
The minimum number of instances that App Runner provisions for a service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutoScalingConfiguration.Builder> |
serializableBuilderClass() |
AutoScalingConfigurationStatus |
status()
The current state of the auto scaling configuration.
|
String |
statusAsString()
The current state of the auto scaling configuration.
|
AutoScalingConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String autoScalingConfigurationArn()
The Amazon Resource Name (ARN) of this auto scaling configuration.
public final String autoScalingConfigurationName()
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
public final Integer autoScalingConfigurationRevision()
The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE") that share the same AutoScalingConfigurationName.
"Status": "ACTIVE") that share the same AutoScalingConfigurationName.public final Boolean latest()
It's set to true for the configuration with the highest Revision among all
configurations that share the same AutoScalingConfigurationName. It's set to false
otherwise.
true for the configuration with the highest Revision among all
configurations that share the same AutoScalingConfigurationName. It's set to
false otherwise.public final AutoScalingConfigurationStatus status()
The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE, it was deleted and can't be used. Inactive configuration revisions are permanently removed
some time after they are deleted.
If the service returns an enum value that is not available in the current SDK version, status will
return AutoScalingConfigurationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
INACTIVE, it was deleted and can't be used. Inactive configuration revisions are permanently
removed some time after they are deleted.AutoScalingConfigurationStatuspublic final String statusAsString()
The current state of the auto scaling configuration. If the status of a configuration revision is
INACTIVE, it was deleted and can't be used. Inactive configuration revisions are permanently removed
some time after they are deleted.
If the service returns an enum value that is not available in the current SDK version, status will
return AutoScalingConfigurationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
INACTIVE, it was deleted and can't be used. Inactive configuration revisions are permanently
removed some time after they are deleted.AutoScalingConfigurationStatuspublic final Integer maxConcurrency()
The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up.
public final Integer minSize()
The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSize provisioned instances. Some of them actively serve traffic. The rest of them (provisioned
and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You
pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
MinSize provisioned instances. Some of them actively serve traffic. The rest of them
(provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be
quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of
only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
public final Integer maxSize()
The maximum number of instances that a service scales up to. At most MaxSize instances actively
serve traffic for your service.
MaxSize instances
actively serve traffic for your service.public final Instant createdAt()
The time when the auto scaling configuration was created. It's in Unix time stamp format.
public final Instant deletedAt()
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
public AutoScalingConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>public static AutoScalingConfiguration.Builder builder()
public static Class<? extends AutoScalingConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.