Struct aws_sdk_apprunner::client::fluent_builders::CreateAutoScalingConfiguration [−][src]
pub struct CreateAutoScalingConfiguration<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateAutoScalingConfiguration
.
Create an App Runner automatic scaling configuration resource. App Runner requires this resource when you create App Runner services that require non-default auto scaling settings. You can share an auto scaling configuration across multiple services.
Create multiple revisions of a configuration by using the same AutoScalingConfigurationName
and different
AutoScalingConfigurationRevision
values. When you create a service, you can set it to use the latest active revision of an auto scaling
configuration or a specific revision.
Configure a higher MinSize
to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The tradeoff is
a higher minimal cost.
Configure a lower MaxSize
to control your cost. The tradeoff is lower responsiveness during peak demand.
Implementations
impl<C, M, R> CreateAutoScalingConfiguration<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateAutoScalingConfiguration<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateAutoScalingConfigurationOutput, SdkError<CreateAutoScalingConfigurationError>> where
R::Policy: SmithyRetryPolicy<CreateAutoScalingConfigurationInputOperationOutputAlias, CreateAutoScalingConfigurationOutput, CreateAutoScalingConfigurationError, CreateAutoScalingConfigurationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateAutoScalingConfigurationOutput, SdkError<CreateAutoScalingConfigurationError>> where
R::Policy: SmithyRetryPolicy<CreateAutoScalingConfigurationInputOperationOutputAlias, CreateAutoScalingConfigurationOutput, CreateAutoScalingConfigurationError, CreateAutoScalingConfigurationInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number 1
of this
name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number 1
of this
name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
The maximum number of concurrent requests that you want an instance to process. If the number of concurrent requests exceeds this limit, App Runner scales up your service.
Default: 100
The maximum number of concurrent requests that you want an instance to process. If the number of concurrent requests exceeds this limit, App Runner scales up your service.
Default: 100
The minimum number of instances that App Runner provisions for your 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.
Default: 1
The minimum number of instances that App Runner provisions for your 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.
Default: 1
The maximum number of instances that your service scales up to. At most MaxSize
instances actively serve traffic for your service.
Default: 25
The maximum number of instances that your service scales up to. At most MaxSize
instances actively serve traffic for your service.
Default: 25
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateAutoScalingConfiguration<C, M, R>
impl<C, M, R> Send for CreateAutoScalingConfiguration<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateAutoScalingConfiguration<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateAutoScalingConfiguration<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateAutoScalingConfiguration<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more