pub struct Builder { /* private fields */ }
Expand description
A builder for AwsAutoScalingAutoScalingGroupDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn launch_configuration_name(self, input: impl Into<String>) -> Self
pub fn launch_configuration_name(self, input: impl Into<String>) -> Self
The name of the launch configuration.
sourcepub fn set_launch_configuration_name(self, input: Option<String>) -> Self
pub fn set_launch_configuration_name(self, input: Option<String>) -> Self
The name of the launch configuration.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn load_balancer_names(self, input: impl Into<String>) -> Self
pub fn load_balancer_names(self, input: impl Into<String>) -> Self
Appends an item to load_balancer_names
.
To override the contents of this collection use set_load_balancer_names
.
The list of load balancers associated with the group.
sourcepub fn set_load_balancer_names(self, input: Option<Vec<String>>) -> Self
pub fn set_load_balancer_names(self, input: Option<Vec<String>>) -> Self
The list of load balancers associated with the group.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn health_check_type(self, input: impl Into<String>) -> Self
pub fn health_check_type(self, input: impl Into<String>) -> Self
The service to use for the health checks. Valid values are EC2
or ELB
.
sourcepub fn set_health_check_type(self, input: Option<String>) -> Self
pub fn set_health_check_type(self, input: Option<String>) -> Self
The service to use for the health checks. Valid values are EC2
or ELB
.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn health_check_grace_period(self, input: i32) -> Self
pub fn health_check_grace_period(self, input: i32) -> Self
The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before it checks the health status of an EC2 instance that has come into service.
sourcepub fn set_health_check_grace_period(self, input: Option<i32>) -> Self
pub fn set_health_check_grace_period(self, input: Option<i32>) -> Self
The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before it checks the health status of an EC2 instance that has come into service.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn created_time(self, input: impl Into<String>) -> Self
pub fn created_time(self, input: impl Into<String>) -> Self
Indicates when the auto scaling group was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_created_time(self, input: Option<String>) -> Self
pub fn set_created_time(self, input: Option<String>) -> Self
Indicates when the auto scaling group was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn mixed_instances_policy(
self,
input: AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails
) -> Self
pub fn mixed_instances_policy(
self,
input: AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails
) -> Self
The mixed instances policy for the automatic scaling group.
sourcepub fn set_mixed_instances_policy(
self,
input: Option<AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails>
) -> Self
pub fn set_mixed_instances_policy(
self,
input: Option<AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails>
) -> Self
The mixed instances policy for the automatic scaling group.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn availability_zones(
self,
input: AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails
) -> Self
pub fn availability_zones(
self,
input: AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails
) -> Self
Appends an item to availability_zones
.
To override the contents of this collection use set_availability_zones
.
The list of Availability Zones for the automatic scaling group.
sourcepub fn set_availability_zones(
self,
input: Option<Vec<AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails>>
) -> Self
pub fn set_availability_zones(
self,
input: Option<Vec<AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails>>
) -> Self
The list of Availability Zones for the automatic scaling group.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn launch_template(
self,
input: AwsAutoScalingAutoScalingGroupLaunchTemplateLaunchTemplateSpecification
) -> Self
pub fn launch_template(
self,
input: AwsAutoScalingAutoScalingGroupLaunchTemplateLaunchTemplateSpecification
) -> Self
The launch template to use.
sourcepub fn set_launch_template(
self,
input: Option<AwsAutoScalingAutoScalingGroupLaunchTemplateLaunchTemplateSpecification>
) -> Self
pub fn set_launch_template(
self,
input: Option<AwsAutoScalingAutoScalingGroupLaunchTemplateLaunchTemplateSpecification>
) -> Self
The launch template to use.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn capacity_rebalance(self, input: bool) -> Self
pub fn capacity_rebalance(self, input: bool) -> Self
Indicates whether capacity rebalancing is enabled.
sourcepub fn set_capacity_rebalance(self, input: Option<bool>) -> Self
pub fn set_capacity_rebalance(self, input: Option<bool>) -> Self
Indicates whether capacity rebalancing is enabled.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsAutoScalingAutoScalingGroupDetails
pub fn build(self) -> AwsAutoScalingAutoScalingGroupDetails
Consumes the builder and constructs a AwsAutoScalingAutoScalingGroupDetails
.
Examples found in repository?
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398
pub(crate) fn deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsAutoScalingAutoScalingGroupDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_auto_scaling_auto_scaling_group_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"LaunchConfigurationName" => {
builder = builder.set_launch_configuration_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancerNames" => {
builder = builder.set_load_balancer_names(
crate::json_deser::deser_list_com_amazonaws_securityhub_string_list(tokens)?
);
}
"HealthCheckType" => {
builder = builder.set_health_check_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"HealthCheckGracePeriod" => {
builder = builder.set_health_check_grace_period(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"CreatedTime" => {
builder = builder.set_created_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"MixedInstancesPolicy" => {
builder = builder.set_mixed_instances_policy(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_mixed_instances_policy_details(tokens)?
);
}
"AvailabilityZones" => {
builder = builder.set_availability_zones(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_auto_scaling_auto_scaling_group_availability_zones_list(tokens)?
);
}
"LaunchTemplate" => {
builder = builder.set_launch_template(
crate::json_deser::deser_structure_crate_model_aws_auto_scaling_auto_scaling_group_launch_template_launch_template_specification(tokens)?
);
}
"CapacityRebalance" => {
builder = builder.set_capacity_rebalance(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}