Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data AutoScalingConfiguration = AutoScalingConfiguration' {
- autoScalingConfigurationArn :: Maybe Text
- autoScalingConfigurationName :: Maybe Text
- autoScalingConfigurationRevision :: Maybe Int
- createdAt :: Maybe POSIX
- deletedAt :: Maybe POSIX
- latest :: Maybe Bool
- maxConcurrency :: Maybe Int
- maxSize :: Maybe Int
- minSize :: Maybe Int
- status :: Maybe AutoScalingConfigurationStatus
- newAutoScalingConfiguration :: AutoScalingConfiguration
- autoScalingConfiguration_autoScalingConfigurationArn :: Lens' AutoScalingConfiguration (Maybe Text)
- autoScalingConfiguration_autoScalingConfigurationName :: Lens' AutoScalingConfiguration (Maybe Text)
- autoScalingConfiguration_autoScalingConfigurationRevision :: Lens' AutoScalingConfiguration (Maybe Int)
- autoScalingConfiguration_createdAt :: Lens' AutoScalingConfiguration (Maybe UTCTime)
- autoScalingConfiguration_deletedAt :: Lens' AutoScalingConfiguration (Maybe UTCTime)
- autoScalingConfiguration_latest :: Lens' AutoScalingConfiguration (Maybe Bool)
- autoScalingConfiguration_maxConcurrency :: Lens' AutoScalingConfiguration (Maybe Int)
- autoScalingConfiguration_maxSize :: Lens' AutoScalingConfiguration (Maybe Int)
- autoScalingConfiguration_minSize :: Lens' AutoScalingConfiguration (Maybe Int)
- autoScalingConfiguration_status :: Lens' AutoScalingConfiguration (Maybe AutoScalingConfigurationStatus)
Documentation
data AutoScalingConfiguration Source #
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: newAutoScalingConfiguration
smart constructor.
AutoScalingConfiguration' | |
|
Instances
newAutoScalingConfiguration :: AutoScalingConfiguration Source #
Create a value of AutoScalingConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:autoScalingConfigurationArn:AutoScalingConfiguration'
, autoScalingConfiguration_autoScalingConfigurationArn
- The Amazon Resource Name (ARN) of this auto scaling configuration.
$sel:autoScalingConfigurationName:AutoScalingConfiguration'
, autoScalingConfiguration_autoScalingConfigurationName
- The customer-provided auto scaling configuration name. It can be used in
multiple revisions of a configuration.
$sel:autoScalingConfigurationRevision:AutoScalingConfiguration'
, autoScalingConfiguration_autoScalingConfigurationRevision
- The revision of this auto scaling configuration. It's unique among all
the active configurations ("Status": "ACTIVE"
) that share the same
AutoScalingConfigurationName
.
$sel:createdAt:AutoScalingConfiguration'
, autoScalingConfiguration_createdAt
- The time when the auto scaling configuration was created. It's in Unix
time stamp format.
$sel:deletedAt:AutoScalingConfiguration'
, autoScalingConfiguration_deletedAt
- The time when the auto scaling configuration was deleted. It's in Unix
time stamp format.
$sel:latest:AutoScalingConfiguration'
, autoScalingConfiguration_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.
$sel:maxConcurrency:AutoScalingConfiguration'
, autoScalingConfiguration_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.
$sel:maxSize:AutoScalingConfiguration'
, autoScalingConfiguration_maxSize
- The maximum number of instances that a service scales up to. At most
MaxSize
instances actively serve traffic for your service.
$sel:minSize:AutoScalingConfiguration'
, autoScalingConfiguration_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.
$sel:status:AutoScalingConfiguration'
, autoScalingConfiguration_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.
autoScalingConfiguration_autoScalingConfigurationArn :: Lens' AutoScalingConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of this auto scaling configuration.
autoScalingConfiguration_autoScalingConfigurationName :: Lens' AutoScalingConfiguration (Maybe Text) Source #
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
autoScalingConfiguration_autoScalingConfigurationRevision :: Lens' AutoScalingConfiguration (Maybe Int) Source #
The revision of this auto scaling configuration. It's unique among all
the active configurations ("Status": "ACTIVE"
) that share the same
AutoScalingConfigurationName
.
autoScalingConfiguration_createdAt :: Lens' AutoScalingConfiguration (Maybe UTCTime) Source #
The time when the auto scaling configuration was created. It's in Unix time stamp format.
autoScalingConfiguration_deletedAt :: Lens' AutoScalingConfiguration (Maybe UTCTime) Source #
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
autoScalingConfiguration_latest :: Lens' AutoScalingConfiguration (Maybe Bool) Source #
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.
autoScalingConfiguration_maxConcurrency :: Lens' AutoScalingConfiguration (Maybe Int) Source #
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.
autoScalingConfiguration_maxSize :: Lens' AutoScalingConfiguration (Maybe Int) Source #
The maximum number of instances that a service scales up to. At most
MaxSize
instances actively serve traffic for your service.
autoScalingConfiguration_minSize :: Lens' AutoScalingConfiguration (Maybe Int) Source #
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.
autoScalingConfiguration_status :: Lens' AutoScalingConfiguration (Maybe AutoScalingConfigurationStatus) Source #
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.