pub struct Builder { /* private fields */ }
Expand description
A builder for AutoScalingConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn auto_scaling_configuration_arn(self, input: impl Into<String>) -> Self
pub fn auto_scaling_configuration_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of this auto scaling configuration.
sourcepub fn set_auto_scaling_configuration_arn(self, input: Option<String>) -> Self
pub fn set_auto_scaling_configuration_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of this auto scaling configuration.
sourcepub fn auto_scaling_configuration_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_configuration_name(self, input: impl Into<String>) -> Self
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
sourcepub fn set_auto_scaling_configuration_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_configuration_name(self, input: Option<String>) -> Self
The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.
sourcepub fn auto_scaling_configuration_revision(self, input: i32) -> Self
pub fn auto_scaling_configuration_revision(self, input: i32) -> Self
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.
sourcepub fn set_auto_scaling_configuration_revision(self, input: Option<i32>) -> Self
pub fn set_auto_scaling_configuration_revision(self, input: Option<i32>) -> Self
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE"
) that share the same AutoScalingConfigurationName
.
sourcepub fn latest(self, input: bool) -> Self
pub fn latest(self, input: bool) -> Self
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.
sourcepub fn set_latest(self, input: Option<bool>) -> Self
pub fn set_latest(self, input: Option<bool>) -> Self
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.
sourcepub fn status(self, input: AutoScalingConfigurationStatus) -> Self
pub fn status(self, input: AutoScalingConfigurationStatus) -> Self
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.
sourcepub fn set_status(self, input: Option<AutoScalingConfigurationStatus>) -> Self
pub fn set_status(self, input: Option<AutoScalingConfigurationStatus>) -> Self
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.
sourcepub fn max_concurrency(self, input: i32) -> Self
pub fn max_concurrency(self, input: i32) -> Self
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.
sourcepub fn set_max_concurrency(self, input: Option<i32>) -> Self
pub fn set_max_concurrency(self, input: Option<i32>) -> Self
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.
sourcepub fn min_size(self, input: i32) -> Self
pub fn min_size(self, input: i32) -> Self
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.
sourcepub fn set_min_size(self, input: Option<i32>) -> Self
pub fn set_min_size(self, input: Option<i32>) -> Self
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.
sourcepub fn max_size(self, input: i32) -> Self
pub fn max_size(self, input: i32) -> Self
The maximum number of instances that a service scales up to. At most MaxSize
instances actively serve traffic for your service.
sourcepub fn set_max_size(self, input: Option<i32>) -> Self
pub fn set_max_size(self, input: Option<i32>) -> Self
The maximum number of instances that a service scales up to. At most MaxSize
instances actively serve traffic for your service.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when the auto scaling configuration was created. It's in Unix time stamp format.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when the auto scaling configuration was created. It's in Unix time stamp format.
sourcepub fn deleted_at(self, input: DateTime) -> Self
pub fn deleted_at(self, input: DateTime) -> Self
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
sourcepub fn set_deleted_at(self, input: Option<DateTime>) -> Self
pub fn set_deleted_at(self, input: Option<DateTime>) -> Self
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
sourcepub fn build(self) -> AutoScalingConfiguration
pub fn build(self) -> AutoScalingConfiguration
Consumes the builder and constructs a AutoScalingConfiguration
.