amazonka-apprunner-2.0: Amazon App Runner SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AppRunner.Types.AutoScalingConfiguration

Description

 
Synopsis

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.

Constructors

AutoScalingConfiguration' 

Fields

  • autoScalingConfigurationArn :: Maybe Text

    The Amazon Resource Name (ARN) of this auto scaling configuration.

  • autoScalingConfigurationName :: Maybe Text

    The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.

  • autoScalingConfigurationRevision :: Maybe Int

    The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.

  • createdAt :: Maybe POSIX

    The time when the auto scaling configuration was created. It's in Unix time stamp format.

  • deletedAt :: Maybe POSIX

    The time when the auto scaling configuration was deleted. It's in Unix time stamp format.

  • latest :: Maybe Bool

    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.

  • maxConcurrency :: Maybe Int

    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.

  • maxSize :: Maybe Int

    The maximum number of instances that a service scales up to. At most MaxSize instances actively serve traffic for your service.

  • minSize :: Maybe Int

    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.

  • status :: Maybe AutoScalingConfigurationStatus

    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.

Instances

Instances details
FromJSON AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

Generic AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

Associated Types

type Rep AutoScalingConfiguration :: Type -> Type #

Read AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

Show AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

NFData AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

Eq AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

Hashable AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

type Rep AutoScalingConfiguration Source # 
Instance details

Defined in Amazonka.AppRunner.Types.AutoScalingConfiguration

type Rep AutoScalingConfiguration = D1 ('MetaData "AutoScalingConfiguration" "Amazonka.AppRunner.Types.AutoScalingConfiguration" "amazonka-apprunner-2.0-EwwUWnxXZrM2Mgbv25gcO5" 'False) (C1 ('MetaCons "AutoScalingConfiguration'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "autoScalingConfigurationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "autoScalingConfigurationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "autoScalingConfigurationRevision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "deletedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "latest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "maxConcurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "maxSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "minSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoScalingConfigurationStatus)))))))

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.