Class AutoScalingConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Amazon Resource Name (ARN) of this auto scaling configuration.final StringThe customer-provided auto scaling configuration name.final IntegerThe revision of this auto scaling configuration.builder()final InstantThe time when the auto scaling configuration was created.final InstantThe time when the auto scaling configuration was deleted.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final BooleanIndicates if this auto scaling configuration has an App Runner service associated with it.final inthashCode()final BooleanIndicates if this auto scaling configuration should be used as the default for a new App Runner service that does not have an auto scaling configuration ARN specified during creation.final Booleanlatest()It's set totruefor the configuration with the highestRevisionamong all configurations that share the sameAutoScalingConfigurationName.final IntegerThe maximum number of concurrent requests that an instance processes.final IntegermaxSize()The maximum number of instances that a service scales up to.final IntegerminSize()The minimum number of instances that App Runner provisions for a service.static Class<? extends AutoScalingConfiguration.Builder> status()The current state of the auto scaling configuration.final StringThe current state of the auto scaling configuration.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
autoScalingConfigurationArn
The Amazon Resource Name (ARN) of this auto scaling configuration.
- Returns:
- The Amazon Resource Name (ARN) of this auto scaling configuration.
-
autoScalingConfigurationName
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
- Returns:
- The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
-
autoScalingConfigurationRevision
The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE") that share the sameAutoScalingConfigurationName.- Returns:
- The revision of this auto scaling configuration. It's unique among all the active configurations (
"Status": "ACTIVE") that share the sameAutoScalingConfigurationName.
-
latest
It's set to
truefor the configuration with the highestRevisionamong all configurations that share the sameAutoScalingConfigurationName. It's set tofalseotherwise.- Returns:
- It's set to
truefor the configuration with the highestRevisionamong all configurations that share the sameAutoScalingConfigurationName. It's set tofalseotherwise.
-
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,
statuswill returnAutoScalingConfigurationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - See Also:
-
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,
statuswill returnAutoScalingConfigurationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - See Also:
-
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.
- Returns:
- 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.
-
minSize
The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSizeprovisioned 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.
- Returns:
- The minimum number of instances that App Runner provisions for a service. The service always has at least
MinSizeprovisioned 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.
-
maxSize
The maximum number of instances that a service scales up to. At most
MaxSizeinstances actively serve traffic for your service.- Returns:
- The maximum number of instances that a service scales up to. At most
MaxSizeinstances actively serve traffic for your service.
-
createdAt
The time when the auto scaling configuration was created. It's in Unix time stamp format.
- Returns:
- The time when the auto scaling configuration was created. It's in Unix time stamp format.
-
deletedAt
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
- Returns:
- The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
-
hasAssociatedService
Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
trueindicates one or more services are associated. A value offalseindicates no services are associated.- Returns:
- Indicates if this auto scaling configuration has an App Runner service associated with it. A value of
trueindicates one or more services are associated. A value offalseindicates no services are associated.
-
isDefault
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does not have an auto scaling configuration ARN specified during creation. Each account can have only one default
AutoScalingConfigurationper region. The defaultAutoScalingConfigurationcan be any revision under the sameAutoScalingConfigurationName.- Returns:
- Indicates if this auto scaling configuration should be used as the default for a new App Runner service
that does not have an auto scaling configuration ARN specified during creation. Each account can have
only one default
AutoScalingConfigurationper region. The defaultAutoScalingConfigurationcan be any revision under the sameAutoScalingConfigurationName.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-